/* ============================================================
   MyMenu – Global Stylesheet
   by SRP Digital Studios
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #e8552e;
  --primary-dark:  #c94020;
  --primary-light: #fef0ec;
  --secondary:     #2d2d2d;
  --accent:        #f9a825;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;
  --bg:            #f8f7f5;
  --card:          #ffffff;
  --border:        #e5e7eb;
  --text:          #1a1a1a;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --shadow:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;
  --sidebar-w:     240px;
  --header-h:      60px;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.4rem;  font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { margin-bottom: .75rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .55rem 1.25rem;
  font-size: .9rem; font-weight: 600; font-family: var(--font);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .18s; white-space: nowrap;
  text-decoration: none; line-height: 1.4;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary{ background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #444; color: #fff; text-decoration: none; }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover  { background: #16a34a; text-decoration: none; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover   { background: #dc2626; text-decoration: none; }
.btn-warning  { background: var(--warning); color: #fff; }
.btn-info     { background: var(--info); color: #fff; }
.btn-outline  { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover  { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-ghost    { background: transparent; color: var(--text-muted); }
.btn-ghost:hover    { background: var(--bg); color: var(--text); text-decoration: none; }
.btn-sm       { padding: .35rem .85rem; font-size: .8rem; }
.btn-lg       { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full     { width: 100%; }
.btn-google   { background: #fff; color: var(--secondary); border: 2px solid var(--border); box-shadow: var(--shadow); }
.btn-google:hover { border-color: var(--primary); text-decoration: none; }
.btn-google img { width: 20px; height: 20px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.card-body   { padding: 1.25rem; }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}
.badge-success  { background: #dcfce7; color: #15803d; }
.badge-danger   { background: #fee2e2; color: #b91c1c; }
.badge-warning  { background: #fef9c3; color: #92400e; }
.badge-info     { background: #dbeafe; color: #1d4ed8; }
.badge-secondary{ background: #f3f4f6; color: #374151; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .35rem; color: var(--text); }
.form-control {
  width: 100%; padding: .6rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,85,46,.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { min-height: 90px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-text  { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap   { overflow-x: auto; }
.table        { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table thead th { background: var(--bg); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.table tbody tr:hover { background: #fafafa; }
.table tbody tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: .4rem; align-items: center; }

/* ── Alert ────────────────────────────────────────────────── */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #dcfce7; border-color: #86efac; color: #15803d; }
.alert-danger  { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.alert-warning { background: #fef9c3; border-color: #fde047; color: #854d0e; }
.alert-info    { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }

/* ── Admin Layout ─────────────────────────────────────────── */
.admin-wrapper  { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); background: var(--secondary); color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 200;
  transition: transform .3s;
}
.sidebar-logo {
  padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: .65rem;
}
.sidebar-logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--primary); }
.sidebar-logo-text h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.sidebar-logo-text span { font-size: .7rem; color: rgba(255,255,255,.5); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.25rem; color: rgba(255,255,255,.75); font-size: .9rem;
  transition: all .15s; border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.08); color: #fff;
  border-left-color: var(--primary); text-decoration: none;
}
.sidebar-nav a .nav-icon { font-size: 1.1rem; min-width: 20px; text-align: center; }
.sidebar-nav .nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; min-width: 20px; text-align: center;
}
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user   { display: flex; align-items: center; gap: .7rem; }
.sidebar-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.sidebar-user-info { min-width: 0; }
.sidebar-user-info .name  { font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info .email { font-size: .72rem; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-content {
  flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0;
}
.admin-header {
  height: var(--header-h); background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.admin-header-title { font-size: 1.1rem; font-weight: 700; }
.admin-header-right { display: flex; align-items: center; gap: .75rem; }
.admin-main { flex: 1; padding: 1.5rem; }

.page-header { margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title  { font-size: 1.4rem; font-weight: 700; }
.page-subtitle { font-size: .875rem; color: var(--text-muted); margin-top: .2rem; }

/* Mobile hamburger */
.btn-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: .4rem; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .admin-content { margin-left: 0; }
  .btn-hamburger { display: flex; }
}

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card  { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 2rem; font-weight: 700; margin: .25rem 0; line-height: 1; }
.stat-sub   { font-size: .8rem; color: var(--text-muted); }
.stat-icon  { font-size: 1.8rem; margin-bottom: .5rem; }

/* ── Notification Bell ────────────────────────────────────── */
.notif-bell { position: relative; cursor: pointer; background: none; border: none; font-size: 1.3rem; padding: .4rem; color: var(--text); }
.notif-count {
  position: absolute; top: 0; right: 0; background: var(--danger);
  color: #fff; font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); width: 320px; max-height: 420px; overflow-y: auto; z-index: 500;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-header { padding: .85rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-item   { padding: .85rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-light); }
.notif-item:hover  { background: var(--bg); }
.notif-item-title  { font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.notif-item-msg    { font-size: .8rem; color: var(--text-muted); }
.notif-item-time   { font-size: .75rem; color: var(--text-light); margin-top: .25rem; }
.notif-empty       { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .875rem; }

/* ── Order Notification Popup ─────────────────────────────── */
.order-popup {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 1.1rem 1.25rem; min-width: 280px; max-width: 340px;
  display: none; animation: slideUp .3s ease;
}
.order-popup.show { display: flex; align-items: flex-start; gap: .85rem; }
.order-popup-icon { font-size: 1.8rem; }
.order-popup-body h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.order-popup-body p  { font-size: .875rem; color: var(--text-muted); margin: 0; }
.order-popup-close { position: absolute; top: .5rem; right: .6rem; background: none; border: none; cursor: pointer; font-size: .9rem; color: var(--text-muted); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Customer Menu ────────────────────────────────────────── */
.menu-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 1.5rem 1rem 1rem;
}
.menu-header .rest-logo { width: 70px; height: 70px; border-radius: var(--radius); object-fit: cover; margin: 0 auto .75rem; border: 3px solid rgba(255,255,255,.3); }
.menu-header .rest-name  { font-size: 1.4rem; font-weight: 700; text-align: center; }
.menu-header .rest-phone { font-size: .875rem; opacity: .85; text-align: center; margin-top: .3rem; }

.menu-search-bar { background: #fff; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.menu-search-input {
  width: 100%; padding: .6rem 1rem .6rem 2.5rem;
  border: 1.5px solid var(--border); border-radius: 99px;
  font-size: .95rem; background: var(--bg); color: var(--text);
}
.menu-search-input:focus { outline: none; border-color: var(--primary); }
.menu-search-wrap { position: relative; }
.menu-search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.category-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0; padding: .4rem 1rem; border-radius: 99px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-muted);
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.cat-btn:hover, .cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.menu-section { padding: .75rem 1rem; }
.section-title { font-size: 1rem; font-weight: 700; margin: .75rem 0 .5rem; color: var(--text-muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 400px) { .menu-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

.menu-item-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.menu-item-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg);
}
.menu-item-img-placeholder {
  width: 100%; aspect-ratio: 1; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.menu-item-info { padding: .5rem .6rem .6rem; flex: 1; display: flex; flex-direction: column; }
.menu-item-name { font-size: .82rem; font-weight: 600; line-height: 1.3; margin-bottom: .3rem; }
.menu-item-price { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.btn-add {
  width: 100%; padding: .35rem; border: none; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background .15s; margin-top: auto;
}
.btn-add:hover { background: var(--primary-dark); }
.qty-controls {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-light); border-radius: var(--radius-sm); overflow: hidden; margin-top: auto;
}
.qty-btn {
  background: none; border: none; width: 32px; height: 32px; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.qty-num { font-size: .9rem; font-weight: 700; color: var(--primary); }

/* Floating Cart */
.floating-cart {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: #fff; border-radius: 99px;
  padding: .7rem 1.5rem; display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-md); z-index: 100; cursor: pointer;
  min-width: 220px; justify-content: space-between;
  transition: transform .2s, box-shadow .2s;
}
.floating-cart:hover { box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.floating-cart.hidden { display: none; }
.cart-count  { background: var(--primary); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.cart-label  { font-size: .95rem; font-weight: 600; }
.cart-total  { font-size: .95rem; font-weight: 700; color: var(--accent); }

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 180px; border-radius: var(--radius); }
.skeleton-line { height: 14px; margin: .4rem 0; }
.skeleton-line-sm { height: 10px; width: 60%; }

/* ── Order Tracking ───────────────────────────────────────── */
.order-track-page { max-width: 520px; margin: 0 auto; padding: 1.25rem; }
.order-status-bar {
  display: flex; gap: .5rem; margin: 1.25rem 0;
}
.status-step {
  flex: 1; text-align: center; position: relative;
}
.status-step::before {
  content: ''; position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: var(--border); z-index: 0;
}
.status-step:last-child::before { display: none; }
.status-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto .4rem; position: relative; z-index: 1; font-size: .8rem;
}
.status-step.done .status-dot  { background: var(--success); border-color: var(--success); color: #fff; }
.status-step.active .status-dot{ background: var(--primary); border-color: var(--primary); color: #fff; }
.status-step.rejected .status-dot{ background: var(--danger); border-color: var(--danger); color: #fff; }
.status-label { font-size: .72rem; color: var(--text-muted); font-weight: 500; }

/* ── Restaurant Status Pages ──────────────────────────────── */
.status-page { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 1.5rem; }
.status-box   { text-align: center; max-width: 380px; }
.status-box .icon { font-size: 4rem; margin-bottom: 1rem; }
.status-box h2    { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.status-box p     { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Login Page ───────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 1rem; }
.login-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.5rem 2rem; max-width: 420px; width: 100%; text-align: center; }
.login-logo { width: 70px; height: 70px; border-radius: var(--radius); background: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2rem; color: #fff; }
.login-card h1 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.login-card .brand { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.login-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--text-light); font-size: .85rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-body   { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .6rem; }
.modal-close  { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); padding: .25rem; }

/* ── Upload Image Preview ─────────────────────────────────── */
.img-preview { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; border: 2px solid var(--border); margin-top: .5rem; }
.upload-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

/* ── Restaurant Card ──────────────────────────────────────── */
.rest-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.rest-card:last-child { border-bottom: none; }
.rest-card-logo { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); border: 1px solid var(--border); flex-shrink: 0; }
.rest-card-logo-placeholder { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.rest-card-info h4  { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.rest-card-info p   { font-size: .8rem; color: var(--text-muted); }
.rest-card-actions  { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3    { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.empty-state p     { font-size: .875rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 1.25rem; font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 2rem; }

/* ── Utilities ────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-danger  { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-1        { gap: .5rem; }
.gap-2        { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── QR Download Page ─────────────────────────────────────── */
.qr-page { text-align: center; padding: 1.5rem 1rem; max-width: 360px; margin: 0 auto; }
.qr-page img.qr-img { width: 220px; height: 220px; margin: .75rem auto; border: 2px solid var(--border); border-radius: var(--radius); padding: .5rem; background: #fff; }
.qr-url { font-size: .78rem; word-break: break-all; color: var(--text-muted); margin: .5rem 0 1rem; }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-page { max-width: 500px; margin: 0 auto; padding: 1.25rem; }
.checkout-item { display: flex; justify-content: space-between; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--border); gap: .5rem; }
.checkout-item-name { font-size: .9rem; flex: 1; }
.checkout-item-qty  { font-size: .85rem; color: var(--text-muted); min-width: 40px; }
.checkout-item-price{ font-size: .9rem; font-weight: 600; white-space: nowrap; }
.checkout-total     { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; padding: .75rem 0; border-top: 2px solid var(--text); margin-top: .25rem; }
.payment-options    { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.payment-option     { position: relative; }
.payment-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-option label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; padding: .85rem; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .15s; font-size: .9rem; font-weight: 600;
}
.payment-option label .icon { font-size: 1.6rem; }
.payment-option input:checked + label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── Profile ──────────────────────────────────────────────── */
.profile-header { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); flex-shrink: 0; }
.profile-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.profile-info   h2 { font-size: 1.25rem; font-weight: 700; }
.profile-info   p  { font-size: .875rem; color: var(--text-muted); margin: 0; }
.profile-name   { font-size: 1.25rem; font-weight: 700; margin-bottom: .2rem; }
.profile-email  { font-size: .875rem; color: var(--text-muted); }

/* ── Analytics Charts Placeholder ────────────────────────── */
.chart-bar-wrap { margin: 1rem 0; }
.chart-bar-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.chart-bar-label{ min-width: 100px; font-size: .82rem; text-align: right; color: var(--text-muted); }
.chart-bar-track{ flex: 1; height: 22px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .6s; display: flex; align-items: center; justify-content: flex-end; padding-right: .5rem; }
.chart-bar-fill span { font-size: .75rem; font-weight: 700; color: #fff; white-space: nowrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .admin-main  { padding: 1rem; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .menu-grid   { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
}
@media (max-width: 360px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
