/* =========================================================
   LUXE GLASS DUAL MODE — design tokens
   ========================================================= */
:root {
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --accent-primary: #c77dff;
  --accent-secondary: #5a189a;
  --accent-primary-hover: #b366ff;
  --accent-secondary-hover: #4b1480;
  --accent-primary-soft: rgba(199, 125, 255, 0.18);
  --accent-secondary-soft: rgba(90, 24, 154, 0.18);

  --error: #ff6b6b;
  --success: #56c596;
  --warning: #f4c95d;

  --r-sm: 0.5rem;
  --r: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.25rem;
  --r-xl: 1.5rem;
  --r-glass: 1.75rem;
  --r-full: 9999px;

  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;
  --container-margin: 24px;

  --blur: 20px;
  --saturate: 140%;

  --side-nav-w: 264px;
  --island-h: 72px;
  --island-nav-clearance: calc(72px + 16px + env(safe-area-inset-bottom, 0px));
}

[data-theme="dark"] {
  --bg: #0e0e12;
  --surface: #15151b;
  --surface-elevated: rgba(25, 25, 34, 0.72);
  --surface-strong: #1f1f29;

  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);

  --text: #f5f4fa;
  --text-muted: #a9a9bc;
  --icon: #f4f4fb;
  --on-accent: #ffffff;
  --outline: rgba(255, 255, 255, 0.12);
  --scrim: rgba(6, 6, 10, 0.55);
  --input-bg: rgba(255, 255, 255, 0.04);
  --skeleton: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.68);
  --surface-strong: #ece8f7;

  --glass-border: rgba(17, 17, 20, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 12px 32px rgba(16, 12, 32, 0.10);

  --text: #111114;
  --text-muted: #5d5d6e;
  --icon: #17171c;
  --on-accent: #ffffff;
  --outline: rgba(17, 17, 20, 0.10);
  --scrim: rgba(20, 16, 32, 0.35);
  --input-bg: rgba(17, 17, 20, 0.03);
  --skeleton: rgba(17, 17, 20, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  /* Clip on the root too — overflow-x on body alone doesn't stop
     mobile browsers from expanding the layout viewport */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 480px at 85% -8%, var(--accent-primary-soft), transparent 60%),
    radial-gradient(620px 520px at -10% 15%, var(--accent-secondary-soft), transparent 55%);
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

::selection {
  background: var(--accent-primary-soft);
}

.accent-dot {
  color: var(--accent-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   GLASS PRIMITIVES
   ========================================================= */
.glass {
  background: var(--surface-elevated);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-glass);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--glass-highlight), transparent 40%);
  pointer-events: none;
  opacity: .7;
}

.glass-strong {
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow);
}

.eyebrow {
  font-size: 13.8px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
  overflow-wrap: break-word;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16.1px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px 20px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--on-accent);
  box-shadow: 0 8px 24px -8px rgba(90, 24, 154, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(90, 24, 154, 0.65);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(.98);
}

.btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--input-bg);
  border-color: var(--outline);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 10px 14px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--input-bg);
}

.btn-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, .1);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 17.3px;
  border-radius: 14px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-icon {
  padding: 10px;
  border-radius: var(--r-full);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--input-bg);
  border: 1px solid var(--outline);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--accent-primary);
}

.chip.is-active {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=number],
.field select,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 16.1px;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--surface);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: .7;
}

.field-hint {
  font-size: 13.8px;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox-row span {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   APP SHELL / LAYOUT
   ========================================================= */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--side-nav-w);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--surface-elevated);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border-right: 1px solid var(--glass-border);
  z-index: 40;
}

.side-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 26px;
  cursor: pointer;
}

.side-nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 0px !important;
  object-fit: cover;
}

.side-nav__brand-text {
  font-size: 20.7px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.side-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 16.7px;
  font-weight: 500;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  text-align: left;
}

.nav-link__icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--input-bg);
  color: var(--text);
}

.nav-link.is-active {
  background: linear-gradient(135deg, var(--accent-primary-soft), var(--accent-secondary-soft));
  color: var(--accent-primary);
  border-color: var(--glass-border);
}

.side-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent-primary);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

#iconMoon,
#iconMoonM {
  display: none;
}

[data-theme="light"] #iconSun,
[data-theme="light"] #iconSunM {
  display: none;
}

[data-theme="light"] #iconMoon,
[data-theme="light"] #iconMoonM {
  display: inline-block;
}

.side-nav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  padding: 8px 10px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.side-nav__user:hover {
  border-color: var(--accent-primary);
}

.side-nav__avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.side-nav__user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.side-nav__user-meta strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.side-nav__user-meta small {
  font-size: 12.6px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 35;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--container-margin);
  background: var(--surface-elevated);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border-bottom: 1px solid var(--glass-border);
}

.mobile-topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18.4px;
  font-weight: 600;
}

.mobile-topbar__logo {
  width: 26px;
  height: 26px;
  border-radius: 0px !important;
}

.theme-toggle--icon {
  padding: 9px;
  border-radius: var(--r-full);
}

.theme-toggle--icon span {
  display: none;
}

.app-main {
  margin-left: var(--side-nav-w);
  min-height: 100vh;
  min-height: 100dvh;
}

.app-main__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px var(--container-margin) 80px;
}

.island-nav {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 50;
  gap: 2px;
  padding: 6px;
  background: var(--surface-elevated);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  box-shadow: var(--glass-shadow);
}

.island-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-size: 12.1px;
  font-weight: 500;
  transition: background-color .16s ease, color .16s ease;
}

.island-nav__btn svg {
  width: 19px;
  height: 19px;
}

.island-nav__btn.is-active {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

@media (max-width: 1024px) {
  :root {
    --side-nav-w: 72px;
  }

  .side-nav {
    display: flex;
    padding: 22px 8px;
    align-items: center;
  }

  .side-nav__brand-text,
  .nav-link span,
  .side-nav__user-meta,
  #themeToggleLabel {
    display: none !important;
  }

  .side-nav__brand {
    padding: 6px 0 26px;
    justify-content: center;
  }

  .nav-link {
    justify-content: center;
    padding: 10px;
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
  }

  .theme-toggle {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--r-full);
  }

  .side-nav__user {
    padding: 0;
    border: none;
    background: transparent;
    justify-content: center;
  }

  .side-nav__avatar {
    width: 36px;
    height: 36px;
  }

  .mobile-topbar {
    display: none;
  }

  .island-nav {
    display: none;
  }

  .app-main {
    margin-left: var(--side-nav-w);
  }

  .app-main__inner {
    padding: 22px 16px 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-margin: 12px;
    --side-nav-w: 0px !important;
  }

  html,
  body {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
  }

  .side-nav {
    display: none !important;
  }

  .mobile-topbar {
    display: flex !important;
    padding-top: max(14px, env(safe-area-inset-top)) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 14px !important;
    height: auto !important;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .island-nav {
    display: flex !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .app-main {
    margin-left: 0 !important;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: auto !important;
    overflow: hidden !important;
  }

  #appContent {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: var(--island-nav-clearance) !important;
    -webkit-overflow-scrolling: touch;
  }

  .app-main__inner {
    padding: 12px var(--container-margin) var(--island-nav-clearance) !important;
  }

  .glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }

  /* Compact wizard layout to prevent scrolling */
  .wizard-card {
    padding: 14px 12px !important;
    margin-bottom: 8px !important;
  }

  .wizard-actions {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  .field {
    margin-bottom: 12px !important;
  }

  .field label {
    margin-bottom: 4px !important;
    font-size: 14.4px !important;
  }

  textarea[data-field-blur] {
    height: 70px !important;
  }

  /* Stacked uploader grid for mobile to prevent horizontal overflow */
  .upload-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .uploader {
    padding: 20px 16px !important;
    min-height: 120px !important;
    gap: 8px !important;
  }

  .uploader__icon {
    width: 26px !important;
    height: 26px !important;
  }

  .uploader__label {
    font-size: 15px !important;
  }

  .uploader__hint {
    display: block !important;
    font-size: 12.6px !important;
    opacity: 0.8;
  }

  .uploader__opt,
  .uploader__req {
    font-size: 10.4px !important;
    padding: 3px 8px !important;
  }

  .upload-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) !important;
    gap: 6px !important;
  }
}

/* Results page bottom padding for mobile navbar clearance */
.results-page-wrapper {
  padding-bottom: var(--island-nav-clearance) !important;
  width: 100%;
}



/* Section helpers */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 27.6px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16.1px;
  margin-top: 4px;
}

.page-fade {
  animation: pageFade .38s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--skeleton), var(--surface-strong), var(--skeleton));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* =========================================================
   HOME
   ========================================================= */
.hero {
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  overflow: hidden;
  margin-bottom: 44px;
  position: relative;
  background-image:
    linear-gradient(to bottom right, rgba(5, 5, 12, 0.82) 0%, rgba(10, 8, 28, 0.70) 60%, rgba(5, 5, 12, 0.88) 100%),
    url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero h1,
.hero .hero__stat strong {
  color: #fff !important;
}

.hero p.lead,
.hero .hero__stat span {
  color: rgba(255, 255, 255, 0.72) !important;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-size: 14.4px;
  font-weight: 600;
}

.hero h1 {
  /* Fluid type: scales with the viewport so it fits every device width */
  font-size: clamp(30px, 5vw + 10px, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 820px;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #ffffff 20%, #e0aaff 60%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}

.hero p.lead {
  font-size: 19.5px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-size: 29.9px;
  font-weight: 600;
}

.hero__stat span {
  font-size: 14.4px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero {
    padding: 34px 22px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 28px 20px;
    margin-bottom: 24px;
    gap: 16px;
    background-image:
      linear-gradient(to bottom right, rgba(5, 5, 12, 0.85) 0%, rgba(10, 8, 28, 0.75) 60%, rgba(5, 5, 12, 0.90) 100%),
      url('../img/hero-bg.png') !important;
  }

  .hero p.lead {
    font-size: 17.3px;
    line-height: 1.5;
  }

  .hero__cta {
    gap: 10px;
  }

  .hero__stats {
    gap: 20px;
    margin-top: 18px;
  }

  .hero__stat strong {
    font-size: 25.3px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 24px 16px;
    gap: 14px;
  }

  .hero p.lead {
    font-size: 16.1px;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
  }

  .hero__stat strong {
    font-size: 23px;
  }
}

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  width: 100%;
}

.showcase-grid .tile {
  aspect-ratio: auto;
  height: 280px;
  border-radius: 0;
  border: none;
  margin: 0;
}

@media (max-width: 768px) {
  .showcase-grid .tile {
    height: 180px;
  }
}

/* Phones: override the inline flex-basis mosaic into an even 2-up grid
   so tiles never force the row wider than the screen */
@media (max-width: 640px) {
  .showcase-grid .tile {
    flex: 1 1 44% !important;
    min-width: 0;
  }
}

.tile--skeleton {
  cursor: default;
  background: linear-gradient(100deg, var(--surface-strong) 40%, var(--glass-border) 50%, var(--surface-strong) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s linear infinite;
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ── "Our other fresh generations" — infinite horizontal marquee ── */
.marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  overflow: hidden;
}

.marquee__row {
  overflow: hidden;
  /* Fade the edges so tiles slide in/out smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 14px;
  will-change: transform;
  animation: marquee-scroll var(--marquee-duration, 480s) linear infinite;
}

/* Keep the marquee moving even under the global reduced-motion
   kill switch — it forces animation-duration to ~0 with !important,
   which would freeze the track (inline styles can't override it) */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation-duration: var(--marquee-duration, 480s) !important;
  }
}

.marquee__track--reverse {
  animation-direction: reverse;
}

.marquee__row:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__tile {
  flex: 0 0 auto;
  width: 220px;
  height: 160px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--surface-strong);
}

.marquee__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.marquee__tile:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .marquee__tile {
    width: 150px;
    height: 110px;
  }
}

/* ── Actionable showcase tiles ── */
.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary, #c77dff);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  margin-top: 4px;
}

.tile__cta svg {
  width: 14px;
  height: 14px;
}

.tile--style:hover .tile__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero greeting ── */
.hero__eyebrow {
  margin-bottom: 12px;
}

/* ── "How it works" steps ── */
.howit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.howit-card {
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  min-width: 0;
  transition: transform .3s ease;
}

.howit-card:hover {
  transform: translateY(-3px);
}

.howit-card__media {
  position: relative;
  height: 160px;
  background: var(--surface-strong);
}

.howit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.howit-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-full);
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.howit-card__body {
  padding: 16px 18px 20px;
}

.howit-card__body h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.howit-card__body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .howit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .howit-card__media {
    height: 140px;
  }
}

/* ── Feature card media (collage / compare / ratios) ── */
.feature-card__collage {
  display: grid;
  /* minmax(0,1fr): plain 1fr lets the images' intrinsic width blow the
     track out to 1000px+ and break the whole page layout on mobile */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.feature-card__collage img,
.feature-card__collage span {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-md, 10px);
  border: 1px solid var(--glass-border);
  background: var(--surface-strong);
  display: block;
}

.feature-card__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.feature-card__compare figure {
  margin: 0;
  min-width: 0;
}

.feature-card__compare img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-md, 10px);
  border: 1px solid var(--glass-border);
  background: var(--surface-strong);
  display: block;
}

.feature-card__compare figcaption {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.feature-card__ratios {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
  /* Fluid: the strip's width follows its height, so cap it by viewport
     to keep the whole row inside narrow screens */
  height: clamp(56px, 22vw, 110px);
}

.feature-card__ratios span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md, 10px);
  background: var(--surface-strong);
}

.feature-card__ratios span[style*="16/9"] {
  height: 56%;
}

.feature-card__ratios span[style*="4/5"] {
  height: 80%;
}

.feature-card__ratios span[style*="1/1"] {
  height: 66%;
}

.feature-row .feature-card {
  cursor: pointer;
}

.tile {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--surface-strong);
  aspect-ratio: 3/4;
  height: 100%;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile__caption strong {
  font-size: 15.5px;
  font-weight: 600;
}

.tile__caption span {
  font-size: 12.6px;
  opacity: .8;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-card {
  padding: 26px;
  min-width: 0;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 18.4px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   GENERATE — search + category browser
   ========================================================= */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 26px;
  margin-left: 8px;
  margin-right: 8px;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 17.3px;
  padding: 12px 4px;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.search-bar__count {
  font-size: 13.8px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-left: 1px solid var(--outline);
  white-space: nowrap;
}

.app-main__inner:has(.category-shelf),
.app-main__inner:has(.category-grid),
.app-main__inner:has(.subcat-grid) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.app-main__inner:has(.category-shelf) .section-head,
.app-main__inner:has(.category-shelf) .search-bar,
.app-main__inner:has(.category-grid) .section-head,
.app-main__inner:has(.category-grid) .search-bar,
.app-main__inner:has(.subcat-grid) .section-head,
.app-main__inner:has(.subcat-grid) .search-bar,
.app-main__inner:has(.subcat-grid) .subcat-header {
  padding-left: var(--container-margin);
  padding-right: var(--container-margin);
}

.category-grid {
  display: grid;
  width: 100%;
  margin: 24px 0 0;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.subcat-grid {
  display: grid;
  width: 100%;
  margin: 24px 0 0;
  padding: 0 var(--container-margin) 32px;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (max-width: 768px) {
  .subcat-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
}

.category-card {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.category-card::before {
  display: none !important;
}

.category-card:hover .category-card__media img {
  transform: scale(1.05);
}

.category-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card__media.is-gradient {
  width: 100%;
  height: 100%;
  background: var(--cat-grad, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
}

.category-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  transition: background 0.3s ease;
}

[data-theme="dark"] .category-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 18, 0.95) 90%);
  color: #ffffff;
}

[data-theme="dark"] .category-card__body span {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .category-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 246, 251, 0.95) 90%);
  color: #111114;
}

[data-theme="light"] .category-card__body span {
  color: rgba(0, 0, 0, 0.6);
}

.category-card__body h3 {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.category-card__body span {
  font-size: 15.5px;
  font-weight: 500;
}

.subcat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.subcat-header>div {
  min-width: 0;
  flex: 1;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--input-bg);
  border: 1px solid var(--outline);
  color: var(--text);
  flex-shrink: 0;
}

.back-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.back-btn svg {
  width: 17px;
  height: 17px;
}



/* Category Shelf Layout */
.category-shelf {
  margin-bottom: 24px;
  width: 100%;
}

.category-shelf__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--container-margin);
  margin-bottom: 12px;
  gap: 12px;
}

.category-shelf__title {
  font-size: 20.7px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-shelf__see-all {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-shelf__see-all:hover {
  color: var(--accent-primary);
}

.category-shelf__row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 var(--container-margin) 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE/Edge */
}

.category-shelf__row::-webkit-scrollbar {
  display: none !important;
  /* Webkit */
  height: 0 !important;
}

.category-shelf__row .subcat-card {
  flex: 0 0 160px;
}

@media (max-width: 768px) {
  .category-shelf__row .subcat-card {
    flex: 0 0 130px;
  }

  .category-shelf__title {
    font-size: 18.4px;
  }
}

.subcat-card {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}

.subcat-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.subcat-card:hover .subcat-card__image {
  transform: scale(1.06);
}

.subcat-card::before {
  display: none !important;
}

.subcat-card:hover .subcat-card__swatch {
  transform: scale(1.05);
}

.subcat-card__swatch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.subcat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  transition: background 0.3s ease;
}

[data-theme="dark"] .subcat-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 18, 0.95) 90%);
  color: #ffffff;
}

[data-theme="dark"] .subcat-card__body span {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .subcat-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 246, 251, 0.95) 90%);
  color: #111114;
}

[data-theme="light"] .subcat-card__body span {
  color: rgba(0, 0, 0, 0.6);
}

.subcat-card__body strong {
  font-size: 16.1px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .subcat-card__body strong {
    font-size: 13.8px;
  }
}

/* What to create choice */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}

@media (max-width:760px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  padding: 30px 26px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.choice-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.choice-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary-soft), var(--accent-secondary-soft));
  color: var(--accent-primary);
  margin-bottom: 18px;
}

.choice-card__icon svg {
  width: 23px;
  height: 23px;
}

.choice-card h3 {
  font-size: 21.8px;
  margin-bottom: 8px;
}

.choice-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.choice-card__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-primary);
}

.choice-card__arrow svg {
  width: 14px;
  height: 14px;
  transition: transform .16s ease;
}

.choice-card:hover .choice-card__arrow svg {
  transform: translateX(4px);
}

/* =========================================================
   WIZARD
   ========================================================= */
.wizard {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--outline);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-progress__seg {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  background: var(--surface-strong);
  border: 2px solid var(--outline);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.4px;
  font-weight: 700;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wizard-progress__seg span {
  display: block;
  line-height: 1;
}

.wizard-progress__seg.is-done {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.wizard-progress__seg.is-active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard-meta__step {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wizard-meta__title {
  font-size: 25.3px;
  margin: 4px 0 6px;
}

.wizard-meta__sub {
  font-size: 15.5px;
  color: var(--text-muted);
}

.wizard-card {
  padding: 36px 30px;
  margin-bottom: 22px;
  border-radius: var(--r-xl) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  width: 100%;
}

@media (max-width: 1024px) {
  .wizard-card {
    padding: 30px 16px;
  }
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wizard-actions__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wizard-actions>button,
  .wizard-actions .wizard-actions__right {
    width: 100% !important;
  }

  .wizard-actions__right .btn {
    flex: 1 !important;
  }
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border: none;
}


.upload-col {
  padding: 0;
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .upload-col {
    border-bottom: none;
  }
}

.upload-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md) !important;
  overflow: hidden;
  border: 1px solid var(--outline);
  cursor: pointer;
  background: var(--surface-strong);
  transition: border-color 0.15s ease;
}

.upload-thumb:hover {
  border-color: var(--accent-primary);
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-thumb__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 16.1px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  z-index: 5;
  cursor: pointer;
}

.upload-thumb:hover .upload-thumb__remove {
  opacity: 1;
}

.upload-thumb__remove:hover {
  background: rgba(220, 53, 69, 0.9);
}

.uploader {
  border: 1.5px dashed var(--outline);
  border-radius: var(--r-lg) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: border-color .16s ease, background .16s ease;
  cursor: pointer;
  background: var(--input-bg);
}

.uploader:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.uploader.has-image {
  border-style: solid;
  padding: 0;
}

.uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.uploader__icon {
  width: 34px;
  height: 34px;
  color: var(--accent-primary);
}

.uploader__label {
  font-size: 15.5px;
  font-weight: 600;
}

.uploader__hint {
  font-size: 13.2px;
  color: var(--text-muted);
}

.uploader__req {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: .03em;
}

.uploader__opt {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--input-bg);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--outline);
}

.uploader input[type=file] {
  display: none;
}

.uploader__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 2;
}

.uploader__tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12.1px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  padding: 4px 9px;
  border-radius: var(--r-full);
  z-index: 2;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width:640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width:760px) {
  .form-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}

.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented .chip {
  padding: 9px 16px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--input-bg);
  border: 1px solid var(--outline);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18.4px;
}

.qty-stepper button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.qty-stepper strong {
  min-width: 28px;
  text-align: center;
  font-size: 18.4px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--outline);
  font-size: 16.1px;
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-list li span:first-child {
  color: var(--text-muted);
}

.summary-list li span:last-child {
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.copy-option {
  padding: 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--outline);
  cursor: pointer;
  margin-bottom: 10px;
  transition: all .15s ease;
  background: var(--input-bg);
}

.copy-option:hover {
  border-color: var(--accent-primary);
}

.copy-option.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.copy-option p {
  font-size: 16.1px;
  line-height: 1.55;
}

.copy-option__radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.copy-option__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.copy-option.is-selected .copy-option__dot {
  border-color: var(--accent-primary);
}

.copy-option.is-selected .copy-option__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Interactive Generating Screen */
/* Centered wizard card wrapper for desktop */
.wizard-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Interactive Generating Screen */
.generating-interactive {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
  z-index: 1;
}

.loading-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.loading-timer-circle {
  position: relative;
  z-index: 5;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent-primary-soft);
  box-shadow: 0 0 25px var(--accent-primary-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: timerPulse 3s ease-in-out infinite;
  cursor: default;
}

@keyframes timerPulse {

  0%,
  100% {
    border-color: var(--accent-primary-soft);
    box-shadow: 0 0 25px var(--accent-primary-soft);
  }

  50% {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(199, 125, 255, 0.45);
  }
}

.loading-timer-seconds {
  font-size: 36.8px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.loading-timer-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-weight: 600;
}

.loading-tips {
  position: relative;
  z-index: 5;
  margin: 24px auto 0 auto;
  text-align: center;
  max-width: 440px;
  pointer-events: auto;
}

/* Mobile responsive constraints for generator screen */
@media (max-width: 768px) {
  .wizard-card-wrapper {
    min-height: 0;
    padding: 0;
  }

  .generating-interactive {
    min-height: 280px !important;
    height: 38vh !important;
    padding: 20px 12px !important;
  }

  .loading-timer-circle {
    width: 100px !important;
    height: 100px !important;
  }

  .loading-timer-seconds {
    font-size: 27.6px !important;
  }

  .loading-tips {
    margin: 14px auto 0 auto !important;
  }
}

.loading-tips__label {
  display: inline-block;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.loading-tips__content {
  font-size: 14.4px;
  color: var(--text-muted);
  line-height: 1.45;
  transition: opacity 0.3s ease;
  margin: 0;
}

/* Results */
.results-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.result-card {
  flex: 1 1 auto;
  max-width: 280px;
  overflow: hidden;
}

.result-card__media {
  position: relative;
  height: 38vh;
  overflow: hidden;
  cursor: zoom-in;
}

.result-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .results-grid {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .result-card {
    width: 100%;
    max-width: 360px;
  }

  .result-card__media {
    height: 28vh;
  }
}

.result-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.result-card__actions span {
  font-size: 13.2px;
  color: var(--text-muted);
}

.result-card__icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--input-bg);
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.result-card__icon-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.result-card__icon-btn svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   HISTORY
   ========================================================= */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.history-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}

.history-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.history-card__media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.history-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-card:hover .history-card__media img {
  transform: scale(1.06);
}

.history-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.history-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  transition: background 0.3s ease;
}

[data-theme="dark"] .history-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 18, 0.95) 90%);
  color: #ffffff;
}

[data-theme="dark"] .history-card__body span {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .history-card__body {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 246, 251, 0.95) 90%);
  color: #111114;
}

[data-theme="light"] .history-card__body span {
  color: rgba(0, 0, 0, 0.6);
}

.history-card__body strong {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.history-card__body span {
  font-size: 13.2px;
}

.detail-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width:800px) {
  .detail-view {
    grid-template-columns: 1fr;
  }
}

.detail-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-pane__label {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.detail-pane__media {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: zoom-in;
}

.detail-pane__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-strip {
  display: flex;
  gap: 8px;
}

.thumb-strip img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .6;
}

.thumb-strip img.is-active {
  opacity: 1;
  border-color: var(--accent-primary);
}

/* =========================================================
   SETTINGS
   ========================================================= */
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width:900px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

#settingsPanel {
  min-width: 0;
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  position: sticky;
  top: 24px;
}

@media (max-width:900px) {
  .settings-tabs {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    padding: 8px;
  }
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 15.5px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  white-space: nowrap;
}

.settings-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.settings-tab:hover {
  background: var(--input-bg);
  color: var(--text);
}

.settings-tab.is-active {
  background: linear-gradient(135deg, var(--accent-primary-soft), var(--accent-secondary-soft));
  color: var(--accent-primary);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-header img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.profile-header h3 {
  font-size: 21.8px;
  margin-bottom: 4px;
}

.profile-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-badge {
  font-size: 12.6px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
}

.profile-header span.username {
  font-size: 15px;
  color: var(--text-muted);
}

.wallet-card {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wallet-card__balance strong {
  font-size: 36.8px;
  display: block;
}

.wallet-card__balance span {
  font-size: 14.4px;
  color: var(--text-muted);
}

.wallet-card__meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.wallet-card__meta div strong {
  display: block;
  font-size: 16.1px;
}

.wallet-card__meta div span {
  font-size: 13.2px;
  color: var(--text-muted);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width:1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.plan-card.is-current {
  border-color: var(--accent-primary);
}

.plan-card__current-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
}

.plan-card h4 {
  font-size: 17.3px;
}

.plan-card__price {
  font-size: 29.9px;
  font-weight: 600;
}

.plan-card__price small {
  font-size: 13.8px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-card li {
  font-size: 14.4px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-card li svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width:760px) {
  .addon-grid {
    grid-template-columns: 1fr;
  }
}

.addon-card {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.addon-card strong {
  font-size: 17.3px;
  display: block;
}

.addon-card span {
  font-size: 13.8px;
  color: var(--text-muted);
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.security-row h4 {
  font-size: 17.3px;
  margin-bottom: 4px;
}

.security-row p {
  font-size: 15px;
  color: var(--text-muted);
}

.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-row input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  color: var(--text);
}

.otp-row input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.ledger-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.2px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--outline);
}

.ledger-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--outline);
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

.ledger-amount.credit {
  color: var(--success);
  font-weight: 600;
}

.ledger-amount.debit {
  color: var(--error);
  font-weight: 600;
}

.ledger-scroll {
  overflow-x: auto;
}

/* =========================================================
   TOAST / MODAL / LIGHTBOX
   ========================================================= */
.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width:1024px) {
  .toast-root {
    top: auto;
    bottom: 110px;
    right: 16px;
    left: 16px;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  animation: toastIn .25s ease;
  min-width: 240px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.toast__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--success);
}

.toast.is-error .toast__icon {
  color: var(--error);
}

.modal-root:empty {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-box h3 {
  font-size: 20.7px;
  margin-bottom: 8px;
}

.modal-box p.modal-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, .9);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.is-open {
  display: flex;
  animation: fadeIn .2s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 25.3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 44px;
  height: 44px;
  opacity: .5;
}

.empty-state h3 {
  font-size: 18.4px;
  color: var(--text);
}

.empty-state p {
  font-size: 15.5px;
  max-width: 320px;
}

/* Logout & Collapsible Footer Row styling */
.side-nav__footer-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.logout-btn {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--input-bg);
  border: 1px solid var(--outline);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.logout-btn:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(220, 53, 69, 0.08);
}

.logout-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1024px) {
  .logout-btn {
    display: none !important;
  }

  .side-nav__footer-row {
    justify-content: center;
  }
}

/* App Shell Logged-out overrides */
.app-shell.is-login-page .side-nav,
.app-shell.is-login-page .mobile-topbar,
.app-shell.is-login-page .island-nav {
  display: none !important;
}

.app-shell.is-login-page .app-main {
  margin-left: 0 !important;
  min-height: 100vh;
}

.app-shell.is-login-page .app-main__inner {
  padding: 0 !important;
  max-width: none !important;
}

/* Login Page Layout */
.login-page {
  display: flex;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  background: #09090b;
  color: #fafafa;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  touch-action: none;
  box-sizing: border-box !important;
}

.login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: #09090b;
}

.login-left-brand {
  flex: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 900px) {
  .login-left-brand {
    display: none;
  }
}

.animated-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 5;
  background: transparent;
}

@media (max-width: 900px) {
  .login-right {
    padding: 24px;
    background: transparent;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .login-right {
    padding: 16px;
  }
}

/* Animated Logo elements */
.animated-logo {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
}

.animated-logo img {
  width: 100%;
  height: 100%;
  border-radius: 0px !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
  animation: floatLogo 5s ease-in-out infinite;
}

.logo-pulse {
  display: none !important;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.logo-title {
  font-size: 41.4px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo-title span {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 16.1px;
  color: var(--text-muted);
  margin: 6px 0 0 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Login Card styled to feel premium with glassmorphism */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 20px !important;
  background: rgba(18, 18, 24, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}

.login-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 901px) {
  .login-card__brand {
    display: none;
  }
}

.login-card__brand img {
  width: 28px;
  height: 28px;
  border-radius: 0px !important;
}

.login-card__brand span {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.login-card h2 {
  font-size: 27.6px;
  font-weight: 600;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
  color: #fff;
}

.login-card__sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.4px;
  margin: 2px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.remember-me input {
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.forgot-pass {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-pass:hover {
  text-decoration: underline;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.6px;
  margin: 20px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider::before {
  margin-right: .6em;
}

.login-divider::after {
  margin-left: .6em;
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 10px !important;
  font-size: 15px !important;
  background: var(--input-bg) !important;
  border: 1px solid var(--outline) !important;
  color: var(--text) !important;
}

.social-btn:hover {
  border-color: var(--accent-primary) !important;
}

/* Model Tiers Grid & Cards */
.model-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.model-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r-md) !important;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  justify-content: center;
}

.model-tier-card:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.model-tier-card.is-selected {
  border-color: var(--accent-primary) !important;
  background: linear-gradient(135deg, var(--accent-primary-soft), rgba(139, 92, 246, 0.12)) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.model-tier-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--glass-border);
  color: var(--accent-primary);
  margin-bottom: 6px;
  transition: all 0.18s ease;
}

.model-tier-card:hover .model-tier-card__icon,
.model-tier-card.is-selected .model-tier-card__icon {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.model-tier-card__icon svg {
  width: 16px;
  height: 16px;
}

.model-tier-card__label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.model-tier-card__hint {
  font-size: 10.9px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Themed select dropdown */
.themed-select {
  position: relative;
  width: 100%;
}

.themed-select__trigger {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  text-align: left;
}

.themed-select__trigger:hover {
  border-color: var(--accent-primary);
}

.themed-select__trigger svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.themed-select.is-open .themed-select__trigger svg {
  transform: rotate(180deg);
}

.themed-select__options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--surface-elevated);
  box-shadow: var(--glass-shadow);
  display: none;
  padding: 6px;
}

.themed-select.is-open .themed-select__options {
  display: block;
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.themed-select__option {
  padding: 10px 12px;
  font-size: 15.5px;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.12s ease;
}

.themed-select__option:hover {
  background: var(--input-bg);
}

.themed-select__option.is-selected {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-weight: 500;
}

/* Custom overlay/marketing inputs in choice options */
.custom-input-box input[type="text"],
.custom-input-box textarea {
  background: var(--input-bg);
  border: 1px solid var(--outline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15.5px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
  outline: none;
  font-family: var(--font);
}

.custom-input-box input[type="text"]:focus,
.custom-input-box textarea:focus {
  border-color: var(--accent-primary);
  background: var(--surface-elevated);
}

.custom-input-box input[type="text"]::placeholder,
.custom-input-box textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Toggle uploader camera buttons and hints on desktop/mobile */
@media (min-width: 1025px) {
  .uploader-buttons {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .uploader__hint--desktop {
    display: none !important;
  }
  .uploader__hint--mobile {
    display: block !important;
  }
}

/* Profile Avatar Upload Hover Effect */
.profile-avatar-container:hover .profile-avatar-overlay {
  opacity: 1 !important;
}

/* Hide scrollbars everywhere on mobile screens */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none !important;
  }

  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
}

/* Darken text/icons in all navbars in light mode for better readability and contrast */
[data-theme="light"] .nav-link,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .settings-tab,
[data-theme="light"] .island-nav__btn,
[data-theme="light"] .logout-btn,
[data-theme="light"] .side-nav__user-meta small {
  color: #2e2e3d;
}