* { box-sizing: border-box; }
body {
    margin: 0; font-family: 'Hind Siliguri', system-ui, sans-serif;
    background-color: #1c2a12;
    background-image: url('/assets/cafe-night.jpg');
    background-size: 112% auto;
    background-position: center 65%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: heroZoom 26s ease-in-out infinite alternate;
    color: #2b2118; line-height: 1.5;
}
a { color: #8a5a1d; }
.hero {
    position: relative;
    color: #fff; text-align: center; padding: 34px 16px 26px;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18, 28, 12, .42), rgba(18, 28, 12, .62));
}
.hero > * { position: relative; z-index: 1; }
.hero-name { text-shadow: 0 2px 14px rgba(0, 0, 0, .65); }
@keyframes heroZoom {
    from { background-size: 112% auto; }
    to { background-size: 128% auto; }
}
.hero.small { padding: 20px 16px 16px; }
.hero-name { font-size: 34px; font-weight: 700; letter-spacing: .5px; }
.hero-sub { font-size: 17px; opacity: .92; margin-top: 4px; }
.hero-addr { font-size: 14px; opacity: .85; margin-top: 8px; }
.table-pill {
    display: inline-block; margin-top: 10px; background: #fff; color: #2e4a22;
    font-weight: 700; font-size: 20px; padding: 6px 22px; border-radius: 999px;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.wrap.wide { max-width: 980px; }
.wrap.narrow { max-width: 540px; }
.wrap.narrow h2 { font-size: 26px; }
h2 { font-size: 21px; margin: 22px 0 10px; color: #fff; background: rgba(28, 42, 18, .62); display: inline-block; padding: 6px 18px; border-radius: 999px; }
.muted { color: rgba(255, 255, 255, .88); font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); }
.ao-name { color: #7a6a58; font-size: 14px; }
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.table-btn {
    display: block; text-align: center; text-decoration: none; background: #fff;
    border: 2px solid #d9c9a8; border-radius: 12px; padding: 16px 4px;
    font-weight: 700; font-size: 17px; color: #2e4a22;
}
.table-btn:active { background: #eef3df; }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e5dcc4; border-radius: 14px; padding: 12px 14px;
}
.mi-name { font-weight: 700; font-size: 17px; }
.mi-note { font-size: 13px; color: #b3541e; }
.mi-price { color: #2e7d32; font-weight: 700; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qbtn {
    width: 38px; height: 38px; border-radius: 50%; border: none; font-size: 22px;
    background: #2e4a22; color: #fff; cursor: pointer; line-height: 1;
}
.qbtn:active { transform: scale(.94); }
.qval { min-width: 22px; text-align: center; font-weight: 700; font-size: 18px; }
.name-row { margin-top: 20px; }
.name-row label { display: inline-block; font-weight: 600; margin-bottom: 6px; color: #fff; background: rgba(28, 42, 18, .62); padding: 4px 14px; border-radius: 999px; }
.name-row input, .pin-box input {
    width: 100%; padding: 18px; font-size: 22px; border: 1.5px solid #d9c9a8;
    border-radius: 10px; background: #fff; font-family: inherit;
}
.cart-bar {
    position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
    border-top: 2px solid #e5dcc4; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    max-width: 640px; margin: 0 auto; box-shadow: 0 -4px 18px rgba(0,0,0,.08);
}
.cart-total { font-size: 19px; }
.cart-total b { color: #2e7d32; }
.order-btn {
    background: linear-gradient(135deg, #2e7d32, #558b2f); color: #fff; border: none;
    font-size: 17px; font-weight: 700; padding: 13px 26px; border-radius: 999px;
    cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit;
}
.order-btn:disabled { opacity: .45; cursor: not-allowed; }
.msg { margin-top: 14px; font-weight: 600; }
.msg.err { color: #c62828; }
.msg.ok { color: #2e7d32; }
.status-badge {
    display: inline-block; background: #fff3cd; border: 1.5px solid #e6a817; color: #7a5b00;
    font-weight: 700; padding: 8px 18px; border-radius: 999px; font-size: 17px; margin: 6px 0 14px;
}
.status-badge.s-preparing { background: #e3f2fd; border-color: #42a5f5; color: #0d47a1; }
.status-badge.s-served { background: #e8f5e9; border-color: #66bb6a; color: #1b5e20; }
.status-badge.s-cancelled { background: #fce4ec; border-color: #ef9a9a; color: #b71c1c; }
.order-card { background: #fff; border: 1px solid #e5dcc4; border-radius: 14px; padding: 6px 16px; }
.oc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e5dcc4; }
.oc-row:last-child { border-bottom: none; }
.oc-row.total { font-size: 19px; }
.oc-row.total b { color: #2e7d32; }
footer { text-align: center; color: #fff; font-size: 32px; padding: 16px 16px 28px; background: rgba(20, 30, 15, .55); text-shadow: 0 1px 6px rgba(0, 0, 0, .65); }
footer a { color: #fff; }
.foot-name { font-weight: 700; color: #fff; font-size: 40px; }
/* admin */
.admin-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.stat-card {
    background: #fff; border: 1px solid #e5dcc4; border-radius: 12px;
    padding: 12px; text-align: center;
}
.stat-num { font-size: 26px; font-weight: 700; color: #2e4a22; }
.stat-label { font-size: 13px; color: #7a6a58; }
.link-card { display: flex; align-items: center; justify-content: center; }
.link-card a { font-weight: 700; font-size: 15px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.filter-btn {
    border: 1.5px solid #d9c9a8; background: #fff; border-radius: 999px;
    padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.filter-btn.active { background: #2e4a22; color: #fff; border-color: #2e4a22; }
.admin-order {
    background: #fff; border: 1px solid #e5dcc4; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 12px;
}
.admin-order.st-new { border-left: 6px solid #e6a817; }
.admin-order.st-preparing { border-left: 6px solid #42a5f5; }
.admin-order.st-served { border-left: 6px solid #66bb6a; opacity: .75; }
.admin-order.st-cancelled { border-left: 6px solid #ef9a9a; opacity: .6; }
.ao-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ao-table { font-size: 21px; font-weight: 700; color: #2e4a22; }
.ao-time { font-size: 13px; color: #7a6a58; }
.ao-items { margin: 8px 0; }
.ao-items div { display: flex; justify-content: space-between; padding: 2px 0; }
.ao-total { font-size: 19px; font-weight: 700; }
.ao-total b { color: #2e7d32; }
.ao-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ao-btn {
    border: none; border-radius: 999px; padding: 9px 16px; font-size: 14px;
    font-weight: 700; cursor: pointer; font-family: inherit; background: #eef3df; color: #2e4a22;
}
.ao-btn.primary { background: #2e7d32; color: #fff; }
.ao-btn.danger { background: #fce4ec; color: #b71c1c; }
.pin-box { background: #fff; border: 1px solid #e5dcc4; border-radius: 14px; padding: 30px 26px; margin-top: 14px; }
.pin-box label { display: block; font-weight: 600; margin: 10px 0 6px; font-size: 19px; }
.pin-box label:first-child { margin-top: 0; }
.pin-box .order-btn { margin-top: 16px; width: 100%; font-size: 20px; padding: 18px 26px; }
.hidden { display: none; }
/* QR */
.qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.qr-card { background: #fff; border: 1px solid #e5dcc4; border-radius: 14px; padding: 14px; text-align: center; }
.qr-card img { width: 100%; max-width: 180px; height: auto; }
.qr-table { font-size: 20px; font-weight: 700; color: #2e4a22; margin-top: 6px; }
.qr-url { font-size: 12px; color: #7a6a58; }
@media (max-width: 640px) {
    .table-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-top { grid-template-columns: repeat(2, 1fr); }
    .qr-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-name { font-size: 28px; }
}
@media print {
    .no-print, footer, .hero { display: none !important; }
    body { background: #fff; }
    .wrap { max-width: none; padding: 0; }
    .qr-grid { grid-template-columns: repeat(4, 1fr); }
    .qr-card { break-inside: avoid; }
}
