/* ============================================================
   KOAF RestaurantPro — Global Stylesheet
   Premium dark charcoal, gold, cream restaurant SaaS look
   ============================================================ */

:root {
  --bg-primary:   #12121f;
  --bg-secondary: #1a1a2e;
  --bg-card:      #1e1e35;
  --bg-glass:     rgba(255,255,255,0.06);
  --border:       rgba(255,215,0,0.15);
  --gold:         #c9a84c;
  --gold-light:   #e4c76b;
  --gold-dark:    #a07830;
  --cream:        #f5f0e8;
  --white:        #ffffff;
  --text:         #e8e8f0;
  --text-muted:   #9090b0;
  --text-dark:    #12121f;
  --success:      #2ecc71;
  --warning:      #f39c12;
  --danger:       #e74c3c;
  --info:         #3498db;
  --sidebar-w:    260px;
  --topbar-h:     60px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 16px rgba(0,0,0,0.3);
  --transition:   all 0.25s ease;
  --font-main:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

body.public-page { background: var(--bg-primary); }
body.dashboard-page { display: flex; flex-direction: column; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ============================================================
   Typography
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--white); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { color: var(--text); }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-center { text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,168,76,0.35); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--text-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #27ae60; }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #2980b9; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--white); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-dark);
}

/* Stat cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.stat-icon.green { background: rgba(46,204,113,0.15); color: var(--success); }
.stat-icon.red { background: rgba(231,76,60,0.15); color: var(--danger); }
.stat-icon.blue { background: rgba(52,152,219,0.15); color: var(--info); }
.stat-icon.orange { background: rgba(243,156,18,0.15); color: var(--warning); }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.sidebar-brand { font-size: 0.85rem; font-weight: 800; color: var(--gold); flex: 1; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-glass);
  margin: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.sidebar-avatar { font-size: 2rem; color: var(--gold); }
.sidebar-name { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.sidebar-role { font-size: 0.75rem; color: var(--gold); text-transform: capitalize; }
.sidebar-nav { list-style: none; padding: 8px 0; flex: 1; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border-left-color: var(--gold);
}
.sidebar-nav li a i { width: 18px; text-align: center; }
.nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 20px 4px;
  font-weight: 700;
}
.badge-count {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: auto;
  font-weight: 700;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 900;
}
.topbar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--white); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-icon {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}
.topbar-icon:hover { background: var(--bg-glass); color: var(--gold); }
.badge-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
}
.topbar-user { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   Dashboard Layout
   ============================================================ */
.dashboard-wrapper {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  min-height: calc(100vh - var(--topbar-h));
}
.page-header {
  margin-bottom: 28px;
}
.page-header h1 { font-size: 1.6rem; margin-bottom: 4px; }
.page-header p { color: var(--text-muted); font-size: 0.875rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ============================================================
   Badges / Status Pills
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success { background: rgba(46,204,113,0.15); color: var(--success); }
.badge-danger { background: rgba(231,76,60,0.15); color: var(--danger); }
.badge-warning { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-info { background: rgba(52,152,219,0.15); color: var(--info); }
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-muted { background: rgba(144,144,176,0.15); color: var(--text-muted); }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(46,204,113,0.12); border-left: 4px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(231,76,60,0.12); border-left: 4px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(243,156,18,0.12); border-left: 4px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(52,152,219,0.12); border-left: 4px solid var(--info); color: var(--info); }

/* ============================================================
   PUBLIC WEBSITE NAV
   ============================================================ */
.pub-nav {
  position: sticky;
  top: 0;
  background: rgba(18,18,31,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 800;
}
.pub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}
.pub-nav-logo { display: flex; align-items: center; gap: 10px; }
.pub-nav-logo img { width: 38px; height: 38px; border-radius: 8px; }
.pub-nav-brand { font-weight: 800; font-size: 1rem; color: var(--gold); }
.pub-nav-links { display: flex; gap: 24px; flex: 1; }
.pub-nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; transition: var(--transition); }
.pub-nav-links a:hover, .pub-nav-links a.active { color: var(--gold); }
.pub-nav-cta { display: flex; gap: 10px; align-items: center; }
.pub-nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.pub-nav-mobile { display: none; flex-direction: column; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.pub-nav-mobile a { padding: 14px 24px; color: var(--text); font-size: 0.9rem; border-bottom: 1px solid var(--border); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d1a 0%, #12121f 40%, #1a1a2e 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero-title span { color: var(--gold); }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img {
  position: relative;
}
.hero-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 4rem;
}
.hero-qr-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.hero-qr-icon { font-size: 2rem; color: var(--gold); }
.hero-qr-text { font-size: 0.8rem; }
.hero-qr-text strong { display: block; color: var(--white); margin-bottom: 2px; }

/* ============================================================
   Sections (public)
   ============================================================ */
.section {
  padding: 80px 24px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }
.section-alt { background: var(--bg-secondary); }

/* ============================================================
   Food Cards
   ============================================================ */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-dark); }
.food-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}
.food-card-img img { width: 100%; height: 100%; object-fit: cover; }
.food-card-body { padding: 16px; }
.food-card-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.food-card-name { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.food-card-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.food-card-footer { display: flex; align-items: center; justify-content: space-between; }
.food-card-price { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.food-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.food-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.food-qty button:hover { background: var(--gold); color: var(--text-dark); }
.food-qty span { font-size: 0.9rem; font-weight: 700; min-width: 20px; text-align: center; }

/* ============================================================
   Table Floor / Status Colors
   ============================================================ */
.table-floor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table-tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
}
.table-tile:hover { transform: scale(1.04); }
.table-tile-num { font-size: 1.3rem; font-weight: 800; }
.table-tile-status { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table-tile-bill { font-size: 0.75rem; font-weight: 700; }
.status-available { background: rgba(46,204,113,0.12); border-color: var(--success); color: var(--success); }
.status-occupied, .status-ordering { background: rgba(243,156,18,0.12); border-color: var(--warning); color: var(--warning); }
.status-waiting_waiter { background: rgba(52,152,219,0.12); border-color: var(--info); color: var(--info); }
.status-waiting_bill, .status-payment_pending { background: rgba(231,76,60,0.12); border-color: var(--danger); color: var(--danger); }
.status-paid { background: rgba(46,204,113,0.12); border-color: var(--success); color: var(--success); }
.status-cleaning { background: rgba(144,144,176,0.12); border-color: var(--text-muted); color: var(--text-muted); }
.status-reserved { background: rgba(201,168,76,0.12); border-color: var(--gold); color: var(--gold); }

/* ============================================================
   Kitchen / Order Cards
   ============================================================ */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kitchen-ticket {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kitchen-ticket-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.kitchen-ticket-body { padding: 16px; }
.kitchen-ticket-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.kitchen-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.kitchen-item:last-child { border-bottom: none; }
.kitchen-item-name { font-size: 0.875rem; font-weight: 600; }
.kitchen-item-notes { font-size: 0.75rem; color: var(--text-muted); }
.kitchen-item-qty { background: var(--gold); color: var(--text-dark); font-weight: 800; font-size: 0.85rem; padding: 3px 9px; border-radius: 20px; }
.order-timer { font-size: 0.75rem; color: var(--text-muted); }
.order-timer.urgent { color: var(--danger); font-weight: 700; }

/* ============================================================
   Cart / Order Panel
   ============================================================ */
.cart-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 700;
  transition: var(--transition);
}
.cart-summary { display: flex; align-items: center; justify-content: space-between; }
.cart-count { font-size: 0.85rem; color: var(--text-muted); }
.cart-total { font-size: 1.1rem; font-weight: 800; color: var(--gold); }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   Notification Panel
   ============================================================ */
.notif-panel {
  position: fixed;
  top: var(--topbar-h);
  right: -360px;
  width: 340px;
  height: calc(100vh - var(--topbar-h));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 950;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.notif-panel.open { right: 0; }
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
}
.notif-mark-read { font-size: 0.75rem; color: var(--gold); }
.notif-body { flex: 1; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.notif-item:hover { background: var(--bg-glass); }
.notif-item.unread { background: rgba(201,168,76,0.04); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.notif-title { font-size: 0.8rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.notif-msg { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Toast
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  animation: slideInRight 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ============================================================
   WhatsApp FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 800;
  transition: var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.1); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg-secondary);
}
.footer-tagline { color: var(--gold-dark); font-size: 0.75rem; margin-top: 4px; }

/* ============================================================
   Table QR / Guest Page
   ============================================================ */
.table-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}
.table-header {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.table-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.table-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-main);
}
.table-action-btn i { font-size: 1.6rem; color: var(--gold); }
.table-action-btn:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }

/* ============================================================
   Login / Register
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0d0d1a 0%, #12121f 50%, #1a1a2e 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { width: 56px; height: 56px; border-radius: 12px; }
.auth-logo h2 { font-size: 1.4rem; margin-top: 10px; }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.auth-divider span { font-size: 0.75rem; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   Rating Stars
   ============================================================ */
.star-rating { display: flex; gap: 4px; }
.star-rating i { color: var(--gold); font-size: 1rem; }
.star-rating i.empty { color: var(--border); }

/* ============================================================
   Upload Zone
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.upload-zone i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 10px; }
.upload-zone p { font-size: 0.85rem; color: var(--text-muted); }
.upload-zone strong { color: var(--gold); }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; gap: 4px; background: var(--bg-primary); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; }
.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  text-align: center;
}
.tab-btn.active { background: var(--gold); color: var(--text-dark); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   Gallery grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); border-color: var(--gold-dark); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(201,168,76,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.testimonial-name { font-size: 0.875rem; font-weight: 700; }
.testimonial-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   Search box
   ============================================================ */
.search-box {
  position: relative;
  margin-bottom: 20px;
}
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { padding-left: 40px; }

/* ============================================================
   POS / Cashier Layout
   ============================================================ */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: calc(100vh - var(--topbar-h) - 56px);
}
.pos-items { overflow-y: auto; }
.pos-cart {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pos-cart-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.pos-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.pos-cart-item-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.pos-cart-footer { padding: 16px; border-top: 1px solid var(--border); }
.pos-totals { font-size: 0.875rem; }
.pos-totals .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-muted); }
.pos-totals .row.total { color: var(--white); font-weight: 800; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { display: none; }
  .pos-layout { grid-template-columns: 1fr; height: auto; }
  .pos-cart { height: auto; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay.open { display: block; }
  .topbar { left: 0; }
  .topbar-toggle { display: block; }
  .dashboard-wrapper { margin-left: 0; padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .pub-nav-links { display: none; }
  .pub-nav-burger { display: block; }
  .pub-nav-mobile.open { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .notif-panel { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .table-actions { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}
/* ============================================================
   Utilities
   ============================================================ */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.p-0{padding:0}.p-1{padding:8px}.p-2{padding:16px}.p-3{padding:24px}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.gap-1{gap:8px}.gap-2{gap:16px}
.w-100{width:100%}.d-none{display:none}.d-block{display:block}
.fw-bold{font-weight:700}.fs-sm{font-size:0.8rem}.fs-lg{font-size:1.1rem}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rounded{border-radius:var(--radius)}.rounded-full{border-radius:9999px}
.border{border:1px solid var(--border)}
.bg-card{background:var(--bg-card)}
.pointer{cursor:pointer}
hr.divider{border:none;border-top:1px solid var(--border);margin:20px 0}
