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

/* --- Design System & CSS Variables --- */
:root {
  --font-primary: 'Prompt', sans-serif;
  --font-accent: 'Mitr', sans-serif;

  /* Color Palette */
  --bg-main: #0c0b10;
  --bg-gradient: radial-gradient(circle at top right, #1d1b26, #0c0b10);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 95, 109, 0.5);
  
  --primary-gradient: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
  --secondary-gradient: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
  --accent-cyan: #00f2fe;
  
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --text-dark: #121214;
  
  --color-success: #00e676;
  --color-pending: #ffc400;
  --color-cooking: #00b0ff;
  --color-error: #ff1744;

  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --blur-effect: blur(12px);
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile nav bar */
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 95, 109, 0.3);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Reuseable Layout Elements (Glassmorphism) --- */
.glass-container {
  background: var(--bg-card);
  backdrop-filter: var(--blur-effect);
  -webkit-backdrop-filter: var(--blur-effect);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
}

.glass-container-interactive {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass-container-interactive:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 95, 109, 0.2);
  transform: translateY(-4px);
}

/* --- Common UI Controls --- */
.btn {
  background: var(--primary-gradient);
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 95, 109, 0.3);
  font-size: 1rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 95, 109, 0.5);
  opacity: 0.95;
}
.btn:active {
  transform: translateY(0);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.btn-danger {
  background: var(--color-error);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Input Fields */
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(255, 95, 109, 0.15);
}

/* Custom Option Selector (Spiciness / Add-on) */
.custom-selector-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.custom-selector-item {
  position: relative;
  display: inline-block;
}
.custom-selector-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.custom-selector-label {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.custom-selector-item input:checked + .custom-selector-label {
  background: var(--primary-gradient);
  color: var(--text-dark);
  font-weight: 500;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 95, 109, 0.2);
}

/* Custom Checkbox (Add-ons) */
.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.addon-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}
.addon-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.addon-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.addon-item input {
  display: none;
}
.addon-item input:checked ~ .addon-info .addon-checkbox {
  background: var(--primary-gradient);
  border-color: transparent;
}
.addon-item input:checked ~ .addon-info .addon-checkbox::after {
  content: "✓";
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: bold;
}
.addon-item input:checked ~ .addon-price {
  color: #ffc371;
}

/* --- Header / Navigation --- */
header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 95, 109, 0.3);
}
.logo-icon span {
  font-size: 1.4rem;
}
.logo-text h1 {
  font-size: 1.3rem;
}
.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Mobile Nav Bar */
.mobile-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(12, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 10px;
}
.mobile-nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  flex: 1;
}
.mobile-nav-item i {
  font-size: 1.3rem;
  transition: all 0.2s ease;
}
.mobile-nav-item.active {
  color: #ff5f6d;
}
.mobile-nav-item.active i {
  transform: translateY(-2px);
  color: #ffc371;
}

/* Badge for Cart Count */
.cart-badge-container {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary-gradient);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-main);
  animation: pulse-badge 2s infinite;
}

/* --- Customer App: Menu Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-section {
  text-align: center;
  padding: 30px 10px 40px 10px;
}
.hero-section h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.hero-section p {
  color: var(--text-muted);
  font-size: 1rem;
}

.ghost-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 95, 109, 0.1);
  border: 1px solid rgba(255, 95, 109, 0.2);
  color: #ff5f6d;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.menu-card {
  overflow: hidden;
  position: relative;
}
.menu-img-container {
  width: 100%;
  height: 180px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.menu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-img {
  transform: scale(1.08);
}
.menu-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #ffc371;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-info {
  padding: 16px;
}
.menu-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.menu-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
}
.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-price {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
}
.menu-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.menu-sold-out {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 16, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--color-error);
  font-weight: bold;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.menu-sold-out i {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* --- Customize Modal / Drawer --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end; /* Slide up on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  width: 100%;
  max-width: 500px;
  background: #14131a;
  border-top: 1px solid var(--border-color);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}
.modal.open .modal-content {
  transform: translateY(0);
}
@media (min-width: 576px) {
  .modal {
    align-items: center;
  }
  .modal-content {
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-height: 90vh;
  }
}
.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-section-title {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-primary);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-section-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 8px;
}
.modal-section {
  margin-bottom: 24px;
}
.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 6px 12px;
}
.qty-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-val {
  font-family: var(--font-accent);
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* --- Cart & Checkout Page --- */
.cart-list {
  margin-top: 20px;
}
.cart-card {
  display: flex;
  gap: 15px;
  padding: 16px;
  margin-bottom: 16px;
}
.cart-card-info {
  flex: 1;
}
.cart-card-title {
  font-size: 1rem;
  font-weight: 500;
}
.cart-card-options {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.cart-card-price {
  font-family: var(--font-accent);
  color: #ffc371;
  font-size: 1.1rem;
  margin-top: 8px;
}
.cart-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.cart-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}
.cart-item-delete:hover {
  color: var(--color-error);
}

.checkout-summary {
  padding: 20px;
  margin-top: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.summary-row.total {
  font-size: 1.2rem;
  font-weight: 600;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  font-family: var(--font-accent);
}

/* --- QR Payment Dialog --- */
.qr-modal-body {
  text-align: center;
  padding: 10px 0;
}
.qr-container {
  background: #ffffff;
  padding: 15px;
  border-radius: 16px;
  display: inline-block;
  margin: 15px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.qr-image {
  width: 200px;
  height: 200px;
  display: block;
}
.qr-promptpay-logo {
  height: 35px;
  margin: 0 auto 5px auto;
  display: block;
}
.payment-amount {
  font-size: 1.6rem;
  font-family: var(--font-accent);
  color: #ffc371;
  font-weight: bold;
  margin-bottom: 6px;
}
.payment-timer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 95, 109, 0.1);
  border-radius: 50%;
  border-top: 3px solid #ff5f6d;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Order Tracking Styles --- */
.order-tracking-card {
  padding: 24px;
  margin-top: 20px;
}
.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.tracking-title {
  font-size: 1.1rem;
}
.tracking-id {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 8px;
}
.tracking-timeline {
  position: relative;
  padding-left: 30px;
  margin: 30px 0;
}
.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.timeline-step {
  position: relative;
  margin-bottom: 30px;
}
.timeline-step:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.timeline-step.active .timeline-dot {
  background: #ff5f6d;
  border-color: #ffc371;
  box-shadow: 0 0 10px #ff5f6d;
  animation: pulse-dot 1.5s infinite;
}
.timeline-step.completed .timeline-dot {
  background: var(--color-success);
  border-color: var(--color-success);
}
.timeline-step.completed::after {
  content: "";
  position: absolute;
  left: -25px;
  top: 18px;
  height: calc(100% + 12px);
  width: 2px;
  background: var(--color-success);
  z-index: 2;
}
.timeline-info h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.timeline-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.timeline-step.active .timeline-info h4 {
  color: #ffc371;
}

@keyframes pulse-dot {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 109, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 95, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 109, 0); }
}

/* --- Kitchen App: Kanban Layout --- */
.kitchen-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
  min-height: calc(100vh - 180px);
}
@media (min-width: 992px) {
  .kitchen-board {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kitchen-column {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.03);
}
.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 16px;
}
.column-title {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.column-badge {
  background: rgba(255,255,255,0.08);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-accent);
}
.column-header.pending .column-badge { color: var(--color-pending); background: rgba(255,196,0,0.1); }
.column-header.cooking .column-badge { color: var(--color-cooking); background: rgba(0,176,255,0.1); }
.column-header.ready .column-badge { color: var(--color-success); background: rgba(0,230,118,0.1); }

.order-cards-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  overflow-y: auto;
}
.kitchen-order-card {
  padding: 16px;
  border-left: 4px solid var(--border-color);
  position: relative;
  animation: slide-in-card 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.column-header.pending ~ .order-cards-list .kitchen-order-card { border-left-color: var(--color-pending); }
.column-header.cooking ~ .order-cards-list .kitchen-order-card { border-left-color: var(--color-cooking); }
.column-header.ready ~ .order-cards-list .kitchen-order-card { border-left-color: var(--color-success); }

@keyframes slide-in-card {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.k-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.k-order-id {
  font-size: 0.9rem;
  font-weight: bold;
}
.k-order-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.k-order-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.k-order-tag.delivery { background: rgba(255, 95, 109, 0.15); color: #ff5f6d; }
.k-order-tag.pickup { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }

.k-order-details {
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  margin: 10px 0;
}
.k-food-item {
  margin-bottom: 8px;
}
.k-food-item:last-child {
  margin-bottom: 0;
}
.k-food-title {
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.k-food-qty {
  color: #ffc371;
}
.k-food-customs {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 10px;
  margin-top: 2px;
}
.k-spicy-indicator {
  display: inline-block;
  color: #ff1744;
  margin-right: 4px;
}
.k-note {
  background: rgba(255, 23, 68, 0.05);
  border-radius: 4px;
  padding: 4px 8px;
  color: #ff5252;
  font-size: 0.75rem;
  margin-top: 6px;
  border-left: 2px solid #ff1744;
}

.k-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.k-address-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sound Toggle */
.sound-toggle-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.sound-toggle-btn.muted {
  color: var(--color-error);
  border-color: rgba(255, 23, 68, 0.2);
}

/* --- Admin Dashboard Layout --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 992px) {
  .admin-grid {
    grid-template-columns: 3fr 1.5fr;
  }
}
.admin-card {
  padding: 20px;
}

/* Admin Stat Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  padding: 16px;
  text-align: center;
}
.stat-val {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 6px 0;
  color: #ffc371;
}
.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Menu Toggle Switch */
.admin-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}
.admin-menu-item:last-child {
  border-bottom: none;
}
.admin-menu-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-menu-thumbnail {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.02);
}
.admin-menu-name {
  font-size: 0.95rem;
  font-weight: 500;
}
.admin-menu-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: var(--primary-gradient);
  border-color: transparent;
}
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--text-dark);
}

/* Visual Chart Component */
.chart-container {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 20px;
  gap: 10px;
}
.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 35px;
  background: var(--primary-gradient);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  min-height: 5px;
  transition: height 1s ease-out;
  position: relative;
}
.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-family: var(--font-accent);
  color: var(--text-main);
  opacity: 0;
  transition: opacity 0.3s;
}
.chart-bar-wrapper:hover .chart-bar::after {
  opacity: 1;
}
.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
