:root {
    --bg: #fff8ef;
    --card: #ffffff;
    --primary: #d97706;
    --primary-dark: #b45309;
    --soft: #ffedd5;
    --text: #292524;
    --muted: #78716c;
    --border: #f3d6b3;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 12px 35px rgba(120, 53, 15, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 248, 239, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
}

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #f59e0b);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 0;
    padding: 11px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-soft {
    color: var(--primary-dark);
    background: var(--soft);
}

.btn-soft:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: #fee2e2;
    color: var(--danger);
}

.btn-small {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.hero {
    padding: 44px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 28px;
}

.hero-card {
    background: linear-gradient(135deg, #fff, #fff3df);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
    animation: muncul .5s ease both;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.hero p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-visual {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
    animation: floaty 4s ease-in-out infinite;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 28px 0 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 30px;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 36px;
}

.menu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .2s ease;
    animation: muncul .45s ease both;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-img {
    height: 190px;
    background: var(--soft);
    object-fit: cover;
    width: 100%;
}

.menu-body {
    padding: 16px;
}

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

.badge {
    background: var(--soft);
    color: var(--primary-dark);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge.green {
    background: #dcfce7;
    color: #15803d;
}

.badge.red {
    background: #fee2e2;
    color: #b91c1c;
}

.menu-card h3 {
    margin: 6px 0;
    font-size: 20px;
}

.menu-desc {
    color: var(--muted);
    line-height: 1.5;
    min-height: 48px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.price {
    font-size: 19px;
    font-weight: 900;
    color: var(--primary-dark);
}

.cart-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(380px, calc(100% - 40px));
    max-height: 82vh;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(67, 20, 7, .22);
    overflow: hidden;
    z-index: 20;
    display: none;
}

.cart-panel.show {
    display: block;
    animation: muncul .25s ease both;
}

.cart-head {
    padding: 16px;
    background: var(--soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-head h3 {
    margin: 0;
}

.cart-body {
    padding: 14px;
    overflow-y: auto;
    max-height: 48vh;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.cart-item strong {
    display: block;
    margin-bottom: 4px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    background: var(--soft);
}

.cart-foot {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.form-page {
    padding: 34px 0;
}

.form-card, .table-card, .admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    font: inherit;
    background: #fffaf5;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 20px;
    align-items: start;
}

.order-summary {
    position: sticky;
    top: 88px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    gap: 12px;
}

.qris-box {
    display: none;
    background: #fff8ef;
    border: 1px dashed var(--primary);
    border-radius: 18px;
    padding: 14px;
    margin: 10px 0 16px;
}

.qris-box img {
    width: 210px;
    margin: 10px auto;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.alert-error {
    color: #991b1b;
    background: #fee2e2;
}

.alert-success {
    color: #166534;
    background: #dcfce7;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #431407;
    color: #fff;
    padding: 22px;
}

.sidebar .logo {
    margin-bottom: 28px;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    color: #ffedd5;
    font-weight: 700;
}

.sidebar a.active, .sidebar a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.admin-main {
    padding: 24px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.stat-card h2 {
    margin: 8px 0 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px 10px;
    border-bottom: 1px solid #f2e2d2;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.table-responsive {
    overflow-x: auto;
}

.table-img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--soft);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(circle at top left, #fed7aa, transparent 35%), var(--bg);
}

.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0 0 10px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 18px;
}

@keyframes muncul {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
    .hero-grid, .checkout-layout, .admin-layout {
        grid-template-columns: 1fr;
    }
    .menu-grid, .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        position: static;
    }
    .order-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .nav-inner, .section-title, .admin-top {
        align-items: stretch;
        flex-direction: column;
    }
    .nav-actions {
        width: 100%;
    }
    .nav-actions .btn {
        flex: 1;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .menu-img {
        height: 115px;
    }
    .menu-body {
        padding: 10px;
    }
    .menu-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .menu-card h3 {
        font-size: 15px;
        line-height: 1.25;
    }
    .menu-desc {
        display: none;
    }
    .price-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }
    .price {
        font-size: 15px;
    }
    .menu-card .btn {
        width: 100%;
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 11px;
    }
    .form-grid, .stat-grid {
        grid-template-columns: 1fr;
    }
    .hero-card, .form-card, .table-card, .admin-card {
        border-radius: 20px;
        padding: 18px;
    }
    .hero {
        padding-top: 24px;
    }
    .admin-main {
        padding: 16px;
    }
}
