/* ============================================================
   ZRemodel — illustrative interior style preview
   High-end proptech aesthetic. Warm neutrals + clay accent.
   ============================================================ */

:root {
  /* Palette — warm neutral, editorial */
  --sand-50:  #faf7f2;
  --sand-100: #f3ede3;
  --sand-200: #e8ddcc;
  --sand-300: #d8c7ad;
  --clay-300: #d9a07a;
  --clay-400: #c9805a;
  --clay-500: #a25736;
  --clay-600: #9c5536;
  --charcoal-700: #3a342e;
  --charcoal-800: #2a2622;
  --charcoal-900: #1c1916;
  --ink:      #221e1a;
  --muted:    #685f56;
  --line:     #e3d8c7;
  --white:    #fffdf9;

  --accent:   var(--clay-500);
  --accent-soft: rgba(162,87,54,0.12);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(40,32,24,0.06), 0 2px 6px rgba(40,32,24,0.04);
  --shadow:    0 4px 12px rgba(40,32,24,0.08), 0 12px 32px rgba(40,32,24,0.07);
  --shadow-lg: 0 8px 24px rgba(40,32,24,0.10), 0 24px 64px rgba(40,32,24,0.12);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Outfit", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(217,160,122,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(216,199,173,0.30), transparent 55%),
    var(--sand-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

::selection { background: var(--clay-300); color: var(--charcoal-900); }

img, svg { display: block; max-width: 100%; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--clay-600);
  outline-offset: 3px;
}

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.serif { font-family: var(--serif); }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--clay-500);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--clay-400);
  display: inline-block;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250,247,242,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 70px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--clay-400), var(--clay-600));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand small { color: var(--clay-500); font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--charcoal-700);
  padding: 8px 14px; border-radius: 999px; transition: all .2s var(--ease);
}
.nav-links a:hover { background: var(--sand-100); color: var(--ink); }
.nav-links a.active { background: var(--charcoal-900); color: var(--white); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--clay-500); color: var(--white);
  font-weight: 600; font-size: 13.5px; padding: 10px 18px; border-radius: 999px;
  transition: all .22s var(--ease); box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--clay-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-pref { font-size: 13.5px; font-weight: 600; color: var(--charcoal-700); padding: 9px 4px; }
.nav-pref:hover { color: var(--clay-600); }
.nav-credits {
  font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px;
  background: var(--sand-100); padding: 7px 12px; border-radius: 999px; font-weight: 500;
}
.nav-credits b { color: var(--ink); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; padding: 13px 22px; border-radius: 999px;
  transition: all .22s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--charcoal-900); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--charcoal-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-clay { background: var(--clay-500); color: var(--white); box-shadow: var(--shadow); }
.btn-clay:hover { background: var(--clay-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--clay-300); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 38px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 18px 0 0; }
.hero h1 em { font-style: italic; color: var(--clay-500); }
.hero p.lead { font-size: 18px; color: var(--charcoal-700); margin: 22px 0 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats .stat b { font-family: var(--serif); font-size: 30px; display: block; }
.hero-stats .stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }

.hero-visual {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--white);
}
.hero-visual .tag {
  position: absolute; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-visual .tag.before { top: 14px; left: 14px; background: rgba(28,25,22,.72); color: #fff; }
.hero-visual .tag.after  { top: 14px; right: 14px; background: rgba(126,58,34,.96); color: #fff; }

/* ---------- Section heading ---------- */
.section { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 0; }
.section-head p { color: var(--charcoal-700); font-size: 16.5px; margin-top: 14px; }

/* ---------- Studio layout ---------- */
.studio { padding: 38px 0 80px; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.studio-head h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; }
.studio-head p { color: var(--charcoal-700); margin-top: 8px; max-width: 460px; }

.studio-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.panel.sticky { position: sticky; top: 92px; }
.panel h3 { font-size: 19px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.field { margin-bottom: 24px; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal-700); margin-bottom: 12px; display: flex; justify-content: space-between; }
.field-label span { color: var(--clay-500); }

/* room type chips */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--sand-50); transition: all .18s var(--ease);
  text-align: left; font-size: 13.5px; font-weight: 600; color: var(--charcoal-700);
}
.room-chip svg { width: 19px; height: 19px; color: var(--clay-500); flex-shrink: 0; }
.room-chip:hover { border-color: var(--clay-300); background: var(--sand-100); }
.room-chip.active { border-color: var(--clay-500); background: var(--accent-soft); color: var(--clay-600); box-shadow: 0 0 0 1px var(--clay-500) inset; }

/* style selector */
.style-list { display: flex; flex-direction: column; gap: 8px; }
.style-opt {
  display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--sand-50); transition: all .18s var(--ease); text-align: left; width: 100%;
}
.style-opt:hover { border-color: var(--clay-300); }
.style-opt.active { border-color: var(--clay-500); box-shadow: 0 0 0 1px var(--clay-500) inset; background: var(--white); }
.style-swatch { display: flex; border-radius: 7px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.style-swatch i { width: 11px; height: 34px; display: block; }
.style-opt .style-meta b { display: block; font-size: 14px; font-weight: 600; }
.style-opt .style-meta span { font-size: 11.5px; color: var(--muted); }

/* ---------- Stage / before-after ---------- */
.stage {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.stage-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.stage-bar .meta { display: flex; align-items: center; gap: 12px; }
.stage-pill { font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--sand-100); color: var(--charcoal-700); }
.stage-pill b { color: var(--clay-600); }
.stage-actions { display: flex; gap: 9px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  display: grid; place-items: center; color: var(--charcoal-700); transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--clay-300); color: var(--clay-500); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }

/* the slider compare */
.compare {
  position: relative; aspect-ratio: 16/10; overflow: hidden; user-select: none;
  background: var(--sand-100); touch-action: none;
}
.compare svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .layer-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .tag {
  position: absolute; top: 14px; z-index: 4; font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none;
  transition: opacity .2s;
}
.compare .tag.before { left: 14px; background: rgba(28,25,22,.74); color: #fff; }
.compare .tag.after  { right: 14px; background: rgba(126,58,34,.96); color: #fff; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; z-index: 5;
  background: var(--white); transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(40,32,24,.12);
  cursor: ew-resize;
}
.compare-handle .knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--white);
  box-shadow: var(--shadow); display: grid; place-items: center; color: var(--charcoal-800);
}
.compare-handle .knob svg { width: 20px; height: 20px; }

/* empty stage */
.stage-empty {
  aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 40px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(216,199,173,.18) 18px, rgba(216,199,173,.18) 19px),
    var(--sand-50);
}
.stage-empty .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin: 0 auto 18px; color: var(--clay-500); }
.stage-empty .ico svg { width: 30px; height: 30px; }
.stage-empty h3 { font-size: 22px; }
.stage-empty p { color: var(--muted); margin-top: 8px; max-width: 340px; }

/* ---------- Generation loader ---------- */
.render-overlay {
  position: absolute; inset: 0; z-index: 10; background: rgba(28,25,22,.86);
  backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--white);
  text-align: center; padding: 30px;
}
.render-overlay .spinner {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 22px;
  border: 3px solid rgba(255,255,255,.16); border-top-color: var(--clay-300);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.render-overlay .msg { font-family: var(--serif); font-size: 22px; min-height: 30px; }
.render-overlay .sub { font-size: 13.5px; color: rgba(255,255,255,.66); margin-top: 8px; }
.render-bar { width: 260px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); margin: 24px auto 0; overflow: hidden; }
.render-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--clay-300), var(--clay-500)); border-radius: 999px; transition: width .3s var(--ease); }
.render-pct { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 10px; letter-spacing: .1em; font-weight: 600; }

/* ---------- Moodboard under stage ---------- */
.mood { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mood-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.mood-card h4 { font-size: 16px; margin-bottom: 14px; }
.palette-row { display: flex; gap: 8px; margin-bottom: 16px; }
.palette-row .sw { flex: 1; height: 56px; border-radius: 10px; position: relative; box-shadow: var(--shadow-sm); overflow: hidden; }
.palette-row .sw span { position: absolute; bottom: 5px; left: 6px; font-size: 9px; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.82); padding: 2px 5px; border-radius: 5px; color: var(--charcoal-800); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--sand-100); color: var(--charcoal-700); border: 1px solid var(--line); }
.chip.material { background: var(--accent-soft); color: var(--clay-600); border-color: transparent; }

/* ---------- AI designer's brief (real Gemini) ---------- */
.ai-brief-slot { margin-top: 22px; }
.ai-brief { position: relative; overflow: hidden; }
.ai-brief::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--clay-300), var(--clay-500));
}
.ai-brief-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ai-brief-head h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.ai-brief-head h4 svg { width: 18px; height: 18px; color: var(--clay-500); }
.ai-brief-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--clay-600); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.ai-brief-tag.muted { color: var(--muted); background: var(--sand-100); }
.ai-rationale { font-size: 14.5px; line-height: 1.65; color: var(--charcoal-700); }
.ai-fallback-note { font-size: 12.5px; margin-top: 10px; }
.ai-section { margin-top: 18px; }
.ai-section h5 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ai-shopping { list-style: none; display: grid; gap: 10px; }
.ai-shopping li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; }
.ai-shopping li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--clay-400, var(--clay-500)); }
.ai-shopping li b { font-size: 14px; color: var(--charcoal-800); }
.ai-shopping li span { font-size: 12.5px; color: var(--muted); }
.ai-brief-loading { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.spinner-dark { position: relative; width: 26px; height: 26px; border-radius: 50%; margin: 0; border: 3px solid var(--line); border-top-color: var(--clay-500); animation: spin .9s linear infinite; flex: none; }

/* ---------- Style explorer gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.style-card {
  display: block; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .26s var(--ease); cursor: pointer;
}
.style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--clay-300); }
.style-card:focus-visible { border-color: var(--clay-600); box-shadow: var(--shadow-lg); }
.style-card .thumb { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--sand-100); }
.style-card .thumb svg { width: 100%; height: 100%; }
.style-card .body { padding: 20px 22px 24px; }
.style-card .body .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.style-card .body h3 { font-size: 21px; }
.style-card .body .mini-pal { display: flex; gap: 5px; }
.style-card .body .mini-pal i { width: 16px; height: 16px; border-radius: 5px; box-shadow: var(--shadow-sm); }
.style-card .body p { font-size: 14px; color: var(--charcoal-700); margin: 8px 0 16px; line-height: 1.55; }
.style-card .body .chips { gap: 6px; }
.style-card .body .chips .chip { font-size: 11px; padding: 5px 10px; }

/* ---------- Projects grid ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); padding: 5px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.filter-tabs button { font-size: 13px; font-weight: 600; color: var(--charcoal-700); padding: 8px 15px; border-radius: 999px; transition: all .18s var(--ease); }
.filter-tabs button:hover { color: var(--ink); }
.filter-tabs button.active { background: var(--charcoal-900); color: var(--white); }
.toolbar .count { margin-left: auto; font-size: 13.5px; color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .24s var(--ease); position: relative;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card .pthumb { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--sand-100); }
.project-card button.pthumb { display: block; width: 100%; text-align: left; }
.project-card .pthumb-split { position: absolute; inset: 0; }
.project-card .pthumb-split .half { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.project-card .pthumb-split .half svg { position: absolute; inset: 0; width: 200%; height: 100%; }
.project-card .pthumb-split .half.l { left: 0; width: 50%; }
.project-card .pthumb-split .half.r { right: 0; width: 50%; }
.project-card .pthumb-split .half.r svg { left: -100%; }
.project-card .pthumb-split .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--white); transform: translateX(-1px); }
.project-card .pbadge { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255,253,249,.92); color: var(--clay-600); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); }
.project-card .body { padding: 18px 20px 20px; }
.project-card .body h3 { font-size: 18px; margin-bottom: 4px; }
.project-card .body .sub { font-size: 12.5px; color: var(--muted); }
.project-card .body .row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.project-card .body .date { font-size: 12px; color: var(--muted); }
.project-card .body .acts { display: flex; gap: 7px; }

/* empty projects */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .ico { width: 76px; height: 76px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; margin: 0 auto 22px; color: var(--clay-500); }
.empty-state .ico svg { width: 36px; height: 36px; }
.empty-state h3 { font-size: 26px; }
.empty-state p { color: var(--muted); margin: 10px auto 26px; max-width: 380px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--charcoal-900); color: var(--white); padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toastIn .35s var(--ease); white-space: nowrap;
}
.toast svg { width: 17px; height: 17px; color: var(--clay-300); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(28,25,22,.55); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 24px; animation: fade .25s; }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(900px, 100%); max-height: 90vh; overflow: auto; animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 0; }
.modal-head h3 { font-size: 24px; }
.modal-head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 22px 26px 26px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 26px 26px; }

.preview-disclosure {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--sand-100);
  color: var(--charcoal-700); font-size: 13px; line-height: 1.55;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .muted { font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--charcoal-700); }
.footer-links a:hover { color: var(--clay-500); }

/* feature cards on landing */
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: all .24s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; margin-bottom: 16px; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--charcoal-700); line-height: 1.55; }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s var(--ease) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .studio-grid { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .nav-inner { padding: 0 18px; }
  .nav-links { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero-stats { gap: 22px; }
  .gallery, .projects-grid { grid-template-columns: 1fr; }
  .mood { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .compare .tag { font-size: 9px; padding: 4px 8px; }
}

/* mobile nav toggle */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); margin-left: auto; }
  .nav-right { display: none; }
  .nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--sand-50); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 11px 14px; border-radius: 10px; font-weight: 600; }
  .nav-mobile a.active { background: var(--charcoal-900); color: var(--white); }
  .nav-mobile .navmob-btn { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; font-weight: 600; color: var(--charcoal-700); text-align: left; }
  .nav-mobile .navmob-btn svg { width: 17px; height: 17px; }
}
@media (min-width: 721px) { .nav-mobile { display: none; } }

/* ============================================================
   Account menu (nav dropdown)
   ============================================================ */
.acct { position: relative; }
.acct-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; font-size: 13px; color: var(--clay-600);
  display: grid; place-items: center; transition: all .18s var(--ease); letter-spacing: .02em;
}
.acct-btn:hover { border-color: var(--clay-300); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.acct-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 232px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60;
  animation: pop .2s var(--ease);
}
.acct-menu.open { display: flex; }
.acct-menu .acct-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu .acct-head b { display: block; font-family: var(--serif); font-size: 16px; }
.acct-menu .acct-head span { font-size: 12px; color: var(--muted); }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--charcoal-700); text-align: left; transition: background .15s;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--sand-100); color: var(--ink); }
.acct-menu svg { width: 17px; height: 17px; color: var(--clay-500); flex-shrink: 0; }
.acct-menu .acct-admin { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboard-body { background:
  radial-gradient(1100px 700px at 80% -10%, rgba(217,160,122,0.18), transparent 60%),
  radial-gradient(900px 600px at -10% 100%, rgba(216,199,173,0.4), transparent 55%),
  var(--sand-50); }
.ob-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; position: relative; }
.ob-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: .5; }
.ob-bg-card { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: 60%; max-width: 760px; aspect-ratio: 16/10; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); filter: saturate(.92); }
.ob-bg-card svg { width: 100%; height: 100%; }
.ob-card {
  position: relative; z-index: 2; width: min(680px, 100%); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.ob-top .brand { font-size: 18px; }
.ob-top .brand .mark { width: 30px; height: 30px; }
.ob-skip { font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: all .18s; }
.ob-skip:hover { color: var(--ink); background: var(--sand-100); }
.ob-dots { display: flex; gap: 7px; }
.ob-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-200); transition: all .2s; }
.ob-dot.active { background: var(--clay-500); transform: scale(1.15); }
.ob-dot.done { background: var(--clay-300); }
.ob-body { padding: 36px 40px 40px; }
.ob-body .eyebrow { margin-bottom: 16px; }
.ob-h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 0; }
.ob-h1 em { font-style: italic; color: var(--clay-500); }
.ob-h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0 0; }
.ob-step-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-500); }
.ob-lead { font-size: 16px; color: var(--charcoal-700); margin: 14px 0 26px; max-width: 520px; line-height: 1.55; }
.ob-perks { display: grid; gap: 14px; margin: 0 0 30px; }
.ob-perk { display: flex; gap: 14px; align-items: flex-start; }
.ob-perk .ob-pi { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; }
.ob-perk .ob-pi svg { width: 20px; height: 20px; }
.ob-perk b { font-family: var(--serif); font-size: 16px; }
.ob-perk p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ob-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.ob-field { margin-top: 4px; }
.ob-input {
  width: 100%; font-family: var(--sans); font-size: 18px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-50);
  color: var(--ink); transition: all .18s;
}
.ob-input:focus { outline: none; border-color: var(--clay-400); background: var(--white); box-shadow: 0 0 0 3px var(--accent-soft); }
.ob-grid { display: grid; gap: 12px; margin-top: 6px; }
.ob-grid-home, .ob-grid-room { grid-template-columns: 1fr 1fr; }
.ob-grid-style { grid-template-columns: 1fr 1fr 1fr; }
.ob-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-50); transition: all .18s var(--ease); text-align: left;
}
.ob-tile:hover { border-color: var(--clay-300); transform: translateY(-2px); }
.ob-tile.active { border-color: var(--clay-500); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--clay-500) inset; }
.ob-tile .ob-tile-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--white); display: grid; place-items: center; color: var(--clay-500); box-shadow: var(--shadow-sm); }
.ob-tile .ob-tile-ico svg { width: 19px; height: 19px; }
.ob-tile b { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.ob-style {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: all .18s var(--ease); text-align: left;
}
.ob-style:hover { border-color: var(--clay-300); transform: translateY(-3px); box-shadow: var(--shadow); }
.ob-style.active { border-color: var(--clay-500); box-shadow: 0 0 0 2px var(--clay-500) inset; }
.ob-style-thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--sand-100); }
.ob-style-thumb svg { width: 100%; height: 100%; }
.ob-style-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; }
.ob-style-meta b { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.ob-pal { display: flex; gap: 3px; }
.ob-pal i { width: 11px; height: 11px; border-radius: 3px; box-shadow: var(--shadow-sm); }
.ob-finish { text-align: center; }
.ob-finish .eyebrow { justify-content: center; }
.ob-finish-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; margin: 0 auto 18px; }
.ob-finish-ico svg { width: 32px; height: 32px; }
.ob-finish .ob-lead { margin-left: auto; margin-right: auto; }
.ob-finish .ob-actions { justify-content: center; }
.ob-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 4px; }
.ob-sum { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.ob-sum span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ob-sum b { font-family: var(--serif); font-size: 15px; font-weight: 500; margin-top: 4px; display: block; }
@media (max-width: 620px) {
  .ob-body { padding: 26px 22px 30px; }
  .ob-grid-style { grid-template-columns: 1fr 1fr; }
  .ob-summary { grid-template-columns: 1fr 1fr; }
  .ob-actions .btn { flex: 1; }
  .ob-bg { display: none; }
}

/* ============================================================
   CLIENT DASHBOARD
   ============================================================ */
.dash { padding: 36px 0 70px; }
.dash-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-bottom: 34px; }
.dash-hero h1 { font-size: clamp(30px, 4.2vw, 50px); margin: 14px 0 0; }
.dash-hero p { font-size: 16.5px; color: var(--charcoal-700); margin: 16px 0 26px; max-width: 460px; }
.dash-hero p b { color: var(--clay-600); }
.dash-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-hero-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .24s var(--ease); }
.dash-hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--clay-300); }
.dash-hero-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--sand-100); }
.dash-hero-thumb svg { width: 100%; height: 100%; }
.dash-hero-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.dash-hero-card-foot b { font-family: var(--serif); font-size: 17px; display: block; margin-top: 3px; }
.dash-hero-go { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; }
.dash-hero-go svg { width: 18px; height: 18px; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 42px; }
.dash-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: center; }
.dash-stat-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; }
.dash-stat-ico svg { width: 22px; height: 22px; }
.dash-stat b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1; }
.dash-stat span { font-size: 13px; color: var(--charcoal-700); display: block; margin-top: 5px; font-weight: 500; }
.dash-stat small { font-size: 11.5px; color: var(--muted); display: block; }

.dash-section { margin-bottom: 42px; }
.dash-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.dash-sec-head h2 { font-size: 25px; }
.dash-link { font-size: 13.5px; font-weight: 600; color: var(--clay-500); display: inline-flex; align-items: center; gap: 6px; }
.dash-link svg { width: 15px; height: 15px; }
.dash-link:hover { color: var(--clay-600); }

.dash-proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dash-proj { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all .22s var(--ease); }
.dash-proj:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dash-proj:focus-visible, .dash-feat:focus-visible { border-color: var(--clay-600); box-shadow: var(--shadow); }
.dash-proj-thumb { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--sand-100); }
.dash-proj-thumb .pthumb-split { position: absolute; inset: 0; }
.dash-proj-thumb .half { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.dash-proj-thumb .half svg { position: absolute; inset: 0; width: 200%; height: 100%; }
.dash-proj-thumb .half.l { left: 0; width: 50%; }
.dash-proj-thumb .half.r { right: 0; width: 50%; }
.dash-proj-thumb .half.r svg { left: -100%; }
.dash-proj-thumb .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--white); transform: translateX(-1px); }
.dash-proj-thumb .pbadge { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,253,249,.92); color: var(--clay-600); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); }
.dash-proj-body { padding: 14px 16px 16px; }
.dash-proj-body b { font-family: var(--serif); font-size: 15.5px; font-weight: 500; display: block; }
.dash-proj-body span { font-size: 12px; color: var(--muted); }

.dash-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all .22s var(--ease); }
.dash-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--clay-300); }
.dash-feat-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--sand-100); }
.dash-feat-thumb svg { width: 100%; height: 100%; }
.dash-feat-body { padding: 15px 17px 17px; }
.dash-feat-top { display: flex; align-items: center; justify-content: space-between; }
.dash-feat-top b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.dash-feat-top .mini-pal { display: flex; gap: 4px; }
.dash-feat-top .mini-pal i { width: 14px; height: 14px; border-radius: 4px; box-shadow: var(--shadow-sm); }
.dash-feat-body p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.dash-empty { display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 24px; flex-wrap: wrap; }
.dash-empty-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; flex-shrink: 0; }
.dash-empty-ico svg { width: 22px; height: 22px; }
.dash-empty b { font-family: var(--serif); font-size: 17px; }
.dash-empty p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.dash-empty .btn { margin-left: auto; }

@media (max-width: 1024px) {
  .dash-hero { grid-template-columns: 1fr; gap: 28px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-proj-grid { grid-template-columns: 1fr 1fr; }
  .dash-feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-stat { padding: 16px; }
  .dash-proj-grid { grid-template-columns: 1fr 1fr; }
  .dash-empty .btn { margin-left: 0; width: 100%; }
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-body { background:
  radial-gradient(1100px 600px at 90% -10%, rgba(217,160,122,0.08), transparent 60%),
  var(--sand-50); }

/* login */
.adm-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; }
.adm-login { width: min(440px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 40px 38px; }
.adm-login .brand { font-size: 19px; margin-bottom: 22px; }
.adm-login h1 { font-size: 28px; }
.adm-login p { color: var(--charcoal-700); font-size: 14.5px; margin: 8px 0 22px; }
.adm-creds { background: var(--sand-50); border: 1px dashed var(--clay-300); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; font-size: 13px; }
.adm-creds b { font-weight: 700; }
.adm-creds .cred-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.adm-creds code { font-family: ui-monospace, Menlo, monospace; background: var(--white); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--clay-600); }
.adm-field { margin-bottom: 14px; }
.adm-field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-700); display: block; margin-bottom: 7px; }
.adm-field input { width: 100%; font-family: var(--sans); font-size: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sand-50); }
.adm-field input:focus { outline: none; border-color: var(--clay-400); background: var(--white); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-error { color: #b4452f; font-size: 13px; margin-bottom: 12px; display: none; }
.adm-error.show { display: block; }
.adm-login-foot { text-align: center; margin-top: 18px; font-size: 13px; }
.adm-login-foot a { color: var(--clay-500); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.adm-login-foot a svg { width: 15px; height: 15px; }
.adm-creds svg, .adm-error svg { width: 14px; height: 14px; vertical-align: -2px; }

/* admin shell */
.adm-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-side { background: var(--charcoal-900); color: rgba(255,253,249,.8); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.adm-side .brand { color: var(--white); font-size: 18px; margin-bottom: 4px; }
.adm-side .brand small { color: var(--clay-300); }
.adm-side .adm-side-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-300); margin: 22px 0 10px 12px; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav button { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; font-size: 14px; font-weight: 500; color: rgba(255,253,249,.74); text-align: left; transition: all .16s; width: 100%; }
.adm-nav button svg { width: 18px; height: 18px; }
.adm-nav button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.adm-nav button.active { background: var(--clay-500); color: var(--white); }
.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.adm-side-foot a, .adm-side-foot button { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: rgba(255,253,249,.7); transition: all .16s; }
.adm-side-foot a:hover, .adm-side-foot button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.adm-side-foot svg { width: 17px; height: 17px; }

.adm-main { padding: 30px 38px 60px; min-width: 0; }
.adm-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.adm-topbar h1 { font-size: 30px; }
.adm-topbar p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.adm-topbar .adm-badge { font-size: 12px; font-weight: 600; color: var(--clay-600); background: var(--accent-soft); padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.adm-topbar .adm-badge svg { width: 15px; height: 15px; }

/* mobile admin header */
.adm-mobile-bar { display: none; }

/* KPI cards */
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.adm-kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.adm-kpi .adm-kpi-top { display: flex; align-items: center; justify-content: space-between; }
.adm-kpi .adm-kpi-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--clay-500); display: grid; place-items: center; }
.adm-kpi .adm-kpi-ico svg { width: 19px; height: 19px; }
.adm-kpi .adm-delta { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; }
.adm-kpi .adm-delta svg { width: 13px; height: 13px; }
.adm-kpi .adm-delta.up { color: #2f7a4f; background: rgba(47,122,79,.1); }
.adm-kpi .adm-delta.down { color: #b4452f; background: rgba(180,69,47,.1); }
.adm-kpi b { font-family: var(--serif); font-size: 30px; display: block; margin-top: 16px; line-height: 1; }
.adm-kpi span { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }

/* chart cards */
.adm-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 26px; }
.adm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.adm-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.adm-card-head h3 { font-size: 18px; }
.adm-card-head .adm-card-sub { font-size: 12.5px; color: var(--muted); }
.adm-bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.adm-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.adm-bar { width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--clay-400), var(--clay-500)); transition: height .5s var(--ease); min-height: 4px; position: relative; }
.adm-bar.alt { background: linear-gradient(180deg, var(--charcoal-700), var(--charcoal-900)); }
.adm-bar-col .adm-bar-val { font-size: 11px; font-weight: 700; color: var(--charcoal-700); }
.adm-bar-col .adm-bar-lbl { font-size: 11.5px; color: var(--muted); }

/* donut / plan breakdown */
.adm-donut-wrap { display: flex; align-items: center; gap: 22px; }
.adm-donut { width: 130px; height: 130px; flex-shrink: 0; }
.adm-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.adm-legend-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.adm-legend-row .dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.adm-legend-row b { margin-left: auto; font-weight: 700; }
.adm-legend-row span { color: var(--muted); }

/* recent signups */
.adm-signups { display: flex; flex-direction: column; gap: 4px; }
.adm-signup-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--sand-100); }
.adm-signup-row:last-child { border-bottom: none; }
.adm-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--clay-600); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.adm-signup-row .nm { font-size: 13.5px; font-weight: 600; }
.adm-signup-row .em { font-size: 12px; color: var(--muted); }
.adm-signup-row .meta { margin-left: auto; text-align: right; }
.adm-signup-row .when { font-size: 12px; color: var(--muted); }

/* plan pill */
.plan-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.plan-free { background: var(--sand-100); color: var(--charcoal-700); }
.plan-starter { background: rgba(159,180,167,.22); color: #4d6a58; }
.plan-pro { background: var(--accent-soft); color: var(--clay-600); }
.plan-studio { background: rgba(58,52,46,.12); color: var(--charcoal-900); }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-active { background: rgba(47,122,79,.1); color: #2f7a4f; }
.status-active::before { background: #2f7a4f; }
.status-suspended { background: rgba(180,69,47,.1); color: #b4452f; }
.status-suspended::before { background: #b4452f; }

/* users table */
.adm-table-tools { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.adm-search { position: relative; flex: 1; min-width: 220px; }
.adm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.adm-search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--sans); font-size: 14px; }
.adm-search input:focus { outline: none; border-color: var(--clay-400); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--charcoal-700); }
.adm-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.adm-table td { padding: 13px 18px; border-bottom: 1px solid var(--sand-100); font-size: 13.5px; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--sand-50); }
.adm-user-cell { display: flex; align-items: center; gap: 11px; }
.adm-user-cell .nm { font-weight: 600; }
.adm-user-cell .em { font-size: 12px; color: var(--muted); }
.adm-row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.adm-mini-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--charcoal-700); transition: all .16s; }
.adm-mini-btn:hover { border-color: var(--clay-300); color: var(--clay-500); }
.adm-mini-btn svg { width: 15px; height: 15px; }
.adm-table-empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.adm-table-foot { padding: 14px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--sand-50); }

/* platform management */
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.adm-toggle-list { display: flex; flex-direction: column; gap: 8px; }
.adm-toggle-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-50); }
.adm-toggle-row .tg-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--white); display: grid; place-items: center; color: var(--clay-500); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.adm-toggle-row .tg-ico svg { width: 18px; height: 18px; }
.adm-toggle-row .tg-pal { display: flex; gap: 3px; }
.adm-toggle-row .tg-pal i { width: 22px; height: 22px; border-radius: 6px; }
.adm-toggle-row .tg-meta { min-width: 0; }
.adm-toggle-row .tg-meta b { font-family: var(--serif); font-size: 15px; font-weight: 500; display: block; }
.adm-toggle-row .tg-meta span { font-size: 12px; color: var(--muted); }
.adm-toggle-row .tg-meta { flex: 1; }
.adm-toggle-row.off { opacity: .55; }
/* switch */
.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--sand-300); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; background: var(--white); border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--clay-500); }
.switch input:checked + .track::before { transform: translateX(19px); }

/* pricing editor */
.adm-price-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sand-100); }
.adm-price-row:last-of-type { border-bottom: none; }
.adm-price-row .pr-name { font-family: var(--serif); font-size: 15px; }
.adm-price-row .pr-name small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.adm-input-group { display: flex; align-items: center; gap: 6px; }
.adm-input-group .pfx { font-size: 13px; color: var(--muted); }
.adm-input-group input { width: 78px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--sans); font-size: 14px; background: var(--sand-50); }
.adm-input-group input:focus { outline: none; border-color: var(--clay-400); background: var(--white); }
.adm-credit-price { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.adm-credit-price b { font-family: var(--serif); font-size: 15px; }
.adm-credit-price p { font-size: 12.5px; color: var(--muted); }
.adm-save-bar { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* admin modal reuse */
.adm-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 18px; }
.adm-detail { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.adm-detail span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-detail b { font-size: 15px; display: block; margin-top: 3px; }
.adm-modal-section { margin-top: 16px; }
.adm-modal-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.adm-action-grid { display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 1024px) {
  .adm-kpis { grid-template-columns: 1fr 1fr; }
  .adm-charts { grid-template-columns: 1fr; }
  .adm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { display: none; position: fixed; z-index: 80; width: 248px; }
  .adm-side.open { display: flex; }
  .adm-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(250,247,242,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 70; }
  .adm-mobile-bar .brand { font-size: 17px; }
  .adm-mobile-bar .menu-btn { display: grid; }
  .adm-main { padding: 20px 18px 50px; }
  .adm-topbar h1 { font-size: 24px; }
  .adm-table-wrap { overflow-x: auto; }
  .adm-table { min-width: 640px; }
  .adm-side-backdrop { display: none; position: fixed; inset: 0; background: rgba(28,25,22,.4); z-index: 75; }
  .adm-side-backdrop.open { display: block; }
}
@media (max-width: 460px) {
  .adm-kpis { grid-template-columns: 1fr; }
  .adm-price-row { grid-template-columns: 1fr 1fr; }
  .adm-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
