*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI",Arial,sans-serif;background:#f4f6f8;color:#1f2937}a{color:#1d4ed8}.site-header{max-width:1440px;margin:0 auto;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{text-decoration:none;color:#111827;display:flex;flex-direction:column;font-size:24px;font-weight:800}.brand small{font-size:14px;color:#0f766e;margin-top:2px}.nav-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.nav-actions form{margin:0}.user-chip{background:#fff;padding:9px 12px;border-radius:999px;box-shadow:0 4px 14px rgba(15,23,42,.08);font-size:14px}.page-shell{max-width:1400px;margin:0 auto;padding:0 16px 28px}.hero-card,.content-card,.checkout-card,.auth-card,.status-card,.order-section{background:#fff;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.08)}.hero-card{padding:20px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero-card.compact{padding:16px 20px}.hero-card h1,.auth-card h1,.status-card h1{margin:0 0 6px}.hero-card p,.section-heading p,.auth-card>p,.status-card p{margin:0;color:#64748b}.signed-in-note{padding:10px 13px;border-radius:12px;background:#ecfdf5;color:#166534}.signed-in-note.warning{background:#fff7ed;color:#9a3412}.content-card{padding:18px;margin-bottom:16px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-heading h2,.checkout-card h2{margin:0}.counter{font-weight:700;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 11px}.dish-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.main-grid{grid-template-columns:repeat(auto-fit,180px);justify-content:start}.dish-card{background:#f8fafc;border:2px solid transparent;border-radius:16px;padding:12px;transition:.18s ease}.dish-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.09);background:#fff}.dish-card.selected{border-color:#2563eb;background:#eff6ff}.dish-image-wrap{border-radius:12px;overflow:hidden;background:#e5e7eb;cursor:pointer}.dish-image{display:block;width:100%;aspect-ratio:4/3;max-height:120px;object-fit:cover}.dish-name{font-weight:700;text-align:center;min-height:42px;margin-top:10px;display:flex;align-items:center;justify-content:center}.dish-controls,.main-choice{display:flex;justify-content:center;margin-top:8px}.qty-select{width:72px;border:1px solid #cbd5e1;border-radius:10px;padding:7px;background:#fff}.main-choice input{width:19px;height:19px}.info-box{display:none;margin-top:9px;padding:9px;border:1px solid #fdba74;background:#fff7ed;color:#9a3412;border-radius:10px;font-size:13px;line-height:1.4}.info-box.show{display:block}.checkout-card{padding:18px;display:flex;justify-content:space-between;align-items:center;gap:16px}.checkout-card p{margin:6px 0 0;color:#64748b}.btn{border:0;border-radius:11px;padding:10px 15px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:#2563eb;color:#fff}.btn-secondary{background:#e0e7ff;color:#3730a3}.btn-success{background:#16a34a;color:#fff}.btn-ghost{background:#fff;color:#334155;border:1px solid #cbd5e1}.btn-large{padding:12px 20px}.auth-card{max-width:560px;margin:30px auto;padding:24px}.auth-card.wide{max-width:780px}.auth-form{display:grid;gap:14px;margin-top:20px}.auth-form.two-column{grid-template-columns:1fr 1fr}.auth-form label{font-weight:650;display:grid;gap:6px}.auth-form input{width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:11px 12px;font:inherit}.full-row{grid-column:1/-1}.auth-footer{margin-top:18px!important}.flash-stack{display:grid;gap:8px;margin-bottom:12px}.flash{padding:11px 13px;border-radius:10px;background:#eff6ff;color:#1e40af}.flash.error{background:#fef2f2;color:#991b1b}.flash.success{background:#ecfdf5;color:#166534}.status-card{max-width:620px;margin:36px auto;padding:30px;text-align:center}.status-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#166534;font-size:34px;font-weight:800}.status-icon.muted{background:#f1f5f9;color:#64748b}.status-pill{display:inline-flex;margin:16px 0;padding:8px 12px;border-radius:999px;font-weight:800}.status-pill.pending{background:#fff7ed;color:#9a3412}.status-pill.confirmed{background:#dcfce7;color:#166534}.order-section{padding:16px;margin-bottom:16px}.order-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.order-title{font-size:18px;font-weight:800}.order-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.status-badge{padding:6px 10px;border-radius:999px;font-size:13px;font-weight:800}.status-badge.pending{background:#fff7ed;color:#9a3412}.status-badge.confirmed{background:#dcfce7;color:#166534}.status-badge.expired{background:#f1f5f9;color:#475569}.items{display:grid;grid-template-columns:repeat(auto-fit,160px);gap:14px;justify-content:start}.item-card{width:100%;max-width:160px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px;text-align:center}.item-card img{width:100%;aspect-ratio:4/3;max-height:100px;object-fit:cover;border-radius:10px}.item-name{margin-top:8px;font-weight:700;min-height:38px}.item-qty{font-size:14px;color:#475569}.empty{background:#fff;border-radius:18px;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.08)}.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;padding:12px 16px;border-radius:11px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s;z-index:1000;max-width:360px}.toast.show{opacity:1;transform:none}.loading{opacity:.65;pointer-events:none}
@media(max-width:768px){.site-header{align-items:flex-start}.brand{font-size:20px}.user-chip{display:none}.hero-card,.checkout-card,.order-topline{align-items:flex-start;flex-direction:column}.dish-grid,.main-grid{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.dish-image{max-height:140px}.items{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.item-card{max-width:none}.item-card img{max-height:140px}.auth-form.two-column{grid-template-columns:1fr}.full-row{grid-column:auto}.nav-actions{justify-content:flex-end}}
@media(max-width:420px){.site-header{padding:12px}.page-shell{padding:0 10px 22px}.dish-grid,.main-grid,.items{gap:10px}.dish-card{padding:9px}.content-card{padding:13px}.btn{padding:9px 11px}}

.dish-image-wrap.image-error{min-height:105px;display:grid;place-items:center;background:#fee2e2}.dish-image-wrap.image-error::after{content:'Image not found';font-size:12px;color:#991b1b;font-weight:700}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.profile-grid>div{display:grid;gap:5px;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.profile-grid span{font-size:13px;color:#64748b}.profile-grid strong{overflow-wrap:anywhere}.section-divider{border:0;border-top:1px solid #e2e8f0;margin:24px 0}.auth-card h2{margin:0 0 8px}@media(max-width:600px){.profile-grid{grid-template-columns:1fr}}

.payment-box{display:grid;gap:7px;margin:0 0 16px;padding:14px;border:1px solid #fbbf24;border-radius:13px;background:#fffbeb;color:#78350f}.payment-box.paid{border-color:#86efac;background:#f0fdf4;color:#166534}.payment-box span,.payment-box small{display:block}.copy-reference{border:1px dashed currentColor;border-radius:8px;background:transparent;color:inherit;padding:4px 8px;font:inherit;font-weight:800;cursor:pointer}.copy-reference:hover{background:rgba(255,255,255,.65)}
.twint-payment-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}.twint-payment-details{display:grid;gap:7px}.twint-qr-wrap{display:grid;justify-items:center;gap:6px;color:#78350f;font-size:12px;font-weight:700}.twint-qr{display:block;width:180px;height:180px;object-fit:contain;background:#fff;border:8px solid #fff;border-radius:12px;box-shadow:0 4px 14px rgba(15,23,42,.12)}
@media(max-width:700px){.twint-payment-card{grid-template-columns:1fr}.twint-qr-wrap{justify-self:center}.twint-qr{width:210px;height:210px}}

/* V2.2 manual TWINT payment controls */
.payment-box.waiting{border-color:#93c5fd;background:#eff6ff;color:#1e3a8a}
.status-badge.waiting{background:#dbeafe;color:#1e40af}
.copy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.copy-button{border:1px solid currentColor;border-radius:9px;background:#fff;color:inherit;padding:6px 11px;font:inherit;font-weight:800;cursor:pointer;min-width:76px}
.copy-button:hover{background:rgba(255,255,255,.72)}
.ive-paid-button{justify-self:start;margin-top:5px}
@media(max-width:520px){.copy-row{align-items:stretch;flex-direction:column}.copy-button,.ive-paid-button{width:100%}}

/* V2.4 tap-to-copy fields */
.copy-field{display:grid;gap:3px;padding:11px 12px;border:1px dashed currentColor;border-radius:10px;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation;transition:background .16s ease,transform .08s ease}
.copy-field>span{font-size:12px;font-weight:700;opacity:.78;text-transform:uppercase;letter-spacing:.04em}
.copy-field>b{font-size:17px;overflow-wrap:anywhere}
.copy-field>small{font-size:12px;opacity:.72}
.copy-field:hover,.copy-field:focus-visible{background:rgba(255,255,255,.72);outline:2px solid rgba(37,99,235,.35);outline-offset:2px}
.copy-field:active{transform:scale(.995)}
.copy-field.copied{background:#dcfce7;color:#166534;border-style:solid}

/* V2.6 customer order history */
.history-order .order-title{font-size:20px}
.history-order .dish-image-wrap:empty{min-height:100px;display:grid;place-items:center;background:#e2e8f0}
.history-order .dish-image-wrap:empty::after{content:'No image';font-size:12px;color:#64748b;font-weight:700}
.empty p{margin:8px 0 0;color:#64748b}

/* V2.7 future order dates */
.order-date-card { margin-bottom: 1.25rem; }
.date-field { display: grid; gap: .45rem; max-width: 420px; font-weight: 700; }
.date-field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}
.date-order-group { margin: 1.25rem 0 2rem; }
.date-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding: 0 .15rem;
}
.date-group-heading h2 { margin: 0; }
.date-group-heading span { color: #64748b; font-weight: 700; }
