@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --bg-deep: #0b1d1c;
  --bg-mid: #123b39;
  --bg-glow: #1f5c57;
  --ink: #0a0e0d;
  --text: #f7f4ef;
  --muted: #c4bfb5;
  --accent-sun: #f2b06a;
  --accent-coral: #ff6f59;
  --accent-mint: #9fd9c6;
  --card: rgba(15, 44, 42, 0.78);
  --card-strong: rgba(21, 63, 60, 0.95);
  --stroke: rgba(247, 244, 239, 0.12);
  --shadow: 0 24px 60px rgba(6, 10, 9, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(160deg, var(--bg-deep), var(--bg-mid) 45%, var(--bg-glow));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 176, 106, 0.25), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(159, 217, 198, 0.2), transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(255, 111, 89, 0.18), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 20px 120px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.user-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--stroke);
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 50%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.view {
  display: grid;
  gap: 18px;
  animation: floatIn 0.5s ease;
}

.section {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.card {
  padding: 14px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
  min-height: 90px;
}

.card strong {
  font-size: 15px;
}

.card small {
  color: var(--muted);
  font-size: 12px;
}

.card .price {
  color: var(--accent-sun);
  font-weight: 600;
}

.card.active {
  outline: 2px solid var(--accent-mint);
  box-shadow: 0 0 0 2px rgba(159, 217, 198, 0.25), var(--shadow);
}

.button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  background: var(--accent-sun);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px rgba(242, 176, 106, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--stroke);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px dashed var(--stroke);
  box-shadow: none;
}

.button:active {
  transform: translateY(2px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  background: var(--accent-coral);
  color: var(--ink);
  border-color: transparent;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 auto;
  max-width: 1024px;
  border-radius: 22px;
  background: rgba(10, 22, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

.dock::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 4px;
  text-align: center;
  min-width: 90px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-sun));
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-item small {
  color: var(--muted);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
  font-size: 11px;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 7, 0.7);
  z-index: 10;
  color: var(--text);
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 7, 0.7);
  z-index: 20;
  padding: 20px;
}

.modal-card {
  background: var(--card-strong);
  border-radius: 18px;
  padding: 18px;
  width: min(360px, 90vw);
  border: 1px solid var(--stroke);
  display: grid;
  gap: 12px;
}

.modal-card input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.input,
.textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  color: var(--muted);
}

.button.danger {
  background: var(--accent-coral);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(255, 111, 89, 0.25);
}


.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: rgba(13, 35, 33, 0.95);
  border: 1px solid var(--stroke);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 30;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .app {
    padding: 20px 16px 120px;
  }

  .brand-title {
    font-size: 20px;
  }

  .user-chip {
    max-width: 60%;
  }
}