/* ==========================================================================
   حبة بركة (Habbet Barake) — Cloud Menu Stylesheet
   Lightweight, Zero-Dependency, RTL & LTR Responsive Design
   ========================================================================== */

:root {
  /* Artisanal Spice & Nigella Seed Palette */
  --bg-main: #FAF6F0;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3ECE1;
  --bg-dark: #191716;
  --bg-dark-elevated: #252220;

  --text-primary: #1D1A17;
  --text-secondary: #5C5349;
  --text-muted: #8A7F72;
  --text-on-dark: #FAF6F0;

  --brand-gold: #C88A2B;
  --brand-gold-light: #FDF3E1;
  --brand-gold-border: #E8C98E;

  --brand-green: #2A4B3C;
  --brand-green-light: #E9F2EE;

  --whatsapp-green: #1FA855;
  --whatsapp-green-hover: #198E47;

  --danger: #C93B2B;
  --danger-bg: #FDF0EE;

  --border-color: #E6DDD0;
  --border-subtle: #EFE8DD;

  --shadow-sm: 0 2px 8px rgba(25, 23, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(25, 23, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(25, 23, 22, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-ar: 'Readex Pro', system-ui, -apple-system, sans-serif;
  --font-ar-display: 'Amiri', Georgia, serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 92px; /* Space for floating cart */
}

html[lang="en"] body {
  font-family: var(--font-en);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #233F32 0%, #2A4B3C 50%, #233F32 100%);
  color: #F5EFE6;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid rgba(200, 138, 43, 0.28);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Header & Hero Section
   ========================================================================== */
.site-header {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #2D2824 0%, var(--bg-dark) 75%);
  color: var(--text-on-dark);
  padding: 16px 0 26px;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-gold);
}

.header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#E5B25D 1.25px, transparent 1.25px), radial-gradient(#E5B25D 1.25px, #191716 1.25px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: #D8CFC2;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.sync-dot.syncing {
  background-color: #FBBF24;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.icon-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E5B25D;
  padding: 2px;
  border-radius: 50%;
  transition: transform var(--transition-smooth);
}

.icon-btn-mini:hover {
  transform: rotate(90deg);
}

.icon-btn-mini.spinning svg {
  animation: spin 0.75s linear infinite;
}

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 138, 43, 0.16);
  border: 1px solid rgba(229, 178, 93, 0.4);
  color: #F9E7C4;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(200, 138, 43, 0.3);
  border-color: #E5B25D;
}

/* Brand Identity */
.brand-hero {
  text-align: center;
  margin-bottom: 20px;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.shop-title {
  font-family: var(--font-ar-display);
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 700;
  color: #FAF6F0;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[lang="en"] .shop-title {
  font-family: var(--font-ar-display);
  letter-spacing: 0.03em;
}

.shop-tagline {
  font-size: 0.9rem;
  color: #D2C7B8;
  max-width: 540px;
  margin-inline: auto;
  font-weight: 400;
}

/* Search Bar */
.search-wrapper {
  max-width: 580px;
  margin-inline: auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 3px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--brand-gold);
}

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

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 10px;
  font-size: 0.94rem;
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   Sticky Category & Sub-section Navigation
   ========================================================================== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(25, 23, 22, 0.04);
  padding: 10px 0;
}

.sections-scroll-wrapper,
.subsections-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sections-scroll-wrapper::-webkit-scrollbar,
.subsections-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.sections-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.section-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-tab:hover {
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.section-tab.active {
  background: var(--bg-dark);
  color: #FAF6F0;
  border-color: var(--bg-dark);
  box-shadow: 0 3px 10px rgba(25, 23, 22, 0.16);
}

.section-tab-count {
  font-size: 0.73rem;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 500;
}

.section-tab.active .section-tab-count {
  background: rgba(200, 138, 43, 0.3);
  color: #F9E7C4;
}

/* Sub-section filter pills */
.subsections-scroll-wrapper {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.subsections-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subsection-pill {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.subsection-pill:hover {
  color: var(--text-primary);
  border-color: var(--brand-gold-border);
}

.subsection-pill.active {
  background: var(--brand-gold-light);
  color: #8A5A10;
  border-color: var(--brand-gold);
  font-weight: 600;
}

/* ==========================================================================
   Menu Sections, Subsections & Item Cards
   ========================================================================== */
.main-content {
  flex: 1;
  padding-top: 22px;
  padding-bottom: 36px;
}

.sheet-warning {
  background: var(--brand-gold-light);
  border: 1px solid var(--brand-gold-border);
  color: #7D510D;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.menu-section {
  margin-bottom: 34px;
  scroll-margin-top: 120px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 22px;
  border-radius: 4px;
  background: var(--brand-gold);
}

.subsection-block {
  margin-bottom: 24px;
}

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

.subsection-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 12px;
}

.item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.item-card:hover {
  border-color: var(--brand-gold-border);
  box-shadow: var(--shadow-md);
}

.item-card.in-cart {
  border-color: var(--brand-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
}

.item-card.unavailable {
  opacity: 0.62;
  background: #F6F3EE;
}

.item-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.item-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.item-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-light);
  color: #946010;
  border: 1px solid var(--brand-gold-border);
}

.item-card.unavailable .item-badge.soldout-badge {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #F2B8B0;
}

.item-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Item Footer: Price + Unit & Add to Cart Controls */
.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.price-block {
  display: flex;
  align-items: baseline;
   flex-wrap: wrap;
  gap: 5px;
}

.item-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-green);
}

.item-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Add / Quantity Stepper Controls */
.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--bg-dark);
  color: #FAF6F0;
  border-color: var(--bg-dark);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-dark);
  color: #FAF6F0;
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FAF6F0;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  padding-inline: 4px;
}

.half-qty-btn {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-light);
  color: #8A5A10;
  border: 1px solid var(--brand-gold-border);
  transition: all var(--transition-fast);
}

.half-qty-btn:hover {
  background: var(--brand-gold);
  color: #FFF;
}

/* ==========================================================================
   Loading Skeleton & Empty State
   ========================================================================== */
.loading-state {
  padding: 12px 0;
}

.skeleton-section-title {
  width: 180px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #EDE5D8 25%, #F5EFE6 50%, #EDE5D8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 16px;
}

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

.skeleton-card {
  height: 126px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #EDE5D8 25%, #F5EFE6 50%, #EDE5D8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  margin: 16px 0;
}

.empty-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.btn-secondary {
  background: var(--bg-dark);
  color: #FAF6F0;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   Floating Bottom Cart Bar
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.cart-bar-button {
  pointer-events: auto;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark);
  color: #FAF6F0;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 138, 43, 0.45);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.cart-bar-button:hover {
  transform: translateY(-2px);
  background: var(--bg-dark-elevated);
}

.cart-bar-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count-badge {
  background: var(--brand-gold);
  color: #191716;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 26px;
  height: 26px;
  padding-inline: 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bar-total {
  font-weight: 700;
  font-size: 1.02rem;
  color: #F9E7C4;
}

html[dir="rtl"] .cart-arrow-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Modals / Drawers (Cart & Google Sheet Setup)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(25, 23, 22, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 180ms ease-out;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-drawer {
  background: var(--bg-surface);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .modal-drawer {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-main);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

.cart-item-subtotal {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-green);
  min-width: 58px;
  text-align: end;
}

/* Customer Form */
.cart-customer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

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

.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-gold);
}

.ltr-input {
  direction: ltr;
  text-align: left;
  font-family: monospace;
  font-size: 0.82rem;
}

.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-opt {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.delivery-opt.active {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.cart-modal-total-amount {
  font-size: 1.25rem;
  color: var(--brand-green);
}

.cart-footer-buttons {
  display: flex;
  gap: 10px;
}

.btn-outline-danger {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #E6B8B2;
  color: var(--danger);
  background: var(--danger-bg);
  font-weight: 600;
  font-size: 0.86rem;
}

.btn-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transition-fast);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
}

.btn-primary {
  flex: 1;
  background: var(--bg-dark);
  color: #FAF6F0;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Setup Helper Modal
   ========================================================================== */
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.setup-step-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #191716;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-step-card h4 {
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.inline-link {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
}

.setup-columns-box {
  margin-top: 14px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
  direction: ltr;
}

.code-chips code {
  background: var(--bg-surface);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.setup-tip {
  color: var(--text-secondary);
  margin-top: 6px;
}

.test-feedback {
  font-size: 0.8rem;
  margin-top: 4px;
}

.test-feedback.success {
  color: var(--brand-green);
  font-weight: 600;
}

.test-feedback.error {
  color: var(--danger);
}

.setup-footer {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #C7BDB0;
  padding: 28px 0;
  border-top: 2px solid var(--brand-gold);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-ar-display);
  color: #FAF6F0;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.footer-meta {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.setup-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E5B25D;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.setup-link-btn:hover {
  background: rgba(200, 138, 43, 0.16);
  border-color: #E5B25D;
}

@media (max-width: 520px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
