/* =============================================
   PREMIUM DIGITAL MENU - STYLESHEET
   Theme: Deep Gold & Charcoal Black
   Language: Arabic (RTL)
   ============================================= */

@font-face {
  font-family: 'Al-Jazeera-Arabic';
  src: url('../fonts/Al-Jazeera-Arabic-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --gold: #D4A843;
  --gold-light: #F0D060;
  --gold-dark: #B8922E;
  --gold-gradient: linear-gradient(135deg, #D4A843, #F0D060);
  --gold-glow: 0 0 20px rgba(var(--gold-rgb), 0.3);
  --gold-rgb: 212,168,67;

  --black: #0D0D0D;
  --black-2: #1A1A1A;
  --black-3: #242424;
  --black-4: #2D2D2D;
  --black-rgb: 13,13,13;
  --surface: #1A1A1A;
  --surface-2: #242424;
  --surface-3: #2D2D2D;
  --surface-rgb: 26,26,26;

  --text: #F5F5F5;
  --text-muted: #999;
  --text-dim: #666;
  --text-rgb: 245,245,245;

  --danger: #E74C3C;
  --success: #2ECC71;
  --warning: #F39C12;
  --info: #3498DB;
  --icon: #F5F5F5;
  --accent: #D4A843;
  --accent-rgb: 212,168,67;
  --success-rgb: 46,204,113;
  --warning-rgb: 243,156,18;
  --danger-rgb: 231,76,60;
  --info-rgb: 52,152,219;
  --divider: rgba(245,245,245,0.06);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow: 0 4px 20px rgba(var(--black-rgb),0.3);
  --shadow-lg: 0 8px 40px rgba(var(--black-rgb),0.5);
  --shadow-gold: 0 4px 20px rgba(var(--gold-rgb),0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Al-Jazeera-Arabic', 'Tahoma', sans-serif;
  --max-width: 1200px;
  --header-h: 70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--header-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

svg { color: var(--icon); }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Selection --- */
::selection { background: var(--gold); color: var(--black); }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--black-rgb), 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  height: var(--header-h);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(var(--black-rgb), 0.98);
  box-shadow: 0 2px 20px rgba(var(--black-rgb),0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  transition: background 0.3s;
  flex-shrink: 0;
}
.db-indicator.connected { background: var(--success); box-shadow: 0 0 6px var(--success); }
.db-indicator.error { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
}

.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: var(--transition);
}

.cart-toggle-btn:hover {
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
}

.cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: var(--transition);
}

.cart-badge.show { transform: scale(1); }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--black-2);
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(var(--black-rgb),0.7) 0%, rgba(var(--black-rgb),0.2) 100%);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 3;
  max-width: 500px;
  text-align: right;
}

.slide-content h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(var(--black-rgb),0.5);
}

.slide-content p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  opacity: 0.9;
}

.slide-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gold-gradient);
  color: var(--black);
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--text-rgb),0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots button.active {
  background: var(--gold);
  width: 30px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--black-rgb),0.5);
  color: var(--text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--text-rgb),0.1);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
}

.hero-slider:hover .slider-arrow { opacity: 1; }

.slider-arrow:hover {
  background: var(--gold);
  color: var(--black);
}

.slider-prev { right: 16px; }
.slider-next { left: 16px; }

/* =============================================
   CATEGORY FILTERS
   ============================================= */
.categories-section {
  padding: 16px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(var(--text-rgb),0.05);
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text);
  background: var(--surface-3);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: var(--black);
  font-weight: bold;
  box-shadow: var(--shadow-gold);
}

/* =============================================
   MENU GRID
   ============================================= */
.menu-section {
  padding: 24px 0 120px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.menu-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(var(--text-rgb),0.05);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.4s forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.02s; }
.menu-item:nth-child(2) { animation-delay: 0.06s; }
.menu-item:nth-child(3) { animation-delay: 0.10s; }
.menu-item:nth-child(4) { animation-delay: 0.14s; }
.menu-item:nth-child(5) { animation-delay: 0.18s; }
.menu-item:nth-child(6) { animation-delay: 0.22s; }
.menu-item:nth-child(7) { animation-delay: 0.26s; }
.menu-item:nth-child(8) { animation-delay: 0.30s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}


.menu-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

.menu-item-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 48px;
}

.menu-item-info {
  padding: 16px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.menu-item-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
}

.menu-item-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-to-cart-btn {
  flex: 1;
  padding: 8px 16px;
  background: var(--gold-gradient);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: bold;
  font-family: var(--font);
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.add-to-cart-btn:active { transform: translateY(0); }

.menu-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  background: transparent;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--surface-3);
  color: var(--gold);
}

.qty-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  min-width: 20px;
  text-align: center;
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--black-rgb),0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 380px;
  max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { left: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(var(--text-rgb),0.08);
}

.cart-header h3 {
  font-size: 18px;
  color: var(--gold);
}

.cart-close {
  font-size: 28px;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}

.cart-close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.cart-empty p { font-size: 16px; margin-bottom: 4px; }
.cart-empty span { font-size: 13px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  align-items: center;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--gold);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.cart-qty-btn:hover { background: var(--gold); color: var(--black); }
.cart-qty-btn.remove:hover { background: var(--danger); color: var(--text); }

.cart-item-qty-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--gold);
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
  min-width: 50px;
  text-align: left;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(var(--text-rgb),0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
}

.cart-total span:last-child { color: var(--gold); }

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Buttons --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: bold;
  font-family: var(--font);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--black);
}

.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--surface-3);
  color: var(--text);
}

.btn-dark:hover {
  background: var(--black-4);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(var(--text-rgb),0.15);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   FLOATING CART FAB
   ============================================= */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--black);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(var(--gold-rgb), 0.4);
}

.cart-fab.visible { display: flex; }

.cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: var(--text);
  font-size: 11px;
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(var(--black-rgb),0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(var(--text-rgb),0.08);
}

.modal-header h3 { font-size: 18px; color: var(--gold); }

.modal-close {
  font-size: 28px;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 24px; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid rgba(var(--text-rgb),0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb),0.1);
}

.form-input::placeholder { color: var(--text-dim); }

textarea.form-input { resize: vertical; min-height: 80px; }

.order-summary {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.order-summary-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(var(--text-rgb),0.08);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.modal-footer .btn { flex: 1; }

/* =============================================
   PRODUCT DETAIL BOTTOM SHEET
   ============================================= */
.detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(var(--black-rgb),0.7);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.detail-overlay.open { opacity: 1; visibility: visible; }

.detail-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4001;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-sheet.open { transform: translateY(0); }

.detail-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(var(--text-rgb),0.4);
  border-radius: 2px;
  z-index: 3;
}

.detail-close {
  position: absolute;
  top: 22px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--black-rgb),0.5);
  color: var(--text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.detail-close:hover { background: var(--gold); color: var(--black); }

.detail-img-wrap {
  width: 100%;
  height: 300px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.detail-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(var(--black-rgb),0.5) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-img-placeholder {
  font-size: 72px;
  color: var(--text-dim);
}

.detail-body { padding: 20px 20px 32px; }

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-category {
  padding: 4px 12px;
  background: rgba(var(--gold-rgb),0.15);
  color: var(--gold);
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.detail-price {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold);
}

.detail-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.detail-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.detail-qty .qty-btn {
  width: 38px;
  height: 38px;
  font-size: 20px;
  background: var(--surface-3);
  border-radius: 8px;
}

.detail-qty .qty-btn:hover { background: var(--gold); color: var(--black); }

.detail-qty .qty-value {
  font-size: 18px;
  min-width: 28px;
  text-align: center;
}

.detail-add-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .detail-sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 480px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .detail-sheet.open { transform: translateX(-50%) translateY(0); }
}

/* =============================================
   SEARCH
   ============================================= */
.search-toggle-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 2;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  height: 48px;
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  direction: rtl;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.search-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--divider);
}
.search-item:last-child { border-bottom: none; }

.search-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--black-3);
}

.search-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.search-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.search-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.search-highlight {
  color: var(--gold);
  font-weight: 700;
  background: rgba(var(--gold-rgb), 0.15);
  border-radius: 2px;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .search-header { padding: 10px 12px; }
  .search-results { padding: 12px; }
  .search-item-img { width: 60px; height: 60px; }
}

/* =============================================
   RIPPLE EFFECT
   ============================================= */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.25);
  transform: scale(0);
  animation: ripple-expand 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .hero-slider { height: 280px; }

  .slide-content {
    bottom: 40px;
    right: 20px;
    left: 20px;
    max-width: 100%;
  }

  .slide-content h2 { font-size: 26px; }
  .slide-content p { font-size: 15px; }

  .slider-arrow { display: none; }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .menu-item-img, .menu-item-img-placeholder { height: 130px; }

  .menu-item-info { padding: 12px; }

  .menu-item-name { font-size: 14px; }
  .menu-item-price { font-size: 14px; }
  .menu-item-desc { font-size: 12px; -webkit-line-clamp: 1; }

  .add-to-cart-btn { font-size: 12px; padding: 6px 12px; }

  .cart-sidebar { width: 100%; max-width: 100vw; }

  .logo-text h1 { font-size: 16px; }

  .categories-section {
    padding: 12px 0;
    top: 60px;
  }

  .cart-fab {
    bottom: 16px;
    left: 16px;
    width: 54px;
    height: 54px;
  }

  .detail-sheet {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 95vh;
  }

  .detail-img-wrap { height: 240px; }
  .detail-body { padding: 16px 16px 28px; }
  .detail-name { font-size: 20px; }
  .detail-desc { font-size: 14px; }
  .detail-actions { flex-direction: column; gap: 12px; }
  .detail-add-btn { width: 100%; }
  .detail-qty { justify-content: center; }

  .modal { margin: 12px; max-height: 92vh; }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px 20px; flex-direction: column; }
  .modal-footer .btn { width: 100%; }
}

@media (max-width: 400px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-item-img, .menu-item-img-placeholder { height: 180px; }
}

@media (min-width: 769px) {
  .cart-fab { display: none !important; }

  .detail-sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 480px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .detail-sheet.open { transform: translateX(-50%) translateY(0); }
}

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */
.admin-body {
  padding-top: 0;
  background: var(--black);
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  padding: 16px 0;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title {
  font-size: 20px;
  color: var(--gold);
}

.admin-logout {
  padding: 8px 20px;
  background: var(--surface-3);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: var(--transition);
}

.admin-logout:hover { color: var(--danger); }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(var(--gold-rgb), 0.15);
}

.admin-login-box h2 {
  text-align: center;
  color: var(--gold);
  margin-bottom: 24px;
  font-size: 24px;
}

.admin-login-box .form-group { margin-bottom: 20px; }

.admin-login-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold-gradient);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: bold;
  font-family: var(--font);
  transition: var(--transition);
}

.admin-login-btn:hover { box-shadow: var(--shadow-gold); }

.admin-dashboard { display: none; padding: 24px 0; }

/* --- Admin Stats --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(var(--text-rgb),0.05);
  text-align: center;
}

.stat-card .number {
  font-size: 32px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Admin Tabs --- */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font);
  white-space: nowrap;
  transition: var(--transition);
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { background: var(--gold); color: var(--black); font-weight: bold; }

/* --- Admin Panels --- */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.panel-header h3 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}

.admin-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--text-rgb),0.05);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.form-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--text-rgb),0.05);
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: -8px 0 14px 0;
  line-height: 1.4;
}

/* --- Menu Cards (Admin Mobile) --- */
.menu-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.item-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(var(--text-rgb),0.05);
  transition: var(--transition);
}

.item-card:active { transform: scale(0.98); }

.item-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.item-card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}

.item-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.item-card-info {
  flex: 1;
  min-width: 0;
}

.item-card-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.item-card-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 6px;
}

.item-card-cat {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.item-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.item-card-actions {
  display: flex;
  gap: 8px;
}

.item-card-actions .admin-btn-sm {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
}

/* --- Admin Table (Desktop) --- */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--text-rgb),0.05);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  padding: 14px 16px;
  text-align: right;
  color: var(--gold);
  border-bottom: 1px solid rgba(var(--text-rgb),0.08);
  font-weight: bold;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(var(--text-rgb),0.05);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(var(--gold-rgb),0.03); }

.admin-table .actions {
  display: flex;
  gap: 4px;
}

/* --- Admin Buttons --- */
.admin-btn-sm {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font);
  transition: var(--transition);
}

.admin-btn-edit { background: var(--info); color: var(--text); }
.admin-btn-edit:hover { opacity: 0.8; }
.admin-btn-delete { background: var(--danger); color: var(--text); }
.admin-btn-delete:hover { opacity: 0.8; }
.admin-btn-toggle { background: var(--surface-3); color: var(--text); }
.admin-btn-toggle:hover { background: var(--black-4); }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.badge-success { background: rgba(var(--success-rgb), 0.2); color: var(--success); }
.badge-warning { background: rgba(var(--warning-rgb), 0.2); color: var(--warning); }
.badge-danger { background: rgba(var(--danger-rgb), 0.2); color: var(--danger); }
.badge-info { background: rgba(var(--info-rgb), 0.2); color: var(--info); }

/* --- Toggle Cards --- */
.admin-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.toggle-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(var(--text-rgb),0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-card label { font-size: 14px; color: var(--text); cursor: pointer; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface-3);
  border-radius: 12px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--black);
}

/* --- Orders --- */
.admin-order-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(var(--text-rgb),0.05);
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-order-id { font-size: 14px; font-weight: bold; color: var(--gold); }
.admin-order-time { font-size: 12px; color: var(--text-dim); }

.admin-order-items { margin-bottom: 12px; }

.admin-order-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}

.admin-order-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  padding-top: 8px;
  border-top: 1px solid rgba(var(--text-rgb),0.08);
}

.admin-order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.admin-order-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-order-info strong { color: var(--text); }

/* --- Color Pickers --- */
.theme-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.theme-color-item label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.theme-color-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-picker-row input[type="color"] {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(var(--text-rgb), 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  padding: 2px;
  flex-shrink: 0;
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-row input[type="color"]::-webkit-color-swatch { border-radius: 4px; border: none; }
.color-picker-row input[type="color"]::-moz-color-swatch { border-radius: 4px; border: none; }

.color-picker-row input[type="text"] {
  flex: 1;
  font-size: 13px;
}

.theme-preview-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.theme-preview-box h4 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.theme-preview {
  background: var(--black);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(var(--text-rgb),0.05);
}

.no-orders {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-orders span { font-size: 48px; display: block; margin-bottom: 12px; }

.auth-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 4px;
}

.login-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
}

.login-back {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.login-back a { color: var(--gold); }

.login-error {
  text-align: center;
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

.empty-msg {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* =============================================
   RESPONSIVE - ADMIN
   ============================================= */

/* --- Tablet (769-1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .admin-dashboard { padding: 24px 0; }
  .menu-cards { display: none !important; }
  .admin-table-wrap { display: block; }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .admin-body { padding-top: 0; }

  /* Header: compact row */
  .admin-header { padding: 10px 0; }
  .admin-header-inner {
    flex-direction: row;
    gap: 8px;
  }
  .admin-title { font-size: 16px; }
  .admin-logout {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Dashboard padding */
  .admin-dashboard { padding: 12px 0; }

  /* Tabs: scrollable pills */
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }

  .admin-tab {
    padding: 8px 14px;
    font-size: 12px;
    flex-shrink: 0;
    border-radius: 6px;
  }

  /* Panel spacing */
  .panel-header h3 { font-size: 15px; margin-bottom: 10px; }

  /* Forms: full-width inputs */
  .admin-form {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-form-grid .form-group { margin-bottom: 0; }

  .form-group label { font-size: 13px; }

  .form-input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .form-row .btn { width: 100%; }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .form-actions .btn { width: 100%; }

  /* Stats: 2x2 grid */
  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 14px;
    border-radius: var(--radius-sm);
  }
  .stat-card .number { font-size: 24px; }
  .stat-card .label { font-size: 11px; }

  /* Menu: show cards, hide table */
  .menu-cards {
    display: flex;
  }
  .admin-table-wrap {
    display: none;
  }

  /* Toggles */
  .admin-toggles {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .toggle-card {
    padding: 14px;
    border-radius: var(--radius-sm);
  }

  /* Orders */
  .admin-order-card { padding: 12px; }
  .admin-order-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-order-actions { flex-wrap: wrap; }
  .admin-order-actions .btn { flex: 1; min-width: 0; }

  /* Color pickers */
  .theme-colors {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .color-picker-row input[type="color"] { width: 44px; height: 44px; }
  .color-picker-row input[type="text"] { font-size: 12px; }

  /* Login */
  .admin-login-box {
    padding: 24px 20px;
    margin: 0 12px;
    border-radius: var(--radius);
  }
  .admin-login-box h2 { font-size: 20px; margin-bottom: 18px; }
  .login-icon { font-size: 40px; }
}

/* =============================================
   PHONE FRAME PREVIEW (Appearance Tab)
   ============================================= */
.theme-preview-frame {
  background: var(--black, #0D0D0D);
  color: var(--text, #F5F5F5);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(var(--text-rgb, 245,245,245), 0.1);
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.phone-status-bar {
  background: var(--surface, #1A1A1A);
  padding: 4px 0;
  font-size: 11px;
  color: var(--text-muted, #999);
  text-align: center;
  border-bottom: 1px solid rgba(var(--text-rgb, 245,245,245), 0.05);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--black, #0D0D0D);
  border-bottom: 1px solid rgba(var(--gold-rgb, 212,168,67), 0.15);
}

.phone-logo { font-size: 20px; }

.phone-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent, var(--gold, #D4A843));
}

.phone-cart { font-size: 16px; color: var(--text, #F5F5F5); }

.phone-filters {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: var(--black, #0D0D0D);
  overflow-x: auto;
  scrollbar-width: none;
}
.phone-filters::-webkit-scrollbar { display: none; }

.phone-filter {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  background: var(--surface-2, #242424);
  color: var(--text-muted, #999);
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-filter.active {
  background: var(--gold-gradient, linear-gradient(135deg, #D4A843, #F0D060));
  color: var(--black, #0D0D0D);
  font-weight: bold;
}

.phone-card {
  margin: 8px 14px;
  background: var(--surface, #1A1A1A);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--text-rgb, 245,245,245), 0.05);
}

.phone-card-img {
  width: 100%;
  height: 80px;
  background: var(--surface-2, #242424);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.phone-card-body { padding: 10px 12px; }

.phone-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.phone-card-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text, #F5F5F5);
}

.phone-card-price {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent, var(--gold, #D4A843));
}

.phone-card-desc {
  font-size: 10px;
  color: var(--text-muted, #999);
  margin-bottom: 8px;
  line-height: 1.4;
}

.phone-add-btn {
  width: 100%;
  padding: 6px;
  background: var(--accent, var(--gold-gradient, linear-gradient(135deg, #D4A843, #F0D060)));
  color: var(--black, #0D0D0D);
  border-radius: 6px;
  font-size: 10px;
  font-weight: bold;
  border: none;
  font-family: var(--font);
  cursor: default;
}

.phone-badges {
  display: flex;
  gap: 5px;
  padding: 6px 14px 14px;
  flex-wrap: wrap;
}

.phone-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: bold;
}

.phone-badge-success { background: rgba(var(--success-rgb, 46,204,113), 0.2); color: var(--success, #2ECC71); }
.phone-badge-danger  { background: rgba(var(--danger-rgb, 231,76,60), 0.2); color: var(--danger, #E74C3C); }
.phone-badge-warning { background: rgba(var(--warning-rgb, 243,156,18), 0.2); color: var(--warning, #F39C12); }
.phone-badge-info    { background: rgba(var(--info-rgb, 52,152,219), 0.2); color: var(--info, #3498DB); }
