* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  min-height: 100vh;
  padding-bottom: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1a1a1a;
  border-radius: 20px;
  font-weight: 600;
}

.coin-icon {
  font-size: 1.2rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #333;
  padding: 0 20px;
}

.tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

main {
  padding: 20px;
}

.memory-grid {
  display: grid;
  gap: 16px;
}

.memory-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.memory-card:active {
  transform: scale(0.98);
}

.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.memory-type {
  display: inline-block;
  padding: 4px 12px;
  background: #2a2a2a;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #aaa;
}

.memory-price {
  font-weight: 600;
  font-size: 1.1rem;
}

.memory-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.memory-description {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.memory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.85rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn-secondary {
  background: #2a2a2a;
  color: #fff;
  margin-top: 12px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
}