/* ==========================================================================
   KANG KOPI — Design System
   Palet: Dark Espresso #1E1613 · Medium Coffee #7A4A24 · Light Beige #E3C8AD
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/poppins-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --espresso: #1E1613;
    --espresso-soft: #2B211C;
    --coffee: #7A4A24;
    --coffee-dark: #633A1A;
    --coffee-light: #9A6338;
    --beige: #E3C8AD;
    --beige-light: #F1E2D2;
    --beige-soft: #F7EEE4;
    --cream: #FBF7F2;
    --paper: #FFFFFF;
    --line: #EADBCC;
    --line-dark: #DCC8B4;
    --muted: #7E6A5C;
    --muted-light: #A28D7D;
    --green: #2F7D5B;
    --green-soft: #E4F3EA;
    --red: #C44536;
    --red-soft: #FBE9E6;
    --amber: #B57418;
    --amber-soft: #FCF1DC;
    --blue: #2E5E8E;
    --blue-soft: #E6F0FA;
    --shadow-sm: 0 1px 2px rgba(30, 22, 19, .06), 0 2px 8px rgba(30, 22, 19, .04);
    --shadow-md: 0 8px 24px rgba(30, 22, 19, .09);
    --shadow-lg: 0 24px 60px rgba(30, 22, 19, .18);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-body);
    --maxw: 1120px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--espresso);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.body-menu { background: #F5F0EB; }
.body-admin { background: #F6F1EA; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: var(--coffee); text-decoration: none; }
a:hover { color: var(--coffee-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
::selection { background: var(--beige); color: var(--espresso); }
:focus-visible { outline: 3px solid rgba(122, 74, 36, .35); outline-offset: 2px; }

.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coffee); color: #fff; box-shadow: 0 6px 16px rgba(122, 74, 36, .22); }
.btn-primary:hover { background: var(--coffee-dark); color: #fff; }
.btn-dark { background: var(--espresso); color: var(--beige); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-beige { background: var(--beige); color: var(--espresso); }
.btn-beige:hover { background: #efd8c1; color: var(--espresso); }
.btn-outline { border-color: var(--line-dark); background: transparent; color: var(--espresso); }
.btn-outline:hover { border-color: var(--coffee); color: var(--coffee); background: var(--beige-soft); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--beige-soft); color: var(--espresso); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a8362a; color: #fff; }
.btn-soft-danger { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #256347; color: #fff; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--beige-soft); color: var(--espresso); }
.icon-btn-sm { width: 32px; height: 32px; border-radius: 9px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field-label { font-size: 13px; font-weight: 600; color: var(--espresso-soft); }
.field small, .field-hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.input, .select, .textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 11px 13px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 44px;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--coffee);
    box-shadow: 0 0 0 4px rgba(122, 74, 36, .1);
}
.input::placeholder, .textarea::placeholder { color: #B6A496; }
.textarea { resize: vertical; min-height: 76px; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237E6A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-light); width: 18px; height: 18px; }
.input-icon .input { padding-left: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field-full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--coffee); }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 16px; }
.fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--coffee); }
.err-msg { color: var(--red); font-size: 12px; margin-top: 4px; }

/* ---------- Chips, badges, flash ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip-baru { background: var(--amber-soft); color: var(--amber); }
.chip-diproses { background: var(--blue-soft); color: var(--blue); }
.chip-siap { background: var(--green-soft); color: var(--green); }
.chip-selesai { background: #EEE9E3; color: var(--muted); }
.chip-batal { background: var(--red-soft); color: var(--red); }
.chip-paid { background: var(--green-soft); color: var(--green); }
.chip-unpaid { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: var(--beige-soft); color: var(--coffee); }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--coffee);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
}
.badge-soft { background: var(--beige); color: var(--espresso); }

.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--coffee);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash span { flex: 1; }
.flash-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); }
.flash .icon { color: var(--coffee); }
.flash-success .icon { color: var(--green); }
.flash-error .icon { color: var(--red); }

/* ---------- Brand & header ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.brand-word { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; line-height: 1; color: var(--espresso); display: flex; flex-direction: column; gap: 3px; }
.brand-word strong { font-weight: 800; }
.brand-logo-light .brand-word { color: var(--beige); }
.brand-logo-light .brand-word strong { color: #fff; }
.brand-link:hover { opacity: .9; }

.customer-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(30, 22, 19, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(227, 200, 173, .12);
}
.customer-header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.customer-header-actions { display: flex; align-items: center; gap: 6px; }
.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(227, 200, 173, .22);
    background: rgba(255, 255, 255, .04);
    color: var(--beige);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.header-pill:hover, .header-pill.active { background: var(--beige); color: var(--espresso); }
.header-pill .icon { width: 17px; height: 17px; }
.header-pill.cart-trigger { position: relative; }
.cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--beige);
    color: var(--espresso);
    font-size: 11px;
    font-weight: 800;
}
.header-pill:hover .cart-badge, .header-pill.active .cart-badge { background: var(--coffee); color: #fff; }
.cart-badge:empty, .cart-badge[data-empty="true"] { display: none; }

/* ---------- Customer menu page ---------- */
.body-menu { padding-bottom: calc(96px + var(--safe-bottom)); }

/* ---- Hero — compact banner strip ---- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 15%, rgba(122, 74, 36, .55), transparent 38%),
        radial-gradient(circle at 8% 100%, rgba(227, 200, 173, .12), transparent 45%),
        linear-gradient(135deg, #241A15 0%, #1E1613 55%, #33241B 100%);
    color: var(--beige);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(227, 200, 173, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .4;
    mask-image: linear-gradient(to right, #000, transparent 65%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--beige);
    opacity: .85;
    margin-bottom: 8px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #58C08A; box-shadow: 0 0 0 4px rgba(88, 192, 138, .16); }
.hero-title { font-size: clamp(22px, 3.5vw, 38px); font-weight: 800; color: #fff; max-width: 560px; }
.hero-title em { font-style: normal; color: var(--beige); }
.hero-sub { margin-top: 8px; max-width: 480px; color: rgba(227, 200, 173, .82); font-size: 13.5px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(227, 200, 173, .16);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--beige);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.hero-tag:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(227, 200, 173, .35);
    color: #fff;
    transform: translateY(-1px);
}
.hero-tag .icon { width: 14px; height: 14px; color: var(--beige); }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-promo-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    width: 100%;
}
.hero-promo-glow {
    position: absolute;
    inset: -10% -10%;
    background: radial-gradient(circle at 50% 55%, rgba(227, 200, 173, .26) 0%, rgba(122, 74, 36, .2) 45%, transparent 72%);
    filter: blur(14px);
    z-index: 0;
    pointer-events: none;
}
.hero-promo-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
    animation: promoFloat 6s ease-in-out infinite;
    user-select: none;
}
@keyframes promoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.hero-promo-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-promo-badge-top {
    top: -2px;
    right: 6px;
    background: var(--beige);
    color: var(--espresso);
    font-family: var(--font-display);
    transform: rotate(6deg);
}
.hero-promo-badge-top:hover { transform: rotate(6deg) scale(1.06); }
.hero-promo-badge-bottom {
    bottom: -6px;
    left: 8px;
    background: rgba(30, 22, 19, .92);
    color: var(--beige);
    border: 1px solid rgba(227, 200, 173, .35);
    backdrop-filter: blur(8px);
    transform: rotate(-3deg);
}
.hero-promo-badge-bottom:hover { transform: rotate(-3deg) scale(1.06); border-color: var(--beige); color: #fff; }
.hero-promo-badge .icon { width: 13px; height: 13px; color: var(--beige); }
.hero-cup {
    position: relative;
    width: min(180px, 32vw);
    aspect-ratio: 1;
    border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
    background: linear-gradient(145deg, rgba(227, 200, 173, .18), rgba(122, 74, 36, .25));
    border: 1px solid rgba(227, 200, 173, .18);
    display: grid;
    place-items: center;
    font-size: clamp(52px, 9vw, 90px);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, .25);
    animation: float 6s ease-in-out infinite;
}
.hero-cup::before {
    content: 'JOSS JISS!';
    position: absolute;
    top: 4%;
    right: -8%;
    transform: rotate(8deg);
    background: var(--beige);
    color: var(--espresso);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 5px 9px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* ---- Menu section — app-like white card ---- */
.menu-section {
    max-width: var(--maxw);
    margin: 0 auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -18px;
    position: relative;
    z-index: 2;
    padding: 24px 20px 0;
    box-shadow: 0 -4px 24px rgba(30, 22, 19, .07);
    min-height: calc(100vh - 160px);
}
.menu-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.menu-heading { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--espresso); }
.menu-count { font-size: 12px; color: var(--muted); margin-top: 2px; }
.search-box { position: relative; flex: 1; max-width: 300px; }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-light); }
.search-box input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: var(--beige-soft);
    border-radius: 999px;
    padding: 10px 16px 10px 38px;
    font-size: 13.5px;
    color: var(--espresso);
}
.search-box input::placeholder { color: var(--muted-light); }
.search-box input:focus { outline: none; border-color: var(--coffee); background: #fff; box-shadow: 0 0 0 4px rgba(122, 74, 36, .08); }

/* ---- Category tabs — pill strip ---- */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
    transition: all .15s ease;
    white-space: nowrap;
}
.tab:hover { background: var(--beige-soft); border-color: var(--beige); color: var(--espresso); }
.tab.active { background: var(--espresso); color: #fff; border-color: var(--espresso); box-shadow: 0 4px 12px rgba(30, 22, 19, .18); }
.tab .tab-emoji { font-size: 15px; line-height: 1; }
.tab .menu-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0,0,0,.08);
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 0 5px;
}
.tab.active .menu-count { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }

/* ---- Product grid — 2–4 col, app-style portrait cards ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding-bottom: 32px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30, 22, 19, .10); border-color: var(--beige); }
.product-card.is-soldout { opacity: .58; }
.product-card.is-soldout:hover { transform: none; box-shadow: none; border-color: var(--line); cursor: default; }
.product-soldout {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(30, 22, 19, .82);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 8px;
    border-radius: 6px;
}
.product-stock-note { font-size: 11px; font-weight: 700; color: var(--muted); }
.product-media {
    position: relative;
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.product-media::before, .product-media::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}
.product-media::before { width: 100px; height: 100px; top: -32px; right: -28px; }
.product-media::after  { width: 56px;  height: 56px;  bottom: -20px; left: -12px; }
.art-kopi    { background: linear-gradient(145deg, #EDD5BB 0%, #DCBD9A 100%); }
.art-nonkopi { background: linear-gradient(145deg, #DDE9D5 0%, #BFCFB4 100%); }
.art-camilan { background: linear-gradient(145deg, #F3E4BB 0%, #EAD099 100%); }
.product-emoji { position: relative; z-index: 1; font-size: 56px; filter: drop-shadow(0 6px 10px rgba(30, 22, 19, .18)); transition: transform .2s ease; }
.product-card:hover .product-emoji { transform: scale(1.1) rotate(-4deg); }
.product-card img.product-photo { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; padding: 10px; box-sizing: border-box; }
.product-fav {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--espresso);
    color: var(--beige);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 9px;
    border-radius: 999px;
}
.product-body { padding: 14px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 3px; }
.product-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--espresso); }
.product-desc { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; margin-top: 2px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.product-price { color: var(--coffee); font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.add-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 0;
    background: var(--espresso);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 4px 10px rgba(30, 22, 19, .18);
}
.add-btn:hover { background: var(--coffee); transform: scale(1.07); }
.add-btn .icon { width: 18px; height: 18px; }
.menu-empty { grid-column: 1 / -1; background: var(--beige-soft); border: 1.5px dashed var(--line-dark); border-radius: 18px; padding: 48px 20px; text-align: center; color: var(--muted); }
.menu-empty .icon { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--coffee); }

.menu-footer { background: #fff; max-width: 100%; margin: 0; padding: 20px 20px 32px; color: var(--muted); font-size: 12px; text-align: center; border-top: 1px solid var(--line); }
.menu-footer strong { font-family: var(--font-display); color: var(--espresso); }

/* floating cart bar */
.cart-bar {
    position: fixed;
    left: 50%;
    bottom: calc(16px + var(--safe-bottom));
    transform: translate(-50%, 130%);
    width: min(var(--maxw) - 32px, 100% - 24px);
    z-index: 45;
    background: var(--espresso);
    color: var(--beige);
    border-radius: 18px;
    padding: 10px 10px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(30, 22, 19, .35);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
    opacity: 0;
    pointer-events: none;
}
.cart-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cart-bar-info { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: rgba(227, 200, 173, .75); }
.cart-bar-info strong { font-size: 16px; color: #fff; font-family: var(--font-display); }
.cart-bar .btn { border-radius: 12px; padding: 12px 18px; }

/* ---------- Drawer / modal ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    justify-content: flex-end;
}
.drawer-scrim, .modal-backdrop { position: fixed; inset: 0; background: rgba(30, 22, 19, .5); backdrop-filter: blur(2px); animation: fadeIn .18s ease; }
.drawer-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    height: 100%;
    background: var(--cream);
    box-shadow: -20px 0 60px rgba(30, 22, 19, .2);
    display: flex;
    flex-direction: column;
    animation: slideInRight .24s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-foot { padding: 16px 20px calc(18px + var(--safe-bottom)); border-top: 1px solid var(--line); background: #fff; }
@keyframes slideInRight { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop { z-index: 80; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: popIn .2s cubic-bezier(.2, .8, .2, 1);
}
.modal-card.wide { width: min(720px, 100%); }
.modal-card.slim { width: min(420px, 100%); }
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; }
.modal-head h2 { font-size: 20px; }
.modal-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.modal-body { padding: 4px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--cream); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-close { border: 0; background: var(--beige-soft); color: var(--muted); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.modal-close:hover { background: var(--beige); color: var(--espresso); }

/* ---------- Cart ---------- */
.cart-empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.cart-empty .icon { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--coffee); }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; flex: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14px; }
.cart-item-variant { font-size: 12px; color: var(--muted); }
.cart-item-note { font-size: 11.5px; color: var(--coffee); font-style: italic; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cart-item-price { font-weight: 700; font-size: 13.5px; color: var(--coffee); }
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--beige-soft); border-radius: 9px; padding: 2px; }
.qty-stepper button { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; display: grid; place-items: center; color: var(--coffee); }
.qty-stepper button:hover { background: #fff; }
.qty-stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.link-danger { border: 0; background: none; color: var(--red); font-size: 11.5px; padding: 2px; }
.cart-summary { margin-top: 16px; background: var(--beige-soft); border-radius: 14px; padding: 14px 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 3px 0; }
.summary-row.total { font-size: 17px; color: var(--espresso); font-weight: 800; border-top: 1px dashed var(--line-dark); margin-top: 6px; padding-top: 10px; }
.summary-row.total span:last-child { color: var(--coffee); }
.cart-form { margin-top: 16px; }
.cart-form h3 { font-size: 14px; margin-bottom: 10px; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; }
.type-option span { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.type-option input:checked + span { border-color: var(--coffee); background: var(--beige-soft); color: var(--coffee-dark); }

/* ---------- Variant picker ---------- */
.variant-product { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.variant-product .cart-thumb { width: 64px; height: 64px; font-size: 30px; }
.variant-group { margin-bottom: 16px; }
.variant-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.variant-group-head strong { font-size: 13.5px; }
.variant-group-head small { color: var(--muted); font-size: 11.5px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .12s ease; }
.variant-option span small { color: var(--muted); font-weight: 500; }
.variant-option input:checked + span { border-color: var(--coffee); background: var(--beige-soft); color: var(--coffee-dark); box-shadow: 0 0 0 3px rgba(122, 74, 36, .07); }
.variant-option input:focus-visible + span { outline: 3px solid rgba(122, 74, 36, .3); }
.variant-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.variant-qty .qty-stepper button { width: 34px; height: 34px; background: #fff; border: 1px solid var(--line); }
.variant-qty .qty-stepper span { font-size: 15px; min-width: 30px; }

/* ---------- Status page ---------- */
.status-page { min-height: 100vh; background: radial-gradient(circle at top, #F0DFCC 0%, var(--beige) 45%, #D9BC9F 100%); padding-bottom: 50px; }
.status-wrap { max-width: 620px; margin: 0 auto; padding: 26px 18px 0; }
.status-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-md); overflow: hidden; }
.status-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); position: relative; }
.status-head::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--coffee), var(--beige)); }
.status-head .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status-head h1 { font-size: 24px; margin-top: 4px; }
.status-head .order-no { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--beige-soft); color: var(--coffee-dark); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-head .status-chip-row { position: absolute; right: 24px; top: 24px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status-body { padding: 22px 24px; }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 4px 0 24px; }
.status-step { position: relative; text-align: center; font-size: 11px; color: var(--muted-light); }
.status-step::before { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 3px; background: #EFE7DE; z-index: 0; }
.status-step:last-child::before { display: none; }
.status-step .step-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #F3ECE4; color: var(--muted-light); display: grid; place-items: center; margin: 0 auto 7px; border: 3px solid #fff; box-shadow: 0 0 0 1px #EFE7DE; }
.status-step .step-dot .icon { width: 14px; height: 14px; }
.status-step.done .step-dot { background: var(--green); color: #fff; box-shadow: 0 0 0 1px var(--green); }
.status-step.done::before { background: var(--green); }
.status-step.active .step-dot { background: var(--coffee); color: #fff; box-shadow: 0 0 0 1px var(--coffee), 0 0 0 5px rgba(122, 74, 36, .12); animation: pulse 1.8s infinite; }
.status-step.active { color: var(--coffee-dark); font-weight: 700; }
.status-step.done { color: var(--green); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 1px var(--coffee), 0 0 0 5px rgba(122, 74, 36, .12); } 50% { box-shadow: 0 0 0 1px var(--coffee), 0 0 0 9px rgba(122, 74, 36, .04); } }
.eta-box { display: flex; align-items: center; gap: 10px; background: var(--beige-soft); border-radius: 12px; padding: 11px 14px; font-size: 12.5px; color: var(--coffee-dark); margin-bottom: 18px; }
.eta-box .icon { width: 18px; height: 18px; }
.eta-box strong { font-size: 14px; }
.order-list { border-top: 1px dashed var(--line-dark); padding-top: 14px; }
.order-line { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; font-size: 13.5px; }
.order-line .qty { color: var(--coffee); font-weight: 800; min-width: 24px; }
.order-line .item-main { flex: 1; }
.order-line .item-main small { display: block; color: var(--muted); font-size: 11.5px; }
.order-line .item-price { font-weight: 700; white-space: nowrap; }
.status-totals { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.status-totals .summary-row.total { font-size: 18px; }
.pay-panel { margin-top: 18px; border-radius: 16px; border: 1.5px dashed var(--line-dark); padding: 16px; background: var(--cream); }
.pay-panel h3 { font-size: 15px; margin-bottom: 4px; }
.pay-panel p { font-size: 12px; color: var(--muted); }
.qris-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0; }
.qris-frame { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qris-frame svg, .qris-frame img { width: 180px; height: 180px; display: block; }
.qris-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.qris-brand span { color: var(--coffee); }
.pay-actions { display: flex; flex-direction: column; gap: 8px; }
.pay-note { font-size: 11px; color: var(--muted-light); text-align: center; }
.paid-banner { display: flex; align-items: center; gap: 10px; background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-top: 16px; }
.paid-banner .icon { width: 20px; height: 20px; }
.status-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.loyalty-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--espresso); color: var(--beige); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.loyalty-mini .stamps { display: flex; gap: 4px; margin-top: 5px; }
.stamp { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(227, 200, 173, .45); background: transparent; }
.stamp.filled { background: var(--beige); border-color: var(--beige); }
.loyalty-mini strong { color: #fff; font-size: 14px; }
.loyalty-mini small { font-size: 11px; color: rgba(227, 200, 173, .75); }

/* ---------- Loyalty page ---------- */
.loyalty-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #3A281E 0%, var(--espresso) 55%); color: var(--beige); padding: 30px 18px 60px; }
.loyalty-wrap { max-width: 520px; margin: 0 auto; }
.loyalty-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.loyalty-hero { text-align: center; margin-bottom: 24px; }
.loyalty-hero h1 { color: #fff; font-size: 30px; }
.loyalty-hero p { color: rgba(227, 200, 173, .7); font-size: 14px; margin-top: 6px; }
.loyalty-card {
    position: relative;
    background: linear-gradient(145deg, #8A562C 0%, #6A3F1E 45%, #4B2C17 100%);
    border: 1px solid rgba(227, 200, 173, .25);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
    overflow: hidden;
}
.loyalty-card::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(227, 200, 173, .08); top: -100px; right: -70px; }
.loyalty-card::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(227, 200, 173, .06); bottom: -90px; left: -50px; }
.loyalty-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.loyalty-card-head .brand-word { color: var(--beige); }
.loyalty-card-label { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(227, 200, 173, .65); }
.loyalty-points { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: #fff; line-height: 1; }
.loyalty-points small { font-size: 14px; font-weight: 600; color: rgba(227, 200, 173, .7); }
.stamp-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 14px; position: relative; z-index: 1; }
.stamp-lg { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed rgba(227, 200, 173, .4); display: grid; place-items: center; font-size: 16px; color: rgba(227, 200, 173, .4); background: rgba(0, 0, 0, .12); }
.stamp-lg.filled { border-style: solid; border-color: var(--beige); background: var(--beige); color: var(--coffee-dark); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.stamp-lg.reward { border-color: #F1C96A; color: #F1C96A; }
.loyalty-card-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(227, 200, 173, .18); padding-top: 14px; }
.loyalty-card-foot .holder { font-size: 12px; color: rgba(227, 200, 173, .7); }
.loyalty-card-foot .holder strong { display: block; color: #fff; font-size: 15px; font-family: var(--font-display); }
.loyalty-card-foot .points-label { text-align: right; font-size: 11px; color: rgba(227, 200, 173, .7); }
.loyalty-card-foot .points-label strong { display: block; color: var(--beige); font-size: 18px; }
.loyalty-search { background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 200, 173, .16); border-radius: 18px; padding: 18px; margin-top: 20px; backdrop-filter: blur(6px); }
.loyalty-search h2 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.loyalty-search p { font-size: 12px; color: rgba(227, 200, 173, .65); margin-bottom: 12px; }
.loyalty-search .input { background: rgba(255, 255, 255, .94); }
.loyalty-search .btn-primary { background: var(--beige); color: var(--espresso); box-shadow: none; }
.loyalty-search .btn-primary:hover { background: #f0d8c0; }
.loyalty-reward { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reward-tile { background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 200, 173, .13); border-radius: 14px; padding: 13px 12px; text-align: center; }
.reward-tile .icon { color: var(--beige); margin: 0 auto 6px; width: 22px; height: 22px; }
.reward-tile strong { display: block; font-size: 12px; color: #fff; }
.reward-tile small { font-size: 10.5px; color: rgba(227, 200, 173, .6); }
.loyalty-note { margin-top: 22px; text-align: center; font-size: 11px; color: rgba(227, 200, 173, .5); }
.loyalty-link { display: inline-flex; align-items: center; gap: 6px; color: var(--beige); font-size: 13px; margin-top: 18px; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--cream); }
.login-left { position: relative; overflow: hidden; background: radial-gradient(circle at 75% 20%, rgba(122, 74, 36, .55), transparent 42%), linear-gradient(145deg, #241A15, var(--espresso)); color: var(--beige); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.login-left::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(227, 200, 173, .12) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; pointer-events: none; }
.login-left .brand-logo { position: relative; z-index: 1; }
.login-quote { position: relative; z-index: 1; max-width: 430px; }
.login-quote h1 { color: #fff; font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.login-quote h1 em { font-style: normal; color: var(--beige); }
.login-quote p { color: rgba(227, 200, 173, .72); font-size: 15px; max-width: 380px; }
.login-metrics { display: flex; gap: 28px; margin-top: 30px; position: relative; z-index: 1; }
.login-metric strong { display: block; font-family: var(--font-display); font-size: 22px; color: #fff; }
.login-metric span { font-size: 11px; color: rgba(227, 200, 173, .6); letter-spacing: .06em; text-transform: uppercase; }
.login-right { display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 27px; }
.login-card .lead { color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.login-card .input { min-height: 48px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-logo-mobile { display: none; margin-bottom: 24px; }
.login-logo-mobile .brand-word { color: var(--espresso); }
.demo-accounts { margin-top: 22px; border-top: 1px dashed var(--line-dark); padding-top: 16px; }
.demo-accounts p { font-size: 11px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.demo-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; background: var(--beige-soft); border-radius: 9px; padding: 7px 10px; margin-bottom: 6px; }
.demo-account code { font-size: 11.5px; color: var(--coffee-dark); }
.login-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* ---------- Admin shell ---------- */
.admin-shell { min-height: 100vh; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    background: linear-gradient(180deg, #241A15, var(--espresso));
    color: var(--beige);
    display: flex;
    flex-direction: column;
    padding: 20px 14px 14px;
    z-index: 60;
    border-right: 1px solid rgba(227, 200, 173, .08);
}
.admin-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 16px; }
.admin-role { font-size: 9.5px; letter-spacing: .18em; color: rgba(227, 200, 173, .42); font-weight: 700; padding: 0 10px 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; color: rgba(227, 200, 173, .7); font-size: 13.5px; font-weight: 500; transition: all .15s ease; }
.admin-nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.admin-nav-link:hover { background: rgba(227, 200, 173, .08); color: #fff; }
.admin-nav-link.active { background: var(--beige); color: var(--espresso); font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.admin-nav-link.active .icon { opacity: 1; }
.admin-sidebar-foot { border-top: 1px solid rgba(227, 200, 173, .12); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.admin-sidebar-foot .btn-beige { background: rgba(227, 200, 173, .12); color: var(--beige); }
.admin-sidebar-foot .btn-beige:hover { background: var(--beige); color: var(--espresso); }
.admin-user { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--coffee); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.admin-user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.admin-user-meta strong { font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-meta small { font-size: 10px; color: rgba(227, 200, 173, .5); }
.admin-user .icon-btn { color: rgba(227, 200, 173, .6); }
.admin-user .icon-btn:hover { background: rgba(227, 200, 173, .12); color: #fff; }
.admin-main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(246, 241, 234, .88); backdrop-filter: blur(12px); border-bottom: 1px solid #E9DFD3; }
.admin-title { flex: 1; min-width: 0; }
.admin-title h1 { font-size: 23px; }
.admin-title p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-date { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.admin-content { padding: 24px 28px 40px; width: 100%; max-width: 1360px; margin: 0 auto; flex: 1; }
.sidebar-toggle { display: none; }
.sidebar-close { display: none; }
.sidebar-scrim { display: none; }

/* ---------- Admin components ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; background: #fff; border-radius: 16px; border: 1px solid #EEE4D9; padding: 17px 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--beige-soft); right: -45px; top: -45px; opacity: .8; }
.stat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--beige-soft); color: var(--coffee); display: grid; place-items: center; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-value { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 800; margin-top: 12px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 11px; color: var(--muted); margin-top: 3px; position: relative; z-index: 1; }
.stat-card.accent { background: linear-gradient(135deg, #7A4A24, #5B3518); color: var(--beige); border: 0; }
.stat-card.accent .stat-label, .stat-card.accent .stat-hint { color: rgba(227, 200, 173, .75); }
.stat-card.accent .stat-value { color: #fff; }
.stat-card.accent .stat-icon { background: rgba(255, 255, 255, .13); color: var(--beige); }
.stat-card.accent::after { background: rgba(255, 255, 255, .06); }

.grid-2 { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; align-items: start; }
.grid-2-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border: 1px solid #EEE4D9; border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #F2EAE1; }
.panel-head h2 { font-size: 15.5px; }
.panel-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.panel-head .icon-btn { width: 30px; height: 30px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.panel-link { font-size: 12px; font-weight: 600; color: var(--coffee); display: inline-flex; align-items: center; gap: 3px; }
.panel-link .icon { width: 14px; height: 14px; }
.quick-action { display: flex; flex-direction: column; gap: 5px; padding: 18px; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.quick-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px; }
.quick-action-icon .icon { width: 20px; height: 20px; }
.quick-action strong { font-size: 14px; }
.quick-action small { font-size: 11.5px; color: var(--muted); }

.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 12px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar { width: 100%; max-width: 36px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--coffee-light), var(--coffee)); min-height: 3px; position: relative; transition: height .4s ease; }
.bar:hover { background: var(--coffee-dark); }
.bar-label { font-size: 9px; color: var(--muted-light); white-space: nowrap; }
.bar-value { font-size: 9px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.chart-empty { height: 170px; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; }

.top-list { display: flex; flex-direction: column; gap: 2px; }
.top-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #F0E7DD; }
.top-item:last-child { border-bottom: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--beige-soft); color: var(--coffee); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.top-item:nth-child(1) .rank { background: var(--espresso); color: var(--beige); }
.top-item-main { flex: 1; min-width: 0; }
.top-item-main strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-item-main small { font-size: 11px; color: var(--muted); }
.top-item-value { font-size: 12.5px; font-weight: 700; color: var(--coffee); white-space: nowrap; }
.stock-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #F0E7DD; }
.stock-alert:last-child { border-bottom: 0; }
.stock-alert .stock-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.stock-alert .stock-icon .icon { width: 16px; height: 16px; }
.stock-alert strong { display: block; font-size: 13px; }
.stock-alert small { color: var(--muted); font-size: 11.5px; }
.stock-alert .stock-qty { font-size: 12px; font-weight: 800; color: var(--red); white-space: nowrap; }
.stock-ok { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; padding: 14px 0; }

.recent-list { display: flex; flex-direction: column; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #F0E7DD; }
.recent-row:last-child { border-bottom: 0; }
.recent-main { flex: 1; min-width: 0; }
.recent-main strong { font-size: 12.5px; display: block; }
.recent-main small { font-size: 11px; color: var(--muted); }
.recent-total { font-size: 13px; font-weight: 700; white-space: nowrap; }
.recent-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #FBF6F0; border-bottom: 1px solid #F0E7DD; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #F5EEE6; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #FDFAF6; }
.data-table .cell-main { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.data-table .cell-main img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.data-table .cell-art { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; flex: none; }
.data-table .cell-main strong { display: block; font-size: 13px; }
.data-table .cell-main small { display: block; font-size: 11px; color: var(--muted); }
.table-actions { display: flex; gap: 4px; justify-content: flex-end; }
.table-actions .icon-btn { width: 30px; height: 30px; }
.table-empty { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 13px; }
.table-empty .icon { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--coffee); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.filter-bar .field { margin-bottom: 0; }
.filter-bar .input, .filter-bar .select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.filter-bar .field label { font-size: 11px; }
.filter-bar .btn { min-height: 40px; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; justify-content: space-between; align-items: center; }
.page-head-actions h2 { font-size: 18px; }
.page-head-actions p { font-size: 12px; color: var(--muted); }

/* price summary in reports */
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.report-stat { background: #fff; border: 1px solid #EEE4D9; border-radius: 13px; padding: 13px 15px; }
.report-stat span { font-size: 11px; color: var(--muted); display: block; }
.report-stat strong { font-family: var(--font-display); font-size: 19px; display: block; margin-top: 2px; }
.pay-breakdown { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill { background: var(--beige-soft); border-radius: 9px; padding: 8px 12px; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.pay-pill strong { color: var(--coffee); }
.status-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.status-toggle button { border: 0; background: #fff; padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--muted); }
.status-toggle button.active { background: var(--coffee); color: #fff; }

/* variants/recipe editor rows */
.editor-rows { display: flex; flex-direction: column; gap: 8px; }
.editor-row { display: grid; grid-template-columns: 1.1fr 1.1fr .65fr 64px 36px; gap: 8px; align-items: center; }
.editor-row.recipe-row { grid-template-columns: 1.5fr .8fr 44px; }
.editor-row .input, .editor-row .select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.editor-row .icon-btn { width: 34px; height: 34px; color: var(--red); }
.editor-head { display: grid; grid-template-columns: 1.1fr 1.1fr .65fr 64px 36px; gap: 8px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 2px; }
.editor-head.recipe-head { grid-template-columns: 1.5fr .8fr 44px; }
.editor-check { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.editor-check input { accent-color: var(--coffee); }
.add-row-btn { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--line-dark); border-radius: 8px; background: none; padding: 7px 10px; color: var(--coffee); font-weight: 600; width: fit-content; }
.add-row-btn:hover { background: var(--beige-soft); }
.upload-drop { border: 1.5px dashed var(--line-dark); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.upload-preview { width: 56px; height: 56px; border-radius: 10px; background: var(--beige-soft); display: grid; place-items: center; font-size: 26px; overflow: hidden; flex: none; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-drop input[type=file] { font-size: 11px; max-width: 230px; }

/* users */
.user-chip { display: inline-flex; align-items: center; gap: 7px; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 10.5px; }
.role-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--beige-soft); color: var(--coffee); }
.role-pill.owner { background: var(--espresso); color: var(--beige); }
.toggle-switch { position: relative; display: inline-flex; width: 38px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch span { position: absolute; inset: 0; background: #D8CCC0; border-radius: 999px; transition: .2s; cursor: pointer; }
.toggle-switch span::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle-switch input:checked + span { background: var(--green); }
.toggle-switch input:checked + span::before { transform: translateX(16px); }

/* ---------- POS ---------- */
.pos-body { height: 100vh; overflow: hidden; background: var(--beige-soft); }
.pos-topbar { height: 62px; background: var(--espresso); color: var(--beige); display: flex; align-items: center; gap: 16px; padding: 0 18px; position: relative; z-index: 30; }
.pos-topbar .brand-logo img { width: 34px; height: 34px; border-radius: 10px; }
.pos-topbar .brand-word { font-size: 12px; }
.pos-shift { display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 18px; border-left: 1px solid rgba(227, 200, 173, .16); }
.pos-shift-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(227, 200, 173, .14); padding: 6px 10px; border-radius: 999px; color: rgba(227, 200, 173, .8); }
.pos-shift-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pos-shift-pill.open .dot { background: #58C08A; box-shadow: 0 0 0 3px rgba(88, 192, 138, .15); }
.pos-topbar-spacer { flex: 1; }
.pos-clock { font-family: var(--font-display); font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.pos-topbar .btn-ghost { color: rgba(227, 200, 173, .75); }
.pos-topbar .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pos-topbar .queue-btn { position: relative; }
.queue-count { position: absolute; top: -3px; right: -3px; background: var(--red); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; font-size: 10px; display: grid; place-items: center; font-weight: 800; padding: 0 4px; }
.offline-pill { display: none; align-items: center; gap: 5px; font-size: 11px; background: var(--red); color: #fff; border-radius: 999px; padding: 5px 9px; }
body.is-offline .offline-pill { display: inline-flex; }
.pos-shell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 62px); }
.pos-menu { padding: 16px 18px 20px; overflow-y: auto; }
.pos-menu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pos-search { position: relative; flex: 1; max-width: 360px; }
.pos-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-light); }
.pos-search input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px 9px 34px; font-size: 13px; }
.pos-search input:focus { outline: none; border-color: var(--coffee); }
.pos-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; margin-bottom: 14px; }
.pos-tab { flex: none; border: 1.5px solid transparent; background: rgba(255, 255, 255, .65); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; color: var(--coffee-dark); }
.pos-tab.active { background: var(--espresso); color: var(--beige); }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-product { text-align: left; background: #fff; border: 1px solid rgba(122, 74, 36, .07); border-radius: 13px; padding: 10px; display: flex; flex-direction: column; gap: 7px; transition: all .12s ease; box-shadow: var(--shadow-sm); }
.pos-product:hover { border-color: var(--coffee); transform: translateY(-2px); }
.pos-product-top { display: flex; align-items: center; gap: 9px; }
.pos-product-emoji { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; flex: none; }
.pos-product-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.pos-product-price { font-size: 12.5px; color: var(--coffee); font-weight: 800; margin-top: auto; }
.pos-product-stock { font-size: 9.5px; color: var(--red); }
.pos-product.is-soldout { opacity: .55; filter: grayscale(.35); cursor: not-allowed; }
.pos-product.is-soldout:hover { transform: none; border-color: rgba(122, 74, 36, .07); }
.pos-product.is-soldout .pos-product-stock { color: var(--muted); font-weight: 700; }
.pos-cart { background: #fff; border-left: 1px solid #EDE1D5; display: flex; flex-direction: column; min-height: 0; }
.pos-cart-head { padding: 14px 16px; border-bottom: 1px solid #F1E8DE; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pos-cart-head h2 { font-size: 16px; }
.pos-cart-head .badge { background: var(--beige-soft); color: var(--coffee); }
.pos-cart-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.pos-cart-list { display: flex; flex-direction: column; gap: 10px; }
.pos-cart-item { border-bottom: 1px dashed #F0E7DD; padding-bottom: 10px; }
.pos-cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pos-cart-item-top { display: flex; gap: 9px; }
.pos-cart-item .cart-thumb { width: 40px; height: 40px; border-radius: 9px; font-size: 19px; }
.pos-cart-item-name { font-size: 12.5px; font-weight: 700; }
.pos-cart-item-var { font-size: 10.5px; color: var(--muted); }
.pos-cart-item-note { font-size: 10.5px; color: var(--coffee); font-style: italic; }
.pos-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding-left: 49px; }
.pos-cart-item-price { font-size: 12px; font-weight: 700; color: var(--coffee); }
.pos-cart-lower { border-top: 1px solid #F1E8DE; padding: 10px 16px 0; }
.pos-customer { display: flex; gap: 7px; align-items: flex-end; }
.pos-customer .field { flex: 1; margin-bottom: 0; }
.pos-customer .input { min-height: 38px; padding: 7px 10px; font-size: 12.5px; }
.pos-customer .field label { font-size: 10.5px; }
.loyalty-result { display: flex; align-items: center; gap: 8px; background: var(--beige-soft); border-radius: 9px; padding: 8px 10px; margin-top: 7px; font-size: 11.5px; }
.loyalty-result .avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.loyalty-result-main { flex: 1; min-width: 0; }
.loyalty-result-main strong { display: block; font-size: 12px; }
.loyalty-result-main small { font-size: 10.5px; color: var(--muted); }
.stamp-inline { display: flex; gap: 3px; margin-top: 3px; }
.stamp-inline .stamp { width: 11px; height: 11px; }
.pos-type-row { display: flex; gap: 6px; margin-top: 10px; }
.pos-type-row .type-option { flex: 1; }
.pos-type-row .type-option span { font-size: 11.5px; padding: 7px 5px; }
.pos-cart-foot { padding: 12px 16px calc(14px + var(--safe-bottom)); border-top: 1px solid #F1E8DE; background: var(--cream); }
.pos-total-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.pos-total-row span { font-size: 11.5px; color: var(--muted); }
.pos-total-row strong { font-family: var(--font-display); font-size: 25px; color: var(--coffee-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.pos-pay-buttons { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.pos-pay-buttons .btn { padding: 12px 10px; font-size: 13.5px; }
.pos-cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 40px 20px; gap: 4px; }
.pos-cart-empty .icon { width: 40px; height: 40px; color: var(--beige); margin-bottom: 6px; }
.pos-cart-empty strong { font-size: 14px; color: var(--espresso); }
.pos-cart-empty span { font-size: 11.5px; }
.pos-cart-empty small { font-size: 10.5px; color: var(--muted-light); margin-top: 8px; }

/* queue drawer */
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.queue-card-head { padding: 10px 12px; background: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.queue-card-head strong { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.queue-card-head small { font-size: 10.5px; color: var(--muted); display: block; }
.queue-items { padding: 8px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.queue-item { display: flex; gap: 8px; }
.queue-item b { color: var(--coffee); min-width: 20px; }
.queue-item small { color: var(--muted); }
.queue-card-foot { padding: 8px 12px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); }
.queue-actions { display: flex; gap: 5px; }
.aging { font-size: 10px; color: var(--muted); }
.aging.late { color: var(--red); font-weight: 700; }

/* cash modal & receipt */
.cash-total { text-align: center; padding: 8px 0 16px; }
.cash-total span { font-size: 12px; color: var(--muted); }
.cash-total strong { display: block; font-family: var(--font-display); font-size: 34px; color: var(--coffee-dark); line-height: 1.1; }
.cash-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 12px; }
.cash-quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 4px; font-size: 12px; font-weight: 700; }
.cash-quick button:hover { border-color: var(--coffee); background: var(--beige-soft); }
.change-box { display: flex; align-items: center; justify-content: space-between; background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 11px 14px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.change-box.negative { background: var(--red-soft); color: var(--red); }
.receipt { font-size: 12px; color: var(--espresso); background: #fff; }
.receipt-head { text-align: center; border-bottom: 1.5px dashed var(--line-dark); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head .brand-word { color: var(--espresso); justify-content: center; display: inline-flex; flex-direction: row; gap: 6px; font-size: 14px; }
.receipt-head h3 { font-size: 18px; font-family: var(--font-display); margin-bottom: 2px; }
.receipt-head p { font-size: 10.5px; color: var(--muted); }
.receipt-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.receipt-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 11.5px; }
.receipt-line .qty { min-width: 24px; color: var(--coffee); font-weight: 700; }
.receipt-line .item { flex: 1; }
.receipt-line .item small { display: block; color: var(--muted); font-size: 10px; }
.receipt-line .amount { white-space: nowrap; font-weight: 600; }
.receipt-totals { border-top: 1.5px dashed var(--line-dark); margin-top: 10px; padding-top: 8px; }
.receipt-totals .summary-row { font-size: 11.5px; padding: 2px 0; }
.receipt-totals .summary-row.total { font-size: 15px; margin-top: 4px; padding-top: 6px; }
.receipt-foot { text-align: center; margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed var(--line-dark); font-size: 10.5px; color: var(--muted); }
.receipt-foot strong { color: var(--coffee); }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.qris-demo-note { background: var(--amber-soft); color: var(--amber); border-radius: 9px; padding: 8px 10px; font-size: 10.5px; margin-top: 8px; }

@media print {
    body { background: #fff !important; }
    body.printing > * { display: none !important; }
    body.printing .modal-backdrop.print-area { display: block !important; position: static; background: #fff; padding: 0; }
    body.printing .modal-backdrop.print-area .modal-card { box-shadow: none; max-height: none; width: 100%; max-width: 80mm; margin: 0 auto; border-radius: 0; animation: none; }
    body.printing .modal-backdrop.print-area .modal-head,
    body.printing .modal-backdrop.print-area .receipt-actions,
    body.printing .modal-backdrop.print-area .modal-foot,
    body.printing .modal-backdrop.print-area .modal-close { display: none !important; }
    body.printing .modal-backdrop.print-area .modal-body { padding: 0; overflow: visible; }
    body.printing .receipt-print { width: 72mm; margin: 0 auto; }
    @page { margin: 4mm; }
}

/* ---------- Toast ---------- */
.toast-root { position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom)); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 9px; background: var(--espresso); color: #fff; border-radius: 11px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow-lg); animation: toastIn .22s ease; pointer-events: auto; }
.toast.success { background: #236447; }
.toast.error { background: #A93B2E; }
.toast .icon { width: 17px; height: 17px; }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.muted-box { background: var(--beige-soft); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.inline-form { display: inline; }
.qr-print-page { min-height: 100vh; background: var(--beige); padding: 40px 18px; display: grid; place-items: center; }
.qr-print-card { background: #fff; border-radius: 24px; padding: 30px; max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.qr-print-card h1 { font-size: 27px; margin-bottom: 4px; }
.qr-print-card .tagline { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.qr-print-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: inline-block; }
.qr-print-frame svg { width: 240px; height: 240px; display: block; }
.qr-print-steps { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.qr-print-step { display: flex; gap: 10px; font-size: 12px; align-items: flex-start; }
.qr-print-step b { width: 22px; height: 22px; border-radius: 50%; background: var(--beige); color: var(--espresso); display: grid; place-items: center; font-size: 10px; flex: none; }
.qr-print-url { font-size: 10.5px; color: var(--muted); word-break: break-all; background: var(--cream); border-radius: 8px; padding: 8px; margin-top: 12px; }
.print-btn-row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

@media print {
    body.qr-body { background: #fff !important; }
    body.qr-body .qr-print-page { min-height: auto; padding: 0; display: block; background: #fff; }
    body.qr-body .qr-print-card { box-shadow: none; border-radius: 0; max-width: none; padding: 0; }
    body.qr-body .qr-print-frame { border: 0; padding: 0; }
    body.qr-body .qr-print-frame svg { width: 68mm; height: 68mm; }
    body.qr-body .qr-print-url,
    body.qr-body .print-btn-row { display: none !important; }
    @page { margin: 8mm; }
}

/* ---------- 403 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--beige); }
.error-card { background: #fff; border-radius: 22px; padding: 36px; max-width: 440px; text-align: center; box-shadow: var(--shadow-lg); }
.error-card .icon { width: 46px; height: 46px; color: var(--red); margin: 0 auto 12px; }
.error-card h1 { font-size: 24px; margin-bottom: 8px; }
.error-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .pos-shell { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 860px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 265px; }
    .admin-sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.3); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--beige); font-size: 20px; }
    .sidebar-scrim.show { display: block; position: fixed; inset: 0; background: rgba(30,22,19,.45); z-index: 55; }
    .admin-topbar { padding: 13px 18px; }
    .admin-content { padding: 18px; }
    .admin-topbar-actions .topbar-date { display: none; }
    .login-page { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .login-logo-mobile { display: flex; justify-content: center; }
    .login-right { min-height: 100vh; }
    .report-summary { grid-template-columns: 1fr 1fr; }
    .pos-shell { grid-template-columns: minmax(0, 1fr) 330px; }
    .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 20px; }
    .hero-promo-img { max-height: 220px; }
}
@media (max-width: 720px) {
    .body-menu { padding-bottom: calc(90px + var(--safe-bottom)); }
    .hero-inner {
        padding: 22px 18px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    .hero-eyebrow { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-art { display: flex; justify-content: center; margin-top: 2px; }
    .hero-promo-wrap { max-width: 340px; }
    .hero-promo-img { max-height: 180px; }
    .hero-promo-badge { font-size: 10px; padding: 5px 9px; }
    .hero-promo-badge-top { top: -4px; right: 6px; }
    .hero-promo-badge-bottom { bottom: -4px; left: 6px; }
    .hero-title { font-size: 24px; }
    .hero-sub { font-size: 13px; margin-left: auto; margin-right: auto; }
    .menu-section { border-radius: 20px 20px 0 0; padding: 20px 14px 0; margin-top: -14px; }
    .menu-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-box { max-width: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-media { height: 130px; }
    .product-name { font-size: 13.5px; }
    .product-desc { font-size: 11px; }
    .cart-bar { padding: 9px 9px 9px 15px; border-radius: 15px; }
    .customer-header-inner { padding: 8px 14px; }
    .brand-logo img { width: 38px; height: 38px; }
    .brand-word { font-size: 13px; }
    .header-pill { padding: 7px 11px; font-size: 12px; }
    .header-pill span { display: none; }
    .header-pill.cart-trigger span { display: inline; }
    .drawer-panel { width: 100%; }
    .status-wrap { padding: 18px 12px 0; }
    .status-head, .status-body { padding-left: 18px; padding-right: 18px; }
    .status-head .status-chip-row { position: static; margin-top: 10px; justify-content: flex-start; }
    .status-steps { gap: 2px; }
    .status-step { font-size: 10px; }
    .status-step .step-dot { width: 27px; height: 27px; }
    .status-step::before { top: 12px; }
    .loyalty-reward { grid-template-columns: 1fr; }
    .grid-3, .grid-2-equal { grid-template-columns: 1fr; }
    .stat-grid { gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 21px; }
    .admin-content { padding: 14px; }
    .admin-topbar { padding: 11px 14px; gap: 10px; }
    .admin-title h1 { font-size: 18px; }
    .admin-title p { display: none; }
    .admin-topbar-actions .btn { display: none; }
    .report-summary { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
    .editor-row, .editor-head { grid-template-columns: 1fr 1fr 60px 54px 32px; }
    .editor-row.recipe-row, .editor-head.recipe-head { grid-template-columns: 1.2fr 70px 36px; }
    .filter-bar { gap: 8px; }
    .filter-bar .field { flex: 1 1 130px; }
    .pos-body { overflow: auto; height: auto; }
    .pos-topbar { position: sticky; top: 0; height: 56px; padding: 0 12px; gap: 8px; }
    .pos-shift { margin-left: 0; padding-left: 0; border-left: 0; }
    .pos-shift-meta { display: none; }
    .pos-clock { font-size: 14px; }
    .pos-shell { display: flex; flex-direction: column; height: auto; }
    .pos-menu { overflow: visible; padding: 12px; }
    .pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
    .pos-cart { border-left: 0; border-top: 1px solid #EDE1D5; min-height: 50vh; }
    .pos-cart-body { max-height: 40vh; }
    .pos-cart-foot { position: sticky; bottom: 0; }
    .table-wrap { margin: 0 -14px; }
    .data-table th, .data-table td { padding: 10px 12px; }
}
@media (max-width: 420px) {
    .product-grid { gap: 10px; }
    .product-media { height: 118px; }
    .product-emoji { font-size: 44px; }
    .product-body { padding: 11px 11px 12px; }
    .product-desc { display: none; }
    .product-name { min-height: 34px; font-size: 13px; }
    .product-price { font-size: 13.5px; }
    .add-btn { width: 32px; height: 32px; border-radius: 10px; }
    .cart-bar-info strong { font-size: 14px; }
    .cart-bar .btn { padding: 11px 12px; font-size: 12px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .report-summary { grid-template-columns: 1fr; }
    .modal-foot { flex-direction: column-reverse; }
    .modal-foot .btn { width: 100%; }
    .editor-row, .editor-head { grid-template-columns: 1fr 1fr 54px 48px 30px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Portal akun pelanggan
   ========================================================================== */
body.portal-page { background: linear-gradient(180deg, #F7EEE4 0%, #FBF7F2 320px, #F6F1EA 100%); min-height: 100vh; }
.portal-header { position: sticky; top: 0; z-index: 45; background: rgba(30, 22, 19, .98); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(227, 200, 173, .12); }
.portal-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.portal-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.portal-nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; color: rgba(227, 200, 173, .72); font-size: 13px; font-weight: 600; white-space: nowrap; }
.portal-nav-link .icon { width: 17px; height: 17px; }
.portal-nav-link:hover { background: rgba(227, 200, 173, .08); color: #fff; }
.portal-nav-link.active { background: var(--beige); color: var(--espresso); }
.portal-header-actions { display: flex; align-items: center; gap: 6px; }
.portal-user { display: inline-flex; align-items: center; gap: 8px; color: var(--beige); padding: 0 4px; }
.portal-user .avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--coffee); font-size: 11px; }
.portal-user-name { font-size: 12.5px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-logout .icon { width: 16px; }
.portal-main { padding: 26px 20px 64px; }
.portal-container { max-width: 1080px; margin: 0 auto; }
.portal-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.portal-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; background: radial-gradient(circle at 85% 10%, rgba(122, 74, 36, .5), transparent 40%), linear-gradient(135deg, #241A15, var(--espresso) 60%, #2E211A); border-radius: 26px; padding: 30px; color: var(--beige); box-shadow: var(--shadow-md); margin-bottom: 18px; }
.portal-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(227, 200, 173, .14) 1px, transparent 1px); background-size: 26px 26px; opacity: .25; pointer-events: none; }
.portal-hero-copy { position: relative; z-index: 1; }
.portal-hero .portal-eyebrow { color: rgba(227, 200, 173, .6); }
.portal-hero h1 { color: #fff; margin-top: 6px; font-size: clamp(28px, 4vw, 42px); }
.portal-hero p { color: rgba(227, 200, 173, .72); margin-top: 8px; max-width: 460px; font-size: 14px; }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.portal-hero-actions .btn-primary { background: var(--beige); color: var(--espresso); box-shadow: none; }
.portal-hero-actions .btn-primary:hover { background: #f0d8c0; }
.portal-hero-actions .btn-outline { border-color: rgba(227, 200, 173, .35); color: var(--beige); }
.portal-hero-actions .btn-outline:hover { background: rgba(227, 200, 173, .12); color: #fff; }
.portal-hero-card { position: relative; z-index: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(227, 200, 173, .22); border-radius: 20px; padding: 20px; align-self: center; backdrop-filter: blur(6px); }
.portal-hero-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(227, 200, 173, .65); }
.portal-hero-card-head .icon { width: 20px; height: 20px; color: var(--beige); }
.portal-hero-stamps { display: block; font-family: var(--font-display); font-size: 46px; line-height: 1; color: #fff; margin: 8px 0 10px; }
.portal-hero-stamps small { font-size: 17px; color: rgba(227, 200, 173, .6); }
.portal-stamp-row { display: flex; gap: 6px; flex-wrap: wrap; }
.portal-hero-card p { font-size: 11.5px; color: rgba(227, 200, 173, .65); margin-top: 10px; }

.portal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.portal-stat { position: relative; background: #fff; border: 1px solid #EEE4D9; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.portal-stat::after { content: ''; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--beige-soft); right: -42px; top: -42px; }
.portal-stat-icon { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--beige-soft); color: var(--coffee); margin-bottom: 10px; }
.portal-stat-icon .icon { width: 17px; height: 17px; }
.portal-stat-label { position: relative; z-index: 1; display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.portal-stat strong { position: relative; z-index: 1; display: block; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 27px); margin-top: 4px; font-variant-numeric: tabular-nums; }
.portal-stat small { position: relative; z-index: 1; display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.portal-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 16px; align-items: start; }
.portal-side { display: flex; flex-direction: column; gap: 16px; }
.portal-panel { background: #fff; border: 1px solid #EEE4D9; border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.portal-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid #F2EAE1; }
.portal-panel-head h2 { font-size: 16px; }
.portal-panel-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.portal-panel-body { padding: 18px 19px; }
.portal-panel-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--coffee); white-space: nowrap; }
.portal-panel-coffee { background: linear-gradient(145deg, #7A4A24, #5B3518); color: var(--beige); border: 0; }
.portal-panel-coffee h2 { color: #fff; font-size: 17px; margin: 4px 0 6px; }
.portal-panel-coffee p { color: rgba(227, 200, 173, .75); font-size: 12.5px; }
.portal-panel-coffee .portal-eyebrow { color: rgba(227, 200, 173, .55); }
.portal-panel-coffee .portal-panel-link { color: var(--beige); margin-top: 12px; }

.portal-order-list { display: flex; flex-direction: column; gap: 10px; }
.portal-order { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--cream); color: var(--espresso); transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.portal-order:hover { border-color: var(--coffee); background: #fff; color: var(--espresso); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.portal-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.portal-order-id strong { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.portal-order-id small { font-size: 11px; color: var(--muted); }
.portal-order-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.portal-order-items { font-size: 12px; color: var(--muted); margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-order-foot { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line-dark); margin-top: 10px; padding-top: 9px; font-size: 12px; }
.portal-order-foot strong { margin-left: auto; font-size: 15px; color: var(--coffee-dark); }
.portal-order-foot .icon { color: var(--muted-light); }

.portal-profile-row { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.portal-profile-row strong { display: block; font-size: 14px; }
.portal-profile-row small { font-size: 12px; color: var(--muted); }
.portal-profile-row .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 14px; }
.avatar-lg { width: 58px; height: 58px; border-radius: 17px; font-size: 19px; }
.portal-profile-hero { display: flex; align-items: center; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.portal-profile-hero h2 { font-size: 19px; }
.portal-profile-hero p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.portal-info-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.portal-info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.portal-info-list > div:last-child { border-bottom: 0; }
.portal-info-list span { color: var(--muted); }
.portal-info-list strong { text-align: right; font-weight: 700; font-size: 12px; word-break: break-word; }
.portal-hint { font-size: 11.5px; color: var(--muted-light); margin-top: 12px; }

.portal-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.portal-page-head h1 { margin-top: 4px; }
.portal-page-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.portal-filter-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.portal-filter-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-dark); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.portal-filter-tab span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--beige-soft); color: var(--coffee-dark); font-size: 10.5px; font-weight: 800; }
.portal-filter-tab.active { background: var(--espresso); border-color: var(--espresso); color: var(--beige); }
.portal-filter-tab.active span { background: rgba(227, 200, 173, .2); color: #fff; }
.portal-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.portal-back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.portal-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.portal-detail-title h1 { font-size: 26px; font-variant-numeric: tabular-nums; margin-top: 3px; }
.portal-detail-title p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.portal-steps { margin-top: 22px; }
.portal-detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; margin-top: 8px; }
.portal-section-title { font-size: 14px; margin-bottom: 4px; }
.portal-detail-side { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 15px; align-self: start; }
.portal-detail-side .portal-info-list { margin-top: 0; }
.portal-pay-callout { margin-top: 12px; border: 1.5px dashed var(--line-dark); border-radius: 13px; padding: 12px; background: #fff; }
.portal-pay-callout strong { font-size: 13px; }
.portal-pay-callout p { font-size: 11.5px; color: var(--muted); margin: 4px 0 10px; }

.portal-alert { display: flex; align-items: flex-start; gap: 9px; border-radius: 12px; padding: 11px 13px; font-size: 12.5px; margin-bottom: 14px; }
.portal-alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.portal-alert-error { background: var(--red-soft); color: var(--red); }

/* Portal auth */
.portal-auth-page { min-height: 100vh; background: radial-gradient(circle at 10% 0%, #3A281E 0%, var(--espresso) 45%, #120D0B 100%); padding-bottom: 40px; }
.portal-auth-topbar { max-width: 1040px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.portal-auth-wrap { max-width: 640px; margin: 0 auto; padding: 10px 18px 0; }
.portal-auth-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: 28px; }
.portal-auth-head h1 { font-size: clamp(23px, 3.5vw, 30px); margin: 5px 0 8px; }
.portal-auth-head p { color: var(--muted); font-size: 13px; }
.portal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--beige-soft); border-radius: 13px; padding: 4px; margin: 20px 0 18px; }
.portal-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.portal-tab .icon { width: 16px; height: 16px; }
.portal-tab:hover { color: var(--coffee); }
.portal-tab.active { background: #fff; color: var(--espresso); box-shadow: var(--shadow-sm); }
.portal-form .btn-block { margin-top: 4px; }
.portal-auth-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.portal-auth-note a { font-weight: 700; }
.portal-auth-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; border-top: 1px dashed var(--line-dark); padding-top: 18px; }
.portal-auth-perks > div { display: flex; flex-direction: column; gap: 3px; }
.portal-auth-perks .icon { width: 20px; height: 20px; color: var(--coffee); margin-bottom: 2px; }
.portal-auth-perks strong { font-size: 11.5px; }
.portal-auth-perks span { font-size: 10.5px; color: var(--muted); line-height: 1.35; }

/* QRIS state */
.qris-expiry { font-size: 11px; color: var(--muted); }
.qris-expiry.expired { color: var(--red); font-weight: 600; }
.qris-status { margin-top: 10px; border-radius: 10px; padding: 8px 11px; font-size: 11.5px; background: var(--beige-soft); color: var(--coffee-dark); }
.qris-status-warn { background: var(--amber-soft); color: var(--amber); }
.qris-status-error { background: var(--red-soft); color: var(--red); }

@media (max-width: 980px) {
    .portal-hero { grid-template-columns: 1fr; }
    .portal-grid, .portal-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .portal-header-inner { flex-wrap: wrap; gap: 8px; }
    .portal-nav { order: 3; flex: 0 0 100%; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .portal-header-actions { margin-left: auto; }
    .portal-user-name { display: none; }
    .portal-menu-link span { display: none; }
    .portal-main { padding: 18px 14px 50px; }
    .portal-hero { padding: 22px 18px; border-radius: 20px; }
    .portal-stats { grid-template-columns: 1fr; }
    .portal-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; }
    .portal-stat-icon { grid-row: 1 / span 2; margin-bottom: 0; }
    .portal-stat-label, .portal-stat strong { grid-column: 2; }
    .portal-stat small { grid-column: 2; }
    .portal-page-head { flex-direction: column; align-items: flex-start; }
    .portal-detail-title { flex-direction: column; }
    .portal-auth-card { padding: 20px 16px; border-radius: 20px; }
    .portal-auth-perks { grid-template-columns: 1fr; }
    .portal-pagination { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 520px) {
    .portal-header .brand-word { display: none; }
    .portal-header-actions .header-pill span { display: none; }
    .portal-order-top { flex-direction: column; }
    .portal-order-chips { justify-content: flex-start; }
    .portal-tabs { grid-template-columns: 1fr; }
}
