/* ===== ROOT VARIABLES ===== */
:root {
    --ink: #1e2a1e;
    --ivory: #f6f2e9;
    --leaf-deep: #1f3a2b;
    --leaf-mid: #4a6b50;
    --brass: #c49b5c;
    --gold-light: #e8c87a;
    --coffee-brown: #5c3a2a;
    --line: rgba(30, 42, 30, 0.12);
    --bg-body: #f6f2e9;
    --bg-nav: rgba(246, 242, 233, 0.92);
    --text-muted: #5b6356;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --skeleton-bg: #ececec;
    --skeleton-shine: rgba(255, 255, 255, 0.6);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --ink: #e8e4da;
    --ivory: #1a2a1e;
    --leaf-deep: #0f1f14;
    --leaf-mid: #6a8b70;
    --brass: #e8c87a;
    --gold-light: #b58d4a;
    --coffee-brown: #d4b8a0;
    --line: rgba(232, 228, 218, 0.12);
    --bg-body: #0f1f14;
    --bg-nav: rgba(15, 31, 20, 0.92);
    --text-muted: #a8b8a4;
    --skeleton-bg: #1a2a1e;
    --skeleton-shine: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] h1.brand,
[data-theme="dark"] h1.brand em {
    color: #ffffff !important;
}
[data-theme="dark"] .hero .tagline {
    color: rgba(255, 255, 255, 0.9) !important;
}
[data-theme="dark"] .hero-meta {
    color: rgba(255, 255, 255, 0.8) !important;
}
[data-theme="dark"] .hero-meta strong {
    color: #ffffff !important;
}
[data-theme="dark"] .eyebrow {
    color: var(--gold-light) !important;
}
[data-theme="dark"] .eyebrow::before {
    background: var(--gold-light) !important;
}
[data-theme="dark"] .hero-btn-map {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
[data-theme="dark"] .hero-btn-map:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .hero-btn-map svg .cls-1 {
    fill: #ffffff !important;
}
[data-theme="dark"] .hero-btn-map svg .cls-2 {
    fill: #ef4136 !important;
}
[data-theme="dark"] .theme-toggle {
    background: var(--brass);
    color: var(--leaf-deep);
}
[data-theme="dark"] .admin-section {
    background: rgba(15, 31, 20, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .qty-controls {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .qty-controls button {
    background: #4a6b50;
    color: #f6f2e9;
}
[data-theme="dark"] .qty-controls button:hover:not(:disabled) {
    background: var(--brass);
    color: var(--leaf-deep);
}
[data-theme="dark"] .qty-controls .qty-value {
    color: #e8e4da !important;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-body);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

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

.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--leaf-deep);
    color: white;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: scale(0.96);
}

.btn-wa {
    background: #25D366;
    color: #fff;
}
.btn-wa:hover {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--leaf-deep);
    color: var(--leaf-deep);
}
.btn-outline:hover {
    background: var(--leaf-deep);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: var(--leaf-deep);
    color: var(--ivory);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: scale(1.1) rotate(12deg);
}
.theme-toggle:active {
    transform: scale(0.92);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-wa {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 99;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}
.floating-wa:hover {
    transform: scale(1.1) translateY(-4px);
}
.floating-wa:active {
    transform: scale(0.92);
}
.floating-wa svg {
    width: 28px;
    height: 28px;
}
.floating-wa .wa-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: #95a5a6;
}
.floating-wa .wa-status.online {
    background: #4caf50;
}
.floating-wa .wa-status.offline {
    background: #95a5a6;
}
[data-theme="dark"] .floating-wa .wa-status {
    border-color: var(--bg-body);
}

/* ===== FLOATING CART MINI ===== */
.cart-mini {
    position: fixed;
    bottom: 164px;
    right: 24px;
    z-index: 98;
    background: var(--brass);
    color: var(--leaf-deep);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--bg-body);
}
.cart-mini:hover {
    transform: scale(1.1);
}
.cart-mini-icon {
    font-size: 20px;
}
.cart-mini-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-body);
}
[data-theme="dark"] .cart-mini {
    border-color: var(--bg-body);
}
[data-theme="dark"] .cart-mini-badge {
    border-color: var(--bg-body);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 164px;
    right: 24px;
    z-index: 99;
    background: var(--leaf-deep);
    color: var(--ivory);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== HERO ===== */
.hero {
    background: var(--leaf-deep);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
    padding: 80px 0 64px;
    border-bottom: 4px solid var(--brass);
    transition: background 0.3s ease;
}

.hero .branch {
    position: absolute;
    opacity: 0.35;
    pointer-events: none;
}
.hero .branch.tl {
    top: -20px;
    left: -40px;
    width: 200px;
    transform: rotate(-10deg);
}
.hero .branch.br {
    bottom: -30px;
    right: -50px;
    width: 240px;
    transform: rotate(170deg);
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold-light);
    display: inline-block;
}

h1.brand {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(48px, 10vw, 80px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: var(--ivory);
}
h1.brand em {
    font-style: italic;
    font-weight: 400;
    color: var(--brass);
}

.tagline {
    margin-top: 18px;
    max-width: 38ch;
    font-size: 16px;
    color: rgba(247, 243, 233, 0.85);
}

.hero-meta {
    margin-top: 34px;
    display: flex;
    gap: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(247, 243, 233, 0.6);
    flex-wrap: wrap;
}
.hero-meta strong {
    color: var(--ivory);
    font-weight: 500;
}

.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}
.hero-btn-wa {
    background: #25D366;
    color: #fff;
}
.hero-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.hero-btn-map {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ivory);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-btn-map:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== NAV ===== */
.cats {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}
.cats .wrap {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 28px;
    scrollbar-width: none;
}
.cats .wrap::-webkit-scrollbar {
    display: none;
}
.cat-filter-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--leaf-mid);
    transition: all var(--transition);
    font-weight: 500;
    cursor: pointer;
}
.cat-filter-btn:hover {
    background: var(--leaf-deep);
    color: var(--ivory);
    border-color: var(--leaf-deep);
}
.cat-filter-btn.active {
    background: var(--brass);
    color: var(--leaf-deep);
    border-color: var(--brass);
}

/* ===== SEARCH ===== */
.search-wrap {
    padding: 24px 0 16px;
    position: sticky;
    top: 52px;
    z-index: 9;
    background: var(--bg-body);
    transition: background 0.3s ease;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-body);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    padding: 12px 20px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.search-box:focus-within {
    border-color: var(--brass);
    box-shadow: 0 0 0 4px rgba(196, 155, 92, 0.15);
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
}
.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.search-box .icon {
    font-size: 18px;
    opacity: 0.5;
}
.search-box .clear-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    display: none;
}
.search-box .clear-btn.show {
    display: block;
}

/* ===== SKELETON ===== */
.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}
.skeleton {
    height: 76px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--skeleton-bg);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
    animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== CATEGORY ===== */
.category {
    margin-bottom: 56px;
    scroll-margin-top: 120px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.category.revealed {
    opacity: 1;
    transform: translateY(0);
}
.category.hidden {
    display: none;
}

.cat-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 4px;
}
.cat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--brass);
    font-weight: 500;
}
.cat-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 32px;
    color: var(--leaf-deep);
    letter-spacing: -0.02em;
}
[data-theme="dark"] .cat-head h2 {
    color: var(--gold-light);
}
.cat-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-left: 40px;
}

/* ===== ITEM ===== */
.item {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 2px 12px;
    padding: 18px 16px;
    background: var(--bg-body);
    border-radius: var(--radius);
    border: 1px solid transparent;
    margin-bottom: 8px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.item:hover {
    border-color: var(--brass);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.item.hidden {
    display: none;
}
.item:last-child {
    margin-bottom: 0;
}

.item-checkbox {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 18px;
    height: 18px;
    accent-color: var(--brass);
    cursor: pointer;
    transition: all 0.2s ease;
}
.item-checkbox:checked {
    transform: scale(1.1);
}
.item-checkbox:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.item-thumb {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}
.item-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    display: none;
}
.item-image.show {
    display: block;
}
.item-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--line);
}

.item-info {
    grid-column: 3;
    display: flex;
    flex-direction: column;
}
.item-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 19px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.item-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    background: rgba(196, 155, 92, 0.15);
    border: 1px solid var(--brass);
    border-radius: 100px;
    padding: 2px 10px;
}
.item-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.item-price {
    grid-column: 4;
    grid-row: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--coffee-brown);
    background: rgba(92, 58, 42, 0.06);
    padding: 2px 12px;
    border-radius: 100px;
}

.badge-promo {
    font-size: 10px;
    background: #e74c3c;
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
}
.badge-habis {
    font-size: 10px;
    background: #95a5a6;
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
}
.price-original {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 13px;
    margin-right: 6px;
}

/* ===== QUANTITY CONTROLS ===== */
.qty-controls {
    grid-column: 5;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-body);
    border-radius: 100px;
    padding: 2px 4px;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}
.item:hover .qty-controls {
    border-color: var(--brass);
}

.qty-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--leaf-deep);
    color: var(--ivory);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.qty-controls button:hover:not(:disabled) {
    transform: scale(1.12);
    background: var(--brass);
}
.qty-controls button:active:not(:disabled) {
    transform: scale(0.88);
}
.qty-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.qty-controls .qty-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
    color: var(--ink);
    transition: color 0.3s ease;
}
.qty-controls .qty-value.zero {
    opacity: 0.35;
}

/* ===== CART ===== */
.cart-summary {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: var(--bg-body);
    border-top: 2px solid var(--brass);
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
    transition: background 0.3s ease;
    display: none;
}
.cart-summary.show {
    display: block;
}
.cart-summary .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.cart-total {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 500;
}
.cart-total span {
    color: var(--brass);
}
.cart-detail {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg-body);
    box-shadow: var(--shadow-sm);
    font-family: 'JetBrains Mono', monospace;
    transition: transform 0.2s ease;
}
.cart-badge.pulse {
    animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
[data-theme="dark"] .cart-badge {
    border-color: var(--bg-body);
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 48px 0 40px;
}
.divider svg {
    flex-shrink: 0;
    width: 36px;
    height: 22px;
}
.divider .line {
    flex: 1;
    height: 1.5px;
    background: var(--line);
}

/* ===== FOOTER ===== */
footer {
    background: var(--leaf-deep);
    color: var(--ivory);
    padding: 56px 0 44px;
    margin-top: 24px;
    border-top: 4px solid var(--brass);
}
footer h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 8px;
}
footer p {
    font-size: 14px;
    color: rgba(247, 243, 233, 0.75);
    max-width: 42ch;
    margin-bottom: 24px;
}
.footer-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.foot-note {
    margin-top: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(247, 243, 233, 0.4);
    text-align: center;
}
.secret-trigger {
    cursor: pointer;
    transition: color 0.3s ease;
}
.secret-trigger:hover {
    color: var(--brass);
}
.secret-trigger::after {
    content: '🔑';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.secret-trigger:hover::after {
    opacity: 1;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    border-radius: 100px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme="dark"] .lang-switch {
    background: var(--bg-body);
    border-color: var(--line);
}
.lang-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Work Sans', sans-serif;
}
.lang-btn.active {
    background: var(--leaf-deep);
    color: white;
}
[data-theme="dark"] .lang-btn.active {
    background: var(--brass);
    color: var(--leaf-deep);
}
.lang-btn:hover:not(.active) {
    background: var(--line);
}

/* ===== MENU OF THE DAY ===== */
.menu-of-the-day {
    background: var(--brass);
    color: var(--leaf-deep);
    padding: 12px 24px;
    border-radius: 100px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin: 16px auto 8px;
    max-width: 600px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
[data-theme="dark"] .menu-of-the-day {
    background: var(--leaf-mid);
    color: var(--ivory);
}
.menu-of-the-day strong {
    color: var(--leaf-deep);
}
[data-theme="dark"] .menu-of-the-day strong {
    color: var(--gold-light);
}

/* ===== ADMIN PANEL ===== */
.admin-section {
    margin-top: 32px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .admin-section {
    background: rgba(15, 31, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-section h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--leaf-deep);
    margin-bottom: 16px;
}
.admin-section .form-group {
    margin-bottom: 14px;
}
.admin-section .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}
.admin-section .form-group input,
.admin-section .form-group textarea,
.admin-section .form-group select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    background: var(--bg-body);
    color: var(--ink);
}
.admin-section .form-group input:focus,
.admin-section .form-group textarea:focus,
.admin-section .form-group select:focus {
    border-color: var(--brass);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 155, 92, 0.15);
}
.admin-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.admin-section .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.admin-section .menu-item {
    background: var(--bg-body);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.admin-section .menu-item .name {
    font-weight: 600;
    font-size: 16px;
}
.admin-section .menu-item .actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.admin-section .menu-item .actions button {
    flex: 1;
    padding: 4px 8px;
    font-size: 11px;
}
.admin-section .tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
}
.tag-favorit {
    background: #f1c40f;
    color: #1e2a1e;
}
.tag-promo {
    background: #e74c3c;
    color: white;
}
.tag-habis {
    background: #95a5a6;
    color: white;
}

.upload-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 6px;
    border: 2px solid var(--line);
}
.upload-preview.hidden {
    display: none !important;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--line);
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}
.progress-bar .progress {
    height: 100%;
    background: var(--brass);
    width: 0%;
    transition: width 0.3s ease;
}

.admin-hidden {
    display: none !important;
}

/* ===== ADMIN DASHBOARD ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-body);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--line);
    transition: all var(--transition);
}
.stat-card:hover {
    border-color: var(--brass);
    transform: translateY(-2px);
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--brass);
    font-family: 'Fraunces', serif;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
@media (max-width: 600px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stat-number {
        font-size: 20px;
    }
    .stat-card {
        padding: 12px;
    }
}

/* ===== HISTORY MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal.show {
    display: flex;
}
.modal-content {
    background: var(--bg-body);
    max-width: 500px;
    width: 90%;
    padding: 28px;
    border-radius: 16px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--ink);
}
.modal-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--leaf-deep);
}
[data-theme="dark"] .modal-content h3 {
    color: var(--gold-light);
}
.history-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.history-item:last-child {
    border-bottom: none;
}
.history-item .date {
    font-size: 12px;
    color: var(--text-muted);
}
.history-item .items {
    font-size: 14px;
    margin: 4px 0;
}
.history-item .total {
    font-weight: 600;
    color: var(--brass);
}
.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
}

/* ===== UPLOAD SEAMLESS ===== */
.upload-zone {
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-body);
    position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--brass);
    background: rgba(196, 155, 92, 0.05);
}
.upload-zone.dragover {
    transform: scale(1.01);
}
.upload-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.upload-text strong {
    font-size: 16px;
    color: var(--ink);
}
.upload-text span {
    font-size: 13px;
    color: var(--text-muted);
}
.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.6;
}
[data-theme="dark"] .upload-zone {
    border-color: var(--line);
}
[data-theme="dark"] .upload-zone:hover,
[data-theme="dark"] .upload-zone.dragover {
    border-color: var(--brass);
    background: rgba(232, 200, 122, 0.05);
}

.upload-progress {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-body);
    border-radius: 8px;
    border: 1px solid var(--line);
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brass), var(--gold-light));
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

.upload-preview-wrapper {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 8px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.upload-preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.preview-status {
    font-size: 13px;
    font-weight: 500;
}
.preview-status.success {
    color: #27ae60;
}
.preview-status.error {
    color: #e74c3c;
}
.preview-status.uploading {
    color: var(--brass);
}

/* ===== SEARCH HIGHLIGHT ===== */
mark {
    background: var(--brass);
    color: var(--leaf-deep);
    padding: 0 2px;
    border-radius: 2px;
}
[data-theme="dark"] mark {
    background: var(--gold-light);
    color: var(--leaf-deep);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .wrap {
        padding: 0 18px;
    }
    .cat-desc {
        padding-left: 0;
    }

    .item {
        grid-template-columns: auto auto 1fr auto;
        gap: 4px 8px;
        padding: 12px 10px;
    }
    .item-checkbox {
        grid-row: 1 / 3;
    }
    .item-thumb {
        grid-row: 1 / 3;
    }
    .item-image {
        width: 40px;
        height: 40px;
    }
    .item-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .item-info {
        grid-row: 1 / 3;
    }
    .item-name {
        font-size: 16px;
    }
    .item-desc {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .item-price {
        font-size: 13px;
        padding: 2px 8px;
    }
    .qty-controls {
        grid-row: 2;
    }
    .qty-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .qty-controls .qty-value {
        font-size: 12px;
        min-width: 20px;
    }

    .cats .wrap {
        padding: 12px 18px;
    }
    .hero {
        padding: 48px 0 40px;
    }
    .hero-meta {
        gap: 18px;
        font-size: 11px;
    }
    .theme-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
    .floating-wa {
        width: 48px;
        height: 48px;
        bottom: 76px;
        right: 16px;
    }
    .floating-wa svg {
        width: 24px;
        height: 24px;
    }
    .cart-mini {
        width: 40px;
        height: 40px;
        bottom: 132px;
        right: 16px;
    }
    .cart-mini-icon {
        font-size: 16px;
    }
    .scroll-top {
        bottom: 132px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .search-wrap {
        top: 44px;
        padding: 14px 0 8px;
    }
    .search-box {
        padding: 8px 16px;
    }
    .search-box input {
        font-size: 13px;
    }
    .hero-buttons {
        gap: 8px;
    }
    .hero-btn {
        font-size: 11px;
        padding: 8px 16px;
    }
    .cart-summary .wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .cart-summary .btn-wa {
        justify-content: center;
    }
    .admin-section .form-row {
        grid-template-columns: 1fr;
    }
    .admin-section .menu-grid {
        grid-template-columns: 1fr;
    }
    .admin-section {
        padding: 16px;
    }

    .lang-switch {
        top: 12px;
        right: 68px;
        padding: 3px;
    }
    .lang-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    .menu-of-the-day {
        font-size: 12px;
        padding: 8px 16px;
        margin: 10px auto 6px;
        border-radius: 20px;
    }
    .upload-zone {
        padding: 20px 16px;
    }
    .upload-icon {
        font-size: 32px;
    }
    .upload-preview-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .item {
        grid-template-columns: auto auto 1fr auto;
        gap: 2px 6px;
        padding: 10px 6px;
    }
    .item-checkbox {
        width: 16px;
        height: 16px;
    }
    .item-image {
        width: 36px;
        height: 36px;
    }
    .item-placeholder {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .item-name {
        font-size: 14px;
    }
    .item-desc {
        font-size: 11px;
    }
    .item-price {
        font-size: 12px;
    }
    .qty-controls button {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .qty-controls .qty-value {
        font-size: 11px;
        min-width: 16px;
    }
    .lang-switch {
        top: 10px;
        right: 56px;
        padding: 2px;
    }
    .lang-btn {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .theme-toggle,
    .floating-wa,
    .cart-mini,
    .scroll-top,
    .cats,
    .search-wrap,
    .cart-summary,
    .admin-section,
    .hero-buttons,
    .footer-buttons,
    .cart-badge,
    .lang-switch,
    .menu-of-the-day,
    .modal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        padding: 20px !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        padding: 30px 0 !important;
        border-bottom: 2px solid #c49b5c !important;
    }

    h1.brand {
        color: black !important;
        font-size: 36px !important;
    }
    h1.brand em {
        color: #c49b5c !important;
    }

    .item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 12px 16px !important;
        margin-bottom: 8px !important;
        background: white !important;
    }

    .item:hover {
        transform: none !important;
    }

    .wrap {
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    .qty-controls button {
        display: none !important;
    }
    .qty-controls .qty-value {
        min-width: auto !important;
    }

    .item-checkbox {
        display: none !important;
    }

    .item-image {
        width: 40px !important;
        height: 40px !important;
    }

    .item-placeholder {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    .cat-head h2 {
        font-size: 24px !important;
    }

    .item-thumb {
        margin-right: 12px !important;
    }
}
