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

/* --- 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;
  --primary-color: #08693e;
  --primary-color-rgb: 8,105,62;
  --card-bg: #1A1A1A;
  --btn-color: #D4A843;
  --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: 'IBM Plex Sans Arabic', 'Montserrat', 'Tahoma', sans-serif;
  --font-en: 'Montserrat', 'IBM Plex Sans Arabic', sans-serif;
  --max-width: 1600px;
  --header-h: 114px;
}

/* --- 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);
}

.price, .qty-value, .detail-price, .cart-item-price, .cart-item-total,
.cart-total-price, .search-item-price, input, .menu-item-price,
.btn, button, .cart-count, .badge {
  font-family: var(--font-en);
}

[lang="en"] body,
[lang="en"] body * {
  font-family: var(--font-en) !important;
}

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: var(--black);
  transition: var(--transition);
  overflow: hidden;
}

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

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

/* Desktop: header-inner full width like filter-wrap */
@media (min-width: 1024px) {
  .header-inner {
    max-width: 100% !important;
    padding: 0 48px !important;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    padding: 0 48px !important;
  }
}
.header-inner .header-actions {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-inner .header-actions:first-child {
  justify-content: flex-start;
}
.header-inner .header-actions:last-child {
  justify-content: flex-end;
}
.header-inner .logo {
  flex: 0 0 auto;
  text-align: center;
}

/* LANGUAGE BAR */
.lang-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black);
}
.lang-bar .container {
  padding: 8px 16px;
}

/* Desktop: lang-bar container full width aligned with header */
@media (min-width: 1024px) {
  .lang-bar .container {
    max-width: 100% !important;
    padding: 8px 48px !important;
  }
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}
.lang-icon {
  flex-shrink: 0;
  color: #fff;
}
.lang-name {
  flex: 1;
  text-align: start;
}
.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.lang-bar.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 16px;
  left: 16px;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 10;
  overflow: hidden;
  display: none;
}
.lang-bar.open .lang-dropdown {
  display: block;
}
.lang-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: start;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.lang-option:hover {
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold);
}
.lang-option.active {
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}

.header-filter-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 999;
  background: var(--black);
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.header-filter-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.header-filter-scroll::-webkit-scrollbar { display: none; }

.header-filter {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  justify-content: flex-start;
  width: max-content;
}

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

/* Desktop: center filter content */
@media (min-width: 768px) {
  .header-filter {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1280px) {
  .header-filter {
    padding: 12px 48px 18px;
    gap: 14px;
  }
}

@media (min-width: 1536px) {
  .header-filter {
    padding: 14px 48px 20px;
  }
}

.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;
}

.grid-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
}
.grid-toggle-btn:hover {
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
}
.grid-filter-btn {
  flex: 0 0 80px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  transition: var(--transition);
  white-space: normal;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.grid-filter-btn .filter-label {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.grid-filter-btn .grid-filter-icon-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.grid-filter-btn .grid-filter-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  transition: var(--transition);
}
.grid-filter-btn:hover .grid-filter-icon-wrap {
  background: rgba(var(--gold-rgb), 0.08);
}
.grid-filter-btn:hover .grid-filter-icon-wrap svg {
  color: var(--gold);
}
.grid-filter-btn:hover {
  color: var(--gold);
}

/* CATEGORY GRID BOTTOM SHEET */
.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(var(--black-rgb), 0.5);
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.grid-overlay.open {
  display: flex;
  opacity: 1;
}
.grid-sheet {
  background: var(--primary-color);
  border-radius: 20px 20px 0 0;
  height: 70vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.grid-overlay.open .grid-sheet {
  transform: translateY(0);
}
.grid-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  flex-shrink: 0;
}
.grid-sheet-handle-bar {
  width: 100px;
  height: 5px;
  border-radius: 24px;
  background: rgba(255,255,255,0.15);
}
.grid-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 12px;
  flex-shrink: 0;
}

.grid-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.grid-sheet-body::-webkit-scrollbar { display: none; }
.grid-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.grid-cat-card.active {
  background: rgba(var(--gold-rgb), 0.15);
}
.grid-cat-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
}
.grid-cat-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-cat-img svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.grid-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  padding: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* TABLET */
@media (min-width: 768px) {
  .grid-sheet-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .grid-cat-img svg {
    width: 42px;
    height: 42px;
  }
  .grid-cat-name {
    font-size: 13px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  /* Grid overlay: full page on desktop */
  .grid-overlay {
    background: var(--primary-color);
  }
  .grid-sheet {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
    margin: 0;
  }
  .grid-sheet-handle { display: none; }
  .grid-sheet-header {
    padding: 20px 48px 16px;
  }
  .grid-sheet-body {
    padding: 0 48px 48px;
  }
  .grid-sheet-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
  }
  .grid-cat-card { padding: 10px; }
  .grid-cat-img svg { width: 44px; height: 44px; }
  .grid-cat-name { font-size: 14px; }
}

.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);
}

.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); }

/* =============================================
   RESTAURANT COVER
   ============================================= */
.resto-cover-wrap {
  position: relative;
  width: 100%;
  padding: 0 16px;
}
.resto__cover {
  width: 100%;
  height: 0;
  padding-bottom: 46%;
  position: relative;
  overflow: hidden;
}
.resto__cover .cover-imgs-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.resto__cover .cover-slide-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.resto__cover .cover-slide-item.active {
  opacity: 1;
}
.resto__cover .cover-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}
.cover-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.cover-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.cover-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
.resto__cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  pointer-events: none;
}
.resto-info {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  z-index: 2;
}
.resto-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,0.2);
}
.resto-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resto-text {
  flex: 1;
  min-width: 0;
}
.resto-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resto-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .resto__cover .cover-slide-item img {
    border-radius: 16px;
  }
  .resto-cover-wrap {
    padding: 0 16px;
  }
}
@media (min-width: 768px) {
  .resto__cover { padding-bottom: 36%; }
  .resto-cover-wrap { padding: 0 24px; }
  .resto-info { left: 24px; right: 24px; }
  .resto-logo { width: 80px; height: 80px; border-radius: 20px; }
  .resto-text h2 { font-size: 24px; }
  .resto-text p { font-size: 14px; }
}
@media (min-width: 1024px) {
  .resto__cover { padding-bottom: 30%; }
  .resto-cover-wrap { padding: 0 32px; }
  .resto-info { left: 32px; right: 32px; }
  .resto-logo { width: 96px; height: 96px; border-radius: 24px; }
  .resto-text h2 { font-size: 28px; }
}

/* =============================================
   CATEGORY FILTERS
   ============================================= */

.filter-btn {
  flex: 0 0 80px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  transition: var(--transition);
  white-space: normal;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.filter-btn .filter-icon-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.filter-btn .filter-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-btn .filter-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.filter-btn .filter-label {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* TABLET */
@media (min-width: 768px) {
  .filter-btn .filter-icon-wrap svg {
    width: 32px;
    height: 32px;
  }
  .grid-filter-btn {
    flex: 0 0 100px;
    gap: 6px;
    font-size: 12px;
  }
  .grid-filter-btn .grid-filter-icon-wrap svg {
    width: 32px;
    height: 32px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .filter-btn .filter-icon-wrap {
    border-radius: 12px;
  }

  .filter-btn .filter-icon-wrap svg {
    width: 36px;
    height: 36px;
  }
  .grid-filter-btn {
    flex: 0 0 110px;
    gap: 8px;
    font-size: 13px;
  }
  .grid-filter-btn .grid-filter-icon-wrap {
    border-radius: 12px;
  }
  .grid-filter-btn .grid-filter-icon-wrap svg {
    width: 36px;
    height: 36px;
  }
}

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

.menu-section > .container {
  max-width: 100% !important;
  padding: 0 !important;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Tablet: match container padding */
@media (min-width: 768px) {
  .menu-grid { padding: 0 24px; }
}

/* Desktop: full width with container padding */
@media (min-width: 1024px) {
  .menu-grid { padding: 0 32px; }
}

@media (min-width: 1280px) {
  .menu-grid { padding: 0 40px; }
}

@media (min-width: 1536px) {
  .menu-grid { padding: 0 48px; }
}

.menu-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.menu-empty.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.menu-empty-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.menu-empty-sub {
  font-size: 14px;
  margin: 0;
  color: var(--text-muted);
}

.menu-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
  grid-column: 1 / -1;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.divider-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.menu-section-items {
  display: contents;
}

.menu-section-group {
  display: contents;
}

.menu-section-group.hidden {
  display: none;
}

.menu-section-group.hidden .menu-section-divider,
.menu-section-group.hidden .menu-section-items {
  display: none;
}

.menu-item {
  background: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.4s forwards;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
}

.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-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.4);
  font-size: 48px;
}

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

.menu-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.menu-item-divider {
  width: 100%;
  height: 1px;
  background: rgba(128,128,128,0.3);
  margin: 6px 0;
}

.menu-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
}

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

.add-to-cart-btn {
  flex: 1;
  padding: 6px 12px;
  background: var(--btn-color, var(--gold));
  color: var(--black);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
}

.menu-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--divider);
  border-radius: 6px;
  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: #fff;
  background: transparent;
}

.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: none;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card-bg);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  transition: none;
  visibility: hidden;
  pointer-events: none;
  border-left: 1px solid var(--divider);
}

.cart-sidebar.open { visibility: visible; pointer-events: auto; }

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

/* Desktop: cart full page */
@media (min-width: 1024px) {
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
    left: -100%;
    border-radius: 0;
  }
  .cart-sidebar.open {
    left: 0;
  }
  .cart-sidebar .cart-header {
    padding: 20px 48px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }
  .cart-sidebar .cart-items {
    padding: 16px 48px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }
  .cart-sidebar .cart-footer {
    padding: 16px 48px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }
}

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

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

.cart-close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}
.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 { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--text-muted); }
.cart-empty-icon svg { width: 48px; height: 48px; }
.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(--divider);
  border: 1px solid var(--divider);
  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(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
}

.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 var(--divider);
}

.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;
}

/* --- Ripple Effect --- */
.ripple {
  position: absolute !important;
  border-radius: 50%;
  display: block !important;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none !important;
  z-index: 0 !important;
}
.lang-btn, .search-toggle-btn, .grid-toggle-btn, .cart-toggle-btn,
.add-to-cart-btn, .cart-qty-btn, .detail-qty .qty-btn, .detail-add-btn,
.btn.btn-gold, .btn.btn-dark {
  position: relative;
  overflow: hidden;
}
@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Buttons --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold,
.btn-dark {
  background: var(--primary-color);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: #555555;
  border: 1px solid #E5E5E5;
}

.btn-outline:hover {
  background: #F6F6F6;
}

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

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

.modal {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.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 #E5E5E5;
}

.modal-header h3 { font-size: 18px; font-weight: 700; color: #212529; }

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  transition: color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
  font-size: 24px;
}
.modal-close:hover { color: #212529; }

.modal-body { padding: 24px; }

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #F5F5F7;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  color: #212529;
  font-size: 16px;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input, select, textarea { font-size: 16px; }

.form-input:focus {
  outline: none;
  border-color: #074942;
  box-shadow: 0 0 0 3px rgba(7, 73, 66, 0.1);
}

.form-input::placeholder { color: #888888; }

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; }

/* CATEGORY MODAL — WHITE THEME */
#categoryModalOverlay .modal {
  background: #fff;
  overflow: visible;
}
#categoryModalOverlay .modal-header {
  border-bottom-color: #e5e5e5;
}
#categoryModalOverlay .modal-header h3 {
  color: #1a1a1a;
}
#categoryModalOverlay .modal-close {
  color: #888;
}
#categoryModalOverlay .modal-close:hover {
  color: #1a1a1a;
}
#categoryModalOverlay .form-group label {
  color: #555;
}
#categoryModalOverlay .form-input {
  background: #f5f5f5;
  border-color: #ddd;
  color: #1a1a1a;
}
#categoryModalOverlay .form-input::placeholder {
  color: #aaa;
}
#categoryModalOverlay .form-input:focus {
  border-color: #074942;
  background: #fff;
  outline: none;
}
#categoryModalOverlay .lang-input-row {
  border-color: #ddd;
  overflow: visible;
}
#categoryModalOverlay .lang-selector-btn {
  border-left-color: #ddd;
  color: #555;
}
#categoryModalOverlay .lang-code {
  color: #555;
}
#categoryModalOverlay .lang-selector-dropdown {
  background: #fff;
  border: 1px solid #ddd;
}
#categoryModalOverlay .lang-selector-option {
  color: #1a1a1a;
}
#categoryModalOverlay .lang-selector-option:hover {
  background: #f0f0f0;
}
#categoryModalOverlay .modal-footer {
  border-top-color: #e5e5e5;
}
#categoryModalOverlay .btn-outline {
  border-color: #ddd;
  color: #555;
  background: transparent;
}
#categoryModalOverlay .btn-outline:hover {
  border-color: #999;
  color: #1a1a1a;
}
#categoryModalOverlay .auth-error {
  color: #d32f2f;
}

#itemModalOverlay .modal {
  background: #fff;
  overflow: visible;
}
#itemModalOverlay .modal-header {
  border-bottom-color: #e5e5e5;
}
#itemModalOverlay .modal-header h3 {
  color: #1a1a1a;
}
#itemModalOverlay .modal-close {
  color: #888;
}
#itemModalOverlay .modal-close:hover {
  color: #1a1a1a;
}
#itemModalOverlay .form-group label {
  color: #555;
}
#itemModalOverlay .form-input {
  background: #f5f5f5;
  border-color: #ddd;
  color: #1a1a1a;
}
#itemModalOverlay .form-input::placeholder {
  color: #aaa;
}
#itemModalOverlay .form-input:focus {
  border-color: #074942;
  background: #fff;
  outline: none;
}
#itemModalOverlay .lang-input-row {
  border-color: #ddd;
  overflow: visible;
}
#itemModalOverlay .lang-selector-btn {
  border-left-color: #ddd;
  color: #555;
}
#itemModalOverlay .lang-code {
  color: #555;
}
#itemModalOverlay .lang-selector-dropdown {
  background: #fff;
  border: 1px solid #ddd;
}
#itemModalOverlay .lang-selector-option {
  color: #1a1a1a;
}
#itemModalOverlay .lang-selector-option:hover {
  background: #f0f0f0;
}
#itemModalOverlay .modal-footer {
  border-top-color: #e5e5e5;
}
#itemModalOverlay .btn-outline {
  border-color: #ddd;
  color: #555;
  background: transparent;
}
#itemModalOverlay .btn-outline:hover {
  border-color: #999;
  color: #1a1a1a;
}

/* =============================================
   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(--primary-color);
  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); }

/* Desktop: center detail sheet */
@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); }
}

@media (min-width: 1024px) {
  .detail-sheet {
    width: 500px;
  }
}

@media (min-width: 1280px) {
  .detail-sheet {
    width: 520px;
  }
}

.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);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.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: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.detail-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
}

.detail-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  flex-shrink: 0;
}

.detail-qty .qty-btn {
  width: 38px;
  height: 38px;
  font-size: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
}

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

.detail-add-btn {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  background: var(--btn-color, var(--gold)) !important;
  color: var(--black);
}

/* =============================================
   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;
}

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

/* Header Nav Popup */
.header-nav-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: none;
}
.header-nav-popup.active {
  opacity: 1;
  visibility: visible;
}
.header-nav-popup-wrapper {
  background: var(--card-bg, #1A1A1A);
  border-radius: 0 0 20px 20px;
  width: 100%;
  margin: 0;
  transform: translateY(-100%);
  transition: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.header-nav-popup.active .header-nav-popup-wrapper {
  transform: translateY(0);
}
.header-nav-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--divider);
}
.header-nav-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.header-nav-popup-close {
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.5;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.header-nav-popup-close:hover { opacity: 1; }
.header-nav-popup-content {
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header-nav-popup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.header-nav-popup-item:hover {
  background: var(--divider);
}
.header-nav-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--primary-color-rgb, 13,72,65), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold, #D4A843);
}
.header-nav-popup-icon svg {
  stroke: currentColor;
  fill: none;
}

/* =============================================
   SOCIAL MEDIA INLINE + GOOGLE REVIEW
   ============================================= */
.social-media-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 16px 16px;
  background: var(--primary-color);
  border-radius: 0 0 20px 20px;
}
.social-media-inline a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.social-media-inline a:hover {
  background: rgba(255,255,255,0.25);
}
.social-media-inline a svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none;
}

.google_review_wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 14px 16px;
  background: var(--surface-2, #242424);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.google_review_wrap:hover {
  background: var(--surface-3, #2D2D2D);
}
.google-review-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.google-stars {
  width: 90px;
  height: 14px;
}
.google-review-text span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.google-review-logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

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

/* Desktop: search full page like mobile */
@media (min-width: 1024px) {
  .search-overlay {
    background: var(--primary-color);
  }
  .search-header {
    padding: 16px 48px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .search-results {
    padding: 16px 48px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
  }
}

.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; }
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* ── 640px: Small tablets ── */
@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .filter-btn {
    flex: 0 0 90px;
  }
  .header-filter { justify-content: center; }
}

/* ── 768px: Tablets ── */
@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .header-inner { height: 64px; }
  .logo-text h1 { font-size: 22px; }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .menu-section { padding: 32px 0 120px; }
  .menu-item-info { padding: 10px; }
  .menu-item-name { font-size: 15px; }
  .menu-item-price { font-size: 15px; }

  .filter-btn { flex: 0 0 100px; gap: 6px; }
  .filter-btn .filter-label { font-size: 12px; }

  .header-filter { padding: 10px 16px 14px; gap: 10px; justify-content: center; }

  .detail-sheet { width: 480px; }

  .modal { max-width: 500px; }

  .search-results { padding: 24px; }
  .search-item-img { width: 80px; height: 80px; }
}

/* ── 1024px: Small desktop / large tablets ── */
@media (min-width: 1024px) {
  :root { --header-h: 108px; }

  .container { padding: 0 32px; }

  .header-inner { height: 68px; }
  .logo-text h1 { font-size: 24px; }

  .lang-bar .container { padding: 8px 32px; }
  .lang-btn { font-size: 14px; padding: 10px 16px; }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .menu-section { padding: 32px 0 140px; }
  .menu-item { border-radius: 10px; }
  .menu-item-info { padding: 12px; }
  .menu-item-name { font-size: 15px; }
  .menu-item-price { font-size: 16px; }
  .menu-item-divider { margin: 8px 0; }
  .add-to-cart-btn { padding: 8px 14px; font-size: 13px; }

  .filter-btn { flex: 0 0 110px; gap: 8px; }
  .filter-btn .filter-icon-wrap { border-radius: 12px; }
  .filter-btn .filter-icon-wrap svg { width: 34px; height: 34px; }
  .filter-btn .filter-label { font-size: 13px; }

  .header-filter {
    padding: 12px 48px 16px;
    gap: 12px;
    justify-content: flex-start;
  }

  .detail-sheet { width: 500px; }
  .detail-img-wrap { height: 340px; }
  .detail-body { padding: 24px 24px 36px; }
  .detail-name { font-size: 26px; }

  .modal { max-width: 520px; }
}

/* ── 1280px: Desktop ── */
@media (min-width: 1280px) {
  .container { padding: 0 40px; }
  .resto-cover-wrap { padding: 0 40px; }
  .resto-info { left: 40px; right: 40px; }

  .header-inner { height: 72px; }
  .logo-text h1 { font-size: 26px; }
  .header-actions { gap: 14px; }

  .lang-bar .container { padding: 8px 40px; }

  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .menu-section { padding: 40px 0 160px; }
  .menu-item { border-radius: 12px; }
  .menu-item-info { padding: 14px; }
  .menu-item-name { font-size: 16px; }
  .menu-item-price { font-size: 17px; }
  .add-to-cart-btn { padding: 8px 16px; font-size: 14px; }

  .filter-btn { flex: 0 0 120px; }
  .filter-btn .filter-icon-wrap { width: 100%; border-radius: 14px; }
  .filter-btn .filter-icon-wrap svg { width: 36px; height: 36px; }
  .filter-btn .filter-label { font-size: 14px; }

  .grid-filter-btn { flex: 0 0 120px; font-size: 14px; }
  .grid-filter-btn .grid-filter-icon-wrap { border-radius: 14px; }

  .header-filter {
    padding: 12px 48px 18px;
    gap: 14px;
    justify-content: flex-start;
  }
  .header-filter .filter-btn { flex: 0 0 120px; }

  .detail-sheet { width: 520px; }
  .detail-img-wrap { height: 380px; }
  .detail-name { font-size: 28px; }
}

/* ── 1536px: Large desktop ── */
@media (min-width: 1536px) {
  .container { padding: 0 48px; }
  .resto-cover-wrap { padding: 0 48px; }
  .resto-info { left: 48px; right: 48px; }

  .menu-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .menu-section { padding: 48px 0 180px; }
  .menu-item-info { padding: 16px; }
  .menu-item-name { font-size: 17px; }
  .menu-item-price { font-size: 18px; }

  .filter-btn { flex: 0 0 130px; }
  .grid-filter-btn { flex: 0 0 130px; }

  .header-filter { padding: 14px 48px 20px; }
}

/* ── Mobile: max-width overrides (kept as-is) ── */
@media (max-width: 768px) {
  :root { --header-h: 114px; }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

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

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

  .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: row; gap: 10px; }
  .detail-add-btn { flex: 1; min-width: 0; }
  .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: repeat(2, 1fr);
    gap: 8px;
  }
}

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */
.admin-body {
  padding-top: 0;
  background: #F6F6F6;
  color: #212529;
}

.admin-body svg { color: #074942; }

.admin-body .btn-gold,
.admin-body .admin-login-btn {
  background: var(--primary-color);
  color: #FFFFFF;
}

.admin-body .btn-outline {
  background: transparent;
  color: #555555;
  border: 1px solid #E5E5E5;
}

.admin-body .btn-outline:hover {
  background: #F6F6F6;
}

/* Old admin-body .admin-header, .admin-email, .admin-logout styles removed */



.admin-body .admin-login-box h2 {
  color: #212529;
}

.admin-body .admin-login-box label {
  color: #212529;
}

.admin-body .login-back {
  color: #074942;
}

.admin-body .login-back a {
  color: #074942;
  font-weight: bold;
}

.admin-body .panel-header h3 {
  color: var(--admin-heading, #212529);
}

.admin-body .admin-form {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
}

.admin-body .form-title {
  color: var(--admin-heading, #212529);
}

.admin-body .form-group label {
  color: #212529;
}

.admin-body .form-hint {
  color: #888888;
}

.admin-body .form-input {
  background: #F5F5F7;
  border: 1px solid #E5E5E5;
  color: #212529;
}

.admin-body .form-input:focus {
  border-color: #074942;
  box-shadow: 0 0 0 3px rgba(7, 73, 66, 0.1);
}

.upload-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.upload-preview {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #F5F5F7;
  border: 1px dashed #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview-wide {
  width: 140px;
  height: 80px;
}
.upload-controls {
  flex: 1;
  min-width: 0;
}

.admin-body .form-input::placeholder {
  color: #AAAAAA;
}

.admin-body .item-lang-tab {
  border: 1px solid #E5E5E5;
  color: #555555;
}

.admin-body .item-lang-tab.active {
  background: #074942;
  color: #FFFFFF;
  border-color: #074942;
}

.admin-body .item-lang-tab:not(.active):hover {
  border-color: #074942;
  color: #074942;
}

.admin-body .toggle-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
}

.admin-body .toggle-card label {
  color: #212529;
}

.admin-body .admin-order-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
}

.admin-body .admin-order-id {
  color: #074942;
}

.admin-body .admin-order-time {
  color: #888888;
}

.admin-body .admin-order-item {
  color: #212529;
}

.admin-body .admin-order-total {
  color: #074942;
  border-top: 1px solid #E5E5E5;
}

.admin-body .admin-order-info {
  color: #888888;
}

.admin-body .admin-order-info strong {
  color: #212529;
}

.admin-body .item-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
}

.admin-body .item-card-name {
  color: #212529;
}

.admin-body .item-card-price {
  color: #212529;
}

.admin-body .item-card-desc {
  font-size: 13px;
  color: #888888;
}

.admin-body .admin-btn-edit {
  background: #E8F4FD;
  color: #1976D2;
}

.admin-body .admin-btn-delete {
  background: #FDE8E8;
  color: #E53935;
}

.admin-body .admin-btn-toggle {
  background: #F5F5F7;
  color: #555555;
}

.admin-body .admin-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
}

.admin-body .admin-table th {
  color: #555555;
  border-bottom: 1px solid #E5E5E5;
}

.admin-body .admin-table td {
  color: #212529;
  border-bottom: 1px solid #F0F0F0;
}

.admin-body .admin-table tr:hover td {
  background: #FAFAFA;
}

.admin-body .empty-msg {
  color: #888888;
}

.admin-body .auth-error {
  color: #E74C3C;
}

.admin-body .no-orders {
  color: #888888;
}

.admin-body .login-icon {
  color: #074942;
}

.admin-body .icon-picker {
  background: #F5F5F7;
  border: 1px solid #E5E5E5;
}

.admin-body .icon-picker-item {
  color: #074942;
}

.admin-body .icon-picker-item:hover {
  background: #F0F8F6;
  border-color: #E5E5E5;
}

.admin-body .icon-picker-item.active {
  background: #F0F8F6;
  border-color: #074942;
  color: #074942;
}

.admin-body .cat-card-icon {
  background: #F0F8F6;
}

.admin-body .cat-card-icon svg {
  color: #074942;
}

.admin-body .onboarding-link-box {
  background: #F6F6F6;
  border: 1px solid #E5E5E5;
}

.admin-body .categories-chips .cat-chip {
  background: #F0F8F6;
  color: #074942;
}

.categories-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.categories-chips .cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.15s;
}
.categories-chips .cat-row:hover {
  background: #FAFAFA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.categories-chips .cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F0F8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.categories-chips .cat-icon svg {
  width: 18px;
  height: 18px;
  color: #074942;
}
.categories-chips .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.categories-chips .cat-name {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  color: #212529;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.categories-chips .cat-count {
  font-size: 12px;
  color: #888888;
  background: #F5F5F7;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.categories-chips .cat-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.categories-chips .cat-row[draggable="true"] {
  cursor: grab;
}
.categories-chips .cat-row[draggable="true"]:active {
  cursor: grabbing;
}
.categories-chips .cat-row.drag-over {
  border-color: #074942;
  background: rgba(7,73,66,0.06);
  box-shadow: 0 -2px 0 0 #074942;
}
.categories-chips .cat-row.dragging {
  opacity: 0.4;
}
.cat-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: #CCCCCC;
  cursor: grab;
}
.cat-drag-handle:active { cursor: grabbing; }
.cat-drag-handle svg { width: 16px; height: 16px; }

.admin-body .theme-color-item label {
  color: #074942;
}

.admin-body .theme-color-desc {
  color: #888888;
}

.admin-body .toggle-slider {
  background: rgba(7,73,66,0.15);
}

.admin-body .toggle-switch input:checked + .toggle-slider {
  background: #074942;
}

.admin-body .toggle-switch input:checked + .toggle-slider::before {
  background: #FFFFFF;
}

/* =============================================
   ADMIN LAYOUT — Persistent Right Sidebar
   ============================================= */
.admin-wrap {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  padding-right: 300px;
}

/* --- Sidebar --- */
.admin-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: #FFFFFF;
  border-left: none;
  display: flex;
  flex-direction: column;
  padding: 24px 12px 12px;
  z-index: 100;
  overflow: hidden;
}

.sidebar-logo {
  display: block;
  padding: 0 8px 16px;
  margin-bottom: 8px;
  flex-shrink: 0;
  line-height: 0;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-close {
  display: none;
}

.sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #C0C0C0; border-radius: 3px; }
.sidebar-menu::-webkit-scrollbar-thumb:hover { background: #A0A0A0; }

.sidebar-divider {
  height: 1px;
  background: #E5E5E5;
  margin: 8px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: #555555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
  cursor: pointer;
}

.sidebar-item:hover {
  background: #F6F6F6;
  color: #212529;
}

.sidebar-item.active {
  background: #F6F6F6;
  color: #212529;
  font-weight: 600;
}

.sidebar-item svg {
  flex-shrink: 0;
  color: #555555;
  transition: color 0.15s;
}

.sidebar-item:hover svg,
.sidebar-item.active svg {
  color: #212529;
}

.sidebar-danger {
  color: #E74C3C;
}

.sidebar-danger:hover {
  background: rgba(231, 76, 60, 0.06);
}

.sidebar-danger svg {
  color: rgba(231, 76, 60, 0.5);
}

.sidebar-danger:hover svg {
  color: #E74C3C;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #E5E5E5;
}

.sidebar-restaurant-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.sidebar-restaurant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #074942;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
}

.sidebar-restaurant-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Main Content --- */
.admin-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  padding-top: 70px;
  background: #F6F6F6;
}

/* --- Top Bar --- */
.admin-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 24px;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-right: auto;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
  color: #333;
  margin-right: auto;
}

.admin-topbar-user:hover {
  background: rgba(0, 0, 0, 0.04);
}

.topbar-logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.topbar-logo img {
  height: 64px;
  width: 64px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.topbar-email {
  font-size: 14px;
  font-weight: 500;
}

.topbar-chevron {
  color: #888;
}

/* --- Content Area --- */
.admin-content {
  padding: 24px;
  min-height: calc(100vh - 70px);
}

/* =============================================
    MOBILE SIDEBAR OVERLAY
   ============================================= */
.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.admin-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 99999;
}

.admin-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #FFFFFF;
  border-left: 1px solid #F0F0F0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 100000;
  padding: 24px 12px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sidebar-overlay.active .admin-sidebar-mobile {
  transform: translateX(0);
}

.admin-sidebar-mobile .sidebar-close {
  display: none;
}

.sidebar-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
}

.sidebar-logo-mobile {
  display: flex;
  align-items: center;
  line-height: 0;
}

.sidebar-logo-mobile img {
  height: 38px;
  width: auto;
}

.sidebar-mobile-header .sidebar-close {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

/* =============================================
   USER PROFILE PANEL (slides from top)
   ============================================= */
.user-panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-panel-overlay.active {
  display: flex;
  opacity: 1;
  z-index: 99999;
}

.user-panel {
  background: #FFFFFF;
  border-radius: 0 0 20px 20px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-panel-overlay.active .user-panel {
  transform: translateY(0);
}

.user-panel-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  flex-shrink: 0;
}

.user-panel-handle-bar {
  width: 40px;
  height: 5px;
  border-radius: 24px;
  background: #E0E0E0;
}

.user-panel-close {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.user-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid #F0F0F0;
}

.user-panel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  flex-shrink: 0;
}

.user-panel-info {
  min-width: 0;
}

.user-panel-email {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  font-family: var(--font);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel-divider {
  height: 1px;
  background: #F0F0F0;
  margin: 8px 24px;
}

.user-panel-menu {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  overflow-y: auto;
}

.user-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: #555;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
  cursor: pointer;
}

.user-panel-item:hover {
  background: #F6F6F6;
  color: #000;
}

.user-panel-danger {
  color: #e53935;
}

.user-panel-danger:hover {
  background: #FFF0F0;
  color: #c62828;
}

/* --- Tablet sidebar (769px–1024px): narrow sidebar --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .admin-wrap {
    padding-right: 260px;
  }
  .admin-sidebar {
    width: 260px;
  }
  .sidebar-item {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    gap: 10px;
  }
  .sidebar-logo {
    padding: 0 8px 12px;
  }
  .sidebar-logo img {
    height: 28px;
    width: auto;
  }
  .sidebar-restaurant-name {
    font-size: 12px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .admin-wrap {
    padding-right: 0;
  }
  .admin-sidebar {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .topbar-logo {
    display: flex;
  }
  .topbar-logo img {
    height: 32px;
    width: auto;
  }
  .admin-topbar {
    z-index: 100;
  }
  .admin-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar-email {
    display: none;
  }
  .admin-topbar-user {
    margin-right: auto;
  }
  .panel-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 12px;
  }
  .admin-topbar-inner {
    padding: 0 16px;
  }
}

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

.admin-login-box {
  width: 100%;
  max-width: 380px;
}

.admin-login-box h2 {
  text-align: center;
  color: #074942;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
}

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

.admin-login-btn {
  width: 100%;
  padding: 12px;
  background: #074942;
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.15s;
}

.admin-login-btn:hover {
  background: #063d38;
}

/* Old admin-dashboard and admin-stats styles removed */

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

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0;
}

.admin-form {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #E5E5E5;
}

.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: 15px;
  font-weight: 600;
  color: var(--admin-heading, #212529);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E5E5;
}

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

/* --- Item Language Tabs (Admin) --- */
.item-lang-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0 12px 0;
  border-bottom: 1px solid #E5E5E5;
  padding-bottom: 8px;
}
.item-lang-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(var(--text-rgb), 0.12);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.item-lang-tab.active {
  background: var(--gold);
  color: #0D0D0D;
  border-color: var(--gold);
  font-weight: 600;
}
.item-lang-tab:not(.active):hover {
  border-color: var(--gold);
  color: var(--gold);
}
.item-lang-fields .item-lang-field {
  display: none;
}
.item-lang-fields .item-lang-field.active {
  display: block;
}

/* --- Inline Language Selector --- */
.lang-input-wrapper {
  position: relative;
  margin-bottom: 8px;
}
.lang-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.2s;
}
.lang-input-row:focus-within {
  border-color: #074942;
}
.lang-input-row .form-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  min-height: 42px;
  resize: none;
}
.lang-input-row textarea.lang-input-display {
  min-height: 52px;
  padding-top: 10px;
  align-self: flex-start;
}
.lang-input-row .form-input:focus {
  outline: none;
  box-shadow: none;
}
.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: #F5F5F7;
  border-left: 1px solid #E5E5E5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-en), var(--font), sans-serif;
  color: #555555;
  white-space: nowrap;
  transition: all 0.15s;
  user-select: none;
}
.lang-selector-btn:hover {
  background: #F0F8F6;
  color: #074942;
}
.lang-selector-btn .lang-code {
  min-width: 20px;
  text-align: center;
}
.lang-selector-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.lang-selector-btn.open svg {
  transform: rotate(180deg);
}
.lang-selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 100;
  padding: 4px;
  display: none;
  overflow: hidden;
}
.lang-selector-dropdown.open {
  display: block;
  animation: langDropIn 0.15s ease;
}
@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-selector-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-muted);
  transition: all 0.15s;
}
.lang-selector-option:hover {
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--text);
}
.lang-selector-option.active {
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold);
  font-weight: 600;
}
.lang-selector-option .lang-opt-code {
  font-family: var(--font-en), monospace;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.5;
  min-width: 20px;
}

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

.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.15s;
}
.item-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.item-card:hover {
  background: #FAFAFA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.item-card[draggable="true"] { cursor: grab; }
.item-card[draggable="true"]:active { cursor: grabbing; }
.item-card.drag-over { border-color: #074942; box-shadow: 0 -2px 0 0 #074942; }
.item-card.dragging { opacity: 0.4; }

.item-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: #CCCCCC;
  cursor: grab;
}
.item-drag-handle:active { cursor: grabbing; }
.item-drag-handle svg { width: 16px; height: 16px; }

.item-card-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #F0F8F6;
  flex-shrink: 0;
}

.item-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F0F8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.item-card-icon svg {
  width: 18px;
  height: 18px;
  color: #074942;
}

.item-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-card-price {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
}

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

.item-card-desc {
  font-size: 13px;
  color: #888888;
}

.item-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

/* --- Admin Table (Desktop) --- */
.admin-table-wrap {
  overflow-x: auto;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
}

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

.admin-table th {
  padding: 14px 16px;
  text-align: right;
  color: #555555;
  border-bottom: 1px solid #E5E5E5;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F0F0F0;
  color: #212529;
  vertical-align: middle;
}

.admin-table tr:hover td { background: #FAFAFA; }

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

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

.admin-btn-edit { background: #E8F4FD; color: #1976D2; }
.admin-btn-delete { background: #FDE8E8; color: #E53935; }
.admin-btn-toggle { background: #F5F5F7; color: #555555; }

/* --- Icon Buttons (Action Rows) --- */
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; background: transparent;
  cursor: pointer; transition: all 0.15s; padding: 0; flex-shrink: 0;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn-edit { color: #074942; }
.icon-btn-edit:hover { background: rgba(7,73,66,0.1); }
.icon-btn-delete { color: #E53935; }
.icon-btn-delete:hover { background: rgba(229,57,53,0.08); }
.icon-btn-toggle { color: #888888; }
.icon-btn-toggle:hover { background: rgba(136,136,136,0.1); }
.icon-btn-toggle.is-available { color: #2ECC71; }
.icon-btn-toggle.is-available:hover { background: rgba(46,204,113,0.1); }

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

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

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

.toggle-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

.toggle-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toggle-card label { font-size: 14px; color: #212529; cursor: pointer; }

.plan-upgrade-hint {
  background: #F0F8F6; border: 1px solid #E5E5E5;
  border-radius: 8px; padding: 10px 14px; margin-top: 10px;
  font-size: 13px; color: #074942;
}
.plan-upgrade-hint a { color: #DD6D3F; font-weight: 600; text-decoration: none; }
.plan-upgrade-hint a:hover { text-decoration: underline; }

.plan-lock-msg {
  display: flex; align-items: center; gap: 10px;
  background: rgba(221,109,63,0.08); border: 1px solid rgba(221,109,63,0.2);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; color: #8B5E34;
}
.plan-lock-msg svg { flex-shrink: 0; color: #DD6D3F; }
.plan-lock-msg a { color: #DD6D3F; font-weight: 700; text-decoration: none; }
.plan-lock-msg a:hover { text-decoration: underline; }

.plan-limit-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  background: #F0F8F6; color: #074942;
}
.plan-limit-badge.at-limit { background: rgba(221,109,63,0.1); color: #DD6D3F; }

.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: #E5E5E5;
  border-radius: 12px;
  transition: background 0.2s;
}

.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: #074942; }
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #FFFFFF;
}

/* --- Orders --- */
.admin-order-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #E5E5E5;
  transition: box-shadow 0.2s;
}

.admin-order-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.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: #074942; }
.admin-order-time { font-size: 12px; color: #888888; }

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

.admin-order-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #212529;
  padding: 4px 0;
}

.admin-order-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  color: #074942;
  padding-top: 8px;
  border-top: 1px solid #E5E5E5;
}

.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: #212529; }

/* --- 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;
  font-weight: 500;
  color: #212529;
  margin-bottom: 6px;
}

.theme-color-desc {
  font-size: 11px;
  color: #888888;
  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 #E5E5E5;
  border-radius: 10px;
  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: #F5F5F7;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #E5E5E5;
}

.theme-preview-box h4 {
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  margin-bottom: 10px;
}

.theme-preview {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #E5E5E5;
}

.no-orders {
  text-align: center;
  padding: 40px 20px;
  color: #888888;
}

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

.auth-error {
  color: #E74C3C;
  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: #888888;
}

.login-back a { color: #074942; }

.login-error {
  text-align: center;
  color: #E74C3C;
  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
   ============================================= */

/* --- Desktop (1024px+): show table, full grid --- */
@media (min-width: 1024px) {
  .admin-table-wrap { display: block; }
}

/* --- Tablet & below (≤1024px) --- */
@media (max-width: 1024px) {
  /* Panel header: prevent h3+button overlap */
  .panel-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .panel-header h3 {
    font-size: 15px;
    margin-bottom: 0;
  }

  /* Forms */
  .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;
    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%; }

  /* Dashboard stats: 2-col */
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Dashboard shortcuts: 2-col */
  .dashboard-shortcuts {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* 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; }

  /* Theme colors: keep 2-col */
  .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; }

  /* Upload row: stack on narrow screens */
  .upload-row {
    flex-direction: column;
    align-items: stretch;
  }
  .upload-preview {
    align-self: center;
  }

  /* Reviews summary */
  .reviews-summary {
    grid-template-columns: 1fr 1fr;
  }
  .reviews-dist {
    grid-column: 1 / -1;
  }

  /* Login */
  .admin-login-box h2 { font-size: 20px; margin-bottom: 18px; }
  .login-icon { font-size: 40px; }
}

/* --- Small tablet (≤768px) --- */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .dashboard-shortcuts {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .dashboard-shortcut {
    padding: 12px;
    gap: 10px;
  }
  .dashboard-shortcut-icon {
    width: 38px;
    height: 38px;
  }
  .dashboard-shortcut span {
    font-size: 13px;
  }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {
  /* Dashboard: single column */
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-shortcuts {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-welcome-title { font-size: 18px; }
  .dashboard-stat-number { font-size: 22px; }

  /* Theme colors: single column on very small screens */
  .theme-colors {
    grid-template-columns: 1fr;
  }

  /* Color picker: full width */
  .color-picker-row {
    flex-wrap: wrap;
  }
  .color-picker-row input[type="color"] { width: 48px; height: 48px; }

  /* Reviews summary: single column */
  .reviews-summary {
    grid-template-columns: 1fr;
  }
  .reviews-dist {
    grid-column: auto;
  }

  /* Modal: fit viewport */
  .modal {
    margin: 8px;
    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%; }

  /* Topbar */
  .admin-topbar-inner { padding: 0 16px; }

  /* Onboarding */
  .onboarding-link-row {
    flex-direction: column;
    gap: 8px;
  }
  .onboarding-link-row .btn { width: 100%; }
}

/* --- Extra small (≤375px) --- */
@media (max-width: 375px) {
  .admin-content {
    padding: 12px;
    padding-top: 84px;
  }

}

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.35s ease both;
}
::view-transition-new(root) {
  animation: vt-in 0.45s ease 0.12s both;
}

@keyframes vt-out {
  to { opacity: 0; filter: blur(6px); }
}
@keyframes vt-in {
  from { opacity: 0; filter: blur(6px); }
}

/* =============================================
   PHONE FRAME PREVIEW (Appearance Tab)
   ============================================= */
.theme-preview-frame {
  background: var(--black, #0D0D0D);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(var(--text-rgb, 245,245,245), 0.1);
  max-width: 370px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 18px;
  display: block;
}

.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); }

/* =============================================
   ADMIN USER BOTTOM SHEET (LEGACY - REMOVED)
   ============================================= */

/* =============================================
   DASHBOARD PANEL
   ============================================= */
/* Trial Banner */
.trial-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 12px;
  margin-bottom: 18px; border: 1px solid #E5E5E5;
  background: #FFFFFF;
}
.trial-banner.trial-ok { background: #F0F8F6; border-color: #E5E5E5; }
.trial-banner.trial-ok .trial-banner-icon { color: #074942; }
.trial-banner.trial-warn { background: #FFF8E1; border-color: #FFE082; }
.trial-banner.trial-warn .trial-banner-icon { color: #F39C12; }
.trial-banner.trial-danger { background: #FDE8E8; border-color: #FFCDD2; }
.trial-banner.trial-danger .trial-banner-icon { color: #E53935; }
.trial-banner.trial-expired { background: #FDE8E8; border-color: #FFCDD2; }
.trial-banner.trial-expired .trial-banner-icon { color: #E53935; }
.trial-banner.trial-active { background: #F0F8F6; border-color: #E5E5E5; }
.trial-banner.trial-active .trial-banner-icon { color: #074942; }
.trial-banner-icon {
  flex-shrink: 0; margin-top: 2px;
}
.trial-banner-icon svg { width: 22px; height: 22px; }
.trial-banner-text {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.trial-banner-title {
  font-size: 14px; color: #212529; line-height: 1.5;
}
.trial-banner-title strong { color: #074942; font-weight: 700; }
.trial-banner-sub {
  font-size: 12px; color: #888888; line-height: 1.5;
}
.trial-progress-wrap {
  display: flex; align-items: center; gap: 10px;
}
.trial-progress-bar {
  flex: 1; height: 6px; background: #E5E5E5;
  border-radius: 3px; overflow: hidden;
}
.trial-progress-fill {
  height: 100%; border-radius: 3px;
  background: #074942;
  transition: width 0.4s;
}
.trial-ok .trial-progress-fill { background: #074942; }
.trial-warn .trial-progress-fill { background: #D4860A; }
.trial-danger .trial-progress-fill { background: #B5351B; }
.trial-progress-label {
  font-size: 12px; font-weight: 600; color: #555; min-width: 30px;
}

/* --- Plans Panel --- */
.plans-current-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(7,73,66,0.08); border: 1px solid rgba(7,73,66,0.15);
  font-size: 13px; font-weight: 600; color: #074942;
  margin-bottom: 20px;
}
.plans-current-badge svg { width: 16px; height: 16px; }
.plans-billing-toggle {
  display: flex; gap: 0; margin-bottom: 24px;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 8px;
  padding: 4px; width: fit-content;
}
.billing-btn {
  padding: 8px 20px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: #888; transition: all 0.2s;
  font-family: var(--font);
}
.billing-btn.active {
  background: #074942; color: #fff;
  box-shadow: 0 2px 8px rgba(7,73,66,0.3);
}
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: #fff; border: 1px solid #E5E5E5; border-radius: 8px;
  padding: 30px 18px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.plan-card.plan-active {
  border-color: #074942; box-shadow: 0 0 0 2px rgba(7,73,66,0.12);
}
.plan-card.plan-active::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #074942;
}
.plan-card-icon {
  margin-bottom: 7px;
}
.plan-card-icon svg { width: 48px; height: 48px; }
.plan-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.plan-card-name {
  font-size: 20px; font-weight: 700; color: #074942;
}
.plan-card-badge {
  display: inline-block; padding: 3px 9px; border-radius: 30px;
  font-size: 11px; font-weight: 700; line-height: 1.4;
}
.plan-card-badge.badge-trial { background: #F6F6F6; color: #000; border: 1px solid #ECECEC; }
.plan-card-badge.badge-popular { background: rgba(45,183,140,0.2); color: #2DB78C; }
.plan-card-price-wrap {
  min-height: 70px; margin-top: -8px;
}
.plan-card-price {
  font-size: 36px; font-weight: 700; color: #DD6D3F;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.plan-card-price small {
  font-size: 12px; font-weight: 700;
}
.plan-card-price-old {
  font-style: normal; text-decoration: line-through; color: #999;
  font-weight: 500; font-size: 14px;
}
.plan-card-price-note {
  font-size: 14px; color: #999; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.plan-card-price-period {
  display: block; font-size: 12px; color: #999; margin-top: 2px;
}
.plan-card-price-savings {
  display: block; font-size: 12px; color: #666; font-weight: 600; margin-top: 4px;
}
.plan-card-divider {
  width: calc(100% + 36px); height: 1px; background: #E5E5E5;
  margin: 24px 0; margin-right: -18px;
}
.plan-card-features {
  list-style: none; padding: 0; margin: 0 0 24px; flex: 1;
}
.plan-card-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 13px; font-weight: 600; color: #000;
  line-height: 1.5;
}
.plan-card-features li svg { flex-shrink: 0; color: #074942; width: 24px; height: 24px; }
.plan-card-features li.disabled { color: #999; }
.plan-card-features li.disabled svg { color: #ccc; }
.plan-card-btn {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; transition: all 0.2s;
  font-family: var(--font); text-decoration: none; text-align: center;
}
.plan-card-btn.btn-primary {
  background: #DD6D3F; color: #fff;
}
.plan-card-btn.btn-primary:hover { background: #074942; }
.plan-card-btn.btn-outline {
  background: transparent; color: #074942;
  border: 1px solid #E5E5E5;
}
.plan-card-btn.btn-outline:hover { background: #F6F6F6; border-color: #074942; }
.plan-card-btn.btn-current {
  background: rgba(7,73,66,0.1); color: #074942; cursor: default;
}
.plan-card-note {
  text-align: center; font-size: 12px; color: #999; margin-top: 10px;
}

.dashboard-welcome {
  padding: 16px 0 20px;
}

.dashboard-welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}

.dashboard-welcome-sub {
  font-size: 14px;
  color: #888888;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.dashboard-stat-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #074942;
  display: block;
  margin-bottom: 4px;
}

.dashboard-stat-label {
  font-size: 13px;
  color: #888888;
}

.dashboard-stat-pending {
  border-color: #E5E5E5;
  background: #FAFAFA;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dashboard-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s;
}

.dashboard-shortcut:hover {
  border-color: #D0D0D0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F0F8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #074942;
}

.dashboard-shortcut span {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

@media (min-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-shortcuts {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-welcome-title {
    font-size: 18px;
  }
  .dashboard-stat-number {
    font-size: 22px;
  }
}

/* =============================================
   STATISTICS PANEL
   ============================================= */
.stats-content {
  padding: 0;
}

.stats-month-header {
  margin-bottom: 20px;
}

.stats-month-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #074942;
  color: #FFFFFF;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
}

.stats-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F0F8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #074942;
  margin-bottom: 4px;
}

.stat-card-number {
  font-size: 24px;
  font-weight: 800;
  color: #074942;
  font-family: var(--font);
}

.stat-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  font-family: var(--font);
}

.stat-card-pct {
  font-size: 12px;
  font-weight: 500;
  color: #888888;
  font-family: var(--font);
}

.stats-section {
  margin-bottom: 24px;
}

.stats-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #074942;
  font-family: var(--font);
  margin-bottom: 14px;
}

.stats-empty {
  font-size: 13px;
  color: #888;
  font-family: var(--font);
  padding: 20px;
  text-align: center;
  background: #FAFAFA;
  border-radius: 10px;
}

.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding: 12px 0;
}

.stats-chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  font-family: var(--font);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot-visits {
  background: #074942;
}

.legend-dot-orders {
  background: #1a9e8e;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.chart-bar-values {
  display: flex;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
}

.chart-bar-values span:first-child {
  color: #074942;
}

.chart-bar-values span:last-child {
  color: #1a9e8e;
}

.chart-bar-track {
  flex: 1;
  width: 100%;
  max-width: 36px;
  background: #F0F0F0;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 2px;
  overflow: hidden;
}

.chart-bar-fill {
  flex: 1;
  border-radius: 4px;
  min-height: 2px;
  transition: height 0.4s ease;
}

.chart-bar-visits {
  background: #074942;
}

.chart-bar-orders {
  background: #1a9e8e;
}

.chart-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  font-family: var(--font);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-list-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  font-family: var(--font);
  min-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-list-bar-wrap {
  flex: 1;
  height: 8px;
  background: #F0F0F0;
  border-radius: 4px;
  overflow: hidden;
}

.stats-list-bar {
  height: 100%;
  background: #074942;
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.4s ease;
}

.stats-list-bar-cat {
  background: #1a7a6e;
}

.stats-list-count {
  font-size: 13px;
  font-weight: 700;
  color: #074942;
  font-family: var(--font);
  min-width: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-chart {
    height: 200px;
  }
}

/* Old admin-user-avatar styles removed */

.admin-user-avatar:hover {
  background: rgba(7, 73, 66, 0.06);
}

/* Old admin-user-avatar, admin-email, admin-user-chevron removed */

/* Old admin-sheet-overlay (user sheet) removed */
/* All old admin-sheet styles fully removed */

/* =============================================
   ONBOARDING WIZARD
   ============================================= */
.onboarding-step {
  text-align: right;
}

.onboarding-link-box {
  background: #F6F6F6;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 16px;
}

.onboarding-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.onboarding-link-row .form-input {
  flex: 1;
  min-width: 0;
}

/* =============================================
   ICON PICKER
   ============================================= */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 10px;
  background: #F5F5F7;
  border-radius: 10px;
  border: 1px solid #E5E5E5;
  max-height: 180px;
  overflow-y: auto;
}

.icon-picker-item {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  padding: 6px;
  color: #555555;
}

.icon-picker-item:hover {
  background: #FFFFFF;
  border-color: #E5E5E5;
}

.icon-picker-item.active {
  background: #F0F8F6;
  border-color: #074942;
  color: #074942;
}

.icon-picker-item svg {
  width: 22px;
  height: 22px;
}

/* PRESET CATEGORIES */

/* CATEGORY CARD ICON/IMAGE */
.cat-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.cat-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold, #D4A843);
}

.cat-card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .icon-picker {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* =============================================
   FULL PAGE SKELETON LOADING
   ============================================= */
.skeleton-page {
  position: fixed;
  inset: 0;
  background: var(--black, #0D0D0D);
  z-index: 99999;
  overflow-y: auto;
}
.skeleton-page.hidden { display: none; }

/* ── Shimmer animation ── */
@keyframes skel-shimmer {
  0%   { opacity: 1; }
  50%  { opacity: 0.45; }
  100% { opacity: 1; }
}

/* — skeleton shapes — */
.skel-circle,
.skel-bar,
.skel-lang-pill,
.skel-chip,
.skel-card {
  background: var(--skel-color, rgba(255,255,255,0.08));
  animation: skel-shimmer 1.6s ease-in-out infinite;
}

/* ── HEADER ── */
.skel-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--black, #0D0D0D);
  z-index: 3;
}
.skel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding: 0 16px;
}
.skel-header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skel-header-actions-end { justify-content: flex-end; }
.skel-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skel-header-logo { flex: 0 0 auto; }
.skel-bar { height: 20px; border-radius: 6px; }
.skel-bar-140 { width: 140px; }

/* ── LANG BAR ── */
.skel-langbar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--black, #0D0D0D);
  z-index: 2;
}
.skel-langbar-inner { padding: 8px 16px; }
.skel-lang-pill {
  width: 100%;
  height: 36px;
  border-radius: 8px;
}

/* ── FILTER BAR ── */
.skel-filter-wrap {
  position: fixed;
  top: var(--header-h, 114px);
  left: 0; right: 0;
  background: var(--black, #0D0D0D);
  z-index: 1;
}
.skel-filter-inner { padding: 0; }
.skel-filter-chips {
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow: hidden;
}
.skel-chip {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ── MENU GRID ── */
.skel-grid-wrap {
  padding: 16px 16px 100px;
}
.skel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.skel-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--skel-color, rgba(255,255,255,0.08));
}
.skel-card-img {
  width: 100%;
  aspect-ratio: 1;
}
.skel-card-body { padding: 10px 12px 14px; }
.skel-line {
  height: 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 8px;
}
.skel-line:last-child { margin-bottom: 0; }
.skel-w70 { width: 70%; }
.skel-w50 { width: 50%; }
.skel-w40 { width: 40%; }

/* ── Responsive: 640px ── */
@media (min-width: 640px) {
  .skel-grid { gap: 14px; }
}

/* ── Responsive: 768px ── */
@media (min-width: 768px) {
  .skel-header { height: 64px; }
  .skel-header-inner { padding: 0 24px; }
  .skel-langbar { top: 64px; }
  .skel-langbar-inner { padding: 8px 24px; }
  .skel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .skel-grid-wrap { padding: 24px 24px 120px; }
  .skel-filter-chips { padding: 10px 0 14px; gap: 10px; justify-content: center; }
}

/* ── Responsive: 1024px ── */
@media (min-width: 1024px) {
  .skel-header { height: 68px; }
  .skel-header-inner {
    max-width: 100%;
    padding: 0 48px;
  }
  .skel-langbar { top: 68px; }
  .skel-langbar-inner { padding: 8px 32px; }
  .skel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .skel-grid-wrap { padding: 32px 32px 140px; }
  .skel-card-body { padding: 12px 14px 16px; }
  .skel-filter-chips { padding: 12px 32px 16px; gap: 12px; }
}

/* ── Responsive: 1280px ── */
@media (min-width: 1280px) {
  .skel-header { height: 72px; }
  .skel-header-inner { padding: 0 48px; }
  .skel-langbar { top: 72px; }
  .skel-langbar-inner { padding: 8px 40px; }
  .skel-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .skel-grid-wrap { padding: 40px 40px 160px; }
  .skel-filter-chips { padding: 12px 40px 18px; gap: 14px; }
}

/* ── Responsive: 1536px ── */
@media (min-width: 1536px) {
  .skel-header-inner { padding: 0 48px; }
  .skel-langbar-inner { padding: 8px 48px; }
  .skel-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .skel-grid-wrap { padding: 48px 48px 180px; }
  .skel-filter-chips { padding: 14px 48px 20px; }
}

.auto-refresh-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #074942;
  color: #fff;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(7,73,66,0.3);
}
.auto-refresh-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- QR Code Panel --- */
/* ── QR PAGE ── */
.qr-page-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.qr-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 24px;
}

.qr-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qr-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F0F8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #074942;
}

.qr-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 2px 0;
}

.qr-card-desc {
  font-size: 13px;
  color: #888888;
  margin: 0;
  line-height: 1.5;
}

.qr-code-display {
  background: #FFFFFF;
  border: 2px dashed #E5E5E5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 260px;
}

.qr-code-display svg {
  display: block;
}

.qr-actions-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qr-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-divider {
  height: 1px;
  background: #E5E5E5;
  margin: 20px 0;
}

.qr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #212529;
}

.qr-label svg {
  color: #888888;
  flex-shrink: 0;
}

.qr-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.qr-link-row .form-input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.qr-link-row .btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 13px;
}

.qr-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qr-download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid #E5E5E5;
  background: #FFFFFF;
  color: #212529;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.qr-download-btn:hover {
  background: #F6F6F6;
  border-color: #D0D0D0;
  transform: translateY(-1px);
}

.qr-download-primary {
  background: #074942;
  color: #FFFFFF;
  border-color: #074942;
}

.qr-download-primary svg {
  color: #FFFFFF;
}

.qr-download-primary:hover {
  background: #0a3a32;
}

.qr-dl-name {
  font-size: 14px;
  font-weight: 700;
}

.qr-dl-desc {
  font-size: 11px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .qr-page-layout {
    grid-template-columns: 1fr;
  }
  .qr-code-display {
    min-width: auto;
    min-height: auto;
  }
  .qr-download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .qr-card {
    padding: 16px;
  }
  .qr-actions-card {
    padding: 16px;
  }
  .qr-download-grid {
    grid-template-columns: 1fr;
  }
  .qr-download-btn {
    flex-direction: row;
    padding: 14px 16px;
    gap: 12px;
  }
  .qr-dl-desc {
    margin-right: auto;
  }
}

/* ── SITE FOOTER ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  color: var(--text, #fff);
  font-size: 13px;
  font-weight: 500;
}
.footer-logo {
  height: 35px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.rating-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 19999;
  display: none;
}
.rating-overlay.open { display: block; }
.rating-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  width: 100%;
  background: var(--card-bg, #fff);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  z-index: 20000;
  transition: none;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
.rating-popup.open { transform: translateY(0); }
.rating-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.rating-popup-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.rating-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted, #999);
}
.rating-popup-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted, #999);
  margin: 0 0 16px;
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.rating-star {
  background: none;
  border: none;
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0 2px;
}
.rating-star.active { color: var(--gold, #FFD700); }
.rating-success-msg {
  display: none;
  text-align: center;
  color: var(--success, #00b894);
  font-weight: 600;
  font-size: 16px;
  padding: 24px 0;
}
/* =============================================
   REVIEWS PANEL — GREEN THEME
   ============================================= */
.reviews-summary {
  display: grid;
  grid-template-columns: 160px 160px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.reviews-summary-card {
  background: #074942;
  border: none;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reviews-summary-avg {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.reviews-summary-stars {
  display: flex;
  gap: 2px;
  margin: 6px 0 4px;
}
.rs-star {
  color: rgba(255,255,255,.3);
  font-size: 18px;
}
.rs-star.active {
  color: #facc15;
}
.reviews-summary-count {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.reviews-summary-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}
.reviews-dist {
  justify-content: space-around;
  padding: 16px 20px;
}
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.dist-label {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  min-width: 26px;
  text-align: center;
}
.dist-bar {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  width: 0;
  transition: width .4s ease;
}
.dist-num {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  min-width: 18px;
  text-align: center;
}
.review-card {
  background: #074942;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow .2s, transform .2s;
}
.review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(7,73,66,.35);
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.review-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.review-card-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.review-card-date {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.review-card-stars {
  display: flex;
  gap: 2px;
}
.review-star {
  color: rgba(255,255,255,.25);
  font-size: 16px;
}
.review-star.active {
  color: #22c55e;
}
.review-card-comment {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  border-right: 3px solid #22c55e;
}
@media (max-width: 991px) {
  .reviews-summary {
    grid-template-columns: 1fr 1fr;
  }
  .reviews-dist {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .reviews-summary {
    grid-template-columns: 1fr;
  }
  .reviews-dist {
    grid-column: auto;
  }
  .review-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =============================================
   RTL OVERRIDES
   ============================================= */
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

/* Cart badge */
html[dir="rtl"] .cart-badge { left: auto; right: 2px; }

/* Cart sidebar - opens from right in RTL */
html[dir="rtl"] .cart-sidebar { left: auto; right: 0; }
html[dir="rtl"] .cart-sidebar.open { left: auto; right: 0; }

/* Cart item total */
html[dir="rtl"] .cart-item-total { text-align: right; }

/* Search overlay */
html[dir="rtl"] .search-overlay { left: 0; right: 0; }

/* Google review text */
html[dir="rtl"] .google-review-text { direction: rtl; text-align: center; }

/* Admin panel overrides */
/* Display Mode Toggle */
.display-mode-toggle {
  display: flex;
  gap: 8px;
}
.display-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--divider, rgba(255,255,255,0.1));
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.display-mode-btn:hover {
  border-color: rgba(var(--primary-color-rgb), 0.3);
  color: var(--text);
}
.display-mode-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}

html[dir="rtl"] .admin-order-actions { flex-direction: row-reverse; }
html[dir="rtl"] .admin-table th { text-align: right; }
html[dir="rtl"] .admin-table td { text-align: right; }
html[dir="rtl"] .onboarding-step { text-align: right; }

@media (min-width: 1024px) {
  html[dir="rtl"] .cart-sidebar { left: auto; right: -100%; }
  html[dir="rtl"] .cart-sidebar.open { left: auto; right: 0; }
}
