@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #f6f2ff; --paper: #fdfbff; --ink: #221239; --muted: #6e6190;
  --tomato: #5b21b6; --tomato-dark: #2a0a54; --mustard: #ffc61a; --green: #1d9e68;
  --navy: #2a0a54; --line: rgba(34,18,57,.14); --shadow: 0 18px 42px rgba(42,10,84,.13);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Sora", system-ui, sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.admin-body { min-height: 100vh; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px max(18px, calc((100vw - 1240px)/2)); background: rgba(255,253,248,.94); backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.admin-badge { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--mustard); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: "Bungee", sans-serif; font-weight: 800; }
.admin-title-wrap { display: grid; line-height: 1.1; }
.admin-title { font-family: "Bungee", sans-serif; font-size: 1.35rem; font-weight: 800; }
.admin-subtitle { color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-button { border: 2px solid var(--ink); border-radius: 999px; padding: 10px 15px; font-weight: 900; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.primary-button { background: var(--mustard); color: var(--ink); }
.ghost-button { box-shadow: none; }
.danger-button { background: #fde4ec; color: #8d1440; border-color: #8d1440; box-shadow: none; }
.admin-main { width: min(1240px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 54px; }
.demo-alert { background: #ffedb0; border: 1.5px dashed #a87e00; color: #5c4300; border-radius: 20px; padding: 16px 18px; font-weight: 750; }
.admin-hero { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin: 28px 0 18px; }
.admin-heading { font-family: "Bungee", sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .95; letter-spacing: -.04em; margin: 0; }
.admin-intro { color: var(--muted); max-width: 690px; margin: 10px 0 0; }
.sample-tag { display: inline-block; background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 3px 8px; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.admin-stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 23px; padding: 20px; box-shadow: 0 10px 24px rgba(42,10,84,.06); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
.stat-num { display: block; font-family: "Bungee", sans-serif; font-size: 2.25rem; line-height: 1; margin-top: 13px; }
.stat-name { color: var(--muted); font-weight: 650; }
.admin-section { background: var(--paper); border: 1.5px solid var(--line); border-radius: 27px; padding: 22px; margin-top: 17px; box-shadow: 0 12px 28px rgba(42,10,84,.05); }
.section-bar { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-section-title { font-family: "Bungee", sans-serif; font-size: 1.65rem; line-height: 1; margin: 0; }
.admin-section-note { color: var(--muted); margin: 6px 0 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { text-align: left; background: #ede9ff; color: #3d2a63; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 12px; }
.data-table td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.record-main { font-weight: 900; }
.record-sub { color: var(--muted); font-size: .87rem; }
.items-summary { max-width: 330px; }
.status-select { border: 1.5px solid var(--line); background: #fffaf2; border-radius: 999px; padding: 8px 10px; font-weight: 800; }
.delete-button { border: 0; background: transparent; color: #d61c5c; font-weight: 900; padding: 6px; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); font-weight: 800; background: #fffaf2; border-radius: 16px; }
.message-list { display: grid; gap: 11px; }
.message-card { border: 1.3px solid var(--line); background: #fffaf2; border-radius: 17px; padding: 15px; }
.message-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.message-text { color: #57493f; margin: 8px 0 0; }
.menu-editor-table { min-width: 820px; }
.price-input { width: 120px; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 10px; background: #fffaf2; font-weight: 800; }
.toggle-wrap { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.availability-toggle { width: 21px; height: 21px; accent-color: var(--green); }
.save-button { border: 2px solid var(--ink); background: var(--mustard); border-radius: 999px; padding: 8px 13px; font-weight: 900; }
.override-note { color: #d61c5c; font-size: .82rem; font-weight: 850; }
.admin-footer { color: var(--muted); text-align: center; padding: 24px 0 0; font-size: .9rem; }
.admin-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 17px; font-weight: 900; transition: .22s ease; }
.admin-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar, .admin-hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) { .admin-stats { grid-template-columns: 1fr; } .admin-main { width: min(100% - 18px, 1240px); } .admin-section { padding: 16px; } }
