
:root {
    --brand-red: #B71925;
    --brand-red-dark: #94121d;
    --brand-red-soft: #f8e9e9;
    --cream: #F7F4F0;
    --cream-deep: #eee8e1;
    --dark: #252525;
    --ink-soft: #55514e;
    --muted: #87817c;
    --white: #fff;
    --line: #e9e4df;
    --green: #39866b;
    --amber: #bd8244;
    --shadow-soft: 0 16px 50px rgba(38, 26, 21, .06);
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Manrope', var(--font-body);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; color: var(--dark); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(183, 25, 37, .26); outline-offset: 3px; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; vertical-align: -3px; }

/* Shared brand */
.site-frame { min-height: 100vh; max-width: 1600px; margin: 0 auto; padding: 0 6.1%; display: flex; flex-direction: column; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: inline-grid; place-items: center; color: #fff; background: var(--brand-red); box-shadow: 0 6px 15px rgba(183,25,37,.17); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: grid; gap: 0; line-height: 1.08; }
.brand-text strong { font: 800 14px/1.2 var(--font-display); letter-spacing: .085em; }
.brand-text strong span { color: var(--brand-red); }
.brand-text small { margin-top: 5px; color: #918a84; font: 700 8px/1 var(--font-body); letter-spacing: .18em; }
.eyebrow { margin: 0; color: #8a817b; font: 700 10px/1.4 var(--font-body); letter-spacing: .19em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 99px; background: var(--brand-red); }
.eyebrow-divider { margin: 0 6px; color: #c2bbb5; }
.button { min-height: 50px; padding: 0 21px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font: 700 13px/1 var(--font-body); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--brand-red); box-shadow: 0 9px 22px rgba(183,25,37,.18); }
.button-primary:hover { color: var(--white); background: var(--brand-red-dark); box-shadow: 0 12px 26px rgba(183,25,37,.24); }
.button svg { width: 17px; height: 17px; }

/* Customer ordering site */
.customer-app { background: var(--cream); }
.customer-header { height: 88px; border-bottom: 1px solid rgba(65, 52, 43, .09); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.customer-nav { display: flex; align-items: center; gap: clamp(20px, 3.3vw, 49px); margin-left: auto; margin-right: 35px; }
.customer-nav a { position: relative; padding: 8px 0; color: #77716c; font-size: 12px; font-weight: 600; transition: color .18s ease; }
.customer-nav a:hover, .customer-nav a.is-active { color: var(--brand-red); }
.customer-nav a.is-active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--brand-red); }
.header-order-link { display: inline-flex; align-items: center; gap: 14px; padding: 11px 14px 11px 17px; border: 1px solid #ded7d1; border-radius: 11px; color: var(--dark); font-size: 11px; font-weight: 700; transition: border-color .2s, color .2s; }
.header-order-link:hover { border-color: var(--brand-red); color: var(--brand-red); }
.header-order-link svg { width: 15px; height: 15px; }
.customer-main { flex: 1; padding: 46px 0 30px; transition: opacity .16s ease, transform .16s ease; }
.customer-main.is-loading, .admin-main.is-loading { opacity: .45; transform: translateY(3px); pointer-events: none; }
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr); gap: clamp(35px, 5.3vw, 78px); align-items: center; min-height: 445px; }
.welcome-copy { max-width: 600px; padding: 7px 0 0 2px; animation: rise-in .55s ease both; }
.welcome-copy h1 { max-width: 630px; margin: 21px 0 19px; font: 700 clamp(39px, 5vw, 65px)/1.09 var(--font-display); letter-spacing: -.067em; }
.welcome-copy h1 em { color: var(--brand-red); font-style: normal; }
.welcome-cup { display: inline-block; font-size: .64em; vertical-align: 8px; }
.welcome-message { max-width: 465px; margin: 0; color: #716a65; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.9; }
.welcome-message strong { color: var(--dark); font-weight: 700; }
.welcome-actions { margin-top: 31px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 25px; }
.button-next { min-width: 148px; }
.welcome-subnote { display: inline-flex; align-items: center; gap: 7px; color: #827a74; font-size: 10px; font-weight: 600; }
.welcome-subnote svg { width: 15px; height: 15px; color: var(--green); }
.welcome-meta { display: flex; align-items: center; gap: 13px; margin-top: 44px; color: #aaa29c; font: 700 9px/1 var(--font-body); letter-spacing: .07em; }
.welcome-meta span:first-child { color: var(--brand-red); }
.welcome-meta .meta-line { width: 65px; height: 1px; background: #ccc5bf; }
.welcome-meta small { margin-left: 6px; color: #938b85; font: 500 9px/1 var(--font-body); letter-spacing: .01em; }
.welcome-art { position: relative; isolation: isolate; min-height: 411px; overflow: hidden; border-radius: 26px; background: #eee6dd; box-shadow: var(--shadow-soft); animation: rise-in .7s .08s ease both; }
.welcome-art::before { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.7) 0 24%, transparent 24.5%), linear-gradient(138deg, #f2e9df 0%, #e7ddd2 64%, #d8c5b4 100%); }
.welcome-art::after { content: ''; position: absolute; z-index: -1; inset: 14px; border: 1px solid rgba(255,255,255,.46); border-radius: 19px; pointer-events: none; }
.art-sun { position: absolute; top: 64px; left: calc(50% - 113px); width: 226px; height: 226px; border-radius: 50%; background: #d8c2af; opacity: .55; }
.art-label { position: absolute; top: 35px; left: 37px; color: #877568; font: 700 9px/1.6 var(--font-body); letter-spacing: .17em; }
.art-cup { position: absolute; z-index: 3; top: 130px; left: calc(50% - 91px); width: 180px; height: 159px; overflow: hidden; border-radius: 18px 18px 46px 46px; background: linear-gradient(110deg, #fcfaf6 0%, #f5f1eb 42%, #e1d5c8 100%); box-shadow: 0 24px 35px rgba(80,54,36,.2), inset 0 3px 4px rgba(255,255,255,.9); transform: rotate(-5deg); }
.cup-rim { position: absolute; z-index: 2; top: 0; left: -6px; width: 192px; height: 24px; border-radius: 50%; background: linear-gradient(180deg,#8b5a3d 0%,#503524 56%,#38251c 100%); border: 5px solid #f8f4ed; }
.cup-sleeve { position: absolute; top: 57px; left: 0; width: 100%; height: 47px; background: linear-gradient(90deg,#b68b6e,#c69c7f 45%,#a97d61); box-shadow: 0 2px 4px rgba(79,51,34,.16); }
.cup-mark { position: absolute; z-index: 1; top: 68px; left: 68px; color: #fffaf3; font: 800 27px/1 var(--font-display); letter-spacing: -.09em; }
.cup-mark span { color: #f3d0aa; }
.art-handle { position: absolute; z-index: 2; top: 166px; left: calc(50% + 69px); width: 55px; height: 58px; border: 13px solid #ded2c6; border-left: 0; border-radius: 0 28px 28px 0; transform: rotate(-5deg); }
.art-saucer { position: absolute; z-index: 2; top: 284px; left: calc(50% - 117px); width: 242px; height: 35px; border-radius: 50%; background: linear-gradient(180deg,#fbf7f0,#d8c7b7); box-shadow: 0 17px 18px rgba(74,51,36,.15); }
.art-steam { position: absolute; top: 79px; width: 13px; height: 40px; border: 2px solid rgba(128,97,76,.42); border-bottom: 0; border-left-color: transparent; border-radius: 50%; transform: rotate(13deg); }
.steam-one { left: calc(50% - 44px); }.steam-two { left: calc(50% - 6px); top: 69px; height: 49px; }.steam-three { left: calc(50% + 31px); }
.art-bean { position: absolute; width: 18px; height: 11px; border-radius: 50%; background: #9b6849; transform: rotate(-30deg); opacity: .82; }
.art-bean::after { content: ''; position: absolute; top: 1px; left: 8px; width: 1px; height: 9px; background: #e2bf9e; transform: rotate(24deg); }
.bean-one { top: 273px; left: 20%; }.bean-two { top: 130px; right: 16%; transform: rotate(22deg) scale(.78); }
.art-footnote { position: absolute; right: 34px; bottom: 27px; left: 34px; display: flex; justify-content: space-between; color: #897b70; font: 700 8px/1 var(--font-body); letter-spacing: .17em; }
.welcome-strip { margin: 29px 0 13px; padding: 19px 24px; border: 1px solid rgba(65,52,43,.09); border-radius: 15px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.52); }
.welcome-strip > div { display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.welcome-strip > div + div { border-left: 1px solid var(--line); }
.strip-index { color: var(--brand-red); font: 700 10px/1 var(--font-display); }
.welcome-strip strong, .welcome-strip small { display: block; }
.welcome-strip strong { font-size: 11px; font-weight: 700; }
.welcome-strip small { margin-top: 3px; color: #8c847e; font-size: 10px; }
.customer-footer { min-height: 65px; border-top: 1px solid rgba(65,52,43,.09); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #918982; font-size: 10px; }
.customer-footer a { display: inline-flex; align-items: center; gap: 5px; color: #716a64; font-weight: 600; }
.customer-footer a svg { width: 12px; height: 12px; }
.route-intro { max-width: 900px; min-height: 475px; padding: 18px 0 36px; animation: rise-in .45s ease both; }
.text-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 58px; color: #7e7771; font-size: 11px; font-weight: 600; }
.text-back:hover { color: var(--brand-red); }
.text-back svg { width: 15px; height: 15px; }
.route-intro h1 { margin: 13px 0; font: 700 clamp(38px, 5vw, 56px)/1.13 var(--font-display); letter-spacing: -.065em; }
.route-lead { max-width: 560px; color: #716a65; font-size: 15px; line-height: 1.8; }
.foundation-note { max-width: 700px; margin-top: 39px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 17px; background: rgba(255,255,255,.65); }
.note-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--brand-red); background: var(--brand-red-soft); }
.foundation-note h2 { margin: 4px 0 5px; font: 700 19px var(--font-display); letter-spacing: -.04em; }
.foundation-note p:not(.note-kicker) { margin: 0; color: #766f69; font-size: 12px; }
.note-kicker { color: #9c9189; font: 700 9px var(--font-body); letter-spacing: .16em; }
.error-state { min-height: 560px; padding-top: 95px; }

/* Guest authentication and installer */
.guest-app { min-height: 100vh; padding: 38px 20px 24px; background: radial-gradient(ellipse at 50% -15%, #fff 0%, #f7f4f0 59%, #eee8e1 100%); }
.guest-layout { width: min(100%, 680px); margin: 0 auto; }
.guest-brand { margin: 0 0 25px 4px; }
.auth-card, .installer-card { padding: clamp(24px, 5vw, 42px); border: 1px solid rgba(84,65,53,.1); border-radius: 24px; background: rgba(255,255,255,.91); box-shadow: 0 24px 70px rgba(53,38,27,.09); animation: rise-in .5s ease both; }
.auth-card { width: min(100%, 460px); margin: 0 auto; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.auth-icon { width: 43px; height: 43px; border: 1px solid #f0dbdc; border-radius: 14px; display: grid; place-items: center; color: var(--brand-red); background: #fbf0f0; }
.auth-status { display: inline-flex; align-items: center; gap: 7px; color: #7c746e; font: 700 8px var(--font-body); letter-spacing: .14em; }
.status-pulse { width: 6px; height: 6px; border-radius: 50%; background: #55a183; box-shadow: 0 0 0 3px rgba(85,161,131,.12); }
.auth-card h1, .installer-card h1 { margin: 12px 0 4px; font: 700 clamp(30px, 4vw, 38px)/1.2 var(--font-display); letter-spacing: -.055em; }
.auth-intro { margin: 0 0 24px; color: #79716b; font-size: 13px; line-height: 1.7; }
.auth-form label, .installer-form label { display: block; margin: 16px 0 7px; color: #3e3b38; font-size: 11px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 15px; left: 14px; width: 16px; height: 16px; color: #9c938c; }
.input-wrap input, .installer-form .form-control { width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #e6e1dc; border-radius: 10px; color: var(--dark); background: #fff; font-size: 12px; transition: border-color .18s, box-shadow .18s; }
.input-wrap input { padding-left: 42px; }
.input-wrap input:focus, .installer-form .form-control:focus { border-color: rgba(183,25,37,.52); box-shadow: 0 0 0 4px rgba(183,25,37,.08); outline: 0; }
.auth-submit { width: 100%; margin-top: 22px; justify-content: space-between; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; color: #a19a94; }
.auth-divider span { flex: 1; height: 1px; background: #eee9e5; }
.auth-divider small { font-size: 9px; }
.auth-home-link { display: inline-flex; align-items: center; gap: 7px; color: #77706a; font-size: 11px; font-weight: 600; }
.auth-home-link:hover { color: var(--brand-red); }
.auth-home-link svg { width: 14px; height: 14px; }
.nat-alert { margin: 15px 0; padding: 11px 12px; border: 1px solid #f1d3d2; border-radius: 10px; display: flex; gap: 9px; color: #84212a; background: #fff4f3; font-size: 11px; }
.nat-alert svg { flex: 0 0 16px; width: 16px; height: 16px; }
.guest-footnote { margin: 18px 0 0; text-align: center; color: #938b84; font-size: 9px; letter-spacing: .08em; }
.guest-footnote span { margin: 0 4px; color: var(--brand-red); }
.installer-card { max-width: 680px; margin: 0 auto; }
.installer-card .auth-intro { max-width: 560px; margin-bottom: 19px; }
.requirements-box { margin: 18px 0 22px; padding: 15px 17px; border: 1px solid #eee7e1; border-radius: 13px; background: #fbf9f7; }
.requirements-heading { display: flex; align-items: center; gap: 8px; color: #5f5852; font-size: 11px; }
.requirements-heading > svg { width: 17px; height: 17px; color: var(--brand-red); }
.requirement-version { margin-left: auto; padding: 4px 8px; border-radius: 20px; color: #8d342f; background: #f8e9e9; font: 700 8px var(--font-body); letter-spacing: .04em; }
.requirements-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 15px; }
.requirement-line { display: flex; align-items: center; gap: 7px; color: #726a64; font-size: 9px; }
.requirement-line b { margin-left: auto; color: #4a8c6e; font-size: 8px; letter-spacing: .06em; }
.requirement-line b.requirement-fail { color: var(--brand-red); }
.requirement-dot { width: 6px; height: 6px; border-radius: 50%; background: #62a584; }
.requirement-dot.requirement-fail { background: var(--brand-red); }
.form-section-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 7px; }
.form-section-title span { color: var(--brand-red); font: 700 10px var(--font-display); }
.form-section-title strong { color: #34302d; font: 700 12px var(--font-display); }
.form-help { margin: 0; color: #8d857e; font-size: 10px; }
.form-help code { color: #774b42; }
.installer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 13px; }
.installer-grid > div { min-width: 0; }
.installer-field-wide { grid-column: 1 / -1; }
.installer-form .form-control { font-size: 11px; }
.installer-admin-title { padding-top: 20px; border-top: 1px solid #eee9e4; }
.field-hint { display: block; margin-top: 5px; color: #908881; font-size: 9px; }
.installer-submit { margin-top: 25px; }
.installer-security-note { margin: 19px 0 0; display: flex; gap: 8px; color: #8a827c; font-size: 9px; line-height: 1.6; }
.installer-security-note svg { flex: 0 0 14px; width: 14px; height: 14px; color: #6c987e; }
.connected-note { margin: 17px 0; padding: 12px 13px; border-radius: 10px; display: flex; gap: 9px; color: #476e5d; background: #f0f7f2; font-size: 10px; }
.connected-note svg { flex: 0 0 17px; width: 17px; height: 17px; }
.installer-success { text-align: center; }
.success-medallion { width: 56px; height: 56px; margin: 0 auto 21px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); box-shadow: 0 0 0 9px #e8f3ed; }
.success-medallion svg { width: 24px; height: 24px; }
.installer-success .success-actions { margin: 25px 0; }
.installer-success .button { width: 100%; justify-content: space-between; }
.installer-success .installer-security-note { justify-content: center; text-align: left; }

/* Administration workspace */
.admin-app { min-height: 100vh; background: #f6f4f1; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0,1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 16px 16px; border-right: 1px solid #e9e5e0; display: flex; flex-direction: column; background: #fff; z-index: 30; }
.admin-brand { margin: 0 4px 37px; }
.sidebar-caption { margin: 0 10px 11px; color: #a49c95; font: 700 8px var(--font-body); letter-spacing: .17em; }
.sidebar-caption-lower { margin-top: 28px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { min-height: 42px; padding: 0 11px; border-radius: 9px; display: flex; align-items: center; gap: 12px; color: #77716b; font-size: 11px; font-weight: 600; transition: color .18s, background .18s; }
.admin-nav a svg { width: 16px; height: 16px; color: #9d958e; }
.admin-nav a:hover { color: var(--brand-red); background: #fbf5f3; }
.admin-nav a.is-active { color: var(--brand-red); background: #fbf0ef; }
.admin-nav a.is-active svg { color: var(--brand-red); }
.sidebar-bottom { margin-top: auto; }
.sidebar-status { padding: 12px 9px; border: 1px solid #eeeae6; border-radius: 11px; display: flex; align-items: center; gap: 9px; }
.sidebar-status strong, .sidebar-status small { display: block; }
.sidebar-status strong { color: #514b46; font-size: 10px; }
.sidebar-status small { margin-top: 2px; color: #99918a; font-size: 9px; }
.sidebar-store-link { margin: 11px 9px; display: flex; align-items: center; gap: 8px; color: #79716a; font-size: 10px; font-weight: 600; }
.sidebar-store-link:hover { color: var(--brand-red); }
.sidebar-store-link svg { width: 14px; height: 14px; }
.logout-form button { width: 100%; padding: 11px 9px; border: 0; border-top: 1px solid #f0ece8; display: flex; align-items: center; gap: 9px; color: #827a74; background: transparent; text-align: left; font-size: 10px; font-weight: 600; }
.logout-form button:hover { color: var(--brand-red); }
.logout-form button svg { width: 15px; height: 15px; }
.admin-workspace { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; padding: 0 clamp(19px, 3.2vw, 43px); border-bottom: 1px solid #e9e5e0; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; color: #a49c95; font-size: 10px; }
.admin-breadcrumb svg { width: 13px; height: 13px; }
.admin-breadcrumb strong { color: #3a3633; font-size: 11px; }
.admin-user-chip { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-red); background: #f6e4e4; font: 700 12px var(--font-display); }
.admin-user-chip strong, .admin-user-chip small { display: block; }
.admin-user-chip strong { color: #4b4540; font-size: 10px; }
.admin-user-chip small { margin-top: 1px; color: #989089; font-size: 8px; }
.sidebar-toggle { display: none; width: 34px; height: 34px; padding: 0; border: 1px solid #e8e2dc; border-radius: 8px; place-items: center; color: #766d66; background: white; }
.sidebar-toggle svg { width: 16px; height: 16px; }
.admin-main { flex: 1; padding: 37px clamp(19px, 3.2vw, 43px) 35px; transition: opacity .16s ease, transform .16s ease; }
.admin-footer { min-height: 47px; padding: 0 clamp(19px, 3.2vw, 43px); border-top: 1px solid #e9e5e0; display: flex; align-items: center; justify-content: space-between; color: #a19a93; font-size: 8px; letter-spacing: .08em; }
.page-heading-row { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading-row h1 { margin: 9px 0 4px; color: #292624; font: 700 clamp(27px, 3.4vw, 36px)/1.18 var(--font-display); letter-spacing: -.06em; }
.page-subtitle { margin: 0; color: #89817b; font-size: 11px; }
.dashboard-date { padding: 9px 11px; border: 1px solid #e9e3de; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; color: #777069; background: white; font-size: 9px; font-weight: 600; }
.dashboard-date svg { width: 14px; height: 14px; color: var(--brand-red); }
.dashboard-warning { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #efd8ba; border-radius: 10px; display: flex; align-items: center; gap: 9px; color: #765e41; background: #fff9f0; font-size: 10px; }
.dashboard-warning > svg { width: 16px; height: 16px; color: #b57c35; }
.dashboard-warning a { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: #875b28; font-weight: 700; white-space: nowrap; }
.dashboard-warning a svg { width: 12px; height: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric-card { min-width: 0; padding: 17px 17px 15px; border: 1px solid #ebe7e2; border-radius: 14px; background: #fff; box-shadow: 0 4px 15px rgba(50,37,28,.025); transition: transform .2s, box-shadow .2s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.metric-revenue { background: linear-gradient(145deg,#fff 40%,#fcf1ef); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #766f69; font-size: 10px; font-weight: 600; }
.metric-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-red); background: #faeeee; }
.metric-icon svg { width: 16px; height: 16px; }
.metric-icon-amber { color: var(--amber); background: #fcf4e8; }
.metric-icon-green { color: var(--green); background: #edf5ef; }
.metric-card > strong { display: block; overflow: hidden; margin-top: 13px; color: #2c2927; font: 700 clamp(22px, 2.5vw, 29px)/1.1 var(--font-display); letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.metric-card > small { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #99918b; font-size: 8px; }
.metric-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.dashboard-lower-grid { margin-top: 16px; display: grid; grid-template-columns: 1.17fr .83fr; gap: 15px; }
.panel-card { min-width: 0; padding: 20px; border: 1px solid #ebe7e2; border-radius: 14px; background: #fff; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading .eyebrow { font-size: 8px; }
.panel-heading h2 { margin: 5px 0 0; font: 700 16px/1.25 var(--font-display); letter-spacing: -.04em; }
.panel-badge { padding: 5px 8px; border-radius: 6px; color: #a66a32; background: #fcf2e6; font: 700 7px/1 var(--font-body); letter-spacing: .1em; white-space: nowrap; }
.empty-state { min-height: 187px; padding: 24px 15px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; color: #9e8778; background: #f5f0eb; }
.empty-state h3 { margin: 11px 0 3px; font: 700 12px var(--font-display); }
.empty-state p { max-width: 300px; margin: 0; color: #938b84; font-size: 9px; line-height: 1.65; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: #55a183; box-shadow: 0 0 0 4px #eaf4ee; }
.setup-list { margin: 17px 0 7px; display: grid; gap: 13px; }
.setup-list > div { display: flex; align-items: center; gap: 9px; }
.setup-check { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: #eef5f0; }
.setup-check svg { width: 13px; height: 13px; }
.setup-list strong, .setup-list small { display: block; }
.setup-list strong { color: #514b46; font-size: 9px; }
.setup-list small { margin-top: 2px; color: #9a928b; font-size: 8px; }
.setup-list b { margin-left: auto; color: #6f9b80; font: 700 7px var(--font-body); letter-spacing: .09em; }
.panel-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--brand-red); font-size: 9px; font-weight: 700; }
.panel-link:hover { color: var(--brand-red-dark); }
.panel-link svg { width: 14px; height: 14px; }
.admin-placeholder-page .page-heading-row { align-items: center; }
.module-ready-card { min-height: 255px; padding: clamp(24px, 4vw, 42px); border: 1px solid #e9e4df; border-radius: 17px; display: grid; grid-template-columns: minmax(120px,.5fr) minmax(0,1fr); align-items: center; gap: 30px; background: #fff; }
.module-ready-art { position: relative; width: 132px; height: 132px; margin: auto; border-radius: 50%; display: grid; place-items: center; color: var(--brand-red); background: #fbf1ef; }
.module-ready-art > svg { width: 35px; height: 35px; }
.ready-orbit { position: absolute; inset: 10px; border: 1px solid rgba(183,25,37,.18); border-radius: 50%; }
.orbit-two { inset: -10px; border-color: rgba(183,25,37,.11); }
.module-ready-card h2 { margin: 6px 0; font: 700 22px var(--font-display); letter-spacing: -.05em; }
.module-ready-card p:not(.eyebrow) { max-width: 530px; color: #847c75; font-size: 11px; line-height: 1.8; }

/* Navigation feedback and responsive states */
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
    .site-frame { padding-right: 4%; padding-left: 4%; }
    .welcome-hero { gap: 32px; }
    .welcome-art { min-height: 370px; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .customer-header { height: 76px; gap: 14px; }
    .customer-nav { gap: 18px; margin-right: 8px; }
    .customer-nav a { font-size: 10px; }
    .header-order-link { padding: 10px 11px; }
    .header-order-link span { display: none; }
    .welcome-hero { grid-template-columns: minmax(0,1fr) minmax(280px,.82fr); gap: 22px; }
    .welcome-art { min-height: 345px; }
    .welcome-copy h1 { font-size: clamp(38px,6vw,54px); }
    .welcome-meta small { display: none; }
    .admin-shell { grid-template-columns: 214px minmax(0,1fr); }
    .admin-sidebar { padding-right: 12px; padding-left: 12px; }
    .dashboard-lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-frame { padding: 0 19px; }
    .customer-header { height: auto; min-height: 75px; flex-wrap: wrap; gap: 0; padding: 14px 0 0; }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .brand-text strong { font-size: 12px; }
    .customer-nav { order: 3; width: 100%; margin: 10px 0 0; justify-content: space-between; gap: 8px; }
    .customer-nav a { padding: 9px 0 11px; font-size: 10px; }
    .header-order-link { margin-left: auto; }
    .customer-main { padding-top: 31px; }
    .welcome-hero { grid-template-columns: 1fr; gap: 27px; }
    .welcome-copy { padding: 0; }
    .welcome-copy h1 { margin-top: 15px; font-size: clamp(39px,11vw,55px); }
    .welcome-message { max-width: 420px; font-size: 13px; }
    .welcome-actions { margin-top: 23px; }
    .welcome-meta { margin-top: 26px; }
    .welcome-art { min-height: 320px; border-radius: 21px; }
    .art-sun { top: 44px; }
    .art-cup { top: 112px; }
    .art-handle { top: 148px; }
    .art-saucer { top: 266px; }
    .art-footnote { bottom: 22px; }
    .welcome-strip { grid-template-columns: 1fr; gap: 0; margin-top: 20px; padding: 7px 14px; }
    .welcome-strip > div { padding: 12px 4px; }
    .welcome-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .customer-footer { min-height: 58px; flex-wrap: wrap; gap: 6px 13px; padding: 11px 0; font-size: 9px; }
    .customer-footer span:nth-child(2) { display: none; }
    .route-intro { min-height: 460px; padding-top: 8px; }
    .text-back { margin-bottom: 42px; }
    .foundation-note { padding: 19px; }
    .guest-app { padding: 24px 14px; }
    .guest-brand { margin-bottom: 18px; }
    .auth-card, .installer-card { padding: 23px 20px; border-radius: 19px; }
    .auth-card-top { margin-bottom: 24px; }
    .requirements-grid { grid-template-columns: 1fr; }
    .installer-grid { grid-template-columns: 1fr; }
    .installer-field-wide { grid-column: auto; }
    .admin-shell { display: block; }
    .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; height: 100vh; transform: translateX(-101%); transition: transform .22s ease; box-shadow: 15px 0 45px rgba(33,26,20,.14); }
    .admin-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: grid; }
    .admin-topbar { min-height: 61px; padding: 0 16px; gap: 11px; }
    .admin-breadcrumb > span, .admin-breadcrumb > svg { display: none; }
    .admin-breadcrumb strong { font-size: 10px; }
    .admin-user-chip { gap: 6px; }
    .admin-user-chip > span:last-child { display: none; }
    .user-avatar { width: 29px; height: 29px; }
    .admin-main { padding: 27px 16px 28px; }
    .admin-footer { padding: 0 16px; }
    .page-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .page-heading-row h1 { font-size: 28px; }
    .dashboard-date { align-self: flex-start; }
    .dashboard-warning { align-items: flex-start; flex-wrap: wrap; line-height: 1.5; }
    .dashboard-warning a { margin-left: 24px; }
    .metric-grid { gap: 9px; }
    .metric-card { padding: 13px 12px; border-radius: 12px; }
    .metric-card-top { font-size: 9px; }
    .metric-icon { width: 29px; height: 29px; }
    .metric-card > strong { font-size: clamp(19px,6vw,25px); }
    .metric-card > small { font-size: 7px; }
    .panel-card { padding: 16px; }
    .module-ready-card { grid-template-columns: 1fr; gap: 19px; padding: 22px; }
    .module-ready-art { width: 92px; height: 92px; }
    .module-ready-art > svg { width: 27px; height: 27px; }
    .module-ready-card h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Small inline progress feedback; the persistent shell remains visible while a page fragment loads. */
.customer-main, .admin-main { position: relative; }
.customer-main.is-loading::before, .admin-main.is-loading::before {
    content: ""; position: absolute; z-index: 5; top: 0; left: 0; width: 23%; height: 2px;
    border-radius: 2px; background: var(--brand-red); animation: nav-progress .7s ease-in-out infinite alternate;
}
@keyframes nav-progress { from { transform: translateX(0); opacity: .55; } to { transform: translateX(330%); opacity: 1; } }
.auth-submit[disabled] { position: relative; opacity: .82; cursor: progress; }
.auth-submit[disabled]::after {
    content: ""; position: absolute; right: 20px; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: submit-spin .7s linear infinite;
}
.auth-submit[disabled] svg { opacity: 0; }
@keyframes submit-spin { to { transform: rotate(360deg); } }


/* Keterbacaan khusus antarmuka pelanggan: ukuran minimum 14px untuk teks informasi. */
.customer-app { font-size: 16px; }
.customer-app .customer-nav a,
.customer-app .header-order-link,
.customer-app .welcome-subnote,
.customer-app .welcome-strip strong,
.customer-app .welcome-strip small,
.customer-app .customer-footer,
.customer-app .text-back,
.customer-app .eyebrow,
.customer-app .route-lead,
.customer-app .foundation-note p:not(.note-kicker) { font-size: 14px; }
.customer-app .welcome-message { font-size: clamp(16px, 1.4vw, 18px); }
.customer-app .welcome-strip strong { font-size: 16px; }
.customer-app .welcome-strip small { font-size: 14px; }
.customer-app .customer-footer { min-height: 72px; }
.customer-app a:focus-visible { outline: 3px solid #a84336; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 640px) {
  .customer-app .customer-nav a { font-size: 14px; }
  .customer-app .customer-footer { flex-wrap: wrap; padding: 12px 0; }
}
/* Label teks visual pada halaman pelanggan juga mengikuti batas keterbacaan. */
.customer-app .brand-text small,
.customer-app .welcome-meta,
.customer-app .welcome-meta small,
.customer-app .art-label,
.customer-app .art-footnote,
.customer-app .strip-index,
.customer-app .note-kicker { font-size: 14px; line-height: 1.4; letter-spacing: .02em; }
.customer-app .button { font-size: 16px; }


/* Tampilan data admin yang berasal langsung dari MySQL. */
.records-count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e9e3de; border-radius: 999px; color: #635b55; background: #fff; font-size: 13px; font-weight: 700; }
.records-summary { margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.records-summary-card { min-width: 0; padding: 16px; border: 1px solid #ebe7e2; border-radius: 13px; background: #fff; }
.records-summary-card span, .records-summary-card strong { display: block; }
.records-summary-card span { color: #766f69; font-size: 13px; }
.records-summary-card strong { margin-top: 7px; color: #292624; font: 700 clamp(19px, 2vw, 25px)/1.2 var(--font-display); }
.records-panel { min-width: 0; border: 1px solid #ebe7e2; border-radius: 14px; background: #fff; overflow: hidden; }
.records-table-scroll { width: 100%; overflow-x: auto; }
.records-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.records-table th { padding: 14px 16px; color: #675f59; background: #faf8f6; text-align: left; font-size: 13px; font-weight: 700; white-space: nowrap; }
.records-table td { max-width: 330px; padding: 13px 16px; border-top: 1px solid #f0ece8; color: #3e3935; vertical-align: middle; }
.records-table tbody tr:hover { background: #fffdfb; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #5e625b; background: #f2f3f1; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-approved, .status-completed, .status-ready { color: #27694c; background: #eaf5ed; }
.status-pending, .status-pending_payment { color: #8b5f1c; background: #fff4de; }
.status-rejected, .status-cancelled { color: #8d3434; background: #fbeaea; }
.status-preparing, .status-queued { color: #365e8b; background: #eaf2fb; }
.records-footnote { margin: 0; padding: 12px 16px; border-top: 1px solid #f0ece8; color: #817871; font-size: 13px; }
.records-empty, .catalog-empty { min-height: 250px; padding: 35px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.records-empty > svg, .catalog-empty > svg { width: 38px; height: 38px; color: var(--brand-red); }
.records-empty h2, .catalog-empty h2 { margin: 14px 0 6px; font: 700 22px var(--font-display); }
.records-empty p, .catalog-empty p { max-width: 460px; color: #716a65; font-size: 15px; }
.records-empty .button, .catalog-empty .button { margin-top: 10px; }
.dashboard-recent-list { margin-top: 12px; }
.dashboard-recent-row { padding: 13px 0; border-top: 1px solid #f0ece8; display: flex; justify-content: space-between; gap: 14px; }
.dashboard-recent-row > span, .dashboard-recent-end { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dashboard-recent-row strong { color: #38322e; font-size: 14px; }
.dashboard-recent-row small { color: #827a74; font-size: 13px; }
.dashboard-recent-end { align-items: flex-end; text-align: right; }
.dashboard-recent-end b { color: #38322e; font-size: 14px; }

/* Katalog dan keranjang pelanggan berbasis data MySQL. */
.catalog-heading { margin-bottom: 26px; }
.catalog-heading h1, .cart-heading h1 { margin: 10px 0 8px; font: 700 clamp(36px, 5vw, 54px)/1.12 var(--font-display); letter-spacing: -.06em; }
.catalog-heading .route-lead { max-width: 720px; }
.catalog-category { margin: 28px 0 34px; }
.catalog-category-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.catalog-category-heading h2 { margin: 0; font: 700 24px/1.2 var(--font-display); letter-spacing: -.04em; }
.catalog-category-heading p { margin: 5px 0 0; color: #766f69; font-size: 14px; }
.catalog-category-heading > span { color: #817871; font-size: 14px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #e8e1da; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(54,40,30,.035); }
.product-card-art { height: 130px; position: relative; display: grid; place-items: center; color: #a15e48; background: linear-gradient(145deg, #f6e9de, #e9d6c6); }
.product-card-art > svg { width: 45px; height: 45px; stroke-width: 1.5; }
.product-card-art > span { position: absolute; right: 16px; bottom: 7px; color: rgba(113,66,51,.22); font: 800 43px var(--font-display); }
.product-card-body { padding: 16px; }
.product-available { display: inline-block; margin-bottom: 7px; color: #337452; font-size: 13px; font-weight: 700; }
.product-card h3 { margin: 0 0 6px; font: 700 19px/1.3 var(--font-display); }
.product-card p { min-height: 44px; margin: 0; color: #716a65; font-size: 14px; line-height: 1.55; }
.product-card-bottom { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card-bottom > strong { color: #272321; font: 700 17px var(--font-display); white-space: nowrap; }
.product-add { min-height: 40px; padding: 0 12px; gap: 7px; font-size: 14px !important; }
.product-add svg { width: 16px; height: 16px; }
.catalog-note, .checkout-disclaimer { margin-top: 22px; padding: 14px 16px; border: 1px solid #eadfd1; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: #64584f; background: #fff9f1; font-size: 14px; }
.catalog-note > svg, .checkout-disclaimer > svg { flex: 0 0 auto; width: 18px; height: 18px; color: #986c3e; }
.catalog-note a { margin-left: auto; color: var(--brand-red); font-weight: 700; white-space: nowrap; }
.cart-heading { margin: 0 0 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cart-heading h1 { margin-bottom: 3px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); align-items: start; gap: 18px; }
.cart-items { display: grid; gap: 12px; }
.cart-item { padding: 16px; border: 1px solid #e8e1da; border-radius: 14px; display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(170px, .7fr); align-items: center; gap: 14px; background: #fff; }
.cart-item-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #a15e48; background: #f6e9de; }
.cart-item-main h2 { margin: 0 0 4px; font: 700 17px var(--font-display); }
.cart-item-main p { margin: 0 0 6px; color: #766f69; font-size: 13px; }
.cart-item-main strong { color: #292624; font-size: 15px; }
.cart-quantity-form label { display: block; margin-bottom: 5px; color: #5c554f; font-size: 13px; font-weight: 700; }
.cart-quantity-controls { display: flex; gap: 7px; }
.cart-quantity-controls input { width: 70px; min-height: 40px; padding: 5px 8px; border: 1px solid #ded7d1; border-radius: 8px; font-size: 15px; }
.cart-quantity-controls .button { min-height: 40px; padding: 0 10px; font-size: 13px; }
.button-secondary { min-height: 46px; padding: 0 15px; border: 1px solid #ded7d1; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #3e3935; background: #fff; font-size: 14px; font-weight: 700; }
.button-secondary:hover { border-color: var(--brand-red); color: var(--brand-red); }
.cart-quantity-form > small { display: block; margin-top: 4px; color: #827a74; font-size: 12px; }
.cart-summary { padding: 20px; border: 1px solid #e8e1da; border-radius: 15px; background: #fff; }
.cart-summary h2 { margin: 8px 0 5px; font: 700 20px var(--font-display); }
.cart-total { display: block; margin: 8px 0; color: #292624; font: 700 27px var(--font-display); }
.cart-summary > p:not(.eyebrow) { color: #716a65; font-size: 14px; }
.cart-minimum-note { margin: 13px 0; padding: 11px; border-radius: 9px; color: #6d5634; background: #fff5e6; font-size: 13px; line-height: 1.5; }
.cart-continue { width: 100%; margin-top: 8px; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .records-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card-art { height: 110px; }
  .cart-item { grid-template-columns: 44px minmax(0,1fr); }
  .cart-item-icon { width: 42px; height: 42px; }
  .cart-quantity-form { grid-column: 1 / -1; }
  .catalog-category-heading { align-items: flex-start; }
  .catalog-note { align-items: flex-start; flex-wrap: wrap; }
  .catalog-note a { margin-left: 27px; }
  .records-summary { gap: 8px; }
  .records-summary-card { padding: 12px; }
  .records-summary-card span { font-size: 12px; }
  .records-table { min-width: 720px; }
}
.customer-app small { font-size: 14px !important; }
