@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #FF6B00;
  --accent2: #FF9A3C;
  --gradient: linear-gradient(135deg, #FF6B00 0%, #FF9A3C 100%);
  --radius-card: 16px;
  --radius-btn: 12px;
  --sidebar-w: 252px;
  --topbar-h: 64px;
  --bottomnav-h: 68px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #131316;
  --card: #18181b;
  --card-hover: #202024;
  --border: #27272a;
  --text: #f5f5f5;
  --text-sub: #9a9aa3;
  --text-muted: #65656b;
  --overlay: rgba(0, 0, 0, .65);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --accent-soft: rgba(255, 107, 0, .14);
  --accent-soft-solid: #2c1809;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f7f7f9;
  --card: #ffffff;
  --card-hover: #f4f4f6;
  --border: #e8e8ec;
  --text: #0f0f12;
  --text-sub: #6b6b75;
  --text-muted: #a0a0a8;
  --overlay: rgba(0, 0, 0, .35);
  --shadow: 0 8px 28px rgba(0, 0, 0, .08);
  --accent-soft: rgba(255, 107, 0, .1);
  --accent-soft-solid: #fff0e6;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: background .25s ease, color .25s ease;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Gradient helpers */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg { background: var(--gradient); }
.gradient-btn {
  background: var(--gradient);
  color: #fff;
  transition: opacity .2s, transform .2s;
}
.gradient-btn:hover { opacity: .92; transform: translateY(-1px); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card-hover:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--card-hover);
}

/* Buttons */
.btn {
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  transition: all .2s ease;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }

/* App shell layout */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}
.sidebar.open { transform: translateX(0); }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.topbar {
  position: fixed; top: 0; right: 0; left: 0;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 30;
  transition: left .3s ease;
}

.main-content {
  padding-top: calc(var(--topbar-h) + 20px);
  padding-bottom: calc(var(--bottomnav-h) + 32px);
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); }
  .main-content { margin-left: var(--sidebar-w); padding-bottom: 40px; }
  .topbar { left: var(--sidebar-w); }
  .bottom-nav, .create-fab-mobile-spacer { display: none; }
  .sidebar-toggle { display: none; }
}

/* Sidebar nav items */
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  color: var(--text-sub);
  font-weight: 500;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.nav-item:hover { background: var(--card-hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-divider { border-top: 1px solid var(--border); margin: 12px 0; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 30;
  display: flex; align-items: center; justify-content: space-around;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  flex: 1; padding: 6px 0;
}
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-spacer { flex: 1; }

/* Create FAB */
.create-fab {
  position: fixed;
  bottom: calc(var(--bottomnav-h) - 40px);
  left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(255, 107, 0, .4);
  z-index: 35;
  border: 4px solid var(--bg);
  transition: transform .2s ease, border-color .2s ease;
}
.create-fab:active { transform: translateX(-50%) scale(.93); }
.create-fab svg { width: 24px; height: 24px; color: #fff; }

@media (min-width: 1024px) {
  .create-fab { bottom: 32px; left: auto; right: 32px; transform: none; }
  .create-fab:active { transform: scale(.93); }
}

/* Create radial menu */
.create-menu {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 22px);
  left: 50%; transform: translateX(-50%) scale(.85);
  z-index: 36;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.create-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
@media (min-width: 1024px) {
  .create-menu {
    bottom: 100px; left: auto; right: 32px;
    transform: translateY(10px) scale(.92);
  }
  .create-menu.open { transform: translateY(0) scale(1); }
}
.create-menu-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; }
.create-menu-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease;
}
.create-menu-item:hover .create-menu-icon { border-color: var(--accent); transform: translateY(-2px); }
.create-menu-icon svg { width: 22px; height: 22px; color: var(--accent); }
.create-menu-item span { font-size: 12px; color: var(--text-sub); text-align: center; }

.fab-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 34;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.fab-overlay.open { opacity: 1; pointer-events: auto; }

/* Chips / pills */
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sub);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: all .2s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Tool card pin button */
.tool-pin {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s ease;
  z-index: 2;
}
.tool-pin:hover { border-color: var(--accent); color: var(--accent); }
.tool-pin.pinned { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tool-pin svg { width: 15px; height: 15px; }

/* Tabs */
.tab-btn {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 8px 4px; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.tab-btn.active { color: var(--text); border-color: var(--accent); }

/* Theme toggle / icon buttons */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--card-hover); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

/* User dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; color: var(--text);
  transition: background .2s ease;
}
.dropdown-item:hover { background: var(--card-hover); }
.dropdown-item svg { width: 17px; height: 17px; color: var(--text-sub); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* Banner slider */
.banner-viewport { overflow: hidden; border-radius: var(--radius-card); }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide { flex: 0 0 100%; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .3s ease; cursor: pointer; }
.banner-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px 20px;
  min-height: 360px;
}
.empty-state-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.empty-state-icon svg { width: 32px; height: 32px; color: var(--accent); }
.empty-state h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--text-sub); max-width: 360px; margin-bottom: 20px; }

/* Inputs */
.input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 14px;
  padding: 9px 14px;
  transition: border-color .2s ease;
}
.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--text-muted); }

/* Anchor sections (account page) */
.anchor-section { scroll-margin-top: calc(var(--topbar-h) + 20px); }

/* Create: type tab cards */
.type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-tab-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.type-tab-card svg { width: 24px; height: 24px; color: var(--text-muted); transition: color .2s ease; }
.type-tab-card.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.type-tab-card.active svg { color: var(--accent); }

/* Create: option / model / settings rows */
.option-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: border-color .2s ease;
}
.option-row:hover { border-color: var(--accent); }
.option-row-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.option-row-icon svg { width: 18px; height: 18px; color: var(--accent); }
.option-row-text { flex: 1; min-width: 0; }
.option-row-label { font-size: 12px; color: var(--text-muted); }
.option-row-value { font-size: 14px; font-weight: 600; margin-top: 1px; }
.option-row .chevron { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Create: prompt card */
.prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.prompt-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.prompt-card-header h3 { font-size: 15px; font-weight: 700; }
.prompt-card-header svg { width: 18px; height: 18px; color: var(--text-muted); }
.prompt-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-height: 110px;
}
.prompt-textarea::placeholder { color: var(--text-muted); }
.prompt-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.prompt-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid var(--border);
}
.prompt-toolbar-icons { display: flex; gap: 4px; }
.prompt-tool-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .2s ease;
}
.prompt-tool-btn:hover { background: var(--bg-elevated); color: var(--text); }
.prompt-tool-btn svg { width: 17px; height: 17px; }
.prompt-toolbar-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Create: toggle switch */
.toggle-switch {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
  padding: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch.on::after { transform: translateX(18px); }

/* Create: reference upload strip */
.reference-upload {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  cursor: pointer;
  margin-bottom: 14px;
}
.reference-upload-thumbs { display: flex; flex-shrink: 0; }
.reference-upload-thumbs span {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-left: -10px;
}
.reference-upload-thumbs span:first-child { margin-left: 0; }
.reference-upload-thumbs svg { width: 16px; height: 16px; color: var(--text-muted); }
.reference-upload-text { flex: 1; min-width: 0; }
.reference-upload-text p:first-child { font-size: 13px; font-weight: 600; }
.reference-upload-text p:last-child { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.reference-upload-count { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Create: large upload box */
.upload-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.upload-box:hover { border-color: var(--accent); }
.upload-box-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  position: relative;
}
.upload-box-icon svg { width: 20px; height: 20px; color: var(--text-sub); }
.upload-box-icon .plus-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.upload-box-icon .plus-badge svg { width: 11px; height: 11px; color: #fff; }
.upload-box p { margin: 0; }
.upload-box .upload-box-title { font-size: 14px; font-weight: 600; }
.upload-box .upload-box-sub { font-size: 12px; color: var(--text-muted); }
.upload-box .upload-box-sub a { color: var(--accent); text-decoration: underline; }
.upload-box-preview {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.upload-box-remove {
  display: none;
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: none; cursor: pointer;
  align-items: center; justify-content: center;
  z-index: 2;
}
.upload-box-remove svg { width: 12px; height: 12px; color: #fff; }
.upload-box.has-image { border-style: solid; aspect-ratio: 1; padding: 0; }
.upload-box.has-image .upload-box-preview { display: block; }
.upload-box.has-image .upload-box-remove { display: flex; }
.upload-box.has-image .upload-box-icon,
.upload-box.has-image .upload-box-title,
.upload-box.has-image .upload-box-sub { display: none; }

/* Create: upload progress + done check */
.upload-box-progress {
  display: none;
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
  z-index: 2;
}
.upload-box-progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: #fff;
  transition: width .9s ease;
}
.upload-box.uploading .upload-box-progress { display: block; }
.upload-box-check {
  display: none;
  position: absolute; bottom: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #22c55e;
  align-items: center; justify-content: center;
  z-index: 2;
  animation: upload-check-pop .25s ease;
}
.upload-box-check svg { width: 14px; height: 14px; color: #fff; }
.upload-box.uploaded .upload-box-check { display: flex; }
@keyframes upload-check-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Create: start/end frame grid */
.frame-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.frame-upload-grid .upload-box { padding: 24px 10px; }
.frame-upload-swap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  cursor: pointer;
}
.frame-upload-swap svg { width: 14px; height: 14px; color: var(--text-muted); }

/* Create: variation (image edit) multi-image upload */
.variation-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.variation-upload-grid > .upload-box:not(.has-image) { grid-column: 1 / -1; }
.variation-upload-grid.has-items > .upload-box:not(.has-image) {
  grid-column: auto;
  padding: 16px 8px;
}
.variation-upload-grid.has-items > .upload-box:not(.has-image) .upload-box-title,
.variation-upload-grid.has-items > .upload-box:not(.has-image) .upload-box-sub {
  display: none;
}
.variation-thumb { cursor: default; }
.variation-thumb:hover { border-color: var(--border); }

/* Create: sticky generate bar */
.generate-bar {
  position: sticky;
  bottom: calc(var(--bottomnav-h) + 12px);
  display: flex; gap: 10px;
  margin-top: 16px;
  z-index: 10;
}
@media (min-width: 1024px) {
  .generate-bar { bottom: 20px; }
}
.counter {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0 18px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.counter button { display: flex; align-items: center; justify-content: center; color: var(--text-sub); }
.counter button:disabled { opacity: .35; cursor: default; }
.counter button svg { width: 16px; height: 16px; }
.counter-value { min-width: 28px; text-align: center; }
.generate-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,107,0,.35);
}
.generate-btn svg { width: 17px; height: 17px; }
.generate-btn:disabled {
  background: var(--accent-soft-solid);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Create: bottom sheet */
.sheet-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  z-index: 61;
  padding: 16px 16px 24px;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sheet.open { transform: translateY(0); }
@media (min-width: 1024px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%) scale(.95);
    width: 420px; max-height: 80vh;
    border-radius: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 14px; }
@media (min-width: 1024px) { .sheet-handle { display: none; } }
.sheet h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; padding: 0 4px; }
.sheet-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s ease;
}
.sheet-option:hover { background: var(--bg-elevated); }
.sheet-option.selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sheet-option .check { width: 18px; height: 18px; color: var(--accent); visibility: hidden; }
.sheet-option.selected .check { visibility: visible; }

/* Auth pages (login/register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-error div + div { margin-top: 4px; }
.tg-login-wrap { display: flex; justify-content: center; }

/* Suite cards (home page) */
.suite-card { display: block; flex-shrink: 0; width: 240px; }
.suite-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.suite-card-body { padding: 14px; }
.suite-card-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.suite-card-desc { font-size: 12px; color: var(--text-sub); }

/* Hide helper */
.hidden { display: none !important; }
