/* ============================================================
   Ikal Creative FIFO - Editorial Design System v3
   Premium Print Studio meets Modern SaaS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* ----- Neutral System ----- */
    --paper:        #fafaf7;
    --paper-2:      #f4f3ee;
    --surface:      #ffffff;
    --surface-2:    #f8f7f3;
    --line:         #e8e6df;
    --line-2:       #d8d5cb;
    --line-soft:    #efede6;

    /* ----- Ink (Text) ----- */
    --ink:          #0a1733;
    --ink-2:        #1a2620;
    --ink-3:        #44524c;
    --ink-mute:     #6b7570;
    --ink-soft:     #8a938e;

    /* ----- Brand: Royal Blue (iKaL Creative) ----- */
    --brand-50:     #eff6ff;
    --brand-100:    #dbeafe;
    --brand-200:    #bfdbfe;
    --brand:        #2563eb;
    --brand-dark:   #1d4ed8;
    --brand-deep:   #1e3a8a;

    /* ----- Accent: Print Gold ----- */
    --gold-50:      #fbf6e7;
    --gold-100:     #f4ebc9;
    --gold:         #b88419;
    --gold-dark:    #8d6311;
    --copper:       #c2410c;

    /* ----- Status ----- */
    --green:        #16a34a;
    --green-soft:   #dcfce7;
    --amber:        #b45309;
    --amber-soft:   #fef3c7;
    --red:          #b91c1c;
    --red-soft:     #fee2e2;
    --blue:         #1e40af;
    --blue-soft:    #dbeafe;

    /* ----- Dark surfaces ----- */
    --night:        #0a0f0d;
    --night-2:      #0f1714;
    --night-3:      #16201c;

    /* ----- Effects ----- */
    --shadow-xs:    0 1px 2px rgba(12, 20, 17, .04);
    --shadow-sm:    0 2px 8px rgba(12, 20, 17, .05), 0 1px 2px rgba(12, 20, 17, .04);
    --shadow-md:    0 8px 24px rgba(12, 20, 17, .08), 0 2px 4px rgba(12, 20, 17, .04);
    --shadow-lg:    0 24px 48px rgba(12, 20, 17, .14), 0 4px 8px rgba(12, 20, 17, .06);
    --shadow-glow:  0 14px 32px rgba(10, 110, 88, .22);
    --ring:         0 0 0 4px rgba(37, 99, 235, .14);

    --r-xs: 6px;
    --r-sm: 10px;
    --r:    14px;
    --r-lg: 22px;
    --r-xl: 28px;

    --easing: cubic-bezier(.22, 1, .36, 1);
    --t: 220ms var(--easing);
    --t-slow: 480ms var(--easing);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    background: var(--paper);
    background-image:
        radial-gradient(900px 500px at 6% -10%, rgba(37, 99, 235, .08), transparent 65%),
        radial-gradient(800px 420px at 102% 4%, rgba(184, 132, 25, .06), transparent 70%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01';
}

/* Subtle paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: .55;
    mix-blend-mode: multiply;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--t);
}

a:hover { color: var(--brand-deep); }

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

h1, h2, h3, h4 {
    font-family: 'Fraunces', 'Inter', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-feature-settings: 'ss01', 'ss03';
}

h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
h2 { font-size: 26px; line-height: 1.18; }
h3 { font-size: 18px; line-height: 1.3; }

::selection { background: var(--brand-100); color: var(--brand-deep); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* ============================================================
   Topbar — sticky editorial header
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 44px;
    background: rgba(250, 250, 247, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    min-width: 0;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(10, 110, 88, .26),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    overflow: hidden;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 7px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
}

.brand > span:last-child { display: grid; line-height: 1.15; }

.brand strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.brand small {
    color: var(--ink-mute);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .02em;
}

.muted, .footer p, .footer span { color: var(--ink-mute); }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav a:not(.button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ink-3);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: -0.005em;
    transition: color var(--t), background var(--t);
}

.nav a:not(.button) svg {
    width: 15px;
    height: 15px;
    opacity: .75;
    transition: opacity var(--t);
}

.nav a:not(.button):hover {
    color: var(--ink);
    background: var(--surface-2);
}

.nav a.active {
    color: var(--brand-deep);
    background: var(--brand-50);
}

.nav a.active svg { opacity: 1; }

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 12.5px;
    box-shadow: var(--shadow-xs);
}

.user-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .55; }
}

.live-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.live-clock::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: var(--copper);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, .18);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    color: var(--brand-deep);
    font-weight: 600;
    font-size: 12.5px;
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-xs);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

/* ============================================================
   Container
   ============================================================ */
.container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 36px 0 80px;
}

/* Reveal-on-scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   Editorial Hero (Bento Grid)
   ============================================================ */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    margin-bottom: 14px;
}

.hero-main {
    position: relative;
    padding: 56px 48px 48px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(1000px 600px at 90% -20%, rgba(184, 132, 25, .14), transparent 60%),
        radial-gradient(800px 600px at -10% 110%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(160deg, #0a1733 0%, #0f2247 50%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 56px);
    pointer-events: none;
}

.hero-main::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(184, 132, 25, .25), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(135deg, #5eead4, #fbbf24);
    box-shadow: 0 0 12px rgba(94, 234, 212, .8);
}

.hero-main h1 {
    margin: 22px 0 18px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #fff;
}

.hero-main h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(120deg, #fde68a 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-main > p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .72);
    font-size: 16.5px;
    max-width: 560px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-features div {
    display: grid;
    gap: 4px;
}

.hero-features dt {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-features dt em {
    font-style: normal;
    color: #fbbf24;
}

.hero-features dd {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Hero side panel */
.hero-aside {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}

.console-card {
    position: relative;
    padding: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.console-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-200), transparent);
}

.console-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.console-top span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #fb7185;
}
.console-top span:nth-child(2) { background: #fbbf24; }
.console-top span:nth-child(3) { background: #34d399; }

.console-top strong {
    margin-left: 8px;
    color: var(--ink-2);
    font-weight: 600;
    text-transform: uppercase;
}

.console-top em {
    margin-left: auto;
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.console-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--night);
}

.console-hero img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.console-meter {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: conic-gradient(var(--brand) 0 70%, rgba(255, 255, 255, .2) 70% 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.console-meter::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 999px;
    background: rgba(11, 18, 17, .94);
    backdrop-filter: blur(4px);
}

.console-meter span,
.console-meter strong {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.console-meter span {
    font-size: 10px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.console-meter strong {
    margin-top: 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 30px;
    font-variant-numeric: tabular-nums;
}

.console-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper-2);
    overflow: hidden;
}

.console-stats div {
    padding: 14px 12px;
    text-align: left;
    border-right: 1px solid var(--line);
    background: var(--surface);
    transition: background var(--t);
}

.console-stats div:last-child { border-right: none; }
.console-stats div:hover { background: var(--brand-50); }

.console-stats span {
    display: block;
    color: var(--ink-mute);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.console-stats strong {
    display: block;
    margin-top: 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.queue-card {
    padding: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.queue-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 100% 0%, rgba(37, 99, 235, .25), transparent 70%);
    pointer-events: none;
}

.queue-card .panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .65);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
    z-index: 1;
}

.queue-card .panel-title em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5eead4;
    font-style: normal;
}

.queue-card .panel-title em::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #5eead4;
    box-shadow: 0 0 8px #5eead4;
    animation: pulse 1.6s ease-in-out infinite;
}

.queue-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    border-radius: var(--r-sm);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: all var(--t);
    position: relative;
    z-index: 1;
}

.queue-row:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(94, 234, 212, .25);
    transform: translateX(2px);
}

.queue-row > span:nth-child(2) {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.queue-row strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: #fff;
    letter-spacing: -0.01em;
}

.queue-row small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
}

.queue-row em {
    font-style: normal;
    color: rgba(255, 255, 255, .7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.queue-empty {
    margin-top: 8px;
    padding: 24px 16px;
    text-align: center;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: var(--r-sm);
}

/* ============================================================
   Page Hero (sub pages)
   ============================================================ */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 32px 36px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(800px 320px at 100% 0%, rgba(10, 110, 88, .07), transparent 70%),
        radial-gradient(600px 320px at 0% 100%, rgba(184, 132, 25, .05), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--paper));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--brand-50), transparent);
    pointer-events: none;
    opacity: .8;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
    margin: 4px 0 6px;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 0;
    color: var(--ink-3);
    max-width: 620px;
    font-size: 14.5px;
}

/* ============================================================
   Eyebrow
   ============================================================ */
.eyebrow {
    margin: 0;
    color: var(--brand-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .8;
}

.hero-main .eyebrow,
.workflow-board .eyebrow,
.focus-board .eyebrow {
    color: #fbbf24;
}

/* ============================================================
   Trust Row (in hero)
   ============================================================ */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.trust-row span::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 99px;
    background: var(--brand);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   Metric Band (4-up cards)
   ============================================================ */
.metric-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.metric-band article {
    position: relative;
    padding: 26px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    overflow: hidden;
}

.metric-band article:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.metric-band article::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--brand-50), transparent);
    transition: transform var(--t-slow);
    opacity: .6;
}

.metric-band article:hover::after {
    transform: scale(1.4);
}

.metric-band span {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
}

.metric-band h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.metric-band p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    margin-top: 56px;
}

.section-heading {
    margin: 56px 0 22px;
    max-width: 720px;
}

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.section-heading h1,
.section-heading h2 {
    margin: 8px 0 6px;
    font-weight: 500;
}

.section-heading h2 { font-size: 30px; }

.section-heading p {
    margin: 0;
    color: var(--ink-3);
    font-size: 15px;
}

/* ============================================================
   Card Base
   ============================================================ */
.card,
.form-card,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.card,
.form-card,
.empty-state {
    padding: 28px;
}

.card h2,
.form-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.card h2 svg,
.form-card h2 svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
    opacity: .9;
}

/* ============================================================
   Product Showcase
   ============================================================ */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.product-tile {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: all var(--t);
    overflow: hidden;
}

.product-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, .25));
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-tile:hover::before {
    opacity: 1;
}

.product-tile h3,
.product-tile p {
    margin: 0;
}

.product-tile h3 {
    font-size: 17px;
    font-weight: 600;
}

.product-tile p {
    margin-top: 6px;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
}

.product-tile strong {
    grid-column: 2;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--brand-deep);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.product-ribbon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 8px 16px rgba(37, 99, 235, .25),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ============================================================
   Workflow Board
   ============================================================ */
.workflow-board {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    align-items: center;
    padding: 44px;
    border-radius: var(--r-xl);
    color: #fff;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(184, 132, 25, .18), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, .35), transparent 70%),
        linear-gradient(160deg, #0a1733, #0f2247 60%, #1e40af);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.workflow-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px);
    pointer-events: none;
}

.workflow-board > div { position: relative; z-index: 1; }

.workflow-board h2 {
    margin: 14px 0 8px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.workflow-board p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    max-width: 460px;
    font-size: 14.5px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.workflow-steps div {
    padding: 18px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all var(--t);
}

.workflow-steps div:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(94, 234, 212, .3);
    transform: translateY(-2px);
}

.workflow-steps span {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    letter-spacing: -0.01em;
}

.workflow-steps small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.workflow-steps i {
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-200), #fbbf24);
    opacity: .85;
}

/* ============================================================
   Buttons
   ============================================================ */
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    user-select: none;
}

.button svg,
button svg {
    width: 15px;
    height: 15px;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
}

.button:active,
button:active {
    transform: translateY(0);
}

.button.primary,
button.primary {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 8px 16px rgba(10, 110, 88, .22),
        inset 0 1px 0 rgba(255, 255, 255, .15);
}

.button.primary:hover,
button.primary:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 14px 24px rgba(10, 110, 88, .3),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.button.ghost,
button.ghost {
    background: var(--surface);
    color: var(--ink-2);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

.button.ghost:hover,
button.ghost:hover {
    border-color: var(--brand-200);
    color: var(--brand-deep);
    background: var(--brand-50);
}

.hero-main .button.ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.hero-main .button.ghost:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.button.small,
button.small {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12.5px;
}

.button.full,
button.full {
    width: 100%;
}

button[disabled],
.button[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   Auth / Form
   ============================================================ */
.auth-wrap {
    display: grid;
    place-items: center;
    min-height: 76vh;
    padding: 24px 0;
}

.auth-wrap .form-card {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.auth-wrap .form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
    background-size: 200% 100%;
    animation: shimmer 6s linear infinite;
}

.form-card {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 520px;
}

.form-title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 6px;
}

.form-title > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(10, 110, 88, .22),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.form-title h1,
.form-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.form-title p {
    margin: 4px 0 0;
    color: var(--ink-3);
    font-size: 13.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.span-2 { max-width: none; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.005em;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-soft);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--line-2);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2344524c' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

.upload-zone {
    position: relative;
    padding: 16px;
    border: 1.5px dashed var(--line-2);
    border-radius: var(--r);
    background: var(--paper-2);
    transition: all var(--t);
}

.upload-zone:hover {
    border-color: var(--brand);
    background: var(--brand-50);
}

.upload-zone input[type="file"] {
    border: none;
    padding: 8px 0 0;
    background: transparent;
}

.upload-zone input[type="file"]:focus {
    box-shadow: none;
}

textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.55;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.file-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--ink-mute);
    font-size: 12px;
    font-weight: 500;
}

.file-note::before {
    content: "📎";
    font-size: 12px;
}

.file-note.has-file {
    color: var(--brand-deep);
}

.estimate-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px solid var(--brand-100);
    transition: all var(--t);
}

.estimate-box.highlight {
    background: linear-gradient(135deg, var(--brand-100), var(--gold-100));
    border-color: var(--gold);
    transform: scale(1.01);
}

.estimate-box span {
    color: var(--ink-3);
    font-weight: 500;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.estimate-box strong {
    color: var(--brand-deep);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ============================================================
   Stats
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-grid.compact {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.stat-card,
.stat-grid.compact > div {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t);
}

.stat-card::before,
.stat-grid.compact > div::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--gold));
    border-radius: 0 99px 99px 0;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--brand-50), transparent);
    pointer-events: none;
    opacity: .8;
}

.stat-card:hover,
.stat-grid.compact > div:hover {
    transform: translateY(-2px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-sm);
}

.stat-card span,
.stat-grid.compact span {
    display: block;
    color: var(--ink-mute);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
    z-index: 1;
}

.stat-card strong,
.stat-grid.compact strong {
    display: block;
    margin: 10px 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stat-card em {
    display: block;
    margin-top: 6px;
    color: var(--ink-mute);
    font-style: normal;
    font-size: 12.5px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Focus Board
   ============================================================ */
.focus-board {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 4px 0 28px;
    padding: 30px 36px;
    border-radius: var(--r-xl);
    color: #fff;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(184, 132, 25, .18), transparent 70%),
        radial-gradient(500px 320px at 0% 100%, rgba(37, 99, 235, .35), transparent 70%),
        linear-gradient(160deg, #0a1733, #0f2247 60%, #1e40af);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.focus-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 44px);
    pointer-events: none;
}

.focus-board > * { position: relative; z-index: 1; }

.focus-board h2 {
    margin: 8px 0 6px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.18;
}

.focus-board p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    max-width: 620px;
}

/* ============================================================
   Kanban
   ============================================================ */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 12px;
    margin: 24px 0 28px;
}

.kanban-lane {
    min-height: 240px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    transition: border-color var(--t);
}

.kanban-lane:hover { border-color: var(--brand-200); }

.kanban-lane header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.kanban-lane header span {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.kanban-lane header strong {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.kanban-card {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    transition: all var(--t);
}

.kanban-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.kanban-card strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.kanban-card span,
.kanban-card small,
.lane-empty {
    color: var(--ink-mute);
    font-size: 12px;
}

.lane-empty {
    margin-top: 4px;
    padding: 20px 8px;
    text-align: center;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .5);
    border: 1px dashed var(--line);
}

/* ============================================================
   Progress
   ============================================================ */
.progress-card {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.progress-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.progress-head h2 {
    margin: 6px 0 0;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.progress-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    font-weight: 600;
    font-size: 12px;
}

.progress-line,
.mini-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    position: relative;
}

.progress-line i,
.mini-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    transition: width .8s var(--easing);
    position: relative;
    overflow: hidden;
}

.progress-line i::after,
.mini-progress i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    animation: slide-shine 2s ease-in-out infinite;
}

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

@keyframes slide-shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.mini-progress {
    width: 130px;
    height: 5px;
    margin-top: 8px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 22px;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.stepper div {
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--ink-mute);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stepper span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    transition: all var(--t);
}

.stepper .done span,
.stepper .active span {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.stepper .active {
    color: var(--brand-deep);
    font-weight: 700;
}

.stepper .active span {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
    100% { box-shadow: 0 0 0 14px rgba(10, 110, 88, 0); }
}

.stepper .done span::after,
.stepper .active span::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #fff;
}

.stepper strong {
    font-weight: 600;
}

/* ============================================================
   Reports
   ============================================================ */
.report-bar {
    position: relative;
    overflow: hidden;
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 16px 18px !important;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: all var(--t);
}

.report-bar:hover {
    border-color: var(--brand);
    transform: translateX(2px);
}

.report-bar span {
    font-weight: 600;
    color: var(--ink);
    font-size: 13.5px;
}

.report-bar strong {
    color: var(--brand-deep);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.report-bar i {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transition: width 1.2s var(--easing);
}

/* ============================================================
   Toolbar / Tables
   ============================================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 36px 0 16px;
}

.toolbar h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.toolbar h2 svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    opacity: .9;
}

.actions, .row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-tools {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.search-box {
    width: min(360px, 100%);
}

.search-box input {
    padding-left: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2344524c' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.segmented button {
    min-height: 30px;
    padding: 6px 14px;
    color: var(--ink-mute);
    background: transparent;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    box-shadow: none;
}

.segmented button:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .8);
    transform: none;
}

.segmented button.active {
    color: var(--brand-deep);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.table-counter {
    color: var(--ink-mute);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    background: var(--paper-2);
    border-radius: 999px;
    border: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.table-wrap > table {
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

th,
td {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

tbody tr {
    transition: background var(--t);
}

tbody tr:hover {
    background: var(--brand-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

th {
    color: var(--ink-mute);
    background: var(--paper-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
}

td strong {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: -0.01em;
}

.table-note {
    display: block;
    margin-top: 4px;
    color: var(--ink-mute);
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.005em;
}

.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: currentColor;
}

.badge.success { color: var(--green); background: var(--green-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.danger  { color: var(--red);   background: var(--red-soft); }
.badge.neutral { color: var(--ink-3); background: var(--paper-2); }

.queue-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

tbody tr:first-of-type .queue-number {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 50%, var(--gold-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(10, 110, 88, .3);
}

/* ============================================================
   Detail Page
   ============================================================ */
.detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
    padding: 32px 36px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(700px 280px at 100% 0%, var(--brand-50), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--paper));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.detail-head h1 {
    margin: 6px 0 6px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.copy-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 5px 10px 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-mute);
    border: 1px solid var(--line);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--t);
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: none;
    min-height: 28px;
}

.copy-code::before {
    content: "⎘";
    font-size: 13px;
    margin-right: 4px;
}

.copy-code:hover {
    background: var(--brand-50);
    color: var(--brand-deep);
    border-color: var(--brand-200);
    transform: none;
}

.detail-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 14px;
}

.detail-layout,
.report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.info-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px 18px;
    margin: 0 0 18px;
}

.info-list dt {
    color: var(--ink-mute);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-top: 2px;
}

.info-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
    display: grid;
    gap: 22px;
    margin: 0;
    padding-left: 0;
    list-style: none;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--gold) 70%, var(--line));
    opacity: .35;
}

.timeline li {
    position: relative;
    padding-left: 32px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--brand);
    box-shadow: 0 0 0 3px var(--brand-50);
}

.timeline li:last-child::before {
    background: var(--brand);
}

.timeline strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.timeline span {
    display: block;
    margin-top: 2px;
    color: var(--ink-mute);
    font-size: 12px;
}

.timeline p {
    margin: 6px 0 0;
    padding: 10px 14px;
    background: var(--paper-2);
    border-left: 2px solid var(--brand);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
    color: var(--ink-2);
    font-size: 13.5px;
}

.stack-list {
    display: grid;
    gap: 10px;
}

.stack-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    position: relative;
    margin-bottom: 16px;
    padding: 14px 18px 14px 50px;
    border-radius: var(--r);
    font-weight: 500;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    animation: slideIn .4s var(--easing);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.alert::before {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.alert.success {
    background: linear-gradient(135deg, #ecfdf5, var(--green-soft));
    color: #064e3b;
    border: 1px solid #a7f3d0;
}

.alert.success::before {
    content: "✓";
    background: var(--green);
}

.alert.danger {
    background: linear-gradient(135deg, #fef2f2, var(--red-soft));
    color: var(--red);
    border: 1px solid #fecaca;
}

.alert.danger::before {
    content: "!";
    background: var(--red);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state h3 {
    margin: 16px 0 8px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 14px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    background: var(--brand-50);
    color: var(--brand-dark);
}

.empty-icon svg {
    width: 26px;
    height: 26px;
}

.center { text-align: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    padding: 48px 44px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-brand p {
    max-width: 320px;
    margin: 18px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.footer h4 {
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mute);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer li,
.footer a {
    color: var(--ink-2);
    font-size: 13.5px;
    transition: color var(--t);
}

.footer a:hover {
    color: var(--brand-deep);
}

.footer-base {
    max-width: 1240px;
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink-mute);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-aside {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .workflow-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .topbar {
        padding: 12px 18px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav.open {
        display: flex;
    }

    .nav a:not(.button) {
        justify-content: flex-start;
    }

    .live-clock {
        display: none;
    }

    .hero-main {
        padding: 36px 28px;
    }

    .hero-main h1 {
        font-size: 38px;
    }

    .hero-aside {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .detail-layout,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .metric-band,
    .product-showcase,
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .topbar,
    .footer,
    .detail-head,
    .focus-board {
        align-items: flex-start;
        flex-direction: column;
    }

    .container {
        width: min(100% - 24px, 1240px);
        padding-top: 18px;
    }

    .hero-main {
        padding: 28px 22px;
    }

    .hero-main h1 {
        font-size: 32px;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .section-heading.split,
    .progress-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-band,
    .product-showcase,
    .kanban-board,
    .workflow-steps,
    .grid-2,
    .stat-grid.compact,
    .stepper,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stepper::before {
        display: none;
    }

    .table-tools {
        align-items: stretch;
    }

    .segmented {
        width: 100%;
    }

    .segmented button {
        flex: 1;
    }

    .info-list {
        grid-template-columns: 1fr;
        gap: 4px 16px;
    }

    .info-list dt {
        margin-top: 12px;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .topbar,
    .footer,
    .button,
    button,
    .table-tools,
    .live-clock,
    .copy-code {
        display: none !important;
    }

    body { background: #fff; }
    body::before { display: none; }

    .container { width: 100%; }

    .hero-main,
    .focus-board,
    .workflow-board {
        background: #fff !important;
        color: var(--ink) !important;
        border: 1px solid var(--line);
    }

    .hero-main h1,
    .hero-main p,
    .focus-board h2,
    .focus-board p,
    .workflow-board h2,
    .workflow-board p {
        color: var(--ink) !important;
    }
}


/* ============================================================
   CREATIVE LAYER v4 — Print Studio Signature Elements
   ============================================================ */

/* ---------- CMYK Color Bar (print industry signature) ---------- */
.cmyk-bar {
    display: flex;
    height: 4px;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 14px;
}

.cmyk-bar i {
    flex: 1;
}

.cmyk-bar i:nth-child(1) { background: #00aeef; }    /* Cyan */
.cmyk-bar i:nth-child(2) { background: #ec008c; }    /* Magenta */
.cmyk-bar i:nth-child(3) { background: #fff200; }    /* Yellow */
.cmyk-bar i:nth-child(4) { background: #1a1a1a; }    /* Key (Black) */

.cmyk-bar.vertical {
    flex-direction: column;
    width: 4px;
    height: auto;
    margin: 0;
    align-self: stretch;
}

/* ---------- Registration / Crop Mark Corners ---------- */
.crop-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    pointer-events: none;
    z-index: 2;
}

.crop-corner::before,
.crop-corner::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .35);
}

.crop-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.crop-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.crop-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.crop-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

/* Registration crosshair */
.reg-mark {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .25);
    pointer-events: none;
    z-index: 2;
}

.reg-mark::before,
.reg-mark::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .25);
}

.reg-mark::before {
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 1px;
    transform: translateX(-50%);
}

.reg-mark::after {
    top: 50%;
    left: -4px;
    right: -4px;
    height: 1px;
    transform: translateY(-50%);
}

.reg-mark.spin { animation: reg-spin 18s linear infinite; }

@keyframes reg-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Halftone dot pattern (decorative bg) ---------- */
.halftone {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.5px);
    background-size: 14px 14px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: 0;
}

/* ---------- Masthead (newspaper-style top stripe) ---------- */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: -8px 0 22px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mute);
}

.masthead strong {
    color: var(--brand-deep);
    font-weight: 700;
}

.masthead em {
    font-style: normal;
    color: var(--copper);
}

.masthead-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 99px;
    background: var(--ink-mute);
    margin: 0 4px;
    vertical-align: middle;
}

/* ---------- Live Ticker Marquee ---------- */
.ticker {
    position: relative;
    margin: 0 0 22px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, var(--surface) 0%, transparent 8%, transparent 92%, var(--surface) 100%),
        var(--paper-2);
    overflow: hidden;
    isolation: isolate;
}

.ticker::before {
    content: "ON AIR";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 4px 9px;
    background: var(--copper);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, .15);
    animation: pulse 1.6s ease-in-out infinite;
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
    padding-left: 90px;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    border-right: 1px solid var(--line-2);
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ticker-item strong {
    color: var(--brand-deep);
    font-weight: 700;
}

.ticker-item em {
    font-style: normal;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ticker-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--copper);
}

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

/* ---------- FIFO Paper Stack Visualizer ---------- */
.fifo-press {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 22px 0 32px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.fifo-press-info {
    padding: 40px 36px;
    background:
        radial-gradient(500px 240px at 0% 100%, var(--brand-50), transparent 70%),
        var(--surface);
    border-right: 1px solid var(--line);
}

.fifo-press-info h2 {
    margin: 14px 0 10px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fifo-press-info p {
    margin: 0 0 22px;
    color: var(--ink-3);
    font-size: 14px;
    max-width: 380px;
}

.fifo-legend {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.fifo-legend > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    color: var(--ink-3);
    font-size: 13px;
}

.fifo-legend > div b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
}

.fifo-legend > div em {
    font-style: normal;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.fifo-press-stage {
    position: relative;
    min-height: 340px;
    background:
        repeating-linear-gradient(90deg, transparent 0 60px, rgba(10, 110, 88, .04) 60px 61px),
        linear-gradient(180deg, var(--paper-2), var(--surface-2));
    overflow: hidden;
}

/* Conveyor belt */
.fifo-press-stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: 12px;
    background:
        repeating-linear-gradient(45deg, var(--ink-2) 0 8px, var(--ink-soft) 8px 16px);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .1);
    animation: belt 1.2s linear infinite;
    background-size: 22px 22px;
}

@keyframes belt {
    from { background-position: 0 0; }
    to { background-position: -22px 0; }
}

.fifo-press-stage::after {
    content: "FIFO →";
    position: absolute;
    left: 18px;
    bottom: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ink-mute);
    text-transform: uppercase;
}

/* Paper sheets stacked */
.paper-stack {
    position: absolute;
    inset: 28px 28px 90px;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    justify-content: flex-end;
    align-items: stretch;
}

.paper-sheet {
    position: relative;
    padding: 12px 16px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff, #fafaf7);
    border: 1px solid var(--line);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 4px 8px rgba(12, 20, 17, .04),
        0 8px 14px rgba(12, 20, 17, .04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    transform-origin: left center;
    animation: sheet-slide 600ms var(--easing) backwards;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform var(--t);
}

.paper-sheet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(180deg, var(--brand), var(--gold));
}

.paper-sheet:hover {
    transform: translateX(4px);
}

.paper-sheet small {
    color: var(--ink-mute);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.paper-sheet em {
    font-style: normal;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.paper-sheet:nth-child(1) { animation-delay: 0ms; }
.paper-sheet:nth-child(2) { animation-delay: 80ms; opacity: .92; }
.paper-sheet:nth-child(3) { animation-delay: 160ms; opacity: .82; }
.paper-sheet:nth-child(4) { animation-delay: 240ms; opacity: .72; }
.paper-sheet:nth-child(5) { animation-delay: 320ms; opacity: .6; }

@keyframes sheet-slide {
    from {
        opacity: 0;
        transform: translateX(40px) rotate(-1deg);
    }
    to {
        transform: translateX(0) rotate(0);
    }
}

/* Mini-stage label arrow */
.stage-label {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stage-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #5eead4;
    box-shadow: 0 0 8px #5eead4;
    animation: pulse 1.4s ease-in-out infinite;
}

/* ---------- Job Ticket (queue rows alt style) ---------- */
.job-ticket {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px 14px 22px;
    margin-top: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: all var(--t);
    color: var(--ink);
}

.job-ticket::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background-image: radial-gradient(circle, var(--line-2) 1.5px, transparent 1.6px);
    background-size: 6px 6px;
    background-repeat: repeat-y;
}

.job-ticket:hover {
    border-color: var(--brand-200);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.job-ticket strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ---------- Hero Marquee Decoration ---------- */
.hero-main .corner-marks {
    position: absolute;
    top: 24px;
    right: 24px;
    bottom: 24px;
    left: 24px;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Stamp / Edition badge ---------- */
.edition-stamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1.5px solid var(--copper);
    color: var(--copper);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 4px;
    transform: rotate(-2deg);
    background: rgba(194, 65, 12, .04);
    box-shadow: 0 0 0 2px rgba(194, 65, 12, .08);
}

.edition-stamp::before {
    content: "★";
    font-size: 11px;
}

/* ---------- Specs Strip (CMYK + bleed info row) ---------- */
.specs-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
    padding: 16px 22px;
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    border-radius: var(--r);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    overflow: hidden;
    position: relative;
}

.specs-strip > * {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.specs-strip strong {
    color: #fff;
    font-weight: 700;
}

.specs-strip .swatch {
    display: inline-flex;
    gap: 0;
    border-radius: 3px;
    overflow: hidden;
}

.specs-strip .swatch i {
    width: 14px;
    height: 14px;
}

.specs-strip .swatch i:nth-child(1) { background: #00aeef; }
.specs-strip .swatch i:nth-child(2) { background: #ec008c; }
.specs-strip .swatch i:nth-child(3) { background: #fff200; }
.specs-strip .swatch i:nth-child(4) { background: #fff; }

/* ---------- Tilt cards (subtle 3D on hover) ---------- */
.tilt {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 200ms var(--easing);
}

/* ---------- Print Press SVG container ---------- */
.press-illust {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    opacity: .12;
    pointer-events: none;
    z-index: 0;
}

.press-illust svg {
    width: 100%;
    height: auto;
}

/* ---------- Hero accent: animated gradient outline ---------- */
.hero-main::before {
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 56px),
        radial-gradient(800px 400px at 50% 100%, rgba(94, 234, 212, .08), transparent 70%);
}

/* ---------- Numbered chapter heading (newspaper style) ---------- */
.chapter-num {
    display: inline-block;
    margin-right: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* ---------- Inline order code chip ---------- */
.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--line);
}

/* ---------- Responsive tweaks for new components ---------- */
@media (max-width: 980px) {
    .fifo-press {
        grid-template-columns: 1fr;
    }

    .fifo-press-info {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 28px 24px;
    }

    .fifo-press-stage {
        min-height: 280px;
    }

    .ticker-item {
        padding: 0 20px;
    }
}

@media (max-width: 680px) {
    .masthead {
        font-size: 10px;
        padding: 10px 14px;
    }

    .specs-strip {
        font-size: 10px;
        gap: 8px;
        padding: 12px 14px;
    }

    .crop-corner,
    .reg-mark {
        display: none;
    }

    .paper-stack {
        inset: 18px 18px 80px;
    }

    .paper-sheet {
        padding: 10px 12px;
        font-size: 10.5px;
    }
}


/* ============================================================
   DASHBOARD MODULE v5 — Pro Analytics Layout
   ============================================================ */

/* ---------- Dashboard Hero (greeting + brief) ---------- */
.dash-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    margin-bottom: 22px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.dash-hero-main {
    position: relative;
    padding: 38px 42px;
    background:
        radial-gradient(700px 360px at 100% 100%, rgba(184, 132, 25, .12), transparent 60%),
        radial-gradient(800px 480px at 0% 0%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(150deg, #0a1733 0%, #0f2247 50%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
}

.dash-hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 48px);
    pointer-events: none;
}

.dash-hero-main > * { position: relative; z-index: 1; }

.dash-greet {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.dash-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand) 0%, var(--gold-dark) 100%);
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12),
        0 8px 18px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.dash-greet h1 {
    margin: 0;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 30px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.dash-greet p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .65);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .04em;
}

.dash-greet p strong {
    color: #5eead4;
    font-weight: 600;
}

.dash-tagline {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .75);
    font-size: 14.5px;
    max-width: 460px;
}

.dash-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Right brief panel */
.dash-hero-aside {
    padding: 30px 32px;
    background:
        radial-gradient(500px 240px at 100% 0%, var(--gold-50), transparent 70%),
        var(--surface);
    border-left: 1px solid var(--line);
    display: grid;
    align-content: space-between;
    gap: 18px;
}

.dash-brief-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.dash-brief-title em {
    font-style: normal;
    color: var(--copper);
    font-weight: 600;
}

.dash-brief-title em::before {
    content: "● ";
    color: var(--copper);
    animation: pulse 1.6s ease-in-out infinite;
    display: inline-block;
}

.dash-brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dash-brief-grid > div {
    padding: 14px 16px;
    border-radius: var(--r);
    background: var(--paper-2);
    border: 1px solid var(--line);
    transition: all var(--t);
}

.dash-brief-grid > div:hover {
    border-color: var(--brand-200);
    transform: translateY(-2px);
}

.dash-brief-grid span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dash-brief-grid strong {
    display: block;
    margin-top: 6px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.dash-brief-grid em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-mute);
    font-weight: 500;
}

.dash-brief-grid em.up { color: var(--green); }
.dash-brief-grid em.down { color: var(--red); }

/* ---------- KPI Cards with Sparkline ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.kpi-card {
    position: relative;
    padding: 24px 24px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t);
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.kpi-card[data-tone="warning"]::before {
    background: linear-gradient(90deg, var(--amber), var(--copper));
}

.kpi-card[data-tone="success"]::before {
    background: linear-gradient(90deg, var(--green), var(--brand));
}

.kpi-card[data-tone="info"]::before {
    background: linear-gradient(90deg, var(--blue), var(--brand));
}

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.kpi-head span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.kpi-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-deep);
}

.kpi-icon svg {
    width: 15px;
    height: 15px;
}

.kpi-card[data-tone="warning"] .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.kpi-card[data-tone="success"] .kpi-icon { background: var(--green-soft); color: var(--green); }
.kpi-card[data-tone="info"] .kpi-icon { background: var(--blue-soft); color: var(--blue); }

.kpi-value {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 38px;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}

.kpi-foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.kpi-meta {
    color: var(--ink-mute);
    font-size: 11.5px;
    line-height: 1.4;
}

.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.kpi-delta.up { color: var(--green); background: var(--green-soft); }
.kpi-delta.down { color: var(--red); background: var(--red-soft); }
.kpi-delta.flat { color: var(--ink-mute); background: var(--paper-2); }

.kpi-delta::before {
    font-size: 10px;
    line-height: 1;
}

.kpi-delta.up::before { content: "▲"; }
.kpi-delta.down::before { content: "▼"; }
.kpi-delta.flat::before { content: "—"; font-size: 9px; }

/* Sparkline bars */
.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    width: 70px;
}

.sparkline i {
    flex: 1;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-200) 100%);
    opacity: .85;
    transition: transform var(--t), opacity var(--t);
}

.sparkline i:last-child {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-100) 100%);
    opacity: 1;
}

.kpi-card:hover .sparkline i {
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* ---------- Dashboard Grid (2 col) ---------- */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 24px;
    align-items: start;
}

.dash-panel {
    position: relative;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dash-panel-head h2 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-panel-head h2 svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
    opacity: .9;
}

.dash-panel-head .meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---------- Workload Donut ---------- */
.workload-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
}

.workload-donut {
    --total: 0;
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--line) 0 100%);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.workload-donut::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.workload-donut > div {
    position: relative;
    text-align: center;
    z-index: 1;
}

.workload-donut > div span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.workload-donut > div strong {
    display: block;
    margin-top: 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 38px;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.workload-donut > div em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 10.5px;
    color: var(--ink-mute);
    font-weight: 500;
}

.workload-legend {
    display: grid;
    gap: 8px;
}

.workload-legend > div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background var(--t);
    font-size: 13px;
}

.workload-legend > div:hover {
    background: var(--paper-2);
}

.workload-legend b {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--brand);
}

.workload-legend span {
    color: var(--ink-2);
    font-weight: 500;
}

.workload-legend strong {
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.workload-empty {
    text-align: center;
    color: var(--ink-mute);
    padding: 28px 0;
}

/* ---------- Activity Feed ---------- */
.activity-feed {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-feed li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.activity-feed li:last-child { border-bottom: none; }

.activity-feed .actor {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--paper-2);
    color: var(--ink-2);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.activity-feed .actor[data-role="admin"] {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 8px rgba(10, 110, 88, .22);
}

.activity-feed .body {
    min-width: 0;
}

.activity-feed .body p {
    margin: 0;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.5;
}

.activity-feed .body p strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink);
    background: var(--paper-2);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
    margin-right: 4px;
    letter-spacing: -0.01em;
}

.activity-feed .body small {
    display: block;
    margin-top: 4px;
    color: var(--ink-mute);
    font-size: 11.5px;
}

.activity-feed time {
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    white-space: nowrap;
    padding-top: 2px;
}

/* ---------- Deadline / Schedule list ---------- */
.deadline-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.deadline-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all var(--t);
}

.deadline-row:hover {
    border-color: var(--brand-200);
    transform: translateX(2px);
}

.deadline-date {
    display: grid;
    place-items: center;
    width: 50px;
    padding: 6px 0;
    border-radius: var(--r-sm);
    background: var(--paper-2);
    border: 1px solid var(--line);
    text-align: center;
    line-height: 1;
}

.deadline-date span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--ink-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.deadline-date strong {
    display: block;
    margin-top: 4px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.deadline-row[data-urgent="true"] .deadline-date {
    background: var(--red-soft);
    border-color: rgba(185, 28, 28, .25);
}

.deadline-row[data-urgent="true"] .deadline-date strong { color: var(--red); }

.deadline-info p {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.deadline-info small {
    display: block;
    margin-top: 4px;
    color: var(--ink-mute);
    font-size: 12px;
}

.deadline-row .status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* ---------- Customer order highlight card ---------- */
.featured-order {
    position: relative;
    padding: 26px 28px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(500px 220px at 100% 0%, var(--gold-50), transparent 60%),
        radial-gradient(500px 220px at 0% 100%, var(--brand-50), transparent 60%),
        linear-gradient(180deg, var(--surface), var(--paper));
    border: 1px solid var(--line);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.featured-order::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--copper));
}

.featured-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-order-head h2 {
    margin: 6px 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-order-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
}

.featured-order-progress {
    margin-top: 14px;
}

.featured-order-progress span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.featured-order-progress strong {
    color: var(--brand-deep);
    font-weight: 700;
}

/* ---------- Pro Tip / Help block ---------- */
.tip-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px solid var(--brand-100);
    margin-top: 18px;
}

.tip-card-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--gold-dark);
    border: 1px solid var(--gold-100);
    font-size: 18px;
}

.tip-card h4 {
    margin: 0 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.tip-card p {
    margin: 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .dash-hero,
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-hero-aside {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .dash-hero-main { padding: 28px 22px; }
    .dash-hero-aside { padding: 22px; }
    .dash-greet h1 { font-size: 24px; }
    .dash-panel { padding: 22px 20px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .workload-wrap { grid-template-columns: 1fr; justify-items: center; }
}


/* ============================================================
   PRODUCTS & REPORTS MODULE v6
   ============================================================ */

/* ---------- Product Gallery ---------- */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.product-card-pro {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all var(--t);
    overflow: hidden;
    isolation: isolate;
}

.product-card-pro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--copper));
    opacity: .9;
}

.product-card-pro::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--brand-50), transparent 70%);
    pointer-events: none;
    transition: transform var(--t-slow);
    opacity: .8;
}

.product-card-pro:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.product-card-pro:hover::after {
    transform: scale(1.5) rotate(15deg);
}

.product-card-pro[data-active="0"] {
    opacity: .68;
    background: var(--paper-2);
}

.product-card-pro[data-active="0"]::before {
    background: var(--line-2);
}

.product-pro-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.product-pro-symbol {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.02em;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 8px 18px rgba(10, 110, 88, .26),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.product-pro-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-pro-status[data-active="1"] {
    background: var(--green-soft);
    color: var(--green);
}

.product-pro-status[data-active="0"] {
    background: var(--paper-2);
    color: var(--ink-mute);
}

.product-pro-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: currentColor;
    animation: pulse 2.4s ease-in-out infinite;
}

.product-card-pro h3 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.product-card-pro p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
    min-height: 2.8em;
}

.product-pro-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0;
    padding: 12px 16px;
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px dashed var(--brand-200);
}

.product-pro-price small {
    font-family: 'JetBrains Mono', monospace;
    color: var(--ink-mute);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-right: auto;
}

.product-pro-price strong {
    color: var(--brand-deep);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.product-pro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 0;
    border-top: 1px dashed var(--line);
}

.product-pro-stats div {
    display: grid;
    gap: 2px;
}

.product-pro-stats span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-pro-stats strong {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.product-pro-stats em {
    font-style: normal;
    font-size: 12px;
    color: var(--brand-dark);
    font-weight: 600;
}

.product-pro-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.product-pro-actions form {
    margin: 0;
    display: inline;
}

/* Pin/Best seller ribbon */
.product-pro-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    transform: rotate(35deg);
    padding: 4px 36px;
    background: linear-gradient(135deg, var(--copper), #ea580c);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(194, 65, 12, .3);
}

/* ---------- Form layout for products ---------- */
.product-edit-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}

@media (max-width: 980px) {
    .product-edit-layout { grid-template-columns: 1fr; }
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.products-toolbar h2 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-toolbar h2 svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.product-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.product-counter b {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: currentColor;
}

/* ---------- Reports ---------- */
.report-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--ink-2);
    box-shadow: var(--shadow-xs);
}

.report-period::before {
    content: "📊";
    font-size: 13px;
}

.report-period strong {
    color: var(--brand-deep);
    font-weight: 700;
}

/* Wide chart card */
.chart-card {
    position: relative;
    padding: 28px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}

.chart-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.chart-head h2 {
    margin: 0 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.chart-head p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 13px;
}

.chart-summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.chart-summary > div {
    padding: 10px 14px;
    border-radius: var(--r);
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.chart-summary span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.chart-summary strong {
    display: block;
    margin-top: 2px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Bar chart (vertical) */
.bar-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    height: 220px;
    padding: 0 4px 30px;
    border-bottom: 1px solid var(--line);
}

.bar-chart-grid {
    position: absolute;
    inset: 0 0 30px 0;
    pointer-events: none;
}

.bar-chart-grid::before,
.bar-chart-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-soft);
}

.bar-chart-grid::before { top: 50%; }
.bar-chart-grid::after { top: 25%; }

.bar-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bar-col-bar {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    position: relative;
    transition: transform var(--t), filter var(--t);
    overflow: hidden;
    min-height: 4px;
}

.bar-col-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 50%);
    pointer-events: none;
}

.bar-col-bar.active {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    box-shadow: 0 8px 16px rgba(184, 132, 25, .25);
}

.bar-col:hover .bar-col-bar {
    transform: scaleY(1.04);
    transform-origin: bottom;
    filter: brightness(1.08);
}

.bar-col-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity var(--t);
    white-space: nowrap;
}

.bar-col:hover .bar-col-value,
.bar-col-bar.active + .bar-col-value {
    opacity: 1;
}

.bar-col-label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}

.bar-col-label small {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 9.5px;
    font-weight: 500;
}

.bar-col.today .bar-col-label {
    color: var(--copper);
}

/* Reports grid layout 2-column */
.reports-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: start;
}

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

/* Status distribution as donut */
.status-distribution {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Top product list */
.top-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-row {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all var(--t);
    overflow: hidden;
    isolation: isolate;
}

.top-row::after {
    content: "";
    position: absolute;
    inset: 0 calc(100% - var(--bar-width, 0%)) 0 0;
    background: linear-gradient(90deg, transparent, var(--brand-50));
    pointer-events: none;
    z-index: -1;
    transition: inset var(--t-slow);
}

.top-row:hover {
    border-color: var(--brand);
    transform: translateX(2px);
}

.top-rank {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--paper-2);
    border: 1px solid var(--line);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.top-row:first-child .top-rank,
.top-row[data-rank="1"] .top-rank {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--gold-dark), var(--gold));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(184, 132, 25, .35);
}

.top-row[data-rank="2"] .top-rank {
    background: linear-gradient(140deg, #94a3b8, #64748b);
    color: #fff;
    border-color: transparent;
}

.top-row[data-rank="3"] .top-rank {
    background: linear-gradient(140deg, #ea580c, #9a3412);
    color: #fff;
    border-color: transparent;
}

.top-info p {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.top-info small {
    display: block;
    margin-top: 3px;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.top-meta {
    text-align: right;
}

.top-meta strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.top-meta small {
    display: block;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Status row alt */
.status-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: all var(--t);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.status-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--brand-50) 0%, transparent var(--bar-width, 0%));
    z-index: -1;
}

.status-row:hover {
    border-color: var(--brand);
    transform: translateX(2px);
}

.status-row span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    font-size: 13.5px;
}

.status-row span b {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--brand);
    flex-shrink: 0;
}

.status-row strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.status-row small {
    display: block;
    margin-top: 2px;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

/* Mini pie / donut variant for reports */
.reports-donut-wrap {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
}

@media (max-width: 680px) {
    .reports-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
}

/* Period selector pills */
.period-pills {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.period-pills a {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-mute);
    transition: all var(--t);
}

.period-pills a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .8);
}

.period-pills a.active {
    background: var(--surface);
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}

/* Receipt-style summary card */
.receipt-card {
    position: relative;
    padding: 26px 28px;
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.receipt-card::before,
.receipt-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background-image: radial-gradient(circle at 6px 6px, var(--paper) 6px, transparent 7px);
    background-size: 12px 12px;
    background-repeat: repeat-x;
}

.receipt-card::before { top: -1px; }
.receipt-card::after { bottom: -1px; transform: rotate(180deg); }

.receipt-head {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.receipt-head p {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.receipt-head h2 {
    margin: 6px 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
}

.receipt-line:last-child {
    border-bottom: none;
}

.receipt-line span {
    color: var(--ink-3);
}

.receipt-line strong {
    color: var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.receipt-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Fraunces', serif;
}

.receipt-total span {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.receipt-total strong {
    color: var(--brand-deep);
    font-weight: 600;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

@media print {
    .receipt-card {
        break-inside: avoid;
    }
}


/* ============================================================
   AUTH MODULE v7 — Split-Screen Editorial
   ============================================================ */

.auth-page {
    margin: -36px auto -64px;
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 30px 0;
}

.auth-split {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    isolation: isolate;
    min-height: 600px;
}

/* ---------- Left Panel: Editorial Showcase ---------- */
.auth-aside {
    position: relative;
    padding: 48px 44px;
    background:
        radial-gradient(800px 480px at 100% 100%, rgba(184, 132, 25, .18), transparent 60%),
        radial-gradient(600px 420px at 0% 0%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(150deg, #0a1733 0%, #0f2247 50%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 48px);
    pointer-events: none;
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-aside .cmyk-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    height: 3px;
    margin: 0;
    z-index: 2;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.auth-brand strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.auth-brand small {
    color: rgba(255, 255, 255, .6);
    font-size: 11.5px;
}

.auth-aside-mid h1 {
    margin: 0 0 18px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
}

.auth-aside-mid h1 em {
    font-style: italic;
    background: linear-gradient(120deg, #fde68a 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-aside-mid p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 380px;
}

/* Mini benefits list */
.auth-bullets {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 13.5px;
}

.auth-bullets b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(94, 234, 212, .15);
    color: #5eead4;
    flex-shrink: 0;
}

.auth-bullets b svg {
    width: 13px;
    height: 13px;
}

/* Bottom stat strip */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.auth-stats div {
    display: grid;
    gap: 4px;
}

.auth-stats dt {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.auth-stats dd {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Decorative reg marks on aside */
.auth-aside .reg-mark {
    border-color: rgba(255, 255, 255, .25);
}

.auth-aside .reg-mark::before,
.auth-aside .reg-mark::after {
    background: rgba(255, 255, 255, .25);
}

.auth-corner-accent {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(184, 132, 25, .25), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* ---------- Right Panel: Form ---------- */
.auth-main {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
}

.auth-main-head {
    margin-bottom: 24px;
}

.auth-main-head .eyebrow {
    margin-bottom: 8px;
}

.auth-main-head h2 {
    margin: 0 0 6px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 30px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.auth-main-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form .grid-2 { gap: 12px; }

.auth-input {
    position: relative;
}

.auth-input input {
    padding-left: 42px;
    height: 46px;
}

.auth-input.password input {
    padding-right: 42px;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-mute);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.auth-input:focus-within .auth-input-icon {
    color: var(--brand);
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--ink-mute);
    padding: 4px 8px;
    min-height: auto;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pw-toggle:hover {
    color: var(--brand-deep);
    background: var(--brand-50);
    transform: translateY(-50%);
}

/* Password strength meter */
.pw-strength {
    margin-top: 4px;
}

.pw-strength-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.pw-strength-bar i {
    height: 4px;
    border-radius: 99px;
    background: var(--line);
    transition: background var(--t);
}

.pw-strength[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-strength[data-score="2"] i:nth-child(-n+2) { background: var(--copper); }
.pw-strength[data-score="3"] i:nth-child(-n+3) { background: var(--gold); }
.pw-strength[data-score="4"] i { background: var(--green); }

.pw-strength small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pw-strength[data-score="1"] small { color: var(--red); }
.pw-strength[data-score="2"] small { color: var(--copper); }
.pw-strength[data-score="3"] small { color: var(--gold-dark); }
.pw-strength[data-score="4"] small { color: var(--green); }

/* Demo creds quick-fill */
.auth-demo {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px dashed var(--brand-200);
}

.auth-demo p {
    margin: 0 0 8px;
    color: var(--ink-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-demo p::before {
    content: "🔑";
    font-size: 12px;
}

.auth-demo-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-demo-row button {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-height: 32px;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
}

.auth-demo-row button:hover {
    border-color: var(--brand);
    color: var(--brand-deep);
    background: var(--brand-50);
    transform: translateY(-1px);
}

.auth-demo-row button strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--brand-deep);
    margin-right: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-foot {
    margin-top: 18px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 13px;
}

.auth-foot a {
    font-weight: 600;
    color: var(--brand-deep);
}

@media (max-width: 880px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { padding: 40px 32px; min-height: auto; }
    .auth-main { padding: 36px 32px; }
    .auth-aside-mid h1 { font-size: 28px; }
    .auth-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .auth-stats dt { font-size: 18px; }
}

/* ============================================================
   LOGOUT MODULE — Goodbye Splash
   ============================================================ */
.logout-page {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(800px 480px at 20% 0%, rgba(37, 99, 235, .18), transparent 60%),
        radial-gradient(700px 420px at 100% 100%, rgba(184, 132, 25, .15), transparent 60%),
        var(--paper);
    position: relative;
    overflow: hidden;
}

.logout-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .55;
    mix-blend-mode: multiply;
}

.logout-card {
    position: relative;
    width: min(540px, 100%);
    padding: 48px 44px;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    animation: card-rise .5s var(--easing) backwards;
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.logout-card .cmyk-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    height: 3px;
    margin: 0;
}

.logout-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 28px;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 14px 30px rgba(10, 110, 88, .3),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: icon-pop .6s var(--easing) .2s backwards;
}

.logout-icon svg {
    width: 38px;
    height: 38px;
}

.logout-icon svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-check 1.2s var(--easing) .5s forwards;
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

@keyframes icon-pop {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}

.logout-card h1 {
    margin: 0 0 8px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.02em;
}

.logout-card h1 em {
    font-style: italic;
    background: linear-gradient(120deg, var(--brand) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logout-card > p {
    margin: 0 auto 26px;
    color: var(--ink-3);
    max-width: 380px;
    font-size: 14.5px;
}

.logout-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--ink-2);
}

.logout-meta strong {
    color: var(--brand-deep);
    font-weight: 700;
}

.logout-countdown {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.logout-progress {
    height: 4px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
    margin-bottom: 24px;
}

.logout-progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transform-origin: left center;
    animation: countdown-bar 4s linear forwards;
}

@keyframes countdown-bar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.logout-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.logout-tip {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
    color: var(--ink-mute);
    font-size: 12.5px;
    line-height: 1.6;
}

.logout-tip strong {
    color: var(--brand-deep);
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

.logout-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.logout-confetti i {
    position: absolute;
    width: 8px;
    height: 14px;
    border-radius: 1px;
    opacity: 0;
    animation: confetti-fall 3.5s ease-in forwards;
}

.logout-confetti i:nth-child(1) { left: 10%; background: #00aeef; animation-delay: .1s; }
.logout-confetti i:nth-child(2) { left: 22%; background: #ec008c; animation-delay: .3s; transform: rotate(20deg); }
.logout-confetti i:nth-child(3) { left: 36%; background: #fff200; animation-delay: 0s; transform: rotate(-15deg); }
.logout-confetti i:nth-child(4) { left: 48%; background: var(--brand); animation-delay: .5s; }
.logout-confetti i:nth-child(5) { left: 60%; background: var(--gold); animation-delay: .2s; transform: rotate(35deg); }
.logout-confetti i:nth-child(6) { left: 72%; background: #ec008c; animation-delay: .4s; transform: rotate(-25deg); }
.logout-confetti i:nth-child(7) { left: 84%; background: #00aeef; animation-delay: .15s; }
.logout-confetti i:nth-child(8) { left: 92%; background: var(--copper); animation-delay: .6s; transform: rotate(45deg); }

@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   FAB — Floating Action Button
   ============================================================ */
.fab-wrap {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 60;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.fab-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transform: translateX(20px) scale(.85);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t);
}

.fab-mini svg {
    width: 14px;
    height: 14px;
    color: var(--brand);
}

.fab-wrap.open .fab-mini {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.fab-wrap.open .fab-mini:nth-child(1) { transition-delay: 50ms; }
.fab-wrap.open .fab-mini:nth-child(2) { transition-delay: 100ms; }
.fab-wrap.open .fab-mini:nth-child(3) { transition-delay: 150ms; }

.fab-mini:hover {
    border-color: var(--brand);
    color: var(--brand-deep);
    background: var(--brand-50);
    transform: translateX(0) scale(1.04);
}

.fab {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    border: none;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 14px 30px rgba(37, 99, 235, .35),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: all var(--t);
    padding: 0;
    min-height: 56px;
}

.fab svg {
    width: 22px;
    height: 22px;
    transition: transform var(--t);
}

.fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 18px 36px rgba(10, 110, 88, .4),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.fab-wrap.open .fab svg {
    transform: rotate(135deg);
}

@media (max-width: 680px) {
    .fab-wrap { right: 18px; bottom: 18px; }
}

@media print {
    .fab-wrap { display: none !important; }
}

/* ============================================================
   PRODUCTS Enhancement: Search + View Toggle
   ============================================================ */
.products-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.products-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.products-search {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.products-search input {
    padding-left: 38px;
    height: 38px;
    background: var(--paper-2);
    border-color: var(--line);
}

.products-search input:focus {
    background: var(--surface);
}

.products-search::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2344524c' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z'/></svg>") no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.products-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.view-toggle {
    display: inline-flex;
    padding: 3px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.view-toggle button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: auto;
    padding: 0;
    background: transparent;
    color: var(--ink-mute);
    border-radius: 6px;
    border: none;
    box-shadow: none;
}

.view-toggle button:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .8);
    transform: none;
}

.view-toggle button.active {
    background: var(--surface);
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}

.view-toggle button svg {
    width: 14px;
    height: 14px;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
    color: var(--ink-mute);
    font-size: 13.5px;
}

/* List view */
.product-gallery[data-view="list"] {
    grid-template-columns: 1fr;
}

.product-gallery[data-view="list"] .product-card-pro {
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
}

.product-gallery[data-view="list"] .product-pro-head { display: contents; }
.product-gallery[data-view="list"] .product-pro-head + div { padding-right: 12px; }
.product-gallery[data-view="list"] .product-pro-head + div p { display: none; }
.product-gallery[data-view="list"] .product-pro-price {
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
.product-gallery[data-view="list"] .product-pro-price small { margin-right: 0; }
.product-gallery[data-view="list"] .product-pro-stats {
    display: none;
}
.product-gallery[data-view="list"] .product-pro-actions {
    margin-top: 0;
}
.product-gallery[data-view="list"] .product-card-pro::after,
.product-gallery[data-view="list"] .product-pro-ribbon {
    display: none;
}

@media (max-width: 680px) {
    .product-gallery[data-view="list"] .product-card-pro {
        grid-template-columns: 1fr;
    }
    .product-gallery[data-view="list"] .product-pro-head + div p { display: block; }
}

/* ============================================================
   REPORTS Enhancement: Period Tabs + SVG Line Chart
   ============================================================ */
.period-tabs {
    display: inline-flex;
    padding: 4px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    gap: 2px;
}

.period-tabs button {
    padding: 7px 16px;
    min-height: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-mute);
    background: transparent;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.period-tabs button:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .7);
    transform: none;
}

.period-tabs button.active {
    background: var(--surface);
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}

/* SVG Line Chart */
.line-chart {
    width: 100%;
    height: 240px;
    overflow: visible;
}

.line-chart .grid line {
    stroke: var(--line-soft);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.line-chart .axis text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    fill: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.line-chart .area {
    fill: url(#area-gradient);
    opacity: .35;
}

.line-chart .line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: draw-line 1.6s var(--easing) .2s forwards;
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.line-chart .point {
    fill: #fff;
    stroke: var(--brand);
    stroke-width: 2.5;
    transition: r var(--t);
    cursor: pointer;
}

.line-chart .point.active {
    fill: var(--gold);
    stroke: var(--gold-dark);
}

.line-chart .point:hover {
    r: 7;
}

.line-chart .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    fill: var(--ink-mute);
    font-weight: 600;
}

.line-chart .value-label {
    font-family: 'Fraunces', serif;
    font-size: 11px;
    fill: var(--ink);
    font-weight: 600;
}

/* Stats grid for chart card */
.chart-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
}

.chart-stats > div {
    display: grid;
    gap: 4px;
}

.chart-stats span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.chart-stats strong {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

@media (max-width: 680px) {
    .chart-stats { grid-template-columns: 1fr 1fr; }
}

/* Caps lock indicator */
.caps-warn {
    display: none;
    margin-top: 4px;
    color: var(--copper);
    font-size: 12px;
    font-weight: 600;
}

.caps-warn.show {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideIn .3s ease;
}

.caps-warn::before {
    content: "⚠";
    font-size: 13px;
}


/* ============================================================
   HOMEPAGE v8 — Product-First Showcase
   ============================================================ */

/* Compact welcome strip (replaces big hero) */
.welcome-strip {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 22px;
    padding: 28px 32px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(700px 320px at 100% 100%, rgba(184, 132, 25, .14), transparent 65%),
        radial-gradient(600px 320px at 0% 0%, rgba(37, 99, 235, .35), transparent 65%),
        linear-gradient(150deg, #0a1733 0%, #0f2247 60%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.welcome-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px);
    pointer-events: none;
}

.welcome-strip > * { position: relative; z-index: 1; }

.welcome-strip .cmyk-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    height: 3px;
    margin: 0;
}

.welcome-copy h1 {
    margin: 10px 0 8px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.welcome-copy h1 em {
    font-style: italic;
    background: linear-gradient(120deg, #fde68a 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    max-width: 560px;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r);
    backdrop-filter: blur(8px);
    text-align: center;
}

.welcome-stats > div {
    display: grid;
    gap: 4px;
}

.welcome-stats dt {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.welcome-stats dt em {
    font-style: normal;
    color: #fbbf24;
}

.welcome-stats dd {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 880px) {
    .welcome-strip {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* ---------- Product Showcase Header ---------- */
.show-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 30px 0 18px;
}

.show-head h2 {
    margin: 6px 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.025em;
}

.show-head h2 em {
    font-style: italic;
    color: var(--brand-deep);
}

.show-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 14px;
    max-width: 520px;
}

/* Category filter */
.cat-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-xs);
    align-self: end;
}

.cat-filter button {
    padding: 8px 14px;
    min-height: 34px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--ink-mute);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: none;
}

.cat-filter button:hover {
    color: var(--ink);
    background: var(--paper-2);
    transform: none;
}

.cat-filter button.active {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ---------- Product Showcase Grid (large hero cards) ---------- */
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.show-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all var(--t-slow);
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.show-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 50%, var(--brand) 100%);
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.show-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

.show-card:hover::before {
    opacity: 1;
}

.show-card-visual {
    position: relative;
    aspect-ratio: 6/5;
    background:
        radial-gradient(120% 100% at 50% 100%, var(--paper-2) 0%, var(--surface) 70%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.show-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, .06) 1px, transparent 1.5px);
    background-size: 14px 14px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

.show-card-visual svg {
    position: relative;
    z-index: 1;
    width: 86%;
    height: 86%;
    margin: 7%;
    transition: transform var(--t-slow);
    filter: drop-shadow(0 8px 12px rgba(12, 20, 17, .08));
}

.show-card:hover .show-card-visual svg {
    transform: scale(1.06) rotate(-1deg);
}

/* Decorative corner mark */
.show-card-visual::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 18px;
    height: 18px;
    border-top: 1.5px solid rgba(37, 99, 235, .25);
    border-left: 1.5px solid rgba(37, 99, 235, .25);
    pointer-events: none;
}

.show-card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: var(--shadow-xs);
}

.show-card-tag.best {
    background: linear-gradient(135deg, #fde68a, #b88419);
    color: #3d2705;
    border-color: #b88419;
}

.show-card-body {
    padding: 22px 22px 16px;
}

.show-card-cat {
    margin: 0 0 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.show-card h3 {
    margin: 0 0 8px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.show-card-desc {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
    min-height: 2.8em;
}

.show-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px 22px;
    border-top: 1px dashed var(--line);
}

.show-card-price {
    display: grid;
    line-height: 1.2;
}

.show-card-price small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.show-card-price strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.show-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--t);
}

.show-card-cta svg {
    width: 12px;
    height: 12px;
    transition: transform var(--t);
}

.show-card:hover .show-card-cta {
    background: var(--brand);
    box-shadow: 0 8px 16px rgba(37, 99, 235, .25);
}

.show-card:hover .show-card-cta svg {
    transform: translateX(3px);
}

/* Hidden card (filter) */
.show-card[hidden] { display: none !important; }

.show-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-mute);
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

/* ---------- Compact info section ---------- */
.info-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin: 30px 0 0;
    box-shadow: var(--shadow-xs);
}

.info-band > div {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
}

.info-band > div:last-child { border-right: none; }

.info-band b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
}

.info-band span {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.info-band small {
    color: var(--ink-mute);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 880px) {
    .info-band { grid-template-columns: 1fr 1fr; }
    .info-band > div:nth-child(2) { border-right: none; }
}

@media (max-width: 540px) {
    .info-band { grid-template-columns: 1fr; }
    .info-band > div { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .info-band > div:last-child { border-bottom: none; }
}


/* ============================================================
   HOMEPAGE v9 — Unified Showcase Header
   ============================================================ */
.show-band {
    position: relative;
    margin: 30px 0 18px;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.show-band::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--copper));
    opacity: .85;
}

.show-band-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.show-band-top h2 {
    margin: 6px 0 4px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.show-band-top h2 em {
    font-style: italic;
    color: var(--brand-deep);
}

.show-band-top p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    max-width: 480px;
}

.show-band-search {
    position: relative;
    width: min(280px, 100%);
}

.show-band-search input {
    padding-left: 38px;
    height: 38px;
    background: var(--paper-2);
    border-color: var(--line);
}

.show-band-search input:focus { background: var(--surface); }

.show-band-search::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2344524c' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z'/></svg>") no-repeat center / contain;
    pointer-events: none;
}

.show-band-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.show-band-bottom .cat-filter {
    margin: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: none;
}

.show-band-bottom .cat-filter button {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.show-band-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 6px 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.show-band-counter strong {
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 12px;
}

/* Show real photo on home cards if available */
.show-card-visual.has-photo {
    background: var(--ink);
    aspect-ratio: 6/5;
    overflow: hidden;
}

.show-card-visual.has-photo::before { display: none; }
.show-card-visual.has-photo::after { display: none; }

.show-card-visual.has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
    filter: saturate(105%);
}

.show-card:hover .show-card-visual.has-photo img {
    transform: scale(1.05);
}

@media (max-width: 880px) {
    .show-band-top {
        align-items: stretch;
        flex-direction: column;
    }
    .show-band-search { width: 100%; }
    .show-band-bottom { flex-direction: column; align-items: stretch; }
    .show-band-bottom .cat-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .show-band-counter { text-align: center; }
}

/* ============================================================
   PRODUCT EDIT v9 — Pro Editor Layout
   ============================================================ */
.editor-wrap {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
    margin-bottom: 32px;
}

@media (max-width: 980px) {
    .editor-wrap { grid-template-columns: 1fr; }
}

/* ----- Left: live preview ----- */
.editor-preview {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
}

.editor-preview-card {
    position: relative;
    padding: 22px;
    background:
        radial-gradient(500px 240px at 100% 0%, var(--brand-50), transparent 70%),
        radial-gradient(400px 200px at 0% 100%, var(--gold-50), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.editor-preview-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.editor-preview-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.editor-preview-tag em {
    color: var(--copper);
    font-style: normal;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editor-preview-tag em::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--copper);
    animation: pulse 1.6s ease-in-out infinite;
}

.editor-photo-frame {
    position: relative;
    aspect-ratio: 6/5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 50% 100%, var(--paper-2) 0%, var(--surface) 70%);
    border: 1px solid var(--line);
}

.editor-photo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, .06) 1px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 0;
}

.editor-photo-frame img,
.editor-photo-frame svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.editor-photo-frame img {
    object-fit: cover;
    z-index: 1;
}

.editor-photo-frame svg {
    width: 86%;
    height: 86%;
    margin: 7%;
    z-index: 1;
}

.editor-photo-frame .crop-corner {
    border-color: rgba(37, 99, 235, .35);
    z-index: 2;
}
.editor-photo-frame .crop-corner.tl { top: 12px; left: 12px; }
.editor-photo-frame .crop-corner.tr { top: 12px; right: 12px; }
.editor-photo-frame .crop-corner.bl { bottom: 12px; left: 12px; }
.editor-photo-frame .crop-corner.br { bottom: 12px; right: 12px; }

.editor-preview-body {
    padding-top: 16px;
}

.editor-preview-cat {
    margin: 0 0 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.editor-preview-body h3 {
    margin: 0 0 6px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.editor-preview-body p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.55;
    min-height: 2.8em;
}

.editor-preview-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.editor-preview-foot .price {
    display: grid;
    line-height: 1.2;
}

.editor-preview-foot .price small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.editor-preview-foot .price strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
}

.editor-preview-foot .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.editor-preview-foot .status[data-active="1"] { background: var(--green-soft); color: var(--green); }
.editor-preview-foot .status[data-active="0"] { background: var(--paper-2); color: var(--ink-mute); }
.editor-preview-foot .status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: currentColor;
}

/* Tip beneath preview */
.editor-preview-tip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: var(--r);
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.editor-preview-tip span {
    font-size: 18px;
}

.editor-preview-tip p {
    margin: 0;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
}

.editor-preview-tip strong {
    color: var(--ink);
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

/* ----- Right: Form fieldsets ----- */
.editor-form {
    display: grid;
    gap: 16px;
}

.editor-fieldset {
    position: relative;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}

.editor-fieldset-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.editor-step {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(10, 110, 88, .22);
    flex-shrink: 0;
}

.editor-fieldset-head h3 {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.editor-fieldset-head p {
    margin: 4px 0 0;
    color: var(--ink-mute);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Field with helper hint */
.field-hint {
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.field-counter {
    float: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Price input with prefix */
.input-prefix {
    position: relative;
}

.input-prefix input {
    padding-left: 46px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.input-prefix .prefix {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 38px;
    display: grid;
    place-items: center;
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 13px;
    border-right: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    pointer-events: none;
}

.input-prefix input:focus + .prefix {
    background: var(--brand-50);
    color: var(--brand-deep);
}

/* Price suggestion chips */
.price-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.price-suggest button {
    padding: 6px 12px;
    min-height: 30px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
}

.price-suggest button:hover {
    background: var(--brand-50);
    color: var(--brand-deep);
    border-color: var(--brand-200);
    transform: none;
}

/* Photo dropzone in editor */
.photo-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 6/5;
    border-radius: var(--r-lg);
    border: 2px dashed var(--line-2);
    background:
        repeating-linear-gradient(45deg, var(--paper-2) 0 12px, var(--surface) 12px 24px);
    transition: all var(--t);
    cursor: pointer;
    overflow: hidden;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
    border-color: var(--brand);
    background:
        radial-gradient(400px 200px at 50% 100%, var(--brand-50), transparent 70%),
        var(--surface);
}

.photo-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
    padding: 0;
    background: transparent;
}

.photo-dropzone input[type="file"]:focus { box-shadow: none; }

.photo-dropzone-empty {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding: 20px;
    color: var(--ink-3);
    z-index: 1;
}

.photo-dropzone-empty svg {
    width: 42px;
    height: 42px;
    color: var(--brand);
    opacity: .7;
    margin-bottom: 4px;
}

.photo-dropzone-empty strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.photo-dropzone-empty span {
    font-size: 12.5px;
    color: var(--ink-mute);
}

.photo-dropzone-empty em {
    margin-top: 4px;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper-2);
    border: 1px dashed var(--line);
}

.photo-dropzone.has-photo {
    border-style: solid;
    border-color: var(--brand-200);
    background: var(--ink);
    cursor: default;
}

.photo-dropzone.has-photo .photo-dropzone-empty {
    display: none;
}

.photo-preview {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.photo-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: none;
    gap: 6px;
}

.photo-dropzone.has-photo .photo-actions {
    display: flex;
}

.photo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    min-height: 32px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, .92);
    color: var(--ink-2);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
}

.photo-action svg { width: 12px; height: 12px; }

.photo-action:hover {
    background: #fff;
    color: var(--brand-deep);
    transform: translateY(-1px);
}

.photo-action.danger:hover {
    color: var(--red);
}

/* Toggle switch */
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.switch-row .switch-info {
    display: grid;
    gap: 2px;
}

.switch-row strong {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.switch-row small {
    color: var(--ink-mute);
    font-size: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: var(--line-2);
    transition: background var(--t);
    cursor: pointer;
}

.switch-track::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform var(--t);
}

.switch input:checked + .switch-track {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.switch input:checked + .switch-track::before {
    transform: translateX(20px);
}

.switch input:focus + .switch-track {
    box-shadow: var(--ring);
}

/* Submit toolbar (sticky at bottom of form) */
.editor-toolbar {
    position: sticky;
    bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    z-index: 5;
}

.editor-toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
}

.editor-toolbar-info::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--copper);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, .15);
    animation: pulse 1.6s ease-in-out infinite;
}

.editor-toolbar-info.saved::before {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
    animation: none;
}

.editor-toolbar .actions {
    margin-left: auto;
    flex-wrap: nowrap;
}


/* ============================================================
   v10 — Compact Showcase Image + Mobile Polish + Footer Map
   ============================================================ */

/* Smaller, more refined product cards on home */
.show-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.show-card-visual {
    aspect-ratio: 5/4;
}

.show-card-visual svg {
    width: 78%;
    height: 78%;
    margin: 11%;
}

.show-card-body {
    padding: 18px 20px 12px;
}

.show-card h3 {
    font-size: 19px;
}

.show-card-desc {
    font-size: 12.5px;
    line-height: 1.5;
    min-height: 2.6em;
}

.show-card-foot {
    padding: 12px 20px 18px;
}

.show-card-price strong {
    font-size: 18px;
}

.show-card-cta {
    font-size: 11.5px;
    padding: 7px 12px;
}

.show-card-cta svg { width: 11px; height: 11px; }

/* Tag chip slightly smaller */
.show-card-tag {
    padding: 4px 9px;
    font-size: 9px;
}

/* Welcome strip slightly tighter */
.welcome-strip {
    padding: 24px 28px;
    gap: 22px;
}

.welcome-copy h1 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 8px 0 6px;
}

.welcome-copy p {
    font-size: 13.5px;
    margin-bottom: 14px;
}

.welcome-stats {
    padding: 14px 18px;
    gap: 14px;
}

.welcome-stats dt {
    font-size: 22px;
}

/* Show band heading tighter */
.show-band {
    padding: 22px 24px;
    margin: 24px 0 16px;
}

.show-band-top h2 {
    font-size: 24px;
}

.show-band-top p {
    font-size: 13px;
}

/* ============================================================
   FOOTER MAP + CONTACT BLOCK
   ============================================================ */
.footer {
    margin-top: 56px;
    padding: 0 0 24px;
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 0 28px;
}

.footer-contact-info {
    padding: 36px 32px 36px 0;
    border-right: 1px dashed var(--line);
}

.footer-contact-info h3 {
    margin: 8px 0 18px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.footer-contact-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.fc-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-deep);
    flex-shrink: 0;
}

.fc-icon svg {
    width: 16px;
    height: 16px;
}

.footer-contact-list strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 4px;
}

.footer-contact-list p {
    margin: 0;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.55;
}

.footer-contact-list a {
    color: var(--brand-deep);
    font-weight: 600;
}

.footer-map {
    position: relative;
    margin-left: 32px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    background: var(--paper-2);
    align-self: center;
    width: calc(100% - 32px);
    isolation: isolate;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    filter: saturate(.92) contrast(1.04);
}

.footer-map-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--brand-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.footer-map-label svg { width: 13px; height: 13px; }

.footer-inner {
    padding: 32px 28px 0;
    border-top: 1px solid var(--line);
}

.footer-base {
    padding: 22px 28px 0;
}

@media (max-width: 980px) {
    .footer-contact {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .footer-contact-info {
        padding: 30px 0 0;
        border-right: none;
        border-bottom: 1px dashed var(--line);
        padding-bottom: 24px;
    }

    .footer-map {
        margin-left: 0;
        width: 100%;
    }

    .footer-map iframe { height: 260px; }

    .footer-inner {
        padding: 24px 20px 0;
    }

    .footer-base {
        padding: 22px 20px 0;
    }
}

/* ============================================================
   MOBILE POLISH — ALL DEVICE SIZES
   ============================================================ */

/* Make all containers respect viewport on small screens */
@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1240px);
        padding: 22px 0 32px;
    }

    .topbar { padding: 12px 16px; }

    /* Hero & welcome compact */
    .welcome-strip,
    .dash-hero,
    .page-hero,
    .focus-board,
    .workflow-board,
    .detail-head,
    .progress-card,
    .editor-fieldset,
    .editor-preview-card,
    .show-band,
    .chart-card,
    .receipt-card,
    .featured-order {
        padding: 22px 20px;
        border-radius: var(--r-lg);
    }

    .welcome-strip { gap: 18px; }
    .welcome-copy h1 { font-size: 24px; }
    .welcome-stats {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px;
        gap: 8px;
    }
    .welcome-stats dt { font-size: 18px; }
    .welcome-stats dd { font-size: 9px; }

    .show-band-top h2 { font-size: 22px; }
    .show-band-bottom .cat-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .show-band-bottom .cat-filter button {
        white-space: nowrap;
        scroll-snap-align: start;
    }

    /* Single column showcase grids on mobile */
    .show-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .show-card-visual { aspect-ratio: 16/10; }
    .show-card-visual svg { width: 70%; height: 70%; margin: 15%; }

    /* Forms & section headings */
    .form-grid,
    .detail-layout,
    .report-grid,
    .reports-grid,
    .editor-wrap {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .editor-preview {
        position: static;
    }

    .editor-fieldset {
        padding: 22px 18px;
    }

    .editor-fieldset-head {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .editor-step { width: 32px; height: 32px; font-size: 13px; }
    .editor-fieldset-head h3 { font-size: 16px; }

    .photo-dropzone {
        aspect-ratio: 16/11;
    }

    .photo-dropzone-empty svg { width: 36px; height: 36px; }
    .photo-dropzone-empty strong { font-size: 14px; }

    /* Sticky toolbar full-width on mobile */
    .editor-toolbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        z-index: 40;
    }

    .editor-toolbar .actions { width: 100%; justify-content: flex-end; }
    .editor-toolbar-info { font-size: 10.5px; }

    /* Add bottom padding to body so sticky toolbar doesn't cover content */
    body:has(.editor-toolbar) main {
        padding-bottom: 90px;
    }

    /* Stat & KPI grids */
    .stat-grid,
    .stat-grid.compact,
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 18px 18px 14px;
    }

    .kpi-value { font-size: 28px; }

    .stat-card,
    .stat-grid.compact > div {
        padding: 16px;
    }

    .stat-card strong,
    .stat-grid.compact strong {
        font-size: 26px;
    }

    /* Dashboard hero */
    .dash-hero { grid-template-columns: 1fr; }
    .dash-hero-main { padding: 24px 20px; }
    .dash-hero-aside {
        padding: 22px 20px;
        border-left: none;
        border-top: 1px solid var(--line);
    }
    .dash-greet h1 { font-size: 24px; }
    .dash-tagline { font-size: 13.5px; }
    .dash-quick { gap: 8px; }
    .dash-quick .button { flex: 1; min-width: 0; justify-content: center; }
    .dash-quick .button:last-child { flex: 0 0 auto; }

    /* Workload donut center */
    .workload-wrap,
    .reports-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 16px; }

    /* Tables — horizontal scroll */
    .table-tools { padding: 14px; gap: 10px; }
    .search-box { width: 100%; }
    .segmented {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
    }
    .segmented button {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    table { min-width: 760px; }
    th, td { padding: 12px 14px; font-size: 13px; }

    /* Kanban single column */
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 16px 0 20px;
    }

    .kanban-lane {
        min-height: auto;
        padding: 14px;
    }

    /* Footer */
    .nav { gap: 4px; }
    .footer { margin-top: 40px; }
    .footer-contact-info h3 { font-size: 18px; }
    .footer-contact-list p { font-size: 12.5px; }
    .footer-inner { gap: 24px; padding: 22px 16px 0; }

    /* Auth split */
    .auth-page { margin: -22px auto -32px; padding: 14px; }
    .auth-split { min-height: auto; border-radius: var(--r-lg); }
    .auth-aside { padding: 28px 24px; }
    .auth-main { padding: 28px 24px; }
    .auth-aside-mid h1 { font-size: 24px; }
    .auth-stats { gap: 8px; }
    .auth-stats dt { font-size: 16px; }
    .auth-stats dd { font-size: 9.5px; }

    /* FAB stays clear of editor toolbar */
    .fab-wrap { right: 16px; bottom: 86px; }

    /* Buttons inside hero actions wrap properly */
    .hero-actions,
    .welcome-actions,
    .dash-quick {
        width: 100%;
    }

    /* Bar chart smaller on mobile */
    .bar-chart { height: 180px; padding: 0 4px 26px; gap: 6px; }
    .bar-col-label { font-size: 9px; bottom: -22px; }
    .bar-col-label small { font-size: 8.5px; }
    .bar-col-value { font-size: 10px; top: -18px; }

    .line-chart { height: 200px; }

    /* Detail head */
    .detail-head {
        padding: 22px;
    }
    .detail-head h1 {
        font-size: 22px;
        gap: 8px;
    }
    .copy-code { font-size: 9.5px; padding: 4px 8px; }

    /* Stepper */
    .stepper {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 14px;
    }
    .stepper::before { display: none; }
    .stepper div {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        justify-items: start;
        text-align: left;
        padding: 6px 0;
    }
    .stepper span { width: 22px; height: 22px; }

    /* Masthead compact */
    .masthead {
        font-size: 9.5px;
        padding: 10px 14px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* Specs strip if visible */
    .specs-strip {
        padding: 10px 14px;
        gap: 8px;
        font-size: 10px;
    }

    /* Modal-like padding */
    .alert {
        padding: 12px 14px 12px 44px;
        font-size: 13px;
    }
    .alert::before { left: 12px; }
}

/* Extra-small phones */
@media (max-width: 420px) {
    .container { width: min(100% - 16px, 1240px); }

    .welcome-strip,
    .show-band,
    .dash-hero-main,
    .editor-fieldset {
        padding: 18px 16px;
    }

    .welcome-stats {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
    }

    .welcome-stats dt { font-size: 16px; }

    .stat-grid,
    .kpi-grid,
    .stat-grid.compact {
        grid-template-columns: 1fr;
    }

    .nav a:not(.button) { font-size: 13px; padding: 8px 12px; }

    /* Card visuals smaller */
    .show-card-visual { aspect-ratio: 16/10; }
    .show-card-visual svg { width: 64%; height: 64%; margin: 18%; }
    .show-card-body { padding: 14px 16px 10px; }
    .show-card-foot { padding: 10px 16px 14px; }

    /* Kanban cards */
    .kanban-card { padding: 10px 12px; }

    /* Footer base stacked */
    .footer-base { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
}

/* Fix: footer FAB stays above editor toolbar properly */
@media (min-width: 769px) {
    body:has(.editor-toolbar) main { padding-bottom: 0; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .button,
    button,
    .nav a,
    .pw-toggle,
    .copy-code {
        min-height: 44px;
    }

    .button.small,
    button.small {
        min-height: 36px;
    }

    /* Disable tilt and magnetic interactions on touch devices */
    .product-tile,
    .metric-band article,
    .stat-card,
    .show-card {
        transform: none !important;
    }
}

/* Ensure images & SVG never overflow */
img, svg, iframe, video { max-width: 100%; }

/* Prevent horizontal scrolling */
html, body { overflow-x: hidden; }


/* ============================================================
   v11 — BRAND LOGO + LANDING SLIDER
   ============================================================ */

/* ---------- Logo image in brand block ---------- */
.brand-logo {
    display: grid;
    place-items: center;
    width: auto;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    padding: 4px 8px;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.brand-logo img {
    height: 100%;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.brand-logo-lg {
    height: 56px;
    padding: 6px 10px;
}

.brand-logo-lg img { max-width: 140px; }

/* Auth aside variant (on dark bg) */
.auth-aside .brand-logo {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .25);
}

/* Footer variant — slightly transparent */
.footer .brand-logo {
    background: var(--surface);
}

/* ============================================================
   LANDING SLIDER (Hero Carousel)
   ============================================================ */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    max-height: 520px;
    min-height: 320px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #0a1733 0%, #0f2247 60%, #1e40af 100%);
    box-shadow: var(--shadow-lg);
    margin-bottom: 22px;
    isolation: isolate;
}

.slider-track {
    position: absolute;
    inset: 0;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 800ms var(--easing), transform 6s ease-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slider-slide picture,
.slider-slide img,
.slider-slide .slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-slide .slide-bg {
    background: linear-gradient(135deg, #0a1733 0%, #1e40af 100%);
}

/* Top CMYK strip + gradient overlay for legibility */
.slider::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 6;
    background: linear-gradient(90deg, #00aeef, #ec008c, #fff200, #1a1a1a);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(11, 18, 32, .82) 0%, rgba(11, 18, 32, .55) 35%, transparent 65%),
        linear-gradient(180deg, transparent 50%, rgba(11, 18, 32, .55) 100%);
    pointer-events: none;
}

.slider-caption {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 0;
    padding: 38px 44px 56px;
    color: #fff;
    max-width: 640px;
    pointer-events: none;
}

.slider-caption .eyebrow {
    color: #fbbf24;
    margin-bottom: 8px;
}

.slider-caption h1 {
    margin: 0 0 10px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.slider-caption h1 em {
    font-style: italic;
    background: linear-gradient(120deg, #fde68a 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slider-caption p {
    margin: 0 0 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    max-width: 540px;
}

.slider-caption .actions {
    pointer-events: auto;
}

/* Nav buttons */
.slider-btn {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--t);
}

.slider-btn svg { width: 18px; height: 18px; }

.slider-btn:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-50%) scale(1.06);
    border-color: rgba(255, 255, 255, .45);
}

.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }

/* Dots */
.slider-dots {
    position: absolute;
    z-index: 5;
    bottom: 18px;
    right: 18px;
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11, 18, 32, .35);
    backdrop-filter: blur(8px);
}

.slider-dots button {
    width: 22px;
    height: 6px;
    min-height: 6px;
    padding: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .35);
    border: none;
    cursor: pointer;
    transition: all var(--t);
    box-shadow: none;
}

.slider-dots button:hover {
    background: rgba(255, 255, 255, .6);
    transform: none;
}

.slider-dots button.active {
    width: 32px;
    background: #fff;
}

/* Counter chip */
.slider-counter {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(11, 18, 32, .55);
    color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .12);
}

.slider-counter b { color: #fff; font-weight: 700; }

/* Fallback hero if no slider images */
.slider.empty {
    background:
        radial-gradient(800px 400px at 100% 100%, rgba(184, 132, 25, .18), transparent 60%),
        radial-gradient(700px 360px at 0% 0%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(150deg, #0a1733 0%, #0f2247 50%, #1e40af 100%);
}

.slider.empty .slide-illust {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 48px);
    pointer-events: none;
}

@media (max-width: 880px) {
    .slider {
        aspect-ratio: 4/5;
        max-height: 540px;
        min-height: 380px;
        border-radius: var(--r-lg);
    }

    .slider-overlay {
        background:
            linear-gradient(180deg, rgba(11, 18, 32, .35) 0%, rgba(11, 18, 32, .85) 65%, rgba(11, 18, 32, .92) 100%);
    }

    .slider-caption {
        padding: 24px 22px 32px;
        max-width: 100%;
    }

    .slider-caption h1 { font-size: 28px; }
    .slider-caption p { font-size: 13.5px; }

    .slider-btn { width: 38px; height: 38px; min-height: 38px; }
    .slider-btn.prev { left: 12px; }
    .slider-btn.next { right: 12px; }

    .slider-counter { top: 12px; right: 12px; font-size: 10px; }

    .slider-dots { bottom: 12px; right: 50%; transform: translateX(50%); }
}

/* Touch-friendly (no hover) */
@media (hover: none) {
    .slider-btn { opacity: .85; }
}

/* ============================================================
   GUEST GATE — when not logged in, soft CTA
   ============================================================ */
.guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 22px 0;
    padding: 18px 22px;
    border-radius: var(--r-lg);
    background:
        linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px dashed var(--brand-200);
}

.guest-cta-text strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}

.guest-cta-text span {
    color: var(--ink-3);
    font-size: 13.5px;
}

.guest-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ============================================================
   v12 — Branded SVG Scenes & Logo Fit Polish
   ============================================================ */

/* Slide background SVG fills entire slide */
.slider-slide .slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-slide .slide-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Drop the dotted mask on slide-illust now that we have full scenes */
.slider.empty .slide-illust { background: transparent; background-image: none; }

/* Brand logo: keep light card on dark backgrounds + better paddings */
.brand-logo {
    background: #fff;
    border: 1px solid var(--line);
    padding: 5px 10px;
    height: 42px;
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
}

.brand-logo img,
.brand-logo svg {
    height: 100%;
    width: auto;
    max-width: 132px;
    display: block;
    object-fit: contain;
}

.brand-logo-lg {
    height: 64px;
    padding: 8px 14px;
    border-radius: 14px;
}

.brand-logo-lg img,
.brand-logo-lg svg {
    max-width: 168px;
}

/* Auth aside on dark gradient */
.auth-aside .brand-logo {
    background: rgba(255, 255, 255, .98);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* Logout splash card */
.logout-card .brand-logo {
    height: 60px;
    margin: 0 auto 18px;
    padding: 8px 14px;
    border-radius: 14px;
}

/* Mobile: make logo stay readable */
@media (max-width: 480px) {
    .brand-logo { height: 38px; padding: 4px 8px; }
    .brand-logo img, .brand-logo svg { max-width: 110px; }
}


/* ============================================================
   v13 — Admin logo avatar fitting
   ============================================================ */
.dash-avatar-logo {
    background: #fff !important;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .65);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .1),
        0 10px 22px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.dash-avatar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

/* Topbar brand-logo: ensure JPEG gets a clean white tile */
.brand-logo {
    background: #fff;
}

.brand-logo img {
    object-fit: contain;
    object-position: center;
}

/* Slider: cover crop for logos so they tidak gepeng */
.slider-slide img {
    object-fit: cover;
    object-position: center;
}

/* If the slide image is a logo (square-ish on landscape), gently zoom out
   so the whole logo terlihat — overlay tetap menutupi tepi gelap */
@media (min-width: 880px) {
    .slider-slide img {
        background: #f8fafc;
    }
}


/* ============================================================
   v14 — REBRAND TO BLUE + LOGO FIT FIX
   Sesuai logo iKaL creative: blue palette + logo contain
   ============================================================ */

:root {
    /* Brand palette — Sky/Royal Blue (match logo iKaL creative) */
    --brand-50:     #eff6ff;
    --brand-100:    #dbeafe;
    --brand-200:    #bfdbfe;
    --brand:        #2563eb;
    --brand-dark:   #1d4ed8;
    --brand-deep:   #1e3a8a;

    /* Keep gold accent (untuk bintang & highlight) */
    --gold-50:      #fef9c3;
    --gold-100:    #fde68a;
    --gold:         #eab308;
    --gold-dark:    #a16207;
    --copper:       #ea580c;

    /* Subtle background tints */
    --paper:        #f8fafc;
    --paper-2:      #eef2f7;
    --surface:      #ffffff;
    --surface-2:    #f1f5f9;

    /* Reglow & ring with blue */
    --shadow-glow:  0 14px 32px rgba(37, 99, 235, .22);
    --ring:         0 0 0 4px rgba(37, 99, 235, .14);
}

/* Body bg gentle blue radial */
body {
    background: var(--paper);
    background-image:
        radial-gradient(900px 500px at 6% -10%, rgba(37, 99, 235, .08), transparent 65%),
        radial-gradient(800px 420px at 102% 4%, rgba(234, 179, 8, .06), transparent 70%);
}

/* Brand mark fallback (kotak "IC") jadi blue */
.brand-mark {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark));
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(37, 99, 235, .26),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Brand logo card — fit contain, never crop */
.brand-logo {
    background: #fff;
    border: 1px solid var(--line);
    padding: 4px 8px;
    height: 42px;
    width: auto;
    min-width: 56px;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img,
.brand-logo svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain !important;
    object-position: center !important;
}

.brand-logo-lg {
    height: 56px;
    padding: 6px 12px;
    border-radius: 14px;
    max-width: 240px;
}

@media (max-width: 480px) {
    .brand-logo {
        height: 36px;
        max-width: 160px;
    }
    .brand-logo-lg { height: 50px; max-width: 200px; }
}

/* Header brand text — kasih jarak biar logo nggak nyentuh */
.brand > span:last-child { padding-left: 4px; }

/* ===== Dashboard avatar logo: contain agar logo utuh ===== */
.dash-avatar-logo {
    background: #fff !important;
    padding: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .65);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .1),
        0 10px 22px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.dash-avatar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    border-radius: 8px;
}

/* ===== Slider: logo slides should never crop ===== */
.slider {
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 50%, #1e40af 100%);
}

.slider-slide {
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 50%, #1e40af 100%);
}

.slider-slide img {
    object-fit: contain !important;
    object-position: center center !important;
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 60%, #1e40af 100%);
    padding: 0;
}

/* Decorative grid/sparkle on slider gradient */
.slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 56px);
}

/* Lebih ringan overlay biar logo kebaca penuh */
.slider-overlay {
    background:
        linear-gradient(90deg, rgba(10, 23, 51, .5) 0%, rgba(10, 23, 51, .2) 35%, transparent 60%),
        linear-gradient(180deg, transparent 60%, rgba(10, 23, 51, .55) 100%);
}

@media (max-width: 880px) {
    .slider-overlay {
        background:
            linear-gradient(180deg, rgba(10, 23, 51, .25) 0%, rgba(10, 23, 51, .85) 65%, rgba(10, 23, 51, .92) 100%);
    }
}

/* ===== Replace hardcoded emerald gradients dengan blue ===== */

/* Hero & dashboard hero gelap pakai blue palette */
.hero-main,
.dash-hero-main,
.welcome-strip,
.workflow-board,
.focus-board {
    background:
        radial-gradient(700px 360px at 100% 100%, rgba(234, 179, 8, .14), transparent 65%),
        radial-gradient(800px 480px at 0% 0%, rgba(37, 99, 235, .35), transparent 65%),
        linear-gradient(150deg, #0a1733 0%, #112556 50%, #1e40af 100%) !important;
}

.fifo-press-info {
    background:
        radial-gradient(500px 240px at 0% 100%, var(--brand-50), transparent 70%),
        var(--surface) !important;
}

/* Page hero light card pakai blue tint */
.page-hero {
    background:
        radial-gradient(800px 320px at 100% 0%, rgba(37, 99, 235, .07), transparent 70%),
        radial-gradient(600px 320px at 0% 100%, rgba(234, 179, 8, .05), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--paper)) !important;
}

.page-hero::after {
    background: radial-gradient(closest-side, var(--brand-50), transparent) !important;
}

/* Console card top gradient & meter gauge */
.console-meter {
    background: conic-gradient(var(--brand) 0 70%, rgba(255, 255, 255, .2) 70% 100%);
}

/* Detail head light card */
.detail-head {
    background:
        radial-gradient(700px 280px at 100% 0%, var(--brand-50), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--paper)) !important;
}

/* Featured order gradient */
.featured-order {
    background:
        radial-gradient(500px 220px at 100% 0%, var(--gold-50), transparent 60%),
        radial-gradient(500px 220px at 0% 100%, var(--brand-50), transparent 60%),
        linear-gradient(180deg, var(--surface), var(--paper)) !important;
}

/* Editor preview card */
.editor-preview-card {
    background:
        radial-gradient(500px 240px at 100% 0%, var(--brand-50), transparent 70%),
        radial-gradient(400px 200px at 0% 100%, var(--gold-50), transparent 70%),
        var(--surface) !important;
}

/* All shadow-glow now blue */
:root {
    --shadow-glow: 0 14px 32px rgba(37, 99, 235, .22);
}

/* Buttons primary — pastikan blue, bukan hijau */
.button.primary,
button.primary {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 8px 16px rgba(37, 99, 235, .22),
        inset 0 1px 0 rgba(255, 255, 255, .15);
}

.button.primary:hover,
button.primary:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 14px 24px rgba(37, 99, 235, .3),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* Pulsing rings, focus rings semua blue */
.user-pill::before {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.stepper .done span,
.stepper .active span {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
    100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}

/* Selection */
::selection { background: var(--brand-100); color: var(--brand-deep); }

/* Footer FC icon backdrop */
.fc-icon { background: var(--brand-50); color: var(--brand-deep); }

/* Form ring */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

/* Estimate box gradient */
.estimate-box {
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border: 1px solid var(--brand-100);
}

.estimate-box.highlight {
    background: linear-gradient(135deg, var(--brand-100), var(--gold-100));
    border-color: var(--gold);
}

/* Show card best ribbon */
.product-pro-ribbon {
    background: linear-gradient(135deg, var(--copper), #c2410c);
    box-shadow: 0 4px 8px rgba(234, 88, 12, .3);
}

/* Show card visual halftone */
.show-card-visual::before {
    background-image: radial-gradient(rgba(37, 99, 235, .06) 1px, transparent 1.5px);
}

/* Top-row leaderboard ranks */
.top-row::after {
    background: linear-gradient(90deg, transparent, var(--brand-50)) !important;
}

/* Workload-donut & avatar gradient default */
.dash-avatar:not(.dash-avatar-logo) {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand) 0%, var(--gold-dark) 100%) !important;
}

/* Form-title icon */
.form-title > span {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark)) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(37, 99, 235, .22),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Editor step badges */
.editor-step {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark)) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 6px 14px rgba(37, 99, 235, .22) !important;
}

/* Product ribbon (tile) */
.product-ribbon,
.product-pro-symbol {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark)) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 8px 16px rgba(37, 99, 235, .25),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Queue first row gold special remains gold; others use blue gradient via .queue-number */
.queue-number {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-deep);
    border: 1px solid var(--brand-200);
}

tbody tr:first-of-type .queue-number {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 50%, var(--gold-dark)) !important;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}

/* FAB primary */
.fab {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 14px 30px rgba(37, 99, 235, .35),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.fab:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .04),
        0 18px 36px rgba(37, 99, 235, .4),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Print press slug */
.fifo-press {
    background: var(--surface) !important;
}

/* Tip card backdrop */
.tip-card {
    background: linear-gradient(135deg, var(--brand-50), var(--gold-50));
    border-color: var(--brand-100);
}

/* Hero eyebrow accent line color in dark heroes */
.hero-main .eyebrow,
.workflow-board .eyebrow,
.focus-board .eyebrow,
.welcome-strip .eyebrow,
.dash-hero-main .eyebrow,
.slider-caption .eyebrow {
    color: #93c5fd;
}

/* Hero h1 italic gradient - keep gold */
.hero-main h1 em,
.welcome-copy h1 em,
.dash-greet h1 em,
.slider-caption h1 em,
.featured-order h2 em {
    background: linear-gradient(120deg, #fde047 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Auth aside dark blue */
.auth-aside {
    background:
        radial-gradient(800px 480px at 100% 100%, rgba(234, 179, 8, .18), transparent 60%),
        radial-gradient(600px 420px at 0% 0%, rgba(37, 99, 235, .35), transparent 60%),
        linear-gradient(150deg, #0a1733 0%, #112556 50%, #1e40af 100%) !important;
}

.auth-aside-mid h1 em {
    background: linear-gradient(120deg, #fde047 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-bullets b {
    background: rgba(147, 197, 253, .18);
    color: #93c5fd;
}

/* Logout splash icon — blue */
.logout-icon {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark)) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 14px 30px rgba(37, 99, 235, .3),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Trust row check icon → light blue */
.trust-row span::before {
    background: var(--brand);
}

/* Hero eyebrow chip pill */
.hero-eyebrow::before {
    background: linear-gradient(135deg, #93c5fd, #fbbf24);
    box-shadow: 0 0 12px rgba(147, 197, 253, .8);
}

/* CMYK bar tetap (warna print) — biarkan */

/* Ensure favicon uses logo */


/* ============================================================
   v15 — DOMINAN BIRU + LOGO FIT-IN TANPA KOTAK PUTIH
   ============================================================ */

/* Body lebih dominan biru muda */
body {
    background:
        radial-gradient(1100px 600px at 6% -10%, rgba(37, 99, 235, .18), transparent 60%),
        radial-gradient(900px 500px at 102% 4%, rgba(96, 165, 250, .14), transparent 65%),
        radial-gradient(800px 480px at 50% 110%, rgba(234, 179, 8, .07), transparent 60%),
        linear-gradient(180deg, #eef4ff 0, #e6efff 320px, #eaf1fb 100%) !important;
}

/* Topbar lebih biru */
.topbar {
    background: rgba(238, 244, 255, .82) !important;
    border-bottom: 1px solid rgba(191, 219, 254, .6);
}

/* Surface paper-2 menjadi blue tint */
:root {
    --paper:        #eef4ff;
    --paper-2:      #e2ecfb;
    --surface:      #ffffff;
    --surface-2:    #f0f5ff;
    --line:         #d0deef;
    --line-2:       #b8cce8;
    --line-soft:    #e2ecfb;
    --ink-mute:     #4b5d7a;
}

/* Footer light blue */
.footer { background: linear-gradient(180deg, #f1f6ff, #e8f0fc); }

/* ============================================================
   LOGO — TANPA KOTAK PUTIH (langsung di background)
   ============================================================ */
.brand-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 44px;
    width: auto;
    min-width: 0;
    max-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

.brand-logo img,
.brand-logo svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .12));
}

.brand-logo-lg {
    height: 64px;
    max-width: 260px;
}

/* In auth aside (background gelap) — tidak butuh kotak; logo punya bg biru sendiri */
.auth-aside .brand-logo,
.auth-aside .brand-logo img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

/* Logout splash card */
.logout-card .brand-logo {
    height: 64px;
    margin: 0 auto 18px;
}

/* Mobile */
@media (max-width: 480px) {
    .brand-logo {
        height: 38px;
        max-width: 170px;
    }
    .brand-logo-lg { height: 54px; max-width: 220px; }
}

/* Brand text: kontras lebih kuat di latar biru muda */
.brand strong { color: var(--ink); }
.brand small { color: var(--ink-3); }

/* ============================================================
   DASHBOARD AVATAR LOGO — tanpa kotak putih
   ============================================================ */
.dash-avatar-logo {
    background: rgba(255, 255, 255, .12) !important;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.dash-avatar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 12px;
}

/* ============================================================
   SLIDER — LOGO FIT TANPA SPACE; konsisten biru gelap
   ============================================================ */
.slider {
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 50%, #1e40af 100%);
}

.slider-slide {
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 50%, #1e40af 100%);
}

/* Logo / portrait images: contain dengan background biru selaras */
.slider-slide img {
    object-fit: cover !important;
    object-position: center center !important;
    background: linear-gradient(140deg, #0a1733 0%, #1e3a8a 60%, #1e40af 100%);
}

/* ============================================================
   CARDS & SHOW
   ============================================================ */

/* Card border lebih biru subtle */
.card,
.form-card,
.empty-state,
.editor-fieldset,
.editor-preview-card,
.dash-panel,
.show-card,
.product-card-pro,
.product-tile,
.metric-band article,
.kpi-card,
.stat-card,
.welcome-stats,
.fifo-press,
.kanban-lane,
.progress-card,
.featured-order,
.receipt-card,
.chart-card,
.show-band,
.products-toolbar,
.products-controls,
.table-tools,
.table-wrap {
    border-color: var(--line) !important;
}

/* Hover state semua card → blue glow */
.show-card:hover,
.product-card-pro:hover,
.product-tile:hover,
.metric-band article:hover,
.kpi-card:hover,
.stat-card:hover {
    border-color: var(--brand-200) !important;
    box-shadow:
        0 12px 32px rgba(37, 99, 235, .14),
        0 4px 8px rgba(37, 99, 235, .06) !important;
}

/* Show card visual halftone biru */
.show-card-visual {
    background:
        radial-gradient(120% 100% at 50% 100%, rgba(37, 99, 235, .08) 0%, var(--surface) 70%);
}

.show-card-visual::before {
    background-image: radial-gradient(rgba(37, 99, 235, .1) 1px, transparent 1.5px);
}

/* Welcome stats backdrop */
.welcome-stats {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Show band more blue tint */
.show-band {
    background:
        radial-gradient(500px 220px at 100% 0%, rgba(37, 99, 235, .08), transparent 70%),
        var(--surface) !important;
}

/* Page-hero brighter blue accent */
.page-hero {
    background:
        radial-gradient(700px 260px at 100% 0%, rgba(37, 99, 235, .10), transparent 70%),
        radial-gradient(500px 240px at 0% 100%, rgba(96, 165, 250, .08), transparent 70%),
        linear-gradient(180deg, var(--surface), #f5f9ff) !important;
}

/* Product gallery more blue */
.product-gallery {
    /* allow card-pro to use blue surfaces */
}

.product-card-pro {
    background:
        linear-gradient(180deg, var(--surface), #fafbff) !important;
}

/* Detail head blue tint */
.detail-head {
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(37, 99, 235, .08), transparent 70%),
        linear-gradient(180deg, var(--surface), #f5f9ff) !important;
}

/* Featured order */
.featured-order {
    background:
        radial-gradient(500px 220px at 100% 0%, rgba(254, 240, 138, .35), transparent 60%),
        radial-gradient(500px 220px at 0% 100%, rgba(37, 99, 235, .10), transparent 60%),
        linear-gradient(180deg, var(--surface), #f5f9ff) !important;
}

/* Editor preview blue */
.editor-preview-card {
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(37, 99, 235, .08), transparent 70%),
        radial-gradient(400px 200px at 0% 100%, rgba(96, 165, 250, .06), transparent 70%),
        var(--surface) !important;
}

/* Tip card */
.tip-card {
    background: linear-gradient(135deg, var(--brand-50), #e0e9fb);
    border-color: var(--brand-100);
}

/* Tables hover row */
tbody tr:hover { background: var(--brand-50) !important; }

th { background: var(--surface-2); }

/* Search box icon stroke biru */
.search-box input,
.products-search input,
.show-band-search input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d4ed8' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z'/></svg>") !important;
}

/* Segmented buttons active = blue */
.segmented button.active {
    color: var(--brand-deep) !important;
    background: var(--surface) !important;
}

.segmented {
    background: var(--paper-2);
    border-color: var(--line);
}

/* Cat filter active = navy */
.cat-filter button.active {
    background: var(--brand-deep) !important;
}

/* Period tabs active */
.period-tabs button.active {
    color: var(--brand-deep);
}

/* Workload donut center bg */
.workload-donut::before {
    background: var(--surface);
}

/* Reports report-bar */
.report-bar {
    background: linear-gradient(180deg, var(--surface), #f5f9ff);
}

/* Status row alt bg gradient */
.status-row::after {
    background: linear-gradient(90deg, var(--brand-50) 0%, transparent var(--bar-width, 0%)) !important;
}

/* Top row leaderboard ranks 2,3 → blue tint instead of grey/orange */
.top-row[data-rank="2"] .top-rank {
    background: linear-gradient(140deg, #93c5fd, #3b82f6);
    color: #fff;
    border-color: transparent;
}

.top-row[data-rank="3"] .top-rank {
    background: linear-gradient(140deg, #60a5fa, #1e40af);
    color: #fff;
    border-color: transparent;
}

/* Stat-card stripe blue→gold */
.stat-card::before,
.stat-grid.compact > div::before,
.kpi-card::before {
    background: linear-gradient(180deg, var(--brand), var(--gold)) !important;
}

.kpi-card[data-tone="warning"]::before { background: linear-gradient(180deg, var(--gold), var(--copper)) !important; }
.kpi-card[data-tone="success"]::before { background: linear-gradient(180deg, var(--green), var(--brand)) !important; }
.kpi-card[data-tone="info"]::before    { background: linear-gradient(180deg, var(--brand), var(--brand-deep)) !important; }

/* Table-counter pill */
.table-counter,
.show-band-counter {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-deep);
}

/* Badge neutral → blue tint */
.badge.neutral {
    background: var(--brand-50);
    color: var(--brand-deep);
}

/* Footer-map-label bg */
.footer-map-label {
    background: rgba(238, 244, 255, .96);
    border-color: var(--brand-200);
    color: var(--brand-deep);
}

/* FAB minis hover */
.fab-mini:hover {
    background: var(--brand-50);
    color: var(--brand-deep);
    border-color: var(--brand-200);
}

/* Welcome strip slider eyebrow */
.welcome-copy h1 em,
.slider-caption h1 em {
    background: linear-gradient(120deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero copy contrast on blue */
.welcome-strip { color: #fff; }

/* Container z-index above body radial */
.container { position: relative; z-index: 1; }

/* Footer brand-logo: jangan kasih kotak putih */
.footer .brand-logo { background: transparent !important; }


/* ============================================================
   v16 — DROPZONE COMPACT + SEARCH BUG FIX + DARK MODE BLUE
   ============================================================ */

/* Compact photo dropzone */
.photo-dropzone {
    aspect-ratio: auto;
    min-height: 160px;
    max-height: 200px;
    padding: 14px;
    border-radius: var(--r);
}

.photo-dropzone-empty {
    gap: 6px;
    padding: 10px;
}

.photo-dropzone-empty svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.photo-dropzone-empty strong {
    font-size: 13px;
}

.photo-dropzone-empty span {
    font-size: 11.5px;
}

.photo-dropzone-empty em {
    font-size: 9.5px;
    padding: 3px 8px;
}

.photo-dropzone.has-photo {
    aspect-ratio: 16/10;
    min-height: 180px;
    max-height: 240px;
}

.photo-action {
    padding: 6px 10px;
    min-height: 28px;
    font-size: 11px;
}

.photo-action svg { width: 11px; height: 11px; }

@media (max-width: 680px) {
    .photo-dropzone {
        min-height: 140px;
        max-height: 180px;
    }
    .photo-dropzone.has-photo {
        min-height: 160px;
        max-height: 220px;
    }
}

/* ============================================================
   SEARCH BOX FIX — biar label tidak mengganggu klik
   ============================================================ */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: text;
}

.search-box input {
    cursor: text;
    pointer-events: auto;
}

.products-search,
.show-band-search {
    cursor: text;
}

.products-search input,
.show-band-search input {
    cursor: text;
}

/* Make sure no parent overlay traps clicks */
[data-product-search],
[data-show-search],
[data-table-search] {
    position: relative;
    z-index: 2;
}

/* ============================================================
   PRODUCT VISUAL CARDS — soft blue tint background
   ============================================================ */
.show-card-visual {
    background:
        radial-gradient(140% 110% at 50% 100%, rgba(37, 99, 235, .12) 0%, var(--surface) 65%) !important;
}

.show-card-visual:not(.has-photo) {
    background:
        radial-gradient(140% 110% at 50% 100%, rgba(37, 99, 235, .12) 0%, #f8fbff 65%) !important;
}

.show-card-visual::after {
    border-color: rgba(37, 99, 235, .25);
}

/* Tag chip "MULAI CETAK" pakai blue subtle */
.show-card-tag {
    background: var(--surface);
    border: 1px solid var(--brand-100);
    color: var(--brand-deep);
}

.show-card-tag.best {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #3d2705;
    border-color: #b88419;
}

/* Show-card-cta button blue */
.show-card-cta {
    background: var(--brand-deep);
}

.show-card:hover .show-card-cta {
    background: var(--brand);
    box-shadow: 0 8px 16px rgba(37, 99, 235, .3);
}

/* Product ribbon symbol blue gradient */
.product-ribbon {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
        linear-gradient(140deg, var(--brand-deep), var(--brand) 60%, var(--gold-dark)) !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Show grid background blue tint */
.show-grid {
    /* sub-blue subtle */
}

/* Product price text blue */
.show-card-price strong,
.product-tile strong,
.product-pro-price strong {
    color: var(--brand-deep);
}

/* Cat filter blue navy active */
.cat-filter button.active {
    background: var(--brand-deep) !important;
    color: #fff !important;
}

/* === Slider scenes & dark areas tone correction === */
.slider,
.slider-slide,
.slider-slide .slide-bg {
    background: linear-gradient(140deg, #0a1733 0%, #142a6b 50%, #1e40af 100%) !important;
}

.hero-main,
.dash-hero-main,
.welcome-strip,
.workflow-board,
.focus-board,
.auth-aside {
    background:
        radial-gradient(700px 360px at 100% 100%, rgba(234, 179, 8, .14), transparent 65%),
        radial-gradient(800px 480px at 0% 0%, rgba(37, 99, 235, .35), transparent 65%),
        linear-gradient(150deg, #0a1733 0%, #142a6b 50%, #1e40af 100%) !important;
}

/* Logo card shadow disable jika di header (hilangkan kotak putih) */
.topbar .brand-logo,
.footer .brand-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ============================================================
   v17 — SEARCH ICON FIX (no more tiled icons)
   ============================================================ */

.search-box input,
.products-search input,
.show-band-search input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d4ed8' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 16px 16px !important;
    padding-left: 42px !important;
}

/* The wrapper-based icon (::before) was already there — make sure only one is shown.
   Hide the wrapper pseudo-icon since we're using background-image on the input. */
.products-search::before,
.show-band-search::before {
    display: none !important;
}

/* In case of any inherited backgrounds */
input[type="search"] {
    background-repeat: no-repeat;
    background-size: 16px 16px;
}


/* ============================================================
   v18 — Footer directions buttons row
   ============================================================ */
.footer-directions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-directions .button {
    flex: 1 1 auto;
    min-width: 180px;
}

@media (max-width: 540px) {
    .footer-directions { flex-direction: column; }
    .footer-directions .button { width: 100%; }
}

/* ============================================================
   v12 — MULTI-PHOTO PRODUCTS, DETAIL GALLERY, PAYMENT METHODS
   ============================================================ */

/* Photo-count badge on catalog cards */
.show-card-count {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(15, 34, 71, .82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
 backdrop-filter: blur(4px);
}
.show-card-count svg { width: 13px; height: 13px; }

/* ---------- Product detail page ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 30px;
    margin: 22px 0 40px;
}
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 22px; }
}

.pd-gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.pd-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
}
.pd-slide.active { opacity: 1; }
.pd-illust { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pd-illust svg { width: 78%; height: 78%; }

.pd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
height: 42px;
    border: none;
    border-radius: 50%;
 background: rgba(255, 255, 255, .9);
    color: #0f2247;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    transition: background .2s ease, transform .2s ease;
}
.pd-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pd-nav svg { width: 22px; height: 22px; }
.pd-nav.prev { left: 12px; }
.pd-nav.next { right: 12px; }

.pd-counter {
    position: absolute;
    bottom: 12px;
right: 12px;
    padding: 4px 10px;
    background: rgba(15, 34, 71, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--line);
 border-radius: 10px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: border-color .2s ease;
}
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { margin: 6px 0 8px; font-size: 28px; }
.pd-price { font-size: 24px; font-weight: 800; color: var(--brand); margin-bottom: 12px; }
.pd-price small { font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.pd-desc { color: var(--ink-mute); line-height: 1.65; margin-bottom: 18px; }
.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.pd-back svg { width: 16px; height: 16px; }
.pd-back:hover { color: var(--brand); }

.pd-checkout {
  margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.pd-checkout h2 { margin: 0 0 14px; font-size: 18px; }
.pd-guest {
    margin-top: 18px;
  padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    text-align: center;
}
.pd-guest p { color: var(--ink-mute); margin-bottom: 14px; }
.pd-guest .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Payment methods ---------- */
.pay-bank-list { display: grid; gap: 10px; }
.pay-bank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
 padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}
.pay-bank-item strong { display: block; font-size: 14px; }
.pay-bank-number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    cursor: pointer;
    letter-spacing: .03em;
}
.pay-bank-item small { color: var(--ink-mute); font-size: 12px; }

.pay-qris {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.pay-qris img { width: 220px; max-width: 100%; height: auto; border-radius: 8px; }
.pay-qris span { font-size: 13px; color: var(--ink-mute); }

/* ---------- Payment demo: methods + modal ---------- */
.pay-demo-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  margin: 16px 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
border-radius: 10px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.5;
}
.pay-demo-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.pay-methods-title { font-size: 18px; margin: 8px 0 14px; }
.pay-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.pay-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pay-method:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, .14);
}
.pay-method-icon { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.pay-method strong { font-size: 15px; }
.pay-method small { color: var(--ink-mute); font-size: 12px; }

/* Modal */
.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pay-modal[hidden] { display: none; }
.pay-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}
.pay-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    animation: payPop .25s ease;
}
@keyframes payPop {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pay-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
padding: 14px 18px;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #fff;
}
.pay-modal-brand { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.pay-modal-x {
    border: none;
    background: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}
.pay-modal-x:hover { opacity: 1; }
.pay-modal-body { padding: 20px; }
.pay-modal-method { font-weight: 700; font-size: 15px; margin: 0 0 12px; color: var(--brand); }
.pay-modal-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--paper);
    border-radius: 10px;
 margin-bottom: 14px;
}
.pay-modal-amount span { color: var(--ink-mute); font-size: 13px; }
.pay-modal-amount strong { font-size: 20px; color: var(--brand); }
.pay-modal-qris { text-align: center; margin-bottom: 14px; }
.pay-modal-qris img { width: 200px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.pay-modal-qris p { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }
.pay-qris-placeholder {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 36px;
    border: 2px dashed var(--line);
    border-radius: 12px;
    color: var(--ink-mute);
}
.pay-qris-placeholder svg { width: 64px; height: 64px; }
.pay-modal-bank { display: grid; gap: 8px; margin-bottom: 14px; }
.pay-modal-hint { font-size: 12px; color: var(--ink-mute); line-height: 1.5; margin: 0; }
.pay-modal-foot {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.pay-modal-foot .button { flex: 1; justify-content: center; }

/* Pilihan metode di dalam modal (langkah 1) */
.pay-modal-methods { display: grid; gap: 10px; margin-top: 12px; }
.pay-modal-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
 border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.pay-modal-method-btn:hover {
    border-color: var(--brand);
    background: #f5f8ff;
    transform: translateY(-2px);
}
.pay-modal-method-btn > span { font-size: 26px; line-height: 1; }
.pay-modal-method-btn strong { display: block; font-size: 14px; }
.pay-modal-method-btn small { color: var(--ink-mute); font-size: 12px; }
.pay-modal-method-btn.active { border-color: var(--brand); background: #f5f8ff; }

/* Kartu Midtrans tunggal (halaman pembayaran) */
.pay-single { margin: 18px 0 40px; }
.pay-single-card { max-width: 480px; margin: 0 auto; }
.pay-single-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.pay-single-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1a3a8a;
}
.pay-single-sandbox {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
}
.pay-single-methods {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
  gap: 10px;
}
.pay-single-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13.5px;
    background: var(--surface);
}
.pay-single-methods li span { font-size: 20px; }
