/* ============================================================
   2clique.com — Main Stylesheet
   ============================================================
   Sections:
    1.  Reset
    2.  Brand Tokens
    3.  Base
    4.  Public Shell      (login, register, forgot-password, etc.)
    5.  Marketing Page    (index_2.php)
    6.  App Shell         (sidebar, app-main)
    7.  App Utilities     (buttons, modals, shared form atoms)
    8.  Shared App Components
    9.  Dashboard
   10.  Collection
   11.  Add Item
   12.  Item (Edit)
   13.  Import CSV
   ============================================================ */


/* ── 1. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ── 2. Brand Tokens ──────────────────────────────────────── */
:root {
  /* ── Primitive palette ── */
  --navy-100:   #243247;
  --navy-200:   #0f1a2c;
  --navy-300:   #0d141e;

  --cream-50:   #fbf5eb;
  --cream-100:  #f3e8d2;
  --cream-300:  #ead7b7;

  --red-100:    #922733;
  --red-300:    #791f21;

  --gold-100:   #c9a35c;
  --gold-300:   #bd904e;

  --slate-100:  #8a939b;
  --slate-200:  #66707a;
  --slate-300:  #4a545e;
  --slate-400:  #3b444b;
  --slate-500:  #2e363c;

  --forest-100: #1d3e35;
  --forest-300: #1a2f26;

  /* ── Semantic aliases ── */
  --color-bg:           var(--cream-100);
  --color-panel:        var(--navy-200);
  --color-panel-alt:    var(--cream-300);
  --color-text:         var(--navy-200);
  --color-text-muted:   var(--slate-200);
  --color-border:       rgba(74,84,94,0.18);
  --color-accent:       var(--gold-100);
  --color-accent-hover: var(--gold-300);
  --color-highlight:    var(--red-100);
  --color-success:      var(--forest-100);

  /* ── Utility ── */
  --white:     #ffffff;
  --bg-light:  #f4f4f8;

  /* ── Sizing ── */
  --radius:    10px;
  --radius-sm: 6px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(15,27,45,0.08);
  --shadow-md: 0 4px 16px rgba(15,27,45,0.12);

  /* ── Layout ── */
  --sidebar-w:           240px;
  --sidebar-w-collapsed: 60px;

  /* ── Typography ── */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui:      "Figtree", system-ui, sans-serif;

  /* ── Animation ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Dynamic — overridden per-page with inline <style>:root{} ── */
  --photo-ratio: 1;
}


/* ── 3. Base ──────────────────────────────────────────────── */
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--cream-100);
  color: var(--slate-300);
  display: flex;
  min-height: 100vh;
}

/* Body state modifiers */
body.viewport-locked { height: 100vh; overflow: hidden; }
body.start-screen-page { display: block; overflow: hidden; }


/* ── 4. Public Shell ──────────────────────────────────────── */
body.public-page {
  flex-direction: column;
  background: var(--bg-light);
  color: var(--color-text);
}

/* Nav */
body.public-page nav {
  background: var(--navy-200);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-brand img { height: 22px; }
body.public-page .nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  margin-left: 24px;
  transition: color 0.2s;
}
body.public-page .nav-links a:hover { color: var(--white); }

/* Main area */
body.public-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* Auth card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-200);
  margin-bottom: 6px;
}
.card-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.card-note {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Form atoms */
.form-group { margin-bottom: 18px; }

body.public-page label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.label-row-link {
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
}
.label-row-link:hover { text-decoration: underline; }

body.public-page input[type="text"],
body.public-page input[type="email"],
body.public-page input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(74,84,94,0.25);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
body.public-page input:focus {
  border-color: var(--navy-200);
  box-shadow: 0 0 0 3px rgba(15,27,45,0.08);
}
.input-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Public primary button */
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--navy-200);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
}
.btn:hover { background: var(--navy-100); }
.btn-outline {
  background: transparent;
  color: var(--navy-200);
  border: 1px solid rgba(74,84,94,0.25);
}
.btn-outline:hover { background: var(--bg-light); }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border-left: 3px solid #ef4444; }
.alert-success { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }

/* Divider */
.divider {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 20px 0;
  position: relative;
}
.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--color-border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* Text links below card */
.text-link {
  color: var(--navy-200);
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
}
.text-link a { color: var(--red-100); text-decoration: none; font-weight: 600; }
.text-link a:hover { text-decoration: underline; }

/* Footer */
body.public-page footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Name row (register) */
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Password strength bar */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  margin-top: 6px;
  background: var(--color-border);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}


/* ── 5. Marketing Page ────────────────────────────────────── */
body.marketing-page {
  font-family: var(--font-ui);
  background: var(--cream-100);
  color: var(--navy-200);
  overflow-x: hidden;
  display: block;
}

/* Grain texture overlay */
body.marketing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* Nav */
body.marketing-page nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
body.marketing-page nav.scrolled {
  background: rgba(15,27,45,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-logo img { height: 24px; }
body.marketing-page .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
body.marketing-page .nav-links a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(243,233,210,0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
body.marketing-page .nav-links a:hover { color: var(--cream-100); }
.nav-cta {
  background: var(--red-100) !important;
  color: var(--cream-100) !important;
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  font-size: 12px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #a02535 !important; transform: translateY(-1px); }

/* Marketing buttons */
body.marketing-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-100);
  color: var(--cream-100);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
body.marketing-page .btn-primary:hover {
  background: #a02535;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,30,45,0.4);
}
body.marketing-page .btn-ghost {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(243,233,210,0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
body.marketing-page .btn-ghost:hover { color: var(--cream-100); }

/* Hero */
.hero {
  min-height: 100vh;
  background: var(--navy-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,163,91,0.3) 20%, rgba(201,163,91,0.3) 80%, transparent);
  pointer-events: none;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 64px 80px 80px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-100);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold-100); }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 1.0;
  color: var(--cream-100);
  letter-spacing: -2px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}
.hero-headline em { font-style: italic; color: var(--gold-100); font-weight: 300; }
.hero-headline .accent { color: var(--red-100); }
.hero-subhead {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(243,233,210,0.65);
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.65s forwards;
}
.hero-stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,163,91,0.2);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-100);
  letter-spacing: -1px;
}
.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,233,210,0.4);
}
.hero-right {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.collection-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(201,163,91,0.1);
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.4s forwards;
}
.mosaic-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(15,27,45,0.6);
  transition: background 0.3s;
  cursor: default;
  padding: 24px;
}
.mosaic-cell:hover { background: rgba(201,163,91,0.08); }
.mosaic-cell.featured { grid-row: span 2; background: rgba(30,61,52,0.5); }
.mosaic-icon { font-size: 32px; line-height: 1; }
.mosaic-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(243,233,210,0.4);
}
.mosaic-count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: rgba(201,163,91,0.6);
}

/* Tagline band */
.tagline-band {
  background: var(--red-100);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  overflow: hidden;
}
.tagline-band-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  color: rgba(243,233,210,0.8);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tagline-band-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(243,233,210,0.4); flex-shrink: 0; }

/* Manifesto */
.manifesto {
  background: var(--cream-100);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.manifesto-left { position: relative; }
.section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-100);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--gold-100); opacity: 0.4; max-width: 40px; }
.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy-200);
  letter-spacing: -2px;
}
.manifesto-headline em { font-style: italic; font-weight: 300; color: var(--red-100); }
.manifesto-right { display: flex; flex-direction: column; gap: 28px; }
.manifesto-body {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--slate-300);
}
.manifesto-body strong { color: var(--navy-200); font-weight: 600; }
.manifesto-pull {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy-200);
  line-height: 1.4;
  padding: 28px 0 28px 28px;
  border-left: 3px solid var(--gold-100);
  letter-spacing: -0.3px;
}

/* Collections showcase */
.collections { background: var(--navy-200); padding: 100px 80px; }
.collections-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}
.collections-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--cream-100);
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 480px;
}
.collections-headline em { font-style: italic; font-weight: 300; color: var(--gold-100); }
.collections-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: rgba(243,233,210,0.45);
  max-width: 240px;
  text-align: right;
  line-height: 1.6;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.collection-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,163,91,0.1);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.collection-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-100);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.collection-card:hover { background: rgba(201,163,91,0.06); border-color: rgba(201,163,91,0.3); transform: translateY(-4px); }
.collection-card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 36px; line-height: 1; }
.card-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--cream-100); letter-spacing: -0.5px; }
.card-desc { font-family: var(--font-ui); font-size: 13px; font-weight: 400; color: rgba(243,233,210,0.45); line-height: 1.55; }
.card-example { font-family: var(--font-display); font-size: 12px; font-style: italic; color: var(--gold-100); opacity: 0.7; margin-top: auto; }

/* Values */
.values { background: var(--cream-100); padding: 100px 80px; }
.values-header { text-align: center; margin-bottom: 72px; }
.values-headline { font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; color: var(--navy-200); letter-spacing: -1.5px; line-height: 1.05; }
.values-headline em { font-style: italic; font-weight: 300; color: var(--red-100); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.value-item { padding: 40px 28px; display: flex; flex-direction: column; gap: 16px; border: 1px solid rgba(15,27,45,0.08); transition: background 0.3s, border-color 0.3s; }
.value-item:hover { background: rgba(15,27,45,0.03); border-color: rgba(201,163,91,0.4); }
.value-number { font-family: var(--font-display); font-size: 48px; font-weight: 600; font-style: italic; color: rgba(15,27,45,0.06); line-height: 1; letter-spacing: -2px; }
.value-icon { font-size: 24px; margin-top: -20px; }
.value-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy-200); letter-spacing: -0.3px; }
.value-desc { font-family: var(--font-ui); font-size: 13px; font-weight: 400; color: var(--slate-300); line-height: 1.6; }

/* Story */
.story { background: var(--forest-100); padding: 120px 80px; position: relative; overflow: hidden; }
.story::before {
  content: '"';
  position: absolute;
  top: -40px; left: 60px;
  font-family: var(--font-display);
  font-size: 400px;
  font-weight: 600;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.story-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.story-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,163,91,0.7);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.story-label::before, .story-label::after { content: ''; width: 40px; height: 1px; background: rgba(201,163,91,0.4); }
.story-headline { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; color: var(--cream-100); line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 40px; }
.story-headline em { font-style: italic; font-weight: 300; color: var(--gold-100); }
.story-body { font-family: var(--font-ui); font-size: 18px; font-weight: 400; line-height: 1.75; color: rgba(243,233,210,0.65); margin-bottom: 24px; }
.story-body strong { color: var(--cream-100); font-weight: 600; }
.story-body-muted { font-style: italic; color: rgba(243,233,210,0.5); }

/* CTA */
.cta-section { background: var(--cream-100); padding: 120px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-left { display: flex; flex-direction: column; gap: 24px; }
.cta-headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); font-weight: 600; color: var(--navy-200); line-height: 1.0; letter-spacing: -2px; }
.cta-headline em { font-style: italic; font-weight: 300; color: var(--red-100); }
.cta-body { font-family: var(--font-ui); font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--slate-300); }
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;
  background: var(--navy-200);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cta-right::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--red-100), var(--gold-100)); }
.cta-card-label { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,233,210,0.4); margin-bottom: 8px; }
.cta-card-headline { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--cream-100); letter-spacing: -0.5px; margin-bottom: 8px; }
.cta-card-sub { font-family: var(--font-ui); font-size: 14px; font-weight: 400; color: rgba(243,233,210,0.5); line-height: 1.5; margin-bottom: 32px; }
.cta-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red-100);
  color: var(--cream-100);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  margin-top: 32px;
  transition: background 0.2s, transform 0.2s;
}
.cta-card-btn:hover { background: #a02535; transform: translateY(-2px); }
.cta-card-note { font-family: var(--font-ui); font-size: 12px; font-weight: 400; color: rgba(243,233,210,0.3); text-align: center; }
.cta-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cta-perk { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 13px; font-weight: 400; color: rgba(243,233,210,0.55); }
.cta-perk::before { content: '✓'; color: var(--gold-100); font-weight: 700; font-size: 11px; }

/* Marketing footer */
body.marketing-page footer {
  background: var(--navy-200);
  padding: 48px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201,163,91,0.1);
}
.footer-logo { text-decoration: none; display: inline-flex; align-items: center; }
.footer-logo img { height: 18px; }
.footer-tagline { font-family: var(--font-display); font-size: 14px; font-style: italic; font-weight: 400; color: rgba(243,233,210,0.3); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,233,210,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(243,233,210,0.7); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Marketing responsive */
@media (max-width: 1024px) {
  body.marketing-page nav { padding: 20px 32px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .hero-left { padding: 140px 32px 80px; }
  .hero::before { display: none; }
  .manifesto, .cta-section { grid-template-columns: 1fr; padding: 80px 32px; gap: 48px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .collections, .values, .story { padding: 80px 32px; }
  .collections-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .collections-sub { text-align: left; }
  body.marketing-page footer { padding: 40px 32px; flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 640px) {
  .hero-stat-strip { flex-wrap: wrap; gap: 24px; }
  .collection-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .tagline-band { padding: 16px 24px; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}


/* ── 6. App Shell ─────────────────────────────────────────── */

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--navy-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: width 0.2s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-logo img { height: 20px; }
.sidebar-collapse {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}
.sidebar-collapse:hover { color: rgba(255,255,255,0.8); }
.sidebar.collapsed .sidebar-logo { display: none; }

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; overflow-x: hidden; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 16px 4px;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar.collapsed .sidebar-section-label { opacity: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item i { font-size: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: var(--cream-100); }
.nav-item.active { background: rgba(201,163,91,0.15); color: var(--gold-100); }
.nav-item .nav-label { overflow: hidden; }
.sidebar.collapsed .nav-label { display: none; }

/* Collection list in sidebar */
.collection-list { padding: 0; }
.collection-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
}
.collection-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--cream-100); }
.collection-nav-item.active { color: var(--cream-100); background: rgba(255,255,255,0.08); }
.collection-thumb {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: var(--navy-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection-thumb img { width: 100%; height: 100%; object-fit: cover; }
.collection-thumb i { font-size: 13px; color: rgba(255,255,255,0.35); }
.collection-name { overflow: hidden; text-overflow: ellipsis; }
.collection-count { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.25); flex-shrink: 0; }
.sidebar.collapsed .collection-name,
.sidebar.collapsed .collection-count { display: none; }

.add-collection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--gold-100);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s;
}
.add-collection-btn:hover { opacity: 0.75; }
.add-collection-btn i { font-size: 16px; flex-shrink: 0; }
.sidebar.collapsed .add-collection-btn .nav-label { display: none; }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 8px 0; flex-shrink: 0; }

/* App main content */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.2s ease;
  display: flex;
  flex-direction: column;
}
.app-main.sidebar-collapsed { margin-left: var(--sidebar-w-collapsed); }


/* ── 7. App Utilities ─────────────────────────────────────── */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--red-100);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-300); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: transparent;
  color: var(--slate-300);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--cream-300); border-color: rgba(74,84,94,0.3); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: var(--slate-300);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--cream-300); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: #dc2626;
  background: none;
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.btn-danger:hover { background: #fef2f2; border-color: rgba(220,38,38,0.4); }

/* Button modifiers */
.btn-full { width: 100%; justify-content: center; }
.btn-sm   { font-size: 13px; padding: 8px 14px; }
.btn-lg   { font-size: 15px; padding: 13px 20px; }
.btn-cancel {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--slate-300);
  cursor: pointer;
  padding: 8px;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.btn-cancel:hover { opacity: 1; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,27,45,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--cream-100);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  position: relative;
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-sm { max-width: 420px; padding: 44px 40px 36px; }
.modal-md { max-width: 480px; padding: 36px 36px 28px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-300);
  opacity: 0.5;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: opacity 0.15s;
}
.modal-close:hover { opacity: 1; }

/* Modal inner layout helpers */
.modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-header-lg { margin-bottom: 32px; }
.modal-icon { margin-bottom: 12px; }
.modal-icon-lg { margin-bottom: 16px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-200);
  line-height: 1.2;
  margin-bottom: 7px;
}
.modal-title-lg { font-size: 28px; margin-bottom: 12px; }
.modal-subtitle { font-size: 13px; color: var(--slate-300); opacity: 0.7; }
.modal-subtitle-lg { font-size: 13.5px; line-height: 1.65; }

/* Modal input (replaces onfocus/onblur inline handlers) */
.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(74,84,94,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--navy-200);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input:focus {
  border-color: var(--gold-100);
  box-shadow: 0 0 0 3px rgba(201,163,91,0.15);
}

/* Label styles */
.label-caps {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 8px;
}
.label-caps-muted { opacity: 0.6; }

/* Name suggestions row (in collection modal) */
#name-suggestions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Path option cards — shared between dashboard and collection modals */
.path-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 14px;
  border: 1.5px solid rgba(74,84,94,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  gap: 6px;
  user-select: none;
}
.path-option:hover { border-color: rgba(201,163,91,0.5); background: rgba(201,163,91,0.04); }
.path-option.selected { border-color: var(--gold-100); background: rgba(201,163,91,0.08); }
.path-option .path-icon { font-size: 26px; color: var(--navy-200); opacity: 0.55; line-height: 1; }
.path-option.selected .path-icon { opacity: 0.9; color: var(--gold-100); }
.path-option .path-label { font-size: 12.5px; font-weight: 600; color: var(--navy-200); margin-top: 2px; }
.path-option .path-desc { font-size: 11px; color: var(--slate-300); opacity: 0.6; line-height: 1.35; }

/* 2-col path option grid inside modal */
.path-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 22px;
}

/* Suggestion chips in modal */
.suggestion-chip {
  padding: 4px 11px;
  border: 1px solid rgba(74,84,94,0.2);
  border-radius: 20px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--slate-300);
  cursor: pointer;
  transition: border-color 0.15s;
}
.suggestion-chip:hover { border-color: var(--gold-100); }
.suggestion-label { font-size: 11px; color: var(--slate-300); opacity: 0.55; }


/* ── 8. Shared App Components ─────────────────────────────── */

/* ─ Add-sidebar (add-item, item, import-csv) ─ */
.add-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--navy-200);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.add-sidebar-logo {
  padding: 20px 18px 12px;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.add-sidebar-logo img { height: 18px; }

.add-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
  flex-shrink: 0;
}
.add-back-link:hover { color: rgba(255,255,255,0.7); }
.add-back-link i { font-size: 14px; }

.add-col-card {
  margin: 0 14px 20px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.add-col-thumb {
  width: 42px; height: 42px;
  border-radius: 5px;
  background: var(--navy-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 10px;
  overflow: hidden;
}
.add-col-thumb img { width: 100%; height: 100%; object-fit: cover; }
.add-col-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--cream-100); line-height: 1.2; margin-bottom: 3px; }
.add-col-privacy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* Progress steps */
.add-progress { margin: 0 14px 20px; flex-shrink: 0; }
.progress-meta { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 12px; padding: 0 4px; }
.progress-step { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 13px; color: rgba(255,255,255,0.4); }
.progress-step.done { color: rgba(255,255,255,0.65); }
.progress-step.active { color: var(--cream-100); }
.step-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.progress-step.done  .step-icon { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.progress-step.active .step-icon { background: rgba(201,163,91,0.15); border-color: var(--gold-100); color: var(--gold-100); font-weight: 700; }

/* Help box */
.add-help-box { margin: 0 14px; padding: 12px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); flex-shrink: 0; }
.add-help-box i { font-size: 16px; color: var(--gold-100); opacity: 0.75; margin-bottom: 6px; display: block; }
.add-help-box p { font-size: 11.5px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: 6px; }
.add-help-box a { font-size: 11.5px; color: var(--gold-100); opacity: 0.7; text-decoration: none; }
.add-help-box a:hover { opacity: 1; }

.add-sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.sidebar-settings-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  background: none; border: none; cursor: pointer;
  width: 100%; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.sidebar-settings-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); }
.sidebar-settings-btn i { font-size: 16px; }

/* ─ Type badge ─ */
.type-badge {
  padding: 3px 9px;
  background: rgba(201,163,91,0.12);
  border: 1px solid rgba(201,163,91,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-100);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─ Footer bar (add-item, item, import-csv) ─ */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  border-top: 1px solid var(--color-border);
  background: var(--cream-100);
  flex-shrink: 0;
  gap: 12px;
}
.footer-right { display: flex; align-items: center; gap: 8px; }
.footer-count { font-size: 13px; color: var(--slate-300); opacity: 0.6; }

/* ─ Field form rows (add-item, item) ─ */
.add-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream-100);
  min-width: 0;
}

.add-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 36px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--cream-100);
}
.add-topbar h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--navy-200);
  line-height: 1.15;
  margin-bottom: 5px;
}
.add-topbar p { font-size: 13px; color: var(--slate-300); opacity: 0.7; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 3px; }

.add-content { flex: 1; display: flex; overflow: hidden; min-height: 0; }

/* Fields column */
.add-fields-wrap { flex: 1; overflow-y: auto; min-width: 0; }
.add-fields-col { padding: 0 36px 40px; }

.fields-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  background: var(--cream-100);
  z-index: 10;
}
.fields-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-300); opacity: 0.5; }
.required-note { font-size: 11.5px; color: var(--slate-300); opacity: 0.5; padding: 6px 0 2px; }
.customize-btn {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--slate-300);
  background: none; border: none; cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  padding: 4px 6px;
}
.customize-btn:hover { opacity: 0.85; }
.customize-btn i { font-size: 15px; }

/* Individual field rows */
.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(74,84,94,0.07);
}
.drag-handle { color: rgba(74,84,94,0.2); font-size: 18px; flex-shrink: 0; cursor: grab; line-height: 1; padding: 2px 0; }
.drag-handle:active { cursor: grabbing; }
.field-label { width: 155px; flex-shrink: 0; font-size: 13px; color: var(--slate-300); font-weight: 500; line-height: 1.3; }
.req { color: var(--red-100); margin-left: 1px; }
.field-input-wrap { flex: 1; min-width: 0; }

.field-input-wrap input[type="text"],
.field-input-wrap input[type="number"],
.field-input-wrap input[type="year"],
.field-input-wrap select,
.field-input-wrap textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(74,84,94,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--navy-200);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field-input-wrap select {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%234A545E' d='m213.66 101.66-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.field-input-wrap textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.field-input-wrap input:focus,
.field-input-wrap select:focus,
.field-input-wrap textarea:focus {
  border-color: var(--gold-100);
  box-shadow: 0 0 0 3px rgba(201,163,91,0.12);
}

/* Currency input */
.currency-wrap { display: flex; align-items: center; gap: 8px; }
.currency-wrap input { flex: 1; }
.currency-tag { font-size: 12px; font-weight: 600; color: var(--slate-300); opacity: 0.55; white-space: nowrap; padding: 8px 10px; border: 1px solid rgba(74,84,94,0.2); border-radius: var(--radius-sm); background: var(--cream-300); }

/* Field option menus */
.field-opts-wrap { position: relative; flex-shrink: 0; }
.field-opts-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--slate-300);
  opacity: 0.3;
  transition: opacity 0.12s, background 0.12s;
}
.field-row:hover .field-opts-btn { opacity: 0.65; }
.field-opts-btn:hover { background: var(--cream-300); opacity: 1 !important; }

.field-opts-menu {
  position: absolute;
  top: calc(100% + 4px); right: 0;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 150px;
  z-index: 30;
  display: none;
  overflow: hidden;
}
.field-opts-menu.open { display: block; }
.field-opts-menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 12px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--slate-300); background: none; border: none;
  cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.field-opts-menu button:hover { background: var(--cream-100); color: var(--navy-200); }
.field-opts-menu .danger { color: #dc2626; }
.field-opts-menu .danger:hover { background: #fef2f2; }

/* Add custom field row */
.add-field-row { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; }
.add-field-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px dashed rgba(74,84,94,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--slate-300);
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}
.add-field-btn:hover { opacity: 1; border-color: var(--gold-100); color: var(--navy-200); }
.add-field-btn i { font-size: 15px; }

/* ─ Photo column (add-item, item) ─ */
.add-photo-col {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream-100);
}

.photo-drop-area {
  aspect-ratio: var(--photo-ratio, 1);
  background: var(--white);
  border: 2px dashed rgba(74,84,94,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  padding: 20px;
}
.photo-drop-area:hover, .photo-drop-area.dragover { border-color: var(--gold-100); background: rgba(201,163,91,0.04); }
.photo-drop-area i { font-size: 36px; color: rgba(74,84,94,0.25); }
.photo-drop-area p { font-size: 12.5px; color: var(--slate-300); opacity: 0.55; line-height: 1.5; }
.photo-drop-area span { font-size: 11.5px; color: var(--gold-100); font-weight: 600; }

.photo-preview-area {
  aspect-ratio: var(--photo-ratio, 1);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-300);
  position: relative;
}
.photo-preview-area img { width: 100%; height: 100%; object-fit: contain; display: block; }

.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--slate-300);
  background: var(--white);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
}
.photo-action-btn:hover { background: var(--cream-300); border-color: rgba(74,84,94,0.3); }
.photo-action-btn.danger { color: var(--red-100); }
.photo-action-btn.danger:hover { background: #fef2f2; border-color: rgba(139,30,45,0.2); }
.photo-action-btn i { font-size: 13px; }

.photo-tips-card { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px; }
.photo-tips-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-300); opacity: 0.45; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.photo-tips-label i { font-size: 12px; opacity: 0.7; }
.photo-tips-card p { font-size: 12px; color: var(--slate-300); line-height: 1.65; opacity: 0.7; }

.photo-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-300); opacity: 0.38; margin-bottom: 8px; margin-top: 4px; }


/* ── 9. Dashboard ─────────────────────────────────────────── */

/* Portfolio view (has collections) */
.portfolio-header {
  background: var(--cream-100);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 40px 28px;
  flex-shrink: 0;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--navy-200);
  line-height: 1.1;
  margin-bottom: 6px;
}
.portfolio-subtitle { font-size: 13.5px; color: var(--slate-300); opacity: 0.65; }
.portfolio-stats { display: flex; gap: 32px; margin-top: 20px; }
.portfolio-content { flex: 1; padding: 28px 40px 40px; overflow-y: auto; }
.portfolio-section-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-300); opacity: 0.45; margin-bottom: 14px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
}
.portfolio-card:hover { box-shadow: 0 6px 20px rgba(15,27,45,0.1); transform: translateY(-2px); }
.portfolio-card-photo {
  height: 140px;
  background: var(--cream-300);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.portfolio-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-photo-placeholder { font-size: 40px; color: rgba(74,84,94,0.2); }
.portfolio-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.portfolio-card-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy-200); line-height: 1.2; }
.portfolio-card-meta { display: flex; gap: 16px; margin-top: auto; }
.portfolio-card-stat { display: flex; flex-direction: column; }
.portfolio-card-stat-val { font-size: 15px; font-weight: 700; color: var(--navy-200); line-height: 1; }
.portfolio-card-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-300); opacity: 0.5; margin-top: 3px; }

.portfolio-add-card {
  background: transparent;
  border: 1.5px dashed rgba(74,84,94,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
}
.portfolio-add-card:hover { border-color: var(--gold-100); background: rgba(201,163,91,0.04); }
.portfolio-add-card i { font-size: 28px; color: var(--slate-300); opacity: 0.3; }
.portfolio-add-card span { font-size: 13.5px; font-weight: 600; color: var(--slate-300); opacity: 0.55; }

/* Start-your-collection view (no collections) */
.start-screen { display: flex; height: 100vh; overflow: hidden; }

.panel-left {
  width: 42%;
  flex-shrink: 0;
  background: var(--cream-100) url('/assets/img/start-your-collection-bkgnd-photo.webp') no-repeat bottom center;
  background-size: 100% auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-logo {
  position: relative; z-index: 2;
  padding: 32px 40px 0;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.panel-logo img { height: 22px; }

.panel-text { position: relative; z-index: 2; padding: 32px 40px 0; flex-shrink: 0; }
.panel-text h1 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; color: var(--navy-200); line-height: 1.12; margin-bottom: 18px; }
.panel-text h1 em { font-style: italic; color: var(--gold-100); }
.panel-separator { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel-separator .sep-line { flex: 1; height: 1px; background: var(--gold-100); opacity: 0.55; }
.panel-separator img { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.85; }
.panel-text p { font-size: 14.5px; color: var(--slate-300); line-height: 1.7; margin-bottom: 14px; max-width: 340px; }
.panel-text .tagline-red { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--red-100); margin-bottom: 0; }

.panel-nav { position: relative; z-index: 2; margin-top: auto; padding: 0 28px 24px; display: flex; flex-direction: column; gap: 2px; }
.panel-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--slate-300); text-decoration: none; transition: background 0.15s, color 0.15s; }
.panel-nav a:hover { background: var(--cream-300); color: var(--navy-200); }
.panel-nav a i { font-size: 16px; opacity: 0.75; }

.panel-right {
  flex: 1;
  background: var(--cream-100);
  border-left: 1px solid rgba(74,84,94,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  overflow-y: auto;
}
.start-eyebrow { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 32px; }
.start-eyebrow img { width: 18px; height: 18px; opacity: 0.9; }
.eyebrow-rule { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; }
.eyebrow-rule span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-100); white-space: nowrap; }
.eyebrow-rule::before, .eyebrow-rule::after { content: ''; flex: 1; height: 1px; background: var(--gold-100); opacity: 0.45; }

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 500px; margin-bottom: 28px; }
.path-card {
  background: var(--white);
  border: 1.5px solid rgba(74,84,94,0.14);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  position: relative;
}
.path-card:hover { border-color: var(--gold-100); box-shadow: 0 6px 24px rgba(15,27,45,0.09); transform: translateY(-2px); }
.path-card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.path-card-icon img { width: 52px; height: 52px; }
.path-card h3 { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--navy-200); line-height: 1.3; }
.path-card p { font-size: 12.5px; color: var(--slate-300); line-height: 1.6; flex: 1; }
.path-card-arrow { align-self: flex-end; color: var(--gold-100); font-size: 15px; margin-top: 4px; }

.start-footer { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--slate-300); opacity: 0.6; }
.start-footer i { font-size: 14px; }


/* ── 10. Collection ───────────────────────────────────────── */
.col-header { background: var(--cream-100); border-bottom: 1px solid var(--color-border); padding: 32px 40px 28px; flex-shrink: 0; }
.col-header-inner { display: flex; align-items: flex-start; gap: 24px; }

.col-cover {
  width: 92px; height: 92px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-300);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(74,84,94,0.3);
  font-size: 32px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.col-cover:hover { opacity: 0.85; }
.col-cover img { width: 100%; height: 100%; object-fit: cover; }

.col-meta { flex: 1; min-width: 0; }
.col-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 5px; }
.col-name { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; color: var(--navy-200); line-height: 1.1; }
.col-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 3px; }
.col-description { font-size: 13.5px; color: var(--slate-300); opacity: 0.75; margin-bottom: 20px; max-width: 520px; }
.col-description.empty-desc { font-style: italic; opacity: 0.4; cursor: pointer; }
.col-description.empty-desc:hover { opacity: 0.6; }

.col-stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-200); line-height: 1; }
.stat-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-300); opacity: 0.55; margin-top: 5px; }

/* Overflow menu */
.overflow-menu-wrap { position: relative; }
.overflow-menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 50;
  display: none;
  overflow: hidden;
}
.overflow-menu.open { display: block; }
.overflow-menu a, .overflow-menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 10px 14px;
  font-family: var(--font-ui); font-size: 13.5px;
  color: var(--slate-300); text-decoration: none;
  background: none; border: none;
  cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.overflow-menu a:hover, .overflow-menu button:hover { background: var(--cream-100); color: var(--navy-200); }
.overflow-menu .danger { color: #dc2626; }
.overflow-menu .danger:hover { background: #fef2f2; color: #dc2626; }
.overflow-menu-divider { height: 1px; background: var(--color-border); margin: 4px 0; }

/* Toolbar */
.col-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px;
  background: var(--cream-100);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.toolbar-search { position: relative; flex: 1; max-width: 360px; }
.toolbar-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--slate-300); opacity: 0.4; pointer-events: none; }
.toolbar-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--navy-200);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.toolbar-search input:focus { border-color: var(--gold-100); box-shadow: 0 0 0 3px rgba(201,163,91,0.12); }
.toolbar-search input::placeholder { color: var(--slate-300); opacity: 0.4; }
.toolbar-sep { width: 1px; height: 20px; background: var(--color-border); margin: 0 2px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.sort-select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--slate-300);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%234A545E' d='m213.66 101.66-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.view-toggle { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.view-btn { padding: 7px 10px; background: none; border: none; cursor: pointer; font-size: 16px; color: var(--slate-300); opacity: 0.45; transition: background 0.12s, opacity 0.12s; line-height: 1; }
.view-btn.active { background: var(--cream-300); opacity: 1; color: var(--navy-200); }
.view-btn:hover:not(.active) { opacity: 0.75; }

/* Content area */
.col-content { flex: 1; padding: 28px 40px 40px; overflow-y: auto; min-height: 0; }

/* Item grid */
.item-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.item-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s, transform 0.12s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.item-card:hover { box-shadow: 0 6px 20px rgba(15,27,45,0.1); transform: translateY(-2px); }

.item-card-photo {
  aspect-ratio: var(--photo-ratio, 1);
  background: var(--cream-300);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.item-card-photo img { width: 100%; height: 100%; object-fit: contain; }
.item-card-photo-placeholder { font-size: 28px; color: rgba(74,84,94,0.2); }

.item-card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-card-name { font-size: 12.5px; font-weight: 600; color: var(--navy-200); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-card-condition { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--slate-300); opacity: 0.75; }
.condition-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.item-card-value { font-size: 12.5px; font-weight: 600; color: var(--navy-200); margin-top: 2px; }

/* Back photo crossfade */
.item-card-photo .photo-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s ease; }
.item-card:hover .photo-back { opacity: 1; }

/* Quantity badge */
.qty-badge { position: absolute; bottom: 6px; right: 6px; background: rgba(15,27,45,0.72); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 2px 6px; border-radius: 4px; line-height: 1.5; pointer-events: none; }
.item-grid.list-view .qty-badge { display: none; }

/* Ghost cards */
.ghost-card { border: 1.5px dashed rgba(74,84,94,0.18); border-radius: var(--radius); overflow: hidden; pointer-events: none; }
.ghost-photo { aspect-ratio: 1; background: transparent; }
.ghost-body { height: 70px; }

/* List view */
.item-grid.list-view { grid-template-columns: 1fr; gap: 6px; }
.item-grid.list-view .item-card { flex-direction: row; align-items: center; border-radius: var(--radius-sm); }
.item-grid.list-view .item-card-photo { width: 52px; height: 52px; aspect-ratio: unset; flex-shrink: 0; border-radius: 0; }
.item-grid.list-view .item-card-photo-placeholder { font-size: 18px; }
.item-grid.list-view .item-card-body { flex-direction: row; align-items: center; gap: 0; padding: 0 16px; }
.item-grid.list-view .item-card-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 20px; }
.item-grid.list-view .item-card-condition { flex: 0 0 140px; }
.item-grid.list-view .item-card-value { margin-top: 0; flex: 0 0 80px; text-align: right; }
.item-grid.list-view .ghost-card { display: none; }

/* Empty state */
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 12px; text-align: center; }
.empty-state i { font-size: 44px; color: rgba(74,84,94,0.2); }
.empty-state p { font-size: 14px; color: var(--slate-300); opacity: 0.55; max-width: 280px; line-height: 1.6; }

/* Bottom banner */
.bottom-banner { display: flex; align-items: center; gap: 16px; padding: 13px 40px; background: var(--white); border-top: 1px solid var(--color-border); flex-shrink: 0; }
.bottom-banner i.banner-icon { font-size: 20px; color: var(--gold-100); flex-shrink: 0; opacity: 0.8; }
.banner-text { flex: 1; }
.banner-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-200); margin-bottom: 1px; }
.banner-text span { font-size: 12.5px; color: var(--slate-300); opacity: 0.7; }
.banner-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--cream-300); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--navy-200); text-decoration: none; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; }
.banner-cta:hover { background: var(--cream-300); }
.banner-dismiss { background: none; border: none; cursor: pointer; color: var(--slate-300); opacity: 0.35; font-size: 18px; padding: 4px; line-height: 1; flex-shrink: 0; transition: opacity 0.15s; }
.banner-dismiss:hover { opacity: 0.7; }


/* ── 11. Add Item ─────────────────────────────────────────── */

/* Photo import modal */
.photo-modal-inner {
  background: var(--cream-100);
  border-radius: var(--radius);
  width: 100%;
  max-width: 820px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-backdrop.open .photo-modal-inner { transform: translateY(0); }
.photo-modal-body { display: flex; min-height: 400px; }

.photo-modal-left { flex: 1; padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; border-right: 1px solid var(--color-border); }
.photo-modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-200); margin-bottom: 4px; }
.photo-modal-sub { font-size: 13px; color: var(--slate-300); opacity: 0.65; }

.modal-drop-zone {
  flex: 1;
  border: 2px dashed rgba(74,84,94,0.2);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 32px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; text-align: center;
}
.modal-drop-zone:hover, .modal-drop-zone.dragover { border-color: var(--gold-100); background: rgba(201,163,91,0.04); }
.modal-drop-zone i { font-size: 44px; color: rgba(74,84,94,0.2); }
.modal-drop-zone h3 { font-family: var(--font-display); font-size: 16px; color: var(--navy-200); }
.modal-drop-zone p { font-size: 13px; color: var(--slate-300); opacity: 0.55; }

.modal-choose-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; background: var(--navy-200); color: var(--cream-100); border: none; border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.modal-choose-btn:hover { background: var(--navy-100); }

.modal-import-from { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--slate-300); opacity: 0.5; }
.modal-import-from::before, .modal-import-from::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.modal-source-row { display: flex; gap: 8px; }
.modal-source-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: 12.5px; color: var(--slate-300); background: var(--white); cursor: pointer; transition: border-color 0.15s; }
.modal-source-btn:hover { border-color: rgba(74,84,94,0.35); }
.modal-source-btn.disabled { opacity: 0.4; cursor: default; }
.modal-source-btn i { font-size: 14px; }
.modal-filetypes { font-size: 11px; color: var(--slate-300); opacity: 0.4; }

.photo-modal-right { width: 280px; flex-shrink: 0; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; background: var(--white); }
.modal-tips-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-300); opacity: 0.45; margin-bottom: 10px; }
.modal-tip { display: flex; gap: 10px; margin-bottom: 12px; }
.modal-tip i { font-size: 18px; color: var(--gold-100); opacity: 0.75; flex-shrink: 0; margin-top: 1px; }
.modal-tip-text strong { display: block; font-size: 12.5px; color: var(--navy-200); margin-bottom: 2px; }
.modal-tip-text span { font-size: 12px; color: var(--slate-300); opacity: 0.65; line-height: 1.5; }

.modal-preview-section { flex: 1; }
.modal-preview-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-300); opacity: 0.45; margin-bottom: 10px; }
.modal-preview-img { width: 100%; aspect-ratio: var(--photo-ratio, 1); border-radius: var(--radius-sm); object-fit: contain; display: none; border: 1px solid var(--color-border); background: var(--cream-300); }
.modal-preview-placeholder { width: 100%; aspect-ratio: var(--photo-ratio, 1); border-radius: var(--radius-sm); background: var(--cream-300); display: flex; align-items: center; justify-content: center; border: 1px dashed var(--color-border); }
.modal-preview-placeholder i { font-size: 32px; color: rgba(74,84,94,0.2); }
.modal-replace-link { display: block; margin-top: 8px; font-size: 12px; color: var(--slate-300); opacity: 0.5; text-decoration: underline; cursor: pointer; text-underline-offset: 2px; }
.modal-replace-link:hover { opacity: 0.8; }

.photo-modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--color-border); }


/* ── 12. Item (Edit) ──────────────────────────────────────── */
.item-meta-box { margin: 0 14px 20px; flex-shrink: 0; }
.item-meta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 10px; padding: 0 4px; }
.item-meta-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px; }
.item-meta-key { font-size: 12px; color: rgba(255,255,255,0.4); }
.item-meta-val { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }

/* Back photo (edit view) */
.photo-back-drop {
  aspect-ratio: var(--photo-ratio, 1);
  background: rgba(255,255,255,0.5);
  border: 1.5px dashed rgba(74,84,94,0.14);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center; padding: 14px;
}
.photo-back-drop:hover, .photo-back-drop.dragover { border-color: var(--gold-100); background: rgba(201,163,91,0.04); }
.photo-back-drop i { font-size: 22px; color: rgba(74,84,94,0.16); }
.photo-back-drop p { font-size: 11px; color: var(--slate-300); opacity: 0.38; line-height: 1.4; }
.photo-back-preview { aspect-ratio: var(--photo-ratio, 1); border-radius: var(--radius); overflow: hidden; background: var(--cream-300); }
.photo-back-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }


/* ── 13. Import CSV ───────────────────────────────────────── */
.import-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--cream-100); min-width: 0; }
#import-form { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.import-topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px 18px; border-bottom: 1px solid var(--color-border); flex-shrink: 0; background: var(--cream-100); gap: 20px; }
.import-topbar h1 { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--navy-200); line-height: 1.15; margin-bottom: 4px; }
.import-topbar p { font-size: 13px; color: var(--slate-300); opacity: 0.7; }

.import-content { flex: 1; overflow-y: auto; padding: 36px 48px 48px; }

.import-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 48px; border-top: 1px solid var(--color-border); background: var(--cream-100); flex-shrink: 0; gap: 12px; }

/* CSV drop zone */
.csv-drop-zone {
  border: 2px dashed rgba(74,84,94,0.2);
  border-radius: var(--radius);
  background: var(--white);
  padding: 56px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  max-width: 620px; margin: 0 auto;
}
.csv-drop-zone:hover, .csv-drop-zone.dragover { border-color: var(--gold-100); background: rgba(201,163,91,0.04); }
.csv-drop-zone i { font-size: 52px; color: rgba(74,84,94,0.18); }
.csv-drop-zone h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy-200); }
.csv-drop-zone p { font-size: 13.5px; color: var(--slate-300); opacity: 0.6; line-height: 1.6; max-width: 340px; }
.csv-filetypes { font-size: 11.5px; color: var(--slate-300); opacity: 0.38; margin-top: 2px; }

.upload-tips { max-width: 620px; margin: 20px auto 0; display: flex; gap: 10px; flex-wrap: wrap; }
.upload-tip { flex: 1; min-width: 160px; background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 14px 12px; display: flex; gap: 10px; align-items: flex-start; }
.upload-tip i { font-size: 18px; color: var(--gold-100); opacity: 0.7; flex-shrink: 0; margin-top: 1px; }
.upload-tip strong { display: block; font-size: 12px; color: var(--navy-200); margin-bottom: 3px; }
.upload-tip p { font-size: 11.5px; color: var(--slate-300); opacity: 0.65; line-height: 1.55; }

/* File info bar */
#file-info-bar { display: none; align-items: center; gap: 14px; padding: 13px 18px; background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); max-width: 760px; margin: 0 auto 28px; }
#file-info-bar.visible { display: flex; }
.file-info-icon { font-size: 24px; color: var(--gold-100); flex-shrink: 0; }
.file-info-name { font-size: 14px; font-weight: 600; color: var(--navy-200); }
.file-info-meta { font-size: 12px; color: var(--slate-300); opacity: 0.55; margin-top: 2px; }
.file-change-btn { margin-left: auto; font-family: var(--font-ui); font-size: 12.5px; color: var(--slate-300); background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; transition: border-color 0.12s; display: flex; align-items: center; gap: 5px; flex-shrink: 0; white-space: nowrap; }
.file-change-btn:hover { border-color: rgba(74,84,94,0.4); }
.file-change-btn i { font-size: 13px; }

/* Column mapping */
#map-section { display: none; }
#map-section.visible { display: block; }
.map-header { margin-bottom: 16px; max-width: 760px; }
.map-header h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy-200); margin-bottom: 4px; }
.map-header p { font-size: 13px; color: var(--slate-300); opacity: 0.6; }

.large-import-note { display: none; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; background: rgba(201,163,91,0.08); border: 1px solid rgba(201,163,91,0.25); border-radius: var(--radius-sm); max-width: 760px; }
.large-import-note i { font-size: 18px; color: var(--gold-100); flex-shrink: 0; }
.large-import-note span { font-size: 13px; color: var(--slate-300); line-height: 1.5; }

.map-table-head { display: grid; grid-template-columns: minmax(130px, 190px) 1fr 1.4fr; padding: 0 0 8px 0; border-bottom: 2px solid var(--color-border); margin-bottom: 0; max-width: 860px; }
.map-table-head span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-300); opacity: 0.4; padding: 0 8px; }
.map-table-head span:first-child { padding-left: 0; }

.map-row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr 1.4fr; align-items: center; gap: 0; padding: 8px 0; border-bottom: 1px solid rgba(74,84,94,0.07); max-width: 860px; }
.map-col-source { padding-right: 10px; min-width: 0; }
.map-col-preview { padding: 0 12px; min-width: 0; display: flex; align-items: center; }
.map-col-target { padding-left: 8px; }

.csv-header-chip { display: inline-block; padding: 5px 10px; background: var(--cream-300); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: monospace; font-size: 12.5px; color: var(--navy-200); font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-vals { font-size: 11.5px; color: var(--slate-300); opacity: 0.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }

.map-select {
  width: 100%; padding: 8px 28px 8px 10px;
  border: 1px solid rgba(74,84,94,0.2); border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 13px; color: var(--navy-200);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%234A545E' d='m213.66 101.66-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; outline: none; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.map-select:focus { border-color: var(--gold-100); box-shadow: 0 0 0 3px rgba(201,163,91,0.12); }
.map-select.skipped { color: rgba(74,84,94,0.4); border-color: rgba(74,84,94,0.12); }
.map-select.auto-matched { border-color: rgba(201,163,91,0.5); background-color: rgba(201,163,91,0.04); }

/* Loading overlay */
#loading-overlay { position: fixed; inset: 0; background: var(--navy-200); z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
#loading-overlay.active { display: flex; }
.loading-wordmark { display: flex; align-items: center; }
.loading-wordmark img { height: 26px; }
.loading-bar-wrap { width: 300px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loading-bar { height: 100%; background: var(--gold-100); border-radius: 2px; width: 0; transition: none; }
.loading-phrase { font-family: var(--font-display); font-style: italic; font-size: 16px; color: rgba(255,255,255,0.55); }


/* ── 14. Home Page ────────────────────────────────────────── */
body.home-page {
  font-family: var(--font-ui);
  background: var(--cream-100);
  color: var(--navy-200);
  overflow-x: hidden;
  display: block;
}

/* ─ Nav ─ */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-100);
  border-bottom: 1px solid rgba(74,84,94,0.1);
  padding: 0 60px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.home-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.home-nav-logo img { height: 22px; }
.home-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.home-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-200);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.home-nav-links a:hover { opacity: 1; }
.home-nav-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.home-nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-200);
  text-decoration: none;
  padding: 8px 16px;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.home-nav-signin:hover { opacity: 1; }
.home-nav-join {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-200);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.home-nav-join:hover { background: var(--navy-100); }

/* ─ Hero ─ */
.home-hero {
  position: relative;
  background: var(--cream-100);
  overflow: hidden;
}
.home-hero-img {
  display: block;
  margin-left: auto;
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: 65vh;
}
.home-hero-content {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  padding: 100px 80px 80px 80px;
  max-width: 580px;
}
.home-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-100);
  margin-bottom: 24px;
}
.home-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.0;
  color: var(--navy-200);
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.home-rule {
  width: 40px;
  height: 3px;
  background: var(--red-100);
  margin-bottom: 24px;
  border: none;
}
.home-hero-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 380px;
  margin-bottom: 40px;
}
.home-hero-actions { display: flex; align-items: center; gap: 24px; }
.home-btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--navy-200);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.home-btn-primary:hover { background: var(--navy-100); }
.home-btn-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--red-100);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.home-btn-ghost:hover { gap: 10px; }

/* ─ Icon strip ─ */
.home-icons {
  background: var(--cream-300);
  padding: 60px 80px;
  border-top: 1px solid rgba(74,84,94,0.07);
  border-bottom: 1px solid rgba(74,84,94,0.07);
  text-align: center;
}
.home-icons-eyebrow { margin-bottom: 36px; }
.home-icons-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
.home-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.home-icon-item img { width: 56px; height: 56px; object-fit: contain; }
.home-icon-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-300);
  opacity: 0.65;
  text-align: center;
  line-height: 1.3;
}

/* ─ Origin story ─ */
.home-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 80px;
  background: var(--cream-50);
  align-items: center;
}
.home-story-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.home-story-eyebrow { margin-bottom: 20px; }
.home-story-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  color: var(--navy-200);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.home-story-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--slate-300);
  margin-bottom: 14px;
}
.home-story-body strong { color: var(--navy-200); font-weight: 600; }
.home-story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-100);
  text-decoration: none;
  margin-top: 10px;
  transition: gap 0.15s;
}
.home-story-link:hover { gap: 10px; }

/* ─ Features ─ */
.home-features {
  background: var(--cream-100);
  padding: 80px 80px 100px;
  border-top: 1px solid rgba(74,84,94,0.08);
}
.home-features-eyebrow { text-align: center; margin-bottom: 56px; }
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}
.home-feature {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}
.home-feature-badge {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}
.home-feature-badge img { width: 100%; height: 100%; object-fit: contain; }
.home-feature-text { flex: 1; }
.home-feature-num {
  display: flex;
  width: 24px; height: 24px;
  background: var(--red-100);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.home-feature h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-200);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.home-feature p {
  font-size: 14px;
  color: var(--slate-300);
  line-height: 1.65;
}

/* ─ CTA band ─ */
.home-cta {
  background: var(--navy-200);
  padding: 72px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.home-cta-left { max-width: 560px; }
.home-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.home-cta-headline em { font-style: normal; color: var(--red-100); }
.home-cta-body { font-size: 15px; color: rgba(243,232,210,0.55); line-height: 1.65; }
.home-cta-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.home-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--red-100);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  white-space: nowrap;
}
.home-cta-btn:hover { background: var(--red-300); }
.home-cta-learn {
  font-size: 14px;
  font-weight: 500;
  color: rgba(243,232,210,0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.home-cta-learn:hover { color: rgba(243,232,210,0.9); }

/* ─ Footer ─ */
.home-footer { background: var(--navy-200); border-top: 1px solid rgba(255,255,255,0.06); }
.home-footer-main {
  padding: 44px 80px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}
.home-footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 10px;
}
.home-footer-logo img { height: 26px; }
.home-footer-tagline { font-size: 13px; color: rgba(243,232,210,0.35); line-height: 1.5; margin-top: 8px; }
.home-footer-feedback-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 9px 18px;
  background: var(--cream-100);
  color: var(--navy-200);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.home-footer-feedback-btn:hover { background: var(--white); }
.home-footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(243,232,210,0.28);
  margin-bottom: 16px;
}
.home-footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(243,232,210,0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.home-footer-col a:hover { color: rgba(243,232,210,0.9); }
.home-footer-social { display: flex; gap: 16px; align-items: flex-start; padding-top: 2px; }
.home-footer-social a {
  color: rgba(243,232,210,0.35);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.home-footer-social a:hover { color: rgba(243,232,210,0.8); }
.home-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 14px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-footer-copy { font-size: 12px; color: rgba(243,232,210,0.22); }
.home-footer-legal { display: flex; gap: 24px; }
.home-footer-legal a {
  font-size: 12px;
  color: rgba(243,232,210,0.22);
  text-decoration: none;
  transition: color 0.2s;
}
.home-footer-legal a:hover { color: rgba(243,232,210,0.55); }

/* ─ Home page responsive ─ */
@media (max-width: 1024px) {
  .home-nav { padding: 0 32px; }
  .home-hero-content { padding: 72px 32px; }
  .home-icons { padding: 40px 32px; }
  .home-story { grid-template-columns: 1fr; padding: 72px 32px; gap: 40px; }
  .home-features { padding: 64px 32px 80px; }
  .home-cta { flex-direction: column; text-align: center; padding: 64px 32px; }
  .home-cta-left { max-width: 100%; }
  .home-footer-main { grid-template-columns: 1fr 1fr; padding: 48px 32px 40px; gap: 36px; }
  .home-footer-bottom { padding: 20px 32px; flex-direction: column; gap: 10px; text-align: center; }
  .home-footer-legal { justify-content: center; }
}
@media (max-width: 1024px) {
  .home-hero { min-height: 520px; }
  .home-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin-left: 0;
    object-fit: cover;
    object-position: right center;
  }
  .home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(243,232,210,0.94) 0%,
      rgba(243,232,210,0.82) 50%,
      rgba(243,232,210,0.65) 100%
    );
  }
  .home-hero-content { padding: 60px 40px; max-width: 100%; }
}
@media (max-width: 640px) {
  .home-nav { padding: 0 20px; }
  .home-nav-links { display: none; }
  .home-hero { min-height: 480px; }
  .home-hero-content { padding: 60px 20px; }
  .home-hero-headline { letter-spacing: -1px; }
  .home-icons-grid { flex-wrap: wrap; gap: 20px 0; }
  .home-icon-item { flex: 0 0 33.333%; }
  .home-features-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-cta { padding: 56px 20px; }
  .home-cta-right { flex-direction: column; gap: 14px; width: 100%; }
  .home-cta-btn { justify-content: center; }
  .home-footer-main { grid-template-columns: 1fr; padding: 40px 20px 32px; gap: 32px; }
  .home-footer-bottom { padding: 18px 20px; }
}

/* ── 15. Feedback Form ─────────────────────────────────────── */
body.feedback-page .feedback-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
body.feedback-page .feedback-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-100);
  margin-bottom: 12px;
}
body.feedback-page .feedback-intro h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy-200);
  letter-spacing: -1px;
  margin: 0 0 10px;
}
body.feedback-page .feedback-intro p {
  font-size: 15px;
  color: var(--slate-400);
  line-height: 1.65;
  margin: 0 0 36px;
}
body.feedback-page .req-star { color: var(--red-100); margin-left: 2px; }

body.feedback-page .feedback-section {
  background: var(--white);
  border: 1.5px solid var(--cream-300);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 18px;
}
body.feedback-page .feedback-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-200);
  letter-spacing: -0.3px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--cream-300);
}
body.feedback-page .feedback-question { margin-bottom: 26px; }
body.feedback-page .feedback-question:last-child { margin-bottom: 0; }

body.feedback-page .fq-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-200);
  margin-bottom: 10px;
  line-height: 1.4;
}
body.feedback-page .fq-sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--slate-300);
  margin-top: 3px;
}
body.feedback-page .fq-text,
body.feedback-page .fq-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--cream-300);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--navy-200);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
body.feedback-page .fq-text:focus,
body.feedback-page .fq-textarea:focus { border-color: var(--navy-200); }
body.feedback-page .fq-textarea { resize: vertical; min-height: 88px; }

body.feedback-page .fq-radios { display: flex; flex-wrap: wrap; gap: 8px; }
body.feedback-page .fq-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--cream-300);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--slate-400);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
body.feedback-page .fq-radio input[type="radio"] { display: none; }
body.feedback-page .fq-radio:has(input:checked) {
  border-color: var(--navy-200);
  background: var(--navy-200);
  color: var(--white);
}
body.feedback-page .fq-radio:hover:not(:has(input:checked)) {
  border-color: var(--slate-300);
  color: var(--navy-200);
}
body.feedback-page .fq-scale { display: flex; gap: 8px; align-items: center; }
body.feedback-page .fq-scale-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--cream-300);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-400);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
body.feedback-page .fq-scale-item input[type="radio"] { display: none; }
body.feedback-page .fq-scale-item:has(input:checked) {
  border-color: var(--navy-200);
  background: var(--navy-200);
  color: var(--white);
}
body.feedback-page .fq-scale-item:hover:not(:has(input:checked)) {
  border-color: var(--slate-300);
  color: var(--navy-200);
}
body.feedback-page .fq-scale-ends {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
body.feedback-page .fq-scale-ends span {
  font-size: 11px;
  color: var(--slate-200);
  width: 46px;
  text-align: center;
  line-height: 1.3;
}
body.feedback-page .fq-scale-ends span:last-child { margin-left: auto; }

body.feedback-page .feedback-optional-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-200);
  background: var(--cream-100);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
body.feedback-page .fq-optional-follow {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-300);
}
body.feedback-page .feedback-error {
  display: none;
  background: rgba(200,68,52,0.07);
  border: 1.5px solid var(--red-100);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red-100);
  margin-bottom: 16px;
}
body.feedback-page .feedback-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
body.feedback-page .feedback-submit {
  display: inline-flex;
  align-items: center;
  background: var(--navy-200);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 13px 30px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
body.feedback-page .feedback-submit:hover { background: var(--navy-100); }
body.feedback-page .feedback-submit:disabled { opacity: 0.55; cursor: not-allowed; }
body.feedback-page .feedback-cancel {
  font-size: 14px;
  color: var(--slate-300);
  text-decoration: none;
}
body.feedback-page .feedback-cancel:hover { color: var(--slate-400); }

body.feedback-page .feedback-success {
  display: none;
  text-align: center;
  padding: 64px 40px;
  background: var(--white);
  border: 1.5px solid var(--cream-300);
  border-radius: 10px;
}
body.feedback-page .fs-check {
  width: 56px;
  height: 56px;
  background: var(--navy-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
body.feedback-page .feedback-success h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-200);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
body.feedback-page .feedback-success p {
  font-size: 15px;
  color: var(--slate-400);
  margin: 0 0 28px;
  line-height: 1.6;
}
body.feedback-page .feedback-back {
  display: inline-flex;
  align-items: center;
  background: var(--cream-100);
  color: var(--navy-200);
  border-radius: 6px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
body.feedback-page .feedback-back:hover { background: var(--cream-300); }

@media (max-width: 640px) {
  body.feedback-page .feedback-wrap { padding: 32px 20px 60px; }
  body.feedback-page .feedback-section { padding: 20px; }
  body.feedback-page .fq-scale { flex-wrap: wrap; }
}
