/* ============================================================
   Mark Tech SMM Panel — Main Stylesheet
   الألوان: كحلي #1a2057 | ذهبي #C9A84C
   الخط: Cairo (Arabic)
   ============================================================ */

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

/* ============================================================
   CSS Custom Properties (Design Tokens — Dark & Light Themes)
   الألوان الأساسية مستوحاة حصرياً من هوية اللوجو:
   الكحلي الملكي (#0d1433 / #1a2057) والذهبي الأصيل (#C9A84C / #E8C96A)
   ============================================================ */
:root, [data-theme="dark"] {
  /* Brand Colors (Fixed from Logo Identity) */
  --navy:        #1a2057;
  --navy-dark:   #0d1433;
  --navy-light:  #243070;
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-dark:   #A07830;
  --gold-ultra:  #f5e29f;

  /* True fixed colors — NEVER change these based on theme */
  --white:       #ffffff;   /* always pure white — use for text ON dark, not as background */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Status */
  --success:     #22c55e;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --info:        #3b82f6;

  /* Dark Theme Surfaces (Deep Royal Navy Glassmorphism) */
  --bg-main:     #080d24;
  --bg-card:     #0f1638;
  --bg-card-sub: #141c46;
  --bg-hover:    #1a245a;

  --surface-white: #0f1638;
  --off-white:   #080d24;
  --gray-50:     #131a42;
  --gray-100:    #1a2356;
  --gray-200:    #263374;
  --gray-400:    #7b87b8;
  --gray-600:    #94a3b8;
  --gray-800:    #cbd5e1;
  --text-dark:   #ffffff;  /* High contrast pure crisp white in dark mode */
  --text-main:   #ffffff;  /* Universal text-main definition */
  --text-muted:  #cbd5e1;  /* Readable light slate */
  --gold-text:   var(--gold-light);

  --border-color: rgba(201, 168, 76, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --grad-navy:   linear-gradient(135deg, #0d1433 0%, #1a2057 50%, #243070 100%);
  --grad-gold:   linear-gradient(135deg, #A07830 0%, #C9A84C 50%, #E8C96A 100%);
  --grad-hero:   linear-gradient(135deg, #080d24 0%, #0d1433 50%, #1a2057 100%);
  --grad-card:   linear-gradient(145deg, #0f1638 0%, #131a42 100%);
  --grad-glow:   radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.15), transparent 70%);

  /* Shadows */
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.35);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.55);
  --shadow-xl:   0 20px 70px rgba(0,0,0,0.65);
  --shadow-gold: 0 4px 25px rgba(201,168,76,0.35);

  /* Border Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Typography */
  --font:        'Cairo', sans-serif;
  --fs-xs:       0.75rem;
  --fs-sm:       0.875rem;
  --fs-base:     1rem;
  --fs-lg:       1.125rem;
  --fs-xl:       1.25rem;
  --fs-2xl:      1.5rem;
  --fs-3xl:      1.875rem;
  --fs-4xl:      2.25rem;
  --fs-5xl:      3rem;

  /* Transitions */
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Sidebar width */
  --sidebar-w:   260px;
}

[data-theme="light"] {
  /* Brand High-Contrast Golden Bronze (AAA/AA accessible on white surfaces) */
  --gold:        #966f12;
  --gold-light:  #7c5a08;
  --gold-dark:   #634504;
  --gold-ultra:  #3d2800;
  --gold-text:   #855d0f;

  --navy:        #1e293b;
  --navy-dark:   #0f172a;
  --navy-light:  #334155;

  /* Light Theme Surfaces (Supreme Clarity, Pure Whites & Gentle Slates) */
  --bg-main:     #f8fafc;
  --bg-card:     #ffffff;
  --bg-card-sub: #f1f5f9;
  --bg-hover:    #e2e8f0;

  --surface-white: #ffffff;
  --off-white:   #f8fafc;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text-dark:   #0f172a;  /* Super crisp black-navy in light mode */
  --text-main:   #0f172a;  /* High contrast readable text */
  --text-muted:  #475569;  /* Deep readable slate */

  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;

  --grad-card:   linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --grad-hero:   linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --grad-navy:   linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --grad-gold:   linear-gradient(135deg, #b48518 0%, #966f12 50%, #7c5a08 100%);

  --shadow-sm:   0 2px 8px rgba(15,23,42,0.06);
  --shadow-md:   0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg:   0 8px 40px rgba(15,23,42,0.12);
  --shadow-xl:   0 16px 60px rgba(15,23,42,0.16);
  --shadow-gold: 0 4px 20px rgba(150, 111, 18, 0.22);
}

/* ============================================================
   Light Mode Global High-Contrast Overrides
   ============================================================ */
[data-theme="light"] body {
  color: #0f172a !important;
  background-color: #f8fafc !important;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6,
[data-theme="light"] .form-label,
[data-theme="light"] label,
[data-theme="light"] .order-field-label,
[data-theme="light"] .table-header h4,
[data-theme="light"] .dash-topbar-title h4 {
  color: #0f172a !important;
  font-weight: 800;
}

[data-theme="light"] .form-control,
[data-theme="light"] .order-input,
[data-theme="light"] .order-select,
[data-theme="light"] .order-search-input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .order-input:focus,
[data-theme="light"] .order-select:focus,
[data-theme="light"] .order-search-input:focus {
  background: #ffffff !important;
  border-color: var(--gold) !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(150, 111, 18, 0.22) !important;
}

[data-theme="light"] select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .card,
[data-theme="light"] .order-main-card,
[data-theme="light"] .table-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .card-header {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .card-title {
  color: #0f172a !important;
}

[data-theme="light"] thead tr,
[data-theme="light"] thead th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  font-weight: 800;
}

[data-theme="light"] tbody tr {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] tbody td {
  color: #0f172a !important;
}

[data-theme="light"] tbody tr:hover {
  background: #f8fafc !important;
}

/* Header, Navbar & Mobile Drawer */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .navbar.navbar-transparent {
  background: rgba(255, 255, 255, 0.95) !important;
}
[data-theme="light"] .navbar .nav-link {
  color: #0f172a !important;
}
[data-theme="light"] .navbar .nav-link:hover {
  background: #f1f5f9 !important;
  color: var(--gold) !important;
}
[data-theme="light"] .navbar .nav-link.active {
  background: rgba(150, 111, 18, 0.12) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(150, 111, 18, 0.25) !important;
}
[data-theme="light"] .hamburger span {
  background: #0f172a !important;
}
[data-theme="light"] .mobile-menu {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .mobile-menu-header {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .mobile-menu-close {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .mobile-menu-link {
  color: #0f172a !important;
}
[data-theme="light"] .mobile-menu-link:hover {
  background: #f1f5f9 !important;
  color: var(--gold) !important;
}
[data-theme="light"] .mobile-menu-link.active {
  background: rgba(150, 111, 18, 0.12) !important;
  color: var(--gold) !important;
}

/* Sidebar in Light Mode */
[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -4px 0 25px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .sidebar-brand {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .sidebar-section-label {
  color: #64748b !important;
}
[data-theme="light"] .sidebar-item {
  color: #334155 !important;
}
[data-theme="light"] .sidebar-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .sidebar-item.active {
  background: rgba(150, 111, 18, 0.12) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(150, 111, 18, 0.25) !important;
}
[data-theme="light"] .sidebar-balance {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .sidebar-balance .balance-label {
  color: #475569 !important;
}
[data-theme="light"] .sidebar-balance .balance-value {
  color: var(--gold) !important;
}
[data-theme="light"] .sidebar-balance .balance-currency {
  color: #64748b !important;
}
[data-theme="light"] .sidebar-footer {
  border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .sidebar-username {
  color: #0f172a !important;
}
[data-theme="light"] .sidebar-role {
  color: #64748b !important;
}
[data-theme="light"] .sidebar-user:hover {
  background: #f1f5f9 !important;
}

/* Dashboard Topbar & Controls */
[data-theme="light"] .dash-topbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .notif-bell,
[data-theme="light"] .currency-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .notif-bell:hover,
[data-theme="light"] .currency-btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .currency-code {
  color: var(--gold) !important;
}
[data-theme="light"] .currency-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
}
[data-theme="light"] .currency-dropdown-item {
  color: #0f172a !important;
}
[data-theme="light"] .currency-dropdown-item:hover,
[data-theme="light"] .currency-dropdown-item.active {
  background: #f1f5f9 !important;
  color: var(--gold) !important;
}
[data-theme="light"] .topbar-balance-pill {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .topbar-balance-pill:hover {
  background: var(--gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
}
[data-theme="light"] .topbar-balance-pill:hover .topbar-balance-val {
  color: #ffffff !important;
}
[data-theme="light"] .topbar-balance-val {
  color: var(--gold) !important;
}
[data-theme="light"] .notif-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .notif-header {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
  color: #0f172a !important;
}
[data-theme="light"] .notif-header h5 {
  color: #0f172a !important;
}
[data-theme="light"] .notif-header-count {
  background: rgba(150, 111, 18, 0.12) !important;
  color: var(--gold) !important;
  border-color: rgba(150, 111, 18, 0.3) !important;
}
[data-theme="light"] .btn-mark-all-read {
  color: var(--gold) !important;
}
[data-theme="light"] .notif-item {
  border-bottom-color: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .notif-item:hover {
  background: #f8fafc !important;
}
[data-theme="light"] .notif-title {
  color: #0f172a !important;
}
[data-theme="light"] .notif-msg {
  color: #475569 !important;
}
[data-theme="light"] .notif-time {
  color: #64748b !important;
}

/* Homepage Hero & Login Card */
[data-theme="light"] .hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%) !important;
}
[data-theme="light"] .hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
}
[data-theme="light"] .hero-subtitle {
  color: #334155 !important;
  text-shadow: none !important;
}
[data-theme="light"] .hero-badge {
  background: rgba(150, 111, 18, 0.1) !important;
  border-color: rgba(150, 111, 18, 0.25) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .btn-outline-white {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .btn-outline-white:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .hero-stats-bar {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .hero-stat-item:not(:last-child)::after {
  background: #e2e8f0 !important;
}
[data-theme="light"] .hero-stat-value {
  color: var(--gold) !important;
}
[data-theme="light"] .hero-stat-label {
  color: #475569 !important;
  font-weight: 700 !important;
}
[data-theme="light"] .hero-login-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.1) !important;
}
[data-theme="light"] .hero-login-card h3 {
  color: #0f172a !important;
}
[data-theme="light"] .hero-login-card p.subtitle {
  color: #475569 !important;
}
[data-theme="light"] .hero-login-card .form-label {
  color: #0f172a !important;
}
[data-theme="light"] .hero-login-card .form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .hero-login-card .form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(150, 111, 18, 0.2) !important;
}
[data-theme="light"] .login-forgot a,
[data-theme="light"] .login-link {
  color: var(--gold) !important;
}
[data-theme="light"] .login-divider {
  color: #64748b !important;
}

/* Order Descriptions & Guidelines */
[data-theme="light"] .order-desc-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .desc-item-line {
  color: #0f172a !important;
}
[data-theme="light"] .desc-label {
  color: #0f172a !important;
  font-weight: 800 !important;
}
[data-theme="light"] .desc-value {
  color: #1e293b !important;
  font-weight: 700 !important;
}
[data-theme="light"] .desc-custom-notes,
[data-theme="light"] .desc-notes-wrap {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
[data-theme="light"] .desc-notes-wrap div {
  color: #1e293b !important;
}
[data-theme="light"] .desc-guidelines-wrap {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}
[data-theme="light"] .guidelines-heading {
  color: #b91c1c !important;
  font-weight: 800 !important;
}
[data-theme="light"] .guideline-row {
  color: #1e293b !important;
}
[data-theme="light"] .guideline-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}
[data-theme="light"] .order-readonly-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .order-cost-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .cost-amount {
  color: #0f172a !important;
}
[data-theme="light"] .cost-rate-sub,
[data-theme="light"] .cost-balance-hint {
  color: #475569 !important;
}
[data-theme="light"] .custom-svc-trigger {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .custom-svc-selected-text {
  color: #0f172a !important;
  font-weight: 700 !important;
}
[data-theme="light"] .custom-svc-placeholder {
  color: #64748b !important;
}
[data-theme="light"] .custom-svc-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .custom-svc-search-box {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .custom-svc-search-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .custom-svc-item {
  border-bottom-color: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .custom-svc-item:hover {
  background: #f1f5f9 !important;
}
[data-theme="light"] .custom-svc-item.active {
  background: #f8fafc !important;
}
[data-theme="light"] .custom-svc-item-title {
  color: #0f172a !important;
}
[data-theme="light"] .custom-svc-item-meta {
  color: #475569 !important;
}
[data-theme="light"] .metric-card-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .metric-card-val {
  color: #0f172a !important;
}
[data-theme="light"] .filter-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme="light"] .filter-btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .filter-btn.active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
[data-theme="light"] .badge-navy {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .badge-gray {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .badge-gold {
  background: rgba(150, 111, 18, 0.12) !important;
  border-color: rgba(150, 111, 18, 0.3) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .badge-success {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #15803d !important;
}
[data-theme="light"] .badge-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #b45309 !important;
}
[data-theme="light"] .badge-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #b91c1c !important;
}
[data-theme="light"] .badge-info {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #1d4ed8 !important;
}

/* Stat Cards & Actions */
[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .stat-card:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .stat-card .stat-value {
  color: #0f172a !important;
}
[data-theme="light"] .stat-card .stat-label {
  color: #475569 !important;
}
[data-theme="light"] .action-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .action-card:hover {
  background: #f8fafc !important;
  border-color: var(--gold) !important;
}
[data-theme="light"] .action-card-title {
  color: #0f172a !important;
}
[data-theme="light"] .action-card-desc {
  color: #475569 !important;
}
[data-theme="light"] .dash-platform-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme="light"] .dash-platform-pill:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .dash-platform-pill.active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
}

/* Pagination */
[data-theme="light"] .page-item {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .page-item:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .page-item.active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
}

/* Platform Tabs */
[data-theme="light"] .platform-tab {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme="light"] .platform-tab:hover {
  background: #f1f5f9 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .platform-tab.active {
  background: var(--gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
}

/* Modals */
[data-theme="light"] .quick-calc-modal-backdrop {
  background: rgba(15, 23, 42, 0.6) !important;
}
[data-theme="light"] .quick-calc-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}
[data-theme="light"] .calc-cost-display {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .quick-calc-close {
  color: #64748b !important;
}
[data-theme="light"] .quick-calc-close:hover {
  color: #ef4444 !important;
}

/* Miscellaneous Sections */
[data-theme="light"] .affiliate-stat-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .affiliate-stat-value {
  color: var(--gold) !important;
}
[data-theme="light"] .counter-section {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .counter-value {
  color: var(--gold) !important;
}
[data-theme="light"] .counter-label {
  color: #475569 !important;
}
[data-theme="light"] .step-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .step-card h3 {
  color: #0f172a !important;
}
[data-theme="light"] .step-card p {
  color: #475569 !important;
}
[data-theme="light"] .payment-badge {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .faq-btn {
  color: #0f172a !important;
}
[data-theme="light"] .faq-body {
  color: #334155 !important;
}

/* Auth Page in Light Mode */
[data-theme="light"] .auth-page {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%) !important;
}
[data-theme="light"] .auth-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
[data-theme="light"] .auth-title {
  color: #0f172a !important;
}
[data-theme="light"] .auth-subtitle {
  color: #475569 !important;
}
[data-theme="light"] .auth-card .form-label {
  color: #0f172a !important;
}
[data-theme="light"] .auth-card .form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .auth-card .form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(150, 111, 18, 0.2) !important;
}
[data-theme="light"] .auth-card label {
  color: #334155 !important;
}

/* API Docs in Light Mode */
[data-theme="light"] .api-section {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .api-section-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .api-section-header h4 {
  color: #0f172a !important;
}
[data-theme="light"] pre.code-block {
  background: #0f172a !important;
  color: #38bdf8 !important;
  border: 1px solid #1e293b !important;
}
[data-theme="light"] .platform-card-icon {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .sidebar-logout-btn {
  color: #64748b !important;
}
[data-theme="light"] .sidebar-logout-btn:hover {
  color: #ef4444 !important;
}

/* ============================================================
   Light Mode Homepage & Public Showcase Enhancements
   ============================================================ */
/* 1. CTA Section in Light Mode: High-Contrast Luxury Navy & Gold Card */
[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="light"] .cta-section h2 {
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}
[data-theme="light"] .cta-section p {
  color: #cbd5e1 !important;
}
[data-theme="light"] .cta-section .btn-outline-white {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
[data-theme="light"] .cta-section .btn-outline-white:hover {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* 2. Social Offers Section */
[data-theme="light"] .social-carousel-section {
  background: #f8fafc !important;
}
[data-theme="light"] .carousel-section-head h2 {
  color: #0f172a !important;
}
[data-theme="light"] .carousel-section-head p {
  color: #475569 !important;
}
[data-theme="light"] .carousel-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: var(--gold) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .carousel-btn:hover {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
}

/* 3. Platform Carousel Cards */
[data-theme="light"] .platform-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .platform-card:hover,
[data-theme="light"] .platform-card.active {
  background: #ffffff !important;
  border-color: var(--gold) !important;
  box-shadow: 0 10px 30px rgba(150, 111, 18, 0.18) !important;
}
[data-theme="light"] .platform-card-icon {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .platform-card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}
[data-theme="light"] .platform-card-tag {
  color: var(--gold) !important;
  font-weight: 800 !important;
}
[data-theme="light"] .platform-card-count {
  color: #475569 !important;
  font-weight: 600 !important;
}
[data-theme="light"] .platform-card-action {
  border-top-color: #f1f5f9 !important;
  color: #475569 !important;
}
[data-theme="light"] .platform-card:hover .platform-card-action,
[data-theme="light"] .platform-card.active .platform-card-action {
  color: var(--gold) !important;
}

/* 4. Platform Filter Pills */
[data-theme="light"] .platform-tab-pill {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .platform-tab-pill:hover {
  background: #f8fafc !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: translateY(-2px);
}
[data-theme="light"] .platform-tab-pill.active {
  background: var(--grad-gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
  box-shadow: 0 6px 18px rgba(150, 111, 18, 0.3) !important;
}

/* 5. Offer Cards */
[data-theme="light"] .offer-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .offer-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12) !important;
}
[data-theme="light"] .offer-platform-tag {
  color: #0f172a !important;
}
[data-theme="light"] .offer-badge-tag {
  background: rgba(150, 111, 18, 0.1) !important;
  border-color: rgba(150, 111, 18, 0.25) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .offer-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}
[data-theme="light"] .offer-desc {
  color: #475569 !important;
}
[data-theme="light"] .offer-specs {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .offer-spec-item {
  color: #475569 !important;
}
[data-theme="light"] .offer-spec-item strong {
  color: #0f172a !important;
}
[data-theme="light"] .offer-price-box .offer-price-label {
  color: #64748b !important;
}
[data-theme="light"] .offer-price-box .offer-price-val .amount {
  color: var(--gold) !important;
  font-weight: 900 !important;
}
[data-theme="light"] .offer-price-box .offer-price-val .curr {
  color: #475569 !important;
}
[data-theme="light"] .btn-quick-calc {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme="light"] .btn-quick-calc:hover {
  background: var(--gold) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
}

/* 6. Explore More Banner */
[data-theme="light"] .explore-all-inner {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .explore-all-inner h3 {
  color: #0f172a !important;
}
[data-theme="light"] .explore-all-inner p {
  color: #475569 !important;
}

/* 7. Steps Section */
[data-theme="light"] .steps-section {
  background: #ffffff !important;
}
[data-theme="light"] .step-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .step-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .step-number {
  color: rgba(150, 111, 18, 0.3) !important;
}

/* 8. Why Us Section */
[data-theme="light"] .features-section {
  background: #f8fafc !important;
}
[data-theme="light"] .why-us-visual {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .why-us-stat-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .why-us-stat-box:hover {
  border-color: var(--gold) !important;
  background: #ffffff !important;
}
[data-theme="light"] .feature-icon {
  background: rgba(150, 111, 18, 0.12) !important;
  border-color: rgba(150, 111, 18, 0.25) !important;
  color: var(--gold) !important;
}
[data-theme="light"] .feature-content h4 {
  color: #0f172a !important;
  font-weight: 800 !important;
}
[data-theme="light"] .feature-content p {
  color: #475569 !important;
}

/* 9. Payment Gateways Section */
[data-theme="light"] .payment-badge {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .payment-badge:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 6px 18px rgba(150, 111, 18, 0.15) !important;
}

/* 10. FAQ Section */
[data-theme="light"] .faq-section {
  background: #f8fafc !important;
}
[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
[data-theme="light"] .faq-item.active {
  border-color: var(--gold) !important;
  box-shadow: 0 4px 20px rgba(150, 111, 18, 0.12) !important;
}
[data-theme="light"] .faq-btn {
  color: #0f172a !important;
  font-weight: 800 !important;
}
[data-theme="light"] .faq-body {
  color: #334155 !important;
  border-top-color: #f1f5f9 !important;
}

/* 11. Quick Calculator Modal */
[data-theme="light"] .quick-calc-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25) !important;
}
[data-theme="light"] .quick-calc-header {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .quick-calc-icon {
  background: rgba(150, 111, 18, 0.1) !important;
  color: var(--gold) !important;
}
[data-theme="light"] #calcServiceTitle {
  color: #0f172a !important;
}
[data-theme="light"] .calc-cost-display {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}
[data-theme="light"] #calcRateDisplay {
  color: #0f172a !important;
}
[data-theme="light"] #calcTotalDisplay {
  color: var(--gold) !important;
}

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

code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-card-sub);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

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

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  text-align: right;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ============================================================
   Typography (Crystal-Clear Contrast in Dark & Light)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

.text-gold   { color: var(--gold) !important; }
.text-navy   { color: var(--navy) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-success{ color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-center { text-align: center; }
.fw-bold     { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm   { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.container-lg   { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
/* Display Utilities */
.d-none         { display: none !important; }
.d-block        { display: block !important; }
.d-inline       { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-flex         { display: flex !important; }
.d-grid         { display: grid !important; }

.align-center   { align-items: center; }
.align-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.flex-col       { flex-direction: column; }
.gap-1          { gap: 8px; }
.gap-2          { gap: 16px; }
.gap-3          { gap: 24px; }
.gap-4          { gap: 32px; }
.w-100          { width: 100%; }
.h-100          { height: 100%; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-0  { padding: 0 !important; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   Grid System (Zero Overflow Guarantee)
   ============================================================ */
.grid { display: grid; gap: 20px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Section Header
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header .badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-header h2 { margin-bottom: 12px; color: var(--text-dark); font-weight: 900; }
.section-header p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 550px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 4px;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--grad-gold);
  color: var(--navy-dark) !important;
  box-shadow: var(--shadow-gold);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  color: var(--navy-dark) !important;
}

.btn-navy {
  background: var(--grad-navy);
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,168,76,0.3);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--gold-light) !important;
  border-color: var(--gold);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold) !important;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark) !important;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(201, 168, 76, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-outline-white:hover {
  background: var(--grad-gold) !important;
  color: var(--navy-dark) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 40px; font-size: var(--fs-lg); border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: white !important; border-color: var(--danger); }
.btn-success{ background: var(--success); color: white !important; border-color: var(--success); }
.btn-icon   { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-sm); }

.btn:disabled, .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-dark);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--gold); }
.card-body  { padding: 28px; }
.card-header{
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3, .card-header h4 { margin: 0; font-size: var(--fs-lg); color: var(--text-dark); }
.card-footer{
  padding: 16px 28px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card-sub);
}

/* Glass Card */
.card-glass {
  background: rgba(15, 22, 56, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  color: var(--text-dark);
}

/* Stat Card */
.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  border-right: 4px solid var(--gold);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
}
/* stat-value and stat-label use CSS variables — works in both light & dark */
.stat-card .stat-value {
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* Action Cards on Dashboard */
.action-card-title {
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 6px;
}
.action-card-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

/* New-order balance display */
.balance-display-value {
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

/* Affiliate stats boxes */
.affiliate-stat-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.affiliate-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}
/* label text inside form */
.form-label-strong {
  font-weight: 700;
  color: var(--text-dark);
}
/* drip-feed note text */
.drip-note {
  color: var(--text-dark);
}
/* price preview row */
.price-label {
  font-weight: 700;
  color: var(--text-dark);
}
.price-balance {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-dark);
}


/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--gray-800);
  margin-bottom: 8px;
}
.form-label span.required { color: var(--danger); margin-right: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--text-dark);
  background: var(--bg-card-sub);
  transition: var(--transition);
  outline: none;
  direction: rtl;
  text-align: right;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
  background: var(--bg-card);
}
.form-control::placeholder { color: var(--gray-400); opacity: 1; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }
/* Light-mode keeps white fields */
[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: rgba(26,32,87,0.18);
  color: #0d1433;
}
[data-theme="light"] .form-control:focus {
  background: #fafbff;
  border-color: var(--gold);
}
[data-theme="light"] .form-control::placeholder { color: #9099c0; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a2057'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 18px;
  padding-left: 40px;
}

.form-text { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 6px; }
.invalid-feedback { font-size: var(--fs-xs); color: var(--danger); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* WebKit / Chrome Autofill Overhaul */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-dark) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-card-sub) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] textarea:-webkit-autofill,
[data-theme="light"] select:-webkit-autofill {
  -webkit-text-fill-color: #0d1433 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}
.hero-login-card input:-webkit-autofill,
.hero-login-card input:-webkit-autofill:hover,
.hero-login-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #090e28 inset !important;
}

/* ============================================================
   Navbar (Public)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 20, 51, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.navbar.navbar-transparent { background: transparent; }
.navbar.navbar-solid {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
}

.navbar-brand-nav-group {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Brand Logo Container (Pure White Box with Luxury Gold Border) ---- */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  min-width: 76px;
  padding: 3px;
  background: #ffffff !important;
  border: 3px solid var(--gold) !important;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(201, 168, 76, 0.4);
  transition: var(--transition);
  flex-shrink: 0;
  box-sizing: border-box;
}
.brand-logo-wrap:hover {
  border-color: var(--gold-light) !important;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.7), 0 0 32px rgba(201, 168, 76, 0.6);
  transform: translateY(-2px) scale(1.05);
}
.brand-logo-wrap img,
.brand-logo-wrap .brand-logo-img {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.sidebar-brand .brand-logo-wrap {
  width: 74px;
  height: 74px;
  min-width: 74px;
  padding: 3px;
  border-radius: 18px;
}
.sidebar-brand .brand-logo-img,
.sidebar-brand .brand-logo-wrap img {
  width: 66px !important;
  height: 66px !important;
  max-width: 66px !important;
  max-height: 66px !important;
}

/* ---- Brand Header Text Typography (MARKTECH.ONLINE) ---- */
.brand-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}
.brand-name-main {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 50%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(201, 168, 76, 0.35);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}
.brand-name-dot {
  font-family: inherit;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: inherit;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  direction: ltr !important;
  opacity: 1;
}
.sidebar-brand .brand-name-main {
  font-size: 1.05rem;
}

/* ---- Theme Toggle Button ---- */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.theme-toggle-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  color: #ffffff;
  transform: rotate(15deg) scale(1.06);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.3);
}

/* ---- Topbar Balance Pill (Always visible on mobile & desktop topbar) ---- */
.topbar-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.15);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.topbar-balance-pill:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}
.topbar-balance-val {
  color: var(--gold-light);
  font-weight: 900;
}
.topbar-balance-pill:hover .topbar-balance-val {
  color: var(--navy-dark);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  padding: 8px 18px;
  color: #f1f5f9 !important;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--gold-light) !important;
  background: rgba(201, 168, 76, 0.12);
}
.nav-link.active {
  color: var(--gold-light) !important;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.navbar-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}


/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Animated background shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; left: -200px;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--gold-light);
  bottom: -100px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.9);
  top: 30%; right: 20%;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-30px) rotate(5deg); }
}

/* Grid dots pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,168,76,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .highlight {
  color: var(--gold-light) !important;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(201, 168, 76, 0.35));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0 !important;
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.3s both;
}

/* Hero Stats Bar (Full Width Below Grid) */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding: 24px 32px;
  background: rgba(13, 20, 51, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.1);
  position: relative;
  z-index: 5;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  position: relative;
}
.hero-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(201, 168, 76, 0.25);
}
.hero-stat-value {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 900;
  color: var(--gold-light) !important;
  line-height: 1.1;
  display: block;
  font-family: var(--font);
  text-shadow: 0 0 18px rgba(201, 168, 76, 0.35);
}
.hero-stat-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #ffffff !important;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }
}

/* Login Form on Hero (Senior Grade High-Contrast Glass) */
.hero-login-card {
  background: rgba(13, 20, 51, 0.92) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.15);
  animation: fadeInRight 0.8s ease 0.2s both;
  position: relative;
}
.hero-login-card .form-control {
  background: rgba(8, 13, 36, 0.85) !important;
  border: 1.5px solid rgba(201, 168, 76, 0.3) !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-md);
}
.hero-login-card .form-control::placeholder { color: #94a3b8 !important; }
.hero-login-card .form-control:focus {
  border-color: var(--gold-light) !important;
  background: rgba(8, 13, 36, 0.98) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.35) !important;
}
.hero-login-card .form-label { color: #ffffff !important; font-weight: 700; font-size: 0.88rem; }
.hero-login-card h3 { color: #ffffff !important; margin-bottom: 6px; font-size: var(--fs-2xl); font-weight: 900; text-align: center; }
.hero-login-card p.subtitle { color: #cbd5e1 !important; font-size: 0.88rem; margin-bottom: 24px; text-align: center; }
.login-link { color: var(--gold-light) !important; font-weight: 800; }
.login-link:hover { color: #ffffff !important; text-decoration: underline; }
.login-forgot { text-align: left; margin-bottom: 20px; }
.login-forgot a { font-size: 0.85rem; color: var(--gold-light) !important; font-weight: 700; }
.login-forgot a:hover { color: #ffffff !important; text-decoration: underline; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #cbd5e1 !important;
  font-size: 0.82rem;
  font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.25);
}

/* ============================================================
   Services Section
   ============================================================ */
.services-section { padding: 90px 0; background: var(--bg-main); }

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card h4 { font-size: var(--fs-lg); margin-bottom: 8px; color: var(--text-dark); font-weight: 800; }
.service-card p  { font-size: var(--fs-sm); color: var(--text-muted); }

/* ============================================================
   Features / Why Us Section
   ============================================================ */
.features-section { padding: 90px 0; background: var(--bg-card-sub); }

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-light);
  flex-shrink: 0;
}
.feature-content h4 { font-size: var(--fs-base); font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.feature-content p  { font-size: var(--fs-sm); color: var(--text-muted); }

/* ============================================================
   Counter Section
   ============================================================ */
.counter-section {
  padding: 80px 0;
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
}
.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.counter-item { text-align: center; position: relative; z-index: 1; }
.counter-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.counter-label { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-section { padding: 90px 0; background: var(--bg-main); }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  right: 24px;
  line-height: 1;
}
.testimonial-text { font-size: var(--fs-base); color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 800;
  font-size: var(--fs-lg);
  border: 1px solid rgba(201,168,76,0.3);
}
.testimonial-name { font-weight: 800; color: var(--text-dark); font-size: var(--fs-sm); }
.testimonial-role { font-size: var(--fs-xs); color: var(--text-muted); }
.stars { color: var(--gold); font-size: var(--fs-sm); margin-bottom: 12px; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--grad-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #ffffff !important; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 16px; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.cta-section p  { color: #cbd5e1 !important; font-size: var(--fs-lg); margin-bottom: 36px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}
.footer-brand img  { height: 50px; margin-bottom: 16px; }
.footer-brand p    { font-size: var(--fs-sm); line-height: 1.8; max-width: 280px; color: #94a3b8; }
.footer-heading    { font-size: var(--fs-base); font-weight: 800; color: #ffffff; margin-bottom: 20px; }
.footer-links li   { margin-bottom: 10px; }
.footer-links a    { color: #94a3b8; font-size: var(--fs-sm); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-right: 4px; }
.footer-divider { border-color: rgba(201, 168, 76, 0.15); margin: 30px 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy   { font-size: var(--fs-xs); color: #64748b; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: var(--fs-base);
  transition: var(--transition);
  border: 1px solid rgba(201,168,76,0.2);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-2px); border-color: var(--gold); }

/* ============================================================
   Dashboard Layout (Sidebar)
   ============================================================ */
.dash-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--grad-navy);
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: var(--transition);
  box-shadow: -4px 0 30px rgba(0,0,0,0.35);
  border-left: 1px solid rgba(201, 168, 76, 0.25);
}
.sidebar-brand {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-brand .brand-logo-wrap {
  width: 74px;
  height: 74px;
  min-width: 74px;
  padding: 3px;
  border-radius: 18px;
}
.sidebar-brand .brand-logo-wrap img {
  width: 66px !important;
  height: 66px !important;
  max-width: 66px !important;
  max-height: 66px !important;
}
.sidebar-brand-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.sidebar-brand-text span { color: var(--gold-light); }

.sidebar-nav { flex: 1; padding: 20px 14px; overflow-y: auto; }
.sidebar-section { margin-bottom: 30px; }
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.65);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 3px;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.sidebar-item.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.1));
  color: var(--gold-light);
  font-weight: 700;
  border: 1px solid rgba(201,168,76,0.3);
}
.sidebar-item .sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: var(--fs-base);
}
.sidebar-item .sidebar-badge {
  margin-right: auto;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

/* Balance widget in sidebar */
.sidebar-balance {
  margin: 0 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06));
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.sidebar-balance .balance-label { font-size: var(--fs-xs); color: #cbd5e1; margin-bottom: 4px; font-weight: 600; }
.sidebar-balance .balance-value { font-size: var(--fs-2xl); font-weight: 900; color: var(--gold-light); }
.sidebar-balance .balance-currency { font-size: var(--fs-sm); color: #94a3b8; }

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.06); }
.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: var(--fs-base);
  flex-shrink: 0;
}
.sidebar-username { font-size: var(--fs-sm); font-weight: 700; color: #ffffff; }
.sidebar-role     { font-size: var(--fs-xs); color: #94a3b8; }

/* Main content area */
.dash-main {
  margin-right: var(--sidebar-w);
  flex: 1 1 auto;
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Top navbar (dashboard) */
.dash-topbar {
  height: 68px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.dash-topbar-title h4 { font-size: var(--fs-lg); color: var(--text-dark); font-weight: 800; margin: 0; }
.dash-topbar-title p  { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.dash-topbar-actions  { display: flex; align-items: center; gap: 12px; }

/* Notification Center */
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Topbar Action Buttons: Theme Toggle & Notification Bell */
.theme-toggle-btn, .notif-bell {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: var(--radius-md) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border-color) !important;
  color: var(--gold) !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  outline: none !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
.theme-toggle-btn:hover, .notif-bell:hover {
  background: var(--bg-hover) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.25);
}

.notif-badge {
  position: absolute;
  top: -4px; left: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid var(--bg-card);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Notifications Dropdown Panel */
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  z-index: 1050;
  overflow: hidden;
}
.notif-dropdown.show, .notif-dropdown:not(.d-none) {
  display: block !important;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  padding: 14px 18px;
  background: var(--bg-card-sub);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.notif-header-count {
  background: rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-mark-all-read {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.btn-mark-all-read:hover {
  color: #ffffff;
  text-decoration: underline;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition-fast);
  position: relative;
}
.notif-item:hover {
  background: var(--bg-hover);
}
.notif-item.unread {
  background: rgba(201, 168, 76, 0.08);
}
.notif-item.unread::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.notif-icon.info    { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.notif-icon.success { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
.notif-icon.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.notif-icon.error   { background: rgba(239, 68, 68, 0.15);  color: #f87171; }

.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-time {
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--text-muted);
}
.notif-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.notif-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
}
.notif-empty i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
  opacity: 0.8;
}
.notif-empty p {
  font-size: 0.85rem;
  margin: 0;
}

.notif-loading {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating Contact Integration (WhatsApp / Telegram) */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-contact-btn a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: var(--transition);
  text-decoration: none;
}
.floating-contact-btn a:hover {
  transform: scale(1.1) translateY(-3px);
}
.floating-whatsapp { background: #25D366; }
.floating-telegram { background: #0088cc; }

.dash-content { flex: 1; padding: 28px; background: var(--bg-main); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.table-header h4 { margin: 0; font-size: var(--fs-lg); color: var(--text-dark); font-weight: 800; }
.table-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
thead tr { background: var(--bg-card-sub); }
thead th {
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td {
  padding: 14px 16px;
  color: var(--text-dark);
  vertical-align: middle;
}

/* ============================================================
   Badges / Status
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.badge-gold     { background: rgba(201,168,76,0.15); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.3); }
.badge-navy     { background: rgba(26,32,87,0.4); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.1); }
.badge-success  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-danger   { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-warning  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-info     { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-gray     { background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border-subtle); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.active    { background: var(--success); }
.status-dot.pending   { background: var(--warning); animation: pulse 2s infinite; }
.status-dot.inactive  { background: var(--danger); }

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-sm);
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-icon { font-size: var(--fs-lg); flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34,197,94,0.12);  border-color: rgba(34,197,94,0.3);  color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fbbf24; }
.alert-info    { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.alert-close {
  margin-right: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: var(--fs-lg);
  line-height: 1;
  padding: 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  flex-wrap: wrap;
}
.page-item {
  min-width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.page-item:hover { border-color: var(--gold); color: var(--gold-light); }
.page-item.active { background: var(--grad-gold); border-color: var(--gold); color: var(--navy-dark); font-weight: 800; }
.page-item.disabled { opacity: 0.35; pointer-events: none; }

/* ============================================================
   Auth Pages (standalone)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-card {
  background: rgba(13, 20, 51, 0.94) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(201, 168, 76, 0.15);
  color: #ffffff !important;
}
.auth-card .form-label {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.auth-card .form-control {
  background: rgba(8, 13, 36, 0.85) !important;
  border: 1.5px solid rgba(201, 168, 76, 0.3) !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-md);
}
.auth-card .form-control::placeholder {
  color: #94a3b8 !important;
}
.auth-card .form-control:focus {
  border-color: var(--gold-light) !important;
  background: rgba(8, 13, 36, 0.98) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.35) !important;
}
.auth-card label {
  color: #cbd5e1 !important;
}
.auth-card .form-text {
  color: #94a3b8 !important;
}
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo .brand-logo-wrap {
  width: 92px;
  height: 92px;
  min-width: 92px;
  padding: 4px;
  border-radius: 22px;
}
.auth-logo .brand-logo-wrap img {
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
}
.auth-title {
  text-align: center;
  color: #ffffff !important;
  font-size: var(--fs-2xl);
  font-weight: 900;
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  color: #cbd5e1 !important;
  font-size: var(--fs-sm);
  margin-bottom: 32px;
}

/* ============================================================
   Loading / Spinner
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(201,168,76,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Mobile Menu Overlay & Drawer (High-Performance Lag-Free Fix)
   ============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 24, 0.78);
  z-index: 9990 !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-overlay.show { 
  display: block !important; 
  opacity: 1 !important; 
}

.mobile-menu {
  position: fixed;
  top: 0; 
  right: 0;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #0d1433 0%, #080d24 100%);
  border-left: 1px solid var(--border-color);
  z-index: 9999 !important;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  will-change: transform;
}
.mobile-menu.open { 
  transform: translateX(0) !important; 
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.mobile-menu-close {
  position: static;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.mobile-menu-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--danger);
  color: var(--danger);
}

.mobile-menu-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}
.mobile-menu-link:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
}

/* ============================================================
   Sidebar Toggle (mobile dashboard & admin)
   ============================================================ */
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  line-height: 1;
  outline: none;
}
.sidebar-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.04);
}


/* ============================================================
   Services Table (public page)
   ============================================================ */
.services-page { padding: 100px 0 60px; }
.services-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
}
/* Light mode filter buttons */
[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: rgba(26,32,87,0.18);
  color: #1a2057;
}

/* ============================================================
   API Docs Page
   ============================================================ */
.api-page { padding: 100px 0 60px; }
.api-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
[data-theme="light"] .api-section {
  background: #ffffff;
  border-color: rgba(26,32,87,0.1);
}
.api-section-header {
  padding: 20px 28px;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-section-header h4 { color: #ffffff; margin: 0; font-size: var(--fs-lg); }
.api-method {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
}
.api-method-post { background: var(--gold); color: var(--navy-dark); }

.api-body { padding: 28px; }
pre.code-block {
  background: var(--navy-dark);
  color: var(--gold-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up { animation: fadeInUp 0.6s ease both; }
.animate-up-2 { animation: fadeInUp 0.6s ease 0.1s both; }
.animate-up-3 { animation: fadeInUp 0.6s ease 0.2s both; }
.animate-up-4 { animation: fadeInUp 0.6s ease 0.3s both; }

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Responsive Optimization (Desktop, Tablet, Mobile)
   ============================================================ */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 992px) {
  .hero { padding: 90px 0 50px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  .hero-login-card { max-width: 480px; margin: 30px auto 0; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .navbar-nav-desktop { display: none !important; }
  .hamburger { display: flex !important; }

  /* Dashboard layout full-width on mobile/tablet */
  .dash-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }
  .dash-main {
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }
  .sidebar {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    transform: translateX(105%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
    z-index: 9999 !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.7) !important;
  }
  .sidebar-toggle { display: inline-flex !important; }
  .mobile-overlay.show, .sidebar-overlay.show { display: block !important; opacity: 1 !important; z-index: 9990 !important; }

  [style*="grid-column:1/3"], [style*="grid-column: 1/3"], [style*="grid-column:1/-1"] {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem !important; line-height: 1.35 !important; }
  h2 { font-size: 1.45rem !important; }
  .section { padding: 44px 0 !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
  .form-row { grid-template-columns: minmax(0, 1fr) !important; }
  
  .hero-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }
  .counter-section .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  
  .navbar { padding: 0 14px !important; height: 76px !important; }
  .brand-logo-wrap { width: 58px !important; height: 58px !important; min-width: 58px !important; padding: 3px !important; border-radius: 14px !important; border-width: 2.5px !important; }
  .brand-logo-wrap img, .brand-logo-wrap .brand-logo-img { width: 50px !important; height: 50px !important; max-width: 50px !important; max-height: 50px !important; }
  
  .auth-card { padding: 24px 16px !important; border-radius: var(--radius-md) !important; }
  .dash-content { padding: 16px 12px !important; width: 100% !important; max-width: 100vw !important; box-sizing: border-box !important; }
  
  /* Topbar Mobile (No Cut-off, Zero Overflow) */
  .dash-topbar {
    padding: 0 10px !important;
    height: 60px !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dash-topbar > .d-flex {
    min-width: 0 !important;
    flex: 1 !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .sidebar-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .dash-topbar-title {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .dash-topbar-title h4 {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }
  .dash-topbar-title p { display: none !important; }
  .admin-badge {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
    vertical-align: middle !important;
  }
  .dash-topbar-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
  }
  .topbar-admin-pending-btn, .topbar-quick-add-btn {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
  .d-none-mobile { display: none !important; }
  
  .stat-card { padding: 14px 12px !important; gap: 10px !important; }
  .stat-card .stat-icon { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; }
  .stat-card .stat-value { font-size: 1.25rem !important; }
  
  .card-body { padding: 16px 12px !important; }
  .card-header { padding: 14px 16px !important; }
  
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  table {
    font-size: 0.78rem !important;
    min-width: 540px !important;
  }
  tbody td, thead th { padding: 9px 10px !important; }
  .form-control { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 11px 20px !important; font-size: var(--fs-sm) !important; }
  .hero-actions { flex-direction: column !important; gap: 10px !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; }
  .services-filters { gap: 6px !important; }
  .pagination { gap: 3px !important; }
  .page-item { min-width: 32px !important; height: 32px !important; font-size: 0.72rem !important; }
  .hero-stats-bar { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 12px 8px !important; }
  .hero-stat-value { font-size: 1.25rem !important; }
  .hero-stat-label { font-size: 0.68rem !important; }
  .platform-filter-bar { gap: 6px !important; }
  .platform-tab-pill { padding: 6px 12px !important; font-size: 0.78rem !important; }
  .quick-calc-card { padding: 18px 14px !important; width: 94% !important; }
  
  .dash-topbar { padding: 0 8px !important; height: 56px !important; gap: 4px !important; }
  .dash-topbar-actions { gap: 4px !important; }
  .currency-btn { padding: 4px 6px !important; font-size: 0.72rem !important; }
  .currency-btn .currency-code { display: none !important; }
  .theme-toggle-btn, .notif-bell { width: 34px !important; height: 34px !important; min-width: 34px !important; font-size: 1rem !important; }
  .sidebar-toggle { width: 34px !important; height: 34px !important; min-width: 34px !important; font-size: 1rem !important; }
  
  .topbar-admin-pending-btn, .topbar-quick-add-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-md) !important;
  }
  
  .floating-support-hub { bottom: 16px !important; left: 16px !important; gap: 8px !important; }
  .float-btn { width: 44px !important; height: 44px !important; font-size: 1.2rem !important; }
}

/* Print */
@media print {
  .sidebar, .dash-topbar, .navbar, .btn, .floating-support-hub { display: none !important; }
  .dash-main { margin: 0 !important; }
}

/* ============================================================
   Floating Support Hub (WhatsApp & Telegram)
   ============================================================ */
.floating-support-hub {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  text-decoration: none;
}
.float-btn:hover {
  transform: translateY(-4px) scale(1.1);
  color: #fff;
}
.float-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.float-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.float-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}
.float-telegram:hover {
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

/* ============================================================
   Dark & Light Theme Component Overrides
   ============================================================ */
[data-theme="dark"] .table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .table-wrapper table thead th {
  background: var(--bg-card-sub);
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .table-wrapper table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="dark"] .table-wrapper table tbody tr:hover {
  background: var(--bg-hover);
}
[data-theme="dark"] .card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .card-header {
  background: var(--bg-card-sub);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--gold);
}
[data-theme="dark"] .dash-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .dash-topbar-title h4 {
  color: var(--text-dark);
}
[data-theme="dark"] .sidebar {
  background: var(--navy-dark);
  border-left: 1px solid var(--border-color);
}
[data-theme="dark"] .form-control {
  background: var(--bg-card-sub);
  border-color: var(--border-color);
  color: var(--text-dark);
}
[data-theme="dark"] .form-control:focus {
  border-color: var(--gold);
  background: var(--bg-hover);
}
[data-theme="dark"] .notif-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .notif-item {
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="dark"] .notif-item:hover {
  background: var(--bg-hover);
}
[data-theme="dark"] .notif-item.unread {
  background: rgba(201, 168, 76, 0.08);
}

/* ============================================================
   Social Strip & Moving Marquee (Competitor-Grade)
   ============================================================ */
.login-social-strip {
  background: linear-gradient(90deg, var(--navy-dark) 0%, #0f1a4a 50%, var(--navy-dark) 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
/* Fade edges */
.login-social-strip::before,
.login-social-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.login-social-strip::before {
  right: 0;
  background: linear-gradient(to left, var(--navy-dark), transparent);
}
.login-social-strip::after {
  left: 0;
  background: linear-gradient(to right, var(--navy-dark), transparent);
}
.social-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.social-marquee:hover {
  animation-play-state: paused;
}
/* RTL: scroll from left → right (visually right-to-left for Arabic) */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  transition: var(--transition);
  cursor: default;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.social-chip i {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.social-chip:hover {
  background: rgba(201, 168, 76, 0.25) !important;
  border-color: var(--gold-light) !important;
  transform: translateY(-2px);
  color: var(--gold-light) !important;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
}
/* Light mode overrides */
[data-theme="light"] .login-social-strip {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .login-social-strip::before {
  background: linear-gradient(to left, #ffffff, transparent) !important;
}
[data-theme="light"] .login-social-strip::after {
  background: linear-gradient(to right, #ffffff, transparent) !important;
}
[data-theme="light"] .social-chip {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  text-shadow: none !important;
}
[data-theme="light"] .social-chip:hover {
  background: #ffffff !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* Step Cards */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  text-align: right;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: var(--navy-dark);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Payment Gateway Badges */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}
.payment-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.payment-badge:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--gold);
}
.faq-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
}
.faq-btn i {
  color: var(--gold);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-btn i {
  transform: rotate(45deg);
}
.faq-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-body {
  display: block;
}

/* ============================================================
   SOCIAL PLATFORM CAROUSEL & LIVE OFFERS SHOWCASE (Senior Grade)
   ============================================================ */
.social-carousel-section {
  padding: 90px 0;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.carousel-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.carousel-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--grad-gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,168,76,0.3);
}

/* Platform Carousel Track */
.platform-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 20px;
}

.platform-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
}

.platform-carousel-track::-webkit-scrollbar {
  display: none;
}

.platform-card {
  flex: 0 0 230px;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  text-align: right;
}

.platform-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.25;
  pointer-events: none;
  transition: var(--transition);
}

.platform-card:hover, .platform-card.active {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(201,168,76,0.2);
}

.platform-card.active .platform-card-glow {
  opacity: 0.45;
  filter: blur(25px);
}

.platform-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.platform-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 3px 8px;
  border-radius: 20px;
}

.platform-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 14px 0 6px;
}

.platform-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.platform-card-tag {
  color: var(--gold);
  font-weight: 700;
}

.platform-card-count {
  color: var(--text-muted);
}

.platform-card-action {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.platform-card:hover .platform-card-action, .platform-card.active .platform-card-action {
  color: var(--gold);
}

/* Platform Filter Tabs */
.platform-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 40px;
}

.platform-tab-pill {
  border-radius: 30px;
  padding: 9px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-tab-pill:hover, .platform-tab-pill.active {
  background: var(--grad-gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201,168,76,0.25);
}

/* Live Offers Grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.offer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.offer-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.offer-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.offer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.offer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.offer-specs {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.76rem;
}

.offer-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.offer-spec-item strong {
  color: var(--text-dark);
}

.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.offer-price-box {
  display: flex;
  flex-direction: column;
}

.offer-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.offer-price-val .amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold);
}

.offer-price-val .curr {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
}

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

.btn-quick-calc {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-sub);
  color: var(--gold);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-calc:hover {
  background: var(--grad-gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.offer-order-btn {
  padding: 8px 16px;
  font-weight: 700;
  border-radius: 10px;
}

/* Quick Calculator Modal */
.quick-calc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 13, 36, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.quick-calc-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.quick-calc-card {
  width: 90%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transform: scale(0.92);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.quick-calc-modal-backdrop.active .quick-calc-card {
  transform: scale(1);
}

.quick-calc-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-calc-close:hover {
  color: var(--danger);
}

.quick-calc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.calc-cost-display {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .carousel-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .offers-grid {
    grid-template-columns: 1fr;
  }
  .platform-card {
    flex: 0 0 200px;
    min-width: 200px;
    padding: 16px;
  }
}

/* ============================================================
   Currency Switcher Styling
   ============================================================ */
.currency-switcher-wrap {
  position: relative;
  display: inline-block;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  user-select: none;
}

.currency-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.currency-flag {
  font-size: 1rem;
  line-height: 1;
}

.currency-code {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(12px);
  animation: currencyFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.currency-dropdown.show {
  display: block;
}

@keyframes currencyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.currency-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.currency-dropdown-item:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
}

.currency-dropdown-item.active {
  background: rgba(201, 168, 76, 0.18);
  color: var(--gold);
  font-weight: 800;
}

.currency-dropdown-item .check-icon {
  font-size: 0.75rem;
  color: var(--gold);
}




