/* =========================================================================
   Design tokens — dark charcoal + red accent developer theme
   Plain hand-written CSS. No build step, no Tailwind, no Sass — this file
   is served exactly as-is from /public/css/app.css.
   ========================================================================= */
:root {
    --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --bg: #0a0c0f;
    --bg-soft: #0e1116;
    --surface: #12151b;
    --surface-2: #181c23;
    --border: #252a33;
    --border-soft: #1b1f27;
    --text: #e9ebf0;
    --text-dim: #8991a3;
    --text-faint: #5c6577;
    --accent: #ff4433;
    --accent-dim: #c8331f;
    --accent-soft: rgba(255, 68, 51, .13);
    --accent-glow: rgba(255, 68, 51, .35);
    --syn-kw: #7fb0ff;
    --syn-str: #7be08a;
    --syn-type: #d3a2ff;
    --syn-num: #ffcc66;
    --syn-com: #5c6577;
    --ok: #2f9e52;
    --light-bg: #f3efe9;
    --light-surface: #fbfaf7;
    --light-border: #e2ddd2;
    --light-text: #1c1d1b;
    --light-dim: #726c60;
    --radius: 14px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
    background: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

code, .mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap, .wrap-narrow { padding-inline: 18px; } }

/* ---------- top chrome bar ---------- */
.chrome {
    position: sticky; top: 0; z-index: 40;
    background: rgba(10, 12, 15, .86);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}
.chrome-inner { max-width: 1180px; margin-inline: auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 18px; }
.dots { display: flex; gap: 6px; flex: none; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: block; }
.dots span:nth-child(1) { background: #4a4f5a; }
.path { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; padding: 5px 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--bg-soft); }
.path b { color: var(--text-dim); font-weight: 500; }
.chrome-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.chrome-nav a { font-size: 13.5px; color: var(--text-dim); }
.chrome-nav a:hover, .chrome-nav a.active { color: var(--text); }
.navtoggle { display: none; }
@media (max-width: 760px) {
    .chrome-nav { position: fixed; inset: 56px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border-soft); flex-direction: column; align-items: flex-start; padding: 16px 24px 20px; gap: 14px; display: none; }
    .chrome-nav.open { display: flex; }
    .navtoggle { display: inline-flex; margin-left: auto; }
    .chrome-inner .btn-primary.hide-mobile { display: none; }
    .path { display: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #1a0704; }
.btn-primary:hover { background: #ff5a4c; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-danger { border-color: rgba(255,68,51,.4); color: var(--accent); background: transparent; }
.btn-danger:hover { background: var(--accent-soft); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.blink-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.1s steps(1) infinite; display: inline-block; }
.cursor { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .blink-dot, .cursor { animation: none; opacity: 1; } }

/* ---------- eyebrow / tags ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 68, 51, .28); padding: 6px 12px; border-radius: 100px; margin-bottom: 22px; }
.tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; display: block; margin-bottom: 12px; }

/* ---------- section shell ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 15.5px; }

/* ---------- editor / terminal mock ---------- */
.editor { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.editor-tabs { display: flex; align-items: center; background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); }
.etab { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); padding: 11px 18px; border-right: 1px solid var(--border-soft); display: flex; align-items: center; gap: 8px; }
.etab.active { color: var(--text); background: var(--surface); }
.etab i { width: 7px; height: 7px; border-radius: 2px; background: var(--syn-type); display: block; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 1.75; padding: 22px 22px 18px; white-space: pre; overflow-x: auto; min-height: 300px; }
.code .ln { color: var(--text-faint); display: inline-block; width: 22px; user-select: none; }
.kw { color: var(--syn-kw); } .str { color: var(--syn-str); } .typ { color: var(--syn-type); }
.num { color: var(--syn-num); } .com { color: var(--syn-com); } .fn { color: #ffd479; }
.term { border-top: 1px solid var(--border-soft); background: #0d1014; padding: 16px 22px 20px; }

/* Hero was stuck at a fixed 2-column grid (inline style) with no mobile
   override, so the code-editor panel got squeezed into a sliver and
   effectively vanished on phones. Force it to stack at narrow widths. */
@media (max-width: 900px) {
    .hero-grid-inline { grid-template-columns: 1fr !important; gap: 32px !important; }
    .editor { max-width: 100%; }
    .code { font-size: 12px; min-height: 160px; }
}
.term-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.term-line .p { color: var(--syn-str); } .term-line .ok { color: var(--syn-str); } .term-line .url { color: var(--syn-kw); } .term-line .k { color: var(--syn-type); }

/* ---------- marquee ---------- */
.marquee-band { border-block: 1px solid var(--border-soft); background: var(--bg-soft); overflow: hidden; }
.marquee-track {
    display: flex; padding: 18px 0; width: max-content;
    animation: scroll 28s linear infinite;
    /* app.js measures the track's real rendered width on load and overwrites
       this with an exact pixel value (see sizeMarquee()) — that's what makes
       the loop land perfectly regardless of chip sizes/fonts/viewport. -50%
       here is only a fallback for the instant before JS runs. */
    --marquee-distance: -50%;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track .chip { margin-right: 14px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(var(--marquee-distance)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 8px 14px; white-space: nowrap; display: inline-block; }
.chip b { color: var(--text); font-weight: 500; }

/* ---------- about (light band) ---------- */
.about-band { background: var(--light-bg); color: var(--light-text); }
.about-band .tag { color: var(--accent-dim); }
.about-band .section-head p { color: var(--light-dim); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 52px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.profile-card { background: var(--light-surface); border: 1px solid var(--light-border); border-radius: var(--radius); padding: 26px; box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .28); }
.avatar { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(150deg, var(--accent), var(--accent-dim)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.profile-card h3 { font-size: 19px; }
.profile-card .role { font-size: 13px; color: var(--light-dim); margin-top: 4px; }
.kv { margin-top: 18px; border-top: 1px dashed var(--light-border); padding-top: 16px; display: grid; gap: 9px; }
.kv div { font-family: var(--font-mono); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; }
.kv div span:first-child { color: var(--light-dim); }
.kv div span:last-child { color: var(--light-text); font-weight: 500; text-align: right; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--light-border); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--light-surface); border: 2.5px solid var(--accent); }
.tl-item .hash { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-dim); }
.tl-item h4 { font-size: 16px; margin-top: 5px; }
.tl-item p { font-size: 14px; color: var(--light-dim); margin-top: 5px; max-width: 56ch; }

/* ---------- tech stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stack-card .sc-head { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); padding: 13px 16px; border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.sc-head b { color: var(--text); }
.sc-body { padding: 14px 16px 16px; font-family: var(--font-mono); font-size: 12.5px; }
.sc-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.sc-row:last-child { border-bottom: none; }
.sc-row .k { color: var(--syn-kw); }
.sc-row .v { color: var(--syn-str); }

/* ---------- filter pills ---------- */
.filter-row { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-pill { font-family: var(--font-mono); font-size: 12.5px; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; background: transparent; }
.filter-pill.active, .filter-pill:hover { color: var(--text); }
.filter-pill.active { background: var(--accent); color: #1a0704; border-color: var(--accent); }

/* ---------- project cards ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.proj-card:hover { border-color: #3a4150; transform: translateY(-3px); }
.proj-cover { height: 150px; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--bg-soft)); }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.proj-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 30% 30%, black, transparent 75%); opacity: .9; }
.cat-pill { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; background: rgba(10, 12, 15, .75); border: 1px solid var(--border); color: var(--text-dim); }
.cat-pill.mobile { color: #8ce8b0; border-color: rgba(140, 232, 176, .3); }
.cat-pill.web { color: #8fc4ff; border-color: rgba(143, 196, 255, .3); }
.cat-pill.api { color: #d3a2ff; border-color: rgba(211, 162, 255, .3); }
.proj-overlay { position: absolute; inset: 0; background: rgba(10, 12, 15, .88); display: flex; flex-wrap: wrap; align-content: center; gap: 7px; padding: 16px; opacity: 0; transition: opacity .2s ease; z-index: 3; }
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-overlay span { font-family: var(--font-mono); font-size: 11px; color: var(--text); border: 1px solid var(--border); padding: 4px 9px; border-radius: 6px; background: var(--surface-2); }
.proj-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-size: 17px; }
.proj-body p { font-size: 13.5px; color: var(--text-dim); flex: 1; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); border: 1px solid var(--border-soft); padding: 3px 8px; border-radius: 6px; }
.proj-link { margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.proj-card:hover .proj-link { gap: 9px; }

/* ---------- package cards ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; } }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.pkg-card.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 50px -30px var(--accent-glow); }
.pkg-tag { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #1a0704; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .05em; }
.pkg-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.pkg-price { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.pkg-price span { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); font-weight: 400; }
.pkg-price .old { font-size: 16px; color: var(--text-faint); text-decoration: line-through; font-weight: 500; margin-right: 8px; }
.pkg-feats { display: grid; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.pkg-feats div { display: flex; gap: 9px; align-items: flex-start; }
.pkg-feats .ck { color: var(--syn-str); font-family: var(--font-mono); flex: none; }

/* ---------- contact ---------- */
.contact-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-left { padding: 40px; border-right: 1px solid var(--border-soft); }
@media (max-width: 820px) { .contact-left { border-right: none; border-bottom: 1px solid var(--border-soft); } }
.contact-left .prompt { font-family: var(--font-mono); font-size: 13px; color: var(--syn-str); margin-bottom: 18px; }
.contact-left h3 { font-size: 24px; }
.contact-left p { color: var(--text-dim); margin-top: 10px; font-size: 14.5px; max-width: 38ch; }
.contact-form { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field textarea, .field select {
    width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
    padding: 11px 12px; color: var(--text); font-family: var(--font-mono); font-size: 13.5px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 88px; }
.field-error { color: var(--accent); font-size: 12px; margin-top: 5px; font-family: var(--font-mono); }
.form-status { background: rgba(47,158,82,.12); border: 1px solid rgba(47,158,82,.35); color: #6fd191; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 20px; }
.form-status.error { background: var(--accent-soft); border-color: rgba(255,68,51,.35); color: #ffb3ab; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--border-soft); padding: 22px 0; }
.foot-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.foot-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border-soft); border-radius: 6px; }
.foot-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }
.foot-row .spacer { flex: 1; }
.foot-links { display: flex; gap: 16px; }
.foot-links a:hover { color: var(--text-dim); }

/* ---------- generic breadcrumb / page header (projects/packages inner pages) ---------- */
.page-header { padding: 48px 0 0; }
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text-dim); }

/* ---------- case study page ---------- */
.cs-hero-cover { height: 320px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-2), var(--bg-soft)); position: relative; overflow: hidden; margin-top: 26px; }
.cs-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-block { padding: 48px 0; border-top: 1px solid var(--border-soft); }
.cs-block h2 { font-size: 22px; margin-bottom: 16px; }
.cs-prose { color: var(--text-dim); font-size: 15px; line-height: 1.75; max-width: 74ch; white-space: pre-line; }
.cs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .cs-grid-2 { grid-template-columns: 1fr; } }
.workflow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.wf-step { font-family: var(--font-mono); font-size: 13.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; color: var(--text); }
.wf-arrow { color: var(--text-faint); padding: 6px 0 6px 22px; font-family: var(--font-mono); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-mod { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.feat-mod::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.gallery-cap { padding: 10px 12px; }
.gallery-cap b { font-size: 13px; display: block; }
.gallery-cap span { font-size: 12px; color: var(--text-faint); }
.lightbox { position: fixed; inset: 0; background: rgba(6,7,9,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 100%); max-height: 82vh; border-radius: 10px; border: 1px solid var(--border); }
.lightbox-close { position: absolute; top: 22px; right: 26px; color: var(--text); font-family: var(--font-mono); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--surface); cursor: pointer; }

/* =========================================================================
   Admin dashboard — same developer-tool language, not a generic bootstrap admin
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-sidebar { background: var(--bg-soft); border-right: 1px solid var(--border-soft); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) { .admin-sidebar { display: none; } }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); padding: 10px 12px; border-radius: 8px; }
.admin-nav a:hover { background: var(--surface); color: var(--text); }
.admin-nav a.active { background: var(--accent-soft); color: var(--accent); }
.admin-nav .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 16px 12px 6px; }
.admin-main { min-width: 0; }
.admin-topbar { border-bottom: 1px solid var(--border-soft); padding: 16px 28px; display: flex; align-items: center; gap: 16px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.admin-topbar h1 { font-size: 18px; }
.admin-content { padding: 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .lbl { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.stat-card .val { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-top: 6px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-soft); }
.panel-head h2 { font-size: 15px; }
.panel-body { padding: 20px; }

table.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.dt th { text-align: left; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); padding: 10px 20px; border-bottom: 1px solid var(--border-soft); }
table.dt td { padding: 13px 20px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.dt tr:last-child td { border-bottom: none; }
table.dt tr:hover td { background: var(--bg-soft); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-dim); text-transform: capitalize; }
.pill.green { color: #8ce8b0; border-color: rgba(140,232,176,.3); background: rgba(140,232,176,.08); }
.pill.amber { color: #ffd479; border-color: rgba(255,212,121,.3); background: rgba(255,212,121,.08); }
.pill.red { color: var(--accent); border-color: rgba(255,68,51,.3); background: var(--accent-soft); }
.pill.blue { color: #8fc4ff; border-color: rgba(143,196,255,.3); background: rgba(143,196,255,.08); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.form-group .hint { font-size: 12px; color: var(--text-faint); }
.form-control {
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
    color: var(--text); font-size: 13.5px; font-family: var(--font-sans); width: 100%;
}
textarea.form-control { font-family: var(--font-mono); font-size: 13px; min-height: 110px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.checkbox-row input { accent-color: var(--accent); }

.repeater-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.repeater-row .form-control { flex: 1; }
.repeater-add { margin-top: 4px; }

.img-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.img-thumb { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-soft); position: relative; }
.img-thumb img { width: 100%; height: 100px; object-fit: cover; display: block; }
.img-thumb .thumb-meta { padding: 8px; font-size: 11px; color: var(--text-faint); }
.img-thumb .thumb-del { position: absolute; top: 6px; right: 6px; background: rgba(10,12,15,.8); border: 1px solid var(--border); color: var(--accent); border-radius: 6px; padding: 3px 7px; font-size: 11px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: rgba(47,158,82,.12); border-color: rgba(47,158,82,.35); color: #6fd191; }
.alert-error { background: var(--accent-soft); border-color: rgba(255,68,51,.35); color: #ffb3ab; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); background-image: radial-gradient(600px 320px at 20% 10%, var(--accent-soft), transparent 70%); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.login-card .editor-tabs { }
.login-body { padding: 30px 28px 32px; }
.login-body h1 { font-size: 20px; margin-bottom: 6px; }
.login-body p.sub { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; font-family: var(--font-mono); }

/* ---------- star ratings (read-only display) ---------- */
.stars { color: #ffcc66; font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: var(--border); }

/* ---------- star rating input (public review form) ---------- */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 30px; line-height: 1; color: var(--border); cursor: pointer; transition: color .15s ease; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #ffcc66; }

/* ---------- testimonial cards (project page) ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.testi-card .stars { display: block; margin-bottom: 10px; }
.testi-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.testi-card .who { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- full-bleed homepage testimonial slider ---------- */
.testi-slider-band { background: var(--bg-soft); border-block: 1px solid var(--border-soft); overflow: hidden; position: relative; }
.testi-slider { position: relative; min-height: 340px; display: flex; align-items: center; }
.testi-slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
    padding: 64px 24px;
}
.testi-slide.active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.testi-slide-inner { max-width: 780px; text-align: center; margin-inline: auto; }
.testi-slide-inner .stars { font-size: 22px; letter-spacing: 4px; justify-content: center; display: flex; margin-bottom: 22px; }
.testi-slide-inner blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.4; color: var(--text); text-wrap: balance; }
.testi-slide-inner .who { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.testi-slide-inner .who a { color: var(--accent); }

.testi-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 28px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; }
.testi-dot.active { background: var(--accent); }
.testi-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.testi-arrow.prev { left: 18px; } .testi-arrow.next { right: 18px; }
@media (max-width: 640px) { .testi-arrow { display: none; } }

/* ---------- public client-review page ---------- */
.review-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); background-image: radial-gradient(600px 320px at 20% 10%, var(--accent-soft), transparent 70%); }
.review-card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.review-body { padding: 34px 32px 36px; }
.review-body h1 { font-size: 21px; }
.review-body p.sub { color: var(--text-faint); font-size: 13.5px; margin: 8px 0 24px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }