@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ================= THEME VARIABLES (Dark & Light) ================= */
:root, [data-theme="dark"] {
  --k-canvas: #090b0e;
  --k-surface: #11141a;
  --k-surface-soft: #171b24;
  --k-surface-hover: #1e232f;
  --k-border: #1f2633;
  --k-border-subtle: #2d3748;
  
  --k-ink: #f8fafc;
  --k-body: #94a3b8;
  --k-mute: #64748b;
  
  --k-brand: #10b981;
  --k-brand-dark: #059669;
  --k-brand-light: #34d399;
  --k-brand-pale: rgba(16, 185, 129, 0.12);
  --k-brand-text: #10b981;
  
  --k-accent-gold: #f59e0b;
  --k-accent-cyan: #06b6d4;
  --k-accent-red: #ef4444;
  
  --k-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --k-modal-backdrop: rgba(5, 7, 10, 0.85);
  --k-code-bg: #06080b;

  --nav-bg: rgba(11, 14, 20, 0.85);
  --marquee-bg: #0d1016;
}

[data-theme="light"] {
  --k-canvas: #f8fafc;
  --k-surface: #ffffff;
  --k-surface-soft: #f1f5f9;
  --k-surface-hover: #e2e8f0;
  --k-border: #e2e8f0;
  --k-border-subtle: #cbd5e1;
  
  --k-ink: #0f172a;
  --k-body: #475569;
  --k-mute: #64748b;
  
  --k-brand: #059669;
  --k-brand-dark: #047857;
  --k-brand-light: #10b981;
  --k-brand-pale: rgba(5, 150, 105, 0.08);
  --k-brand-text: #059669;
  
  --k-accent-gold: #d97706;
  --k-accent-cyan: #0891b2;
  --k-accent-red: #dc2626;
  
  --k-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --k-modal-backdrop: rgba(15, 23, 42, 0.6);
  --k-code-bg: #f8fafc;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --marquee-bg: #f1f5f9;
}

:root {
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--k-canvas);
  color: var(--k-ink);
  font-family: var(--font-ar);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

/* Inline SVG Utilities */
.svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.svg-icon-sm {
  width: 14px;
  height: 14px;
}
.svg-icon-lg {
  width: 22px;
  height: 22px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Ticker */
.top-ticker {
  background: var(--k-surface);
  border-bottom: 1px solid var(--k-border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--k-mute);
  transition: var(--transition);
}
.ticker-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ticker-badge {
  background: var(--k-brand-pale);
  color: var(--k-brand-text);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ticker-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-link {
  color: var(--k-mute);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.ticker-link:hover {
  color: var(--k-brand);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--k-border);
  padding: 14px 0;
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Bespoke ONYX Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--k-ink);
}
.logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--k-ink);
}
.logo-subtitle {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--k-brand);
  text-transform: uppercase;
}

/* Search Bar */
.search-box {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  padding: 10px 42px 10px 18px;
  border-radius: var(--radius-full);
  color: var(--k-ink);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
body[dir="rtl"] .search-input {
  padding: 10px 18px 10px 42px;
}
.search-input:focus {
  border-color: var(--k-brand);
  background: var(--k-surface-soft);
}
.search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--k-mute);
  pointer-events: none;
}
body[dir="rtl"] .search-icon {
  left: 16px;
}
body[dir="ltr"] .search-icon {
  right: 16px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  border: 1px solid transparent;
}
.btn-ghost {
  background: var(--k-surface);
  color: var(--k-ink);
  border-color: var(--k-border);
}
.btn-ghost:hover {
  background: var(--k-surface-hover);
  border-color: var(--k-border-subtle);
}
.btn-primary {
  background: var(--k-brand);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--k-brand-dark);
}
.btn-admin {
  background: rgba(245, 158, 11, 0.12);
  color: var(--k-accent-gold);
  border-color: rgba(245, 158, 11, 0.3);
}
.btn-admin:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  color: var(--k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--k-surface-hover);
}

/* Hero Section */
.hero {
  padding: 44px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--k-brand-pale);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--k-brand-text);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--k-ink);
}
.hero-title span {
  color: var(--k-brand);
}
.hero-desc {
  font-size: 16px;
  color: var(--k-body);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--k-border);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--k-ink);
  font-family: var(--font-en);
}
.stat-label {
  font-size: 13px;
  color: var(--k-mute);
}

/* Hero Showcase Card (Clean KartaDZ style, no cheesy AI glow) */
.hero-card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--k-card-shadow);
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero-card-badge {
  background: var(--k-brand-pale);
  color: var(--k-brand-text);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-sample-code {
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 16px 0;
}
.code-display {
  font-family: monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--k-brand-text);
}

/* Marquee Bar */
.marquee-wrapper {
  background: var(--marquee-bg);
  border-top: 1px solid var(--k-border);
  border-bottom: 1px solid var(--k-border);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  margin: 16px 0 36px;
}
.marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--k-mute);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.brand-item:hover {
  color: var(--k-ink);
}

/* How It Works (Clean 3-Step Section) */
.steps-section {
  padding: 10px 0 40px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step-card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--k-brand-pale);
  color: var(--k-brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-en);
  font-size: 16px;
  flex-shrink: 0;
}
.step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--k-ink);
  margin-bottom: 4px;
}
.step-desc {
  font-size: 13px;
  color: var(--k-body);
  line-height: 1.5;
}

/* Payment Methods Showcase Banner - Slim & Compact */
.payments-banner {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.payments-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--k-mute);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.payment-card-badge {
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  transition: var(--transition);
  cursor: pointer;
}
.payment-card-badge:hover {
  border-color: var(--k-brand);
  background: var(--k-surface);
  transform: translateY(-1px);
}
.payment-logo-img {
  height: 22px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.flexy-logos-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.flexy-op-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.payment-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.payment-name {
  font-weight: 700;
  font-size: 11px;
  color: var(--k-ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payment-sub {
  font-size: 9px;
  color: var(--k-mute);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Tabs - Multi-Row Responsive Grid / Wrap */
.categories-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 24px;
  padding: 4px 0;
}
.category-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  color: var(--k-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  user-select: none;
}
.category-tab:hover {
  background: var(--k-surface-soft);
  color: var(--k-ink);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.category-tab.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--k-brand);
  color: var(--k-brand-text, #10b981);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

/* Products Section */
.products-section {
  padding-bottom: 60px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--k-ink);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Product Card (KartaDZ Clean Style) */
.product-card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--k-brand);
  box-shadow: var(--k-card-shadow);
}
.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--k-surface-soft);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  color: var(--k-brand-text);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}
body[dir="ltr"] .product-badge {
  right: auto;
  left: 10px;
}
.delivery-type-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
body[dir="ltr"] .delivery-type-tag {
  left: auto;
  right: 8px;
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--k-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--k-ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-desc {
  font-size: 13px;
  color: var(--k-body);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--k-border);
}
.price-block {
  display: flex;
  flex-direction: column;
}
.price-start {
  font-size: 11px;
  color: var(--k-mute);
}
.price-value {
  font-size: 17px;
  font-weight: 900;
  color: var(--k-brand-text);
  font-family: var(--font-en);
}
.price-currency {
  font-size: 12px;
  color: var(--k-ink);
  margin-inline-start: 3px;
}
.btn-buy-card {
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  color: var(--k-ink);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.product-card:hover .btn-buy-card {
  background: var(--k-brand);
  color: #ffffff;
  border-color: var(--k-brand);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--k-modal-backdrop);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--k-card-shadow);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal-box {
  transform: scale(1);
}
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--k-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--k-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--k-mute);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-close-modal:hover {
  color: var(--k-ink);
  background: var(--k-surface-soft);
}
.modal-body {
  padding: 22px;
}

/* Variants Selection */
.variants-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}
.variant-btn {
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  text-align: start;
  cursor: pointer;
  transition: var(--transition);
}
.variant-btn:hover {
  border-color: var(--k-border-subtle);
  background: var(--k-surface-hover);
}
.variant-btn.selected {
  border-color: var(--k-brand);
  background: var(--k-brand-pale);
}
.var-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-ink);
  margin-bottom: 3px;
}
.var-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--k-brand-text);
  font-family: var(--font-en);
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--k-body);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--k-ink);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--k-brand);
  background: var(--k-surface);
}

/* Payment Selector Tabs in Checkout */
.pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.pay-tab-btn {
  background: var(--k-surface-soft);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.pay-tab-btn:hover {
  border-color: var(--k-border-subtle);
}
.pay-tab-btn.active {
  border-color: var(--k-brand);
  background: var(--k-brand-pale);
}
.pay-tab-btn .tab-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--k-ink);
}

/* Payment Box Details */
.payment-detail-box {
  background: var(--k-code-bg);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}
.copy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--k-surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--k-border);
  margin-top: 6px;
}
.copy-val {
  font-family: monospace;
  font-weight: 700;
  color: var(--k-brand-text);
  font-size: 14px;
}
.btn-copy {
  background: transparent;
  border: none;
  color: var(--k-mute);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-copy:hover {
  color: var(--k-ink);
}

/* Footer */
.footer {
  background: var(--k-surface);
  border-top: 1px solid var(--k-border);
  padding: 44px 0 24px;
  color: var(--k-mute);
  font-size: 13px;
  transition: var(--transition);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-title {
  color: var(--k-ink);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  color: var(--k-mute);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover {
  color: var(--k-brand);
}
.footer-bottom {
  border-top: 1px solid var(--k-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}
.toast {
  background: var(--k-surface);
  border: 1px solid var(--k-brand);
  color: var(--k-ink);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--k-card-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================= AUTHENTIC PAYMENT LOGOS ================= */
.payment-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.pay-tab-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  margin-bottom: 2px;
}
.pay-method-header-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Flexy / CIB multi-logo group */
.flexy-logos-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.flexy-op-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
/* Larger in banner cards */
.payment-card-badge .flexy-op-logo {
  width: 28px;
  height: 28px;
}
/* Smaller in pay-tabs */
.flexy-tab-group .flexy-op-logo {
  width: 18px;
  height: 18px;
}

/* ================= GOOGLE OAUTH MODAL ================= */
.google-oauth-box {
  max-width: 440px;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--k-border);
  background: var(--k-surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.google-oauth-header {
  position: relative;
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--k-border);
}
.google-logo-svg {
  display: block;
  margin: 0 auto 12px;
}
.google-oauth-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--k-ink);
  margin-bottom: 4px;
}
.google-oauth-subtitle {
  font-size: 13px;
  color: var(--k-mute);
  margin: 0;
}
.google-close {
  position: absolute;
  top: 16px;
  left: 16px;
}
body[dir="rtl"] .google-close {
  left: 16px;
  right: auto;
}
.google-oauth-body {
  padding: 20px 24px;
}
.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--k-border);
  background: var(--k-surface-soft);
  cursor: pointer;
  transition: var(--transition);
}
.google-account-item:hover {
  border-color: #4285F4;
  background: var(--k-surface-hover);
  transform: translateY(-1px);
}
.google-avatar-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4285F4;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}
.google-avatar-add {
  background: var(--k-surface);
  border: 1px dashed var(--k-border-subtle);
  color: var(--k-mute);
}
.google-acc-details {
  flex: 1;
  text-align: start;
}
.google-acc-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--k-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.google-badge-admin {
  background: rgba(16, 185, 129, 0.15);
  color: var(--k-brand-text);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}
.google-acc-email {
  font-size: 12px;
  color: var(--k-mute);
  direction: ltr;
  display: inline-block;
}
.google-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--k-mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.google-disclaimer {
  font-size: 11px;
  color: var(--k-mute);
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--k-border);
}
.google-disclaimer a {
  color: #4285F4;
  text-decoration: none;
}
.google-disclaimer a:hover {
  text-decoration: underline;
}
.google-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid rgba(66, 133, 244, 0.2);
  border-top-color: #4285F4;
  border-radius: 50%;
  animation: spinGoogle 0.8s linear infinite;
}
@keyframes spinGoogle {
  to { transform: rotate(360deg); }
}
.google-btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  color: var(--k-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-bottom: 16px;
}
.google-btn-full:hover {
  border-color: #4285F4;
  background: var(--k-surface-soft);
}

/* ================= MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--k-border);
  z-index: 999;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  justify-content: space-around;
  align-items: center;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--k-mute);
  text-decoration: none;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item.active, .mob-nav-item:hover {
  color: var(--k-brand);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-buttons, .hero-stats {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .form-input, .form-select, .form-textarea, .search-input {
    font-size: 16px !important;
  }
  .navbar {
    padding: 10px 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-body {
    padding: 12px;
  }
  .product-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .product-desc {
    display: none;
  }
  .payments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pay-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= BRANDS TICKER ================= */
.brands-ticker-wrap {
  background: var(--k-surface-2, #111318);
  border-bottom: 1px solid var(--k-border);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
.brands-ticker-track {
  display: flex;
  gap: 32px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--k-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-tick-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.7;
}

/* ================= CURRENCY SWITCHER ================= */
.currency-switcher {
  display: flex;
  gap: 2px;
  background: var(--k-surface-2, #1a1d24);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--k-border);
}
.cur-btn {
  background: none;
  border: none;
  color: var(--k-mute);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cur-btn.active {
  background: var(--k-brand);
  color: #fff;
}

/* ================= PRODUCT FLIP CARDS ================= */
.product-flip-card {
  width: 100%;
  height: 320px;
  perspective: 1200px;
  cursor: pointer;
}
.pfc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}
.product-flip-card:hover .pfc-inner {
  transform: rotateY(180deg);
}
.pfc-front, .pfc-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--k-border);
}
.pfc-front {
  background: var(--k-surface);
  display: flex;
  flex-direction: column;
}
.pfc-img-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--k-surface-2, #111318);
}
.pfc-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}
.pfc-body {
  padding: 12px 14px;
  border-top: 1px solid var(--k-border);
}
.pfc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-ink);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pfc-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--k-brand-text, #10b981);
}
.pfc-platform-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
  flex-wrap: wrap;
}
.pfc-platform-tag {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}
.pfc-delivery-badge {
  font-size: 10px;
  color: var(--k-mute);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* BACK */
.pfc-back {
  transform: rotateY(180deg);
  position: relative;
}
.pfc-back-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) blur(2px);
}
.pfc-back-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  gap: 12px;
}
.pfc-back-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.pfc-back-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--k-brand-text, #10b981);
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  padding: 4px 14px;
}
.pfc-order-btn {
  background: var(--k-brand, #10b981);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s;
  width: 100%;
  justify-content: center;
}
.pfc-order-btn:hover { transform: scale(1.03); background: #059669; }
.pfc-badge {
  background: var(--k-accent-gold, #f59e0b);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ================= SCROLL REVEAL ANIMATIONS ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ANIMATED BG ================= */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16,185,129,0.15) 0%, transparent 70%);
  animation: heroBgPulse 6s ease-in-out infinite alternate;
}
@keyframes heroBgPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ================= USER BADGE ================= */
.user-nav-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  margin-inline-start: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}
.badge-admin { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-customer { background: rgba(16,185,129,0.2); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-visitor { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }

/* ================= LAST ORDER WIDGET ================= */
.last-order-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: 16px;
  padding: 16px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideInLeft 0.4s ease;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.low-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.low-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--k-brand-text, #10b981);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.low-close {
  background: none;
  border: none;
  color: var(--k-mute);
  cursor: pointer;
  font-size: 14px;
}
.low-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-ink);
  margin-bottom: 6px;
}
.low-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.low-status.completed { background: rgba(16,185,129,0.15); color: #10b981; }
.low-status.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.low-status.rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.low-status.processing { background: rgba(59,130,246,0.15); color: #3b82f6; }
.low-price {
  font-size: 12px;
  color: var(--k-mute);
}

/* ================= CHAT MODAL ================= */
.chat-modal-box {
  max-width: 500px;
  height: 70vh;
  display: flex;
  flex-direction: column;
}
.chat-order-info {
  background: var(--k-surface-2, #111318);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--k-mute);
  margin-bottom: 12px;
  border: 1px solid var(--k-border);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
  margin-bottom: 12px;
}
.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.customer {
  background: var(--k-brand, #10b981);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.admin {
  background: var(--k-surface-2, #1a1d24);
  color: var(--k-ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--k-border);
}
.chat-msg-sender {
  font-size: 10px;
  opacity: 0.7;
  margin-bottom: 3px;
  font-weight: 700;
}
.chat-msg-time {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 3px;
  text-align: end;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--k-border);
  padding-top: 12px;
}
.chat-input-row .form-input { flex: 1; }

/* ================= GOOGLE ACCOUNT CHOOSER (Pixel-Perfect Dark UI) ================= */
.gac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gacFadeIn 0.2s ease;
}
@keyframes gacFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gac-window-card {
  width: 100%;
  max-width: 440px;
  background: #1f1f1f;
  color: #e3e3e3;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Google Sans", "Segoe UI", Roboto, "Cairo", sans-serif;
  direction: rtl;
  text-align: right;
  animation: gacSlideUp 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
}
@keyframes gacSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.gac-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 8px;
}
.gac-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e3e3e3;
  font-weight: 500;
}
.gac-close-btn {
  background: none;
  border: none;
  color: #9aa0a6;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.15s;
}
.gac-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.gac-app-badge {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 12px;
}
.gac-main-title {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  color: #f1f3f4;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.gac-sub-heading {
  text-align: center;
  font-size: 14px;
  color: #bdc1c6;
  margin-bottom: 22px;
}
.gac-list-container {
  display: flex;
  flex-direction: column;
}
.gac-item-row {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  user-select: none;
}
.gac-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.gac-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.gac-av-photo {
  background: #1a73e8;
}
.gac-av-other {
  background: transparent;
  border: 1px solid #5f6368;
}
.gac-item-texts {
  flex: 1;
  min-width: 0;
}
.gac-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #e8eaed;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gac-user-email {
  font-size: 12px;
  color: #9aa0a6;
  font-family: var(--font-en), sans-serif;
  direction: ltr;
  text-align: right;
}
.gac-line-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.gac-footer-note {
  padding: 14px 24px;
  font-size: 11px;
  color: #9aa0a6;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gac-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #181818;
  font-size: 11px;
  color: #9aa0a6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
