/* =========================================================
   يكبر .vip - نظام التصميم المتكامل (Design System)
   Visual Identity extracted from original index.html
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* =========================================================
   CSS VARIABLES - Light & Dark Mode
   ========================================================= */
:root {
  /* Primary Colors */
  --primary: #f43f83;
  --primary-dark: #d91c6c;
  --primary-light: #ff80ab;
  --primary-bg: #fff0f7;
  
  /* Secondary Colors */
  --secondary: #8b5cf6;
  --secondary-dark: #6d28d9;
  --secondary-light: #c4b5fd;
  
  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #f43f83 0%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 50%, #fce7f3 100%);
  
  /* Neutral Colors */
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --gray-800: #1f2937;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --light: #f9fafb;
  --white: #ffffff;
  
  /* Typography */
  --font-primary: 'Cairo', 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-primary: 0 8px 32px rgba(244, 63, 131, 0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary-bg: #2d1b2e;
  --light: #1a1a2e;
  --gray-100: #1e1e3f;
  --gray-200: #2d2d5e;
  --gray-400: #8892b0;
  --gray-600: #a8b2d8;
  --gray-800: #ccd6f6;
  --white: #0d1117;
  --dark: #e6edf3;
  --dark-2: #f0f6fc;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--gradient-hero);
  min-height: 100vh;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

/* =========================================================
   HEADER
   ========================================================= */
.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 63, 131, 0.1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  height: var(--header-height);
  transition: var(--transition);
}

[data-theme="dark"] .app-header {
  background: rgba(26, 26, 46, 0.92);
  border-bottom-color: rgba(244, 63, 131, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  margin: 0;
}

.logo-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.mobile-only-action { display: none; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Menu */
.close-mobile-menu,
.mobile-menu-toggle-btn {
  display: none;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 24px 40px;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(0,0,0,0.15);
  }

  [data-theme="dark"] .main-nav {
    background: var(--gray-100);
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: var(--radius-md);
  }

  .close-mobile-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    font-size: 22px;
    color: var(--gray-600);
    transition: var(--transition-fast);
  }

  .close-mobile-menu:hover {
    background: var(--primary-bg);
    color: var(--primary);
  }

  .mobile-only-action {
    display: block;
    margin-top: 8px;
  }

  .mobile-menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: transparent;
    font-size: 18px;
    color: var(--gray-600);
    transition: var(--transition-fast);
  }

  .mobile-menu-toggle-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary-light);
  }

  .desktop-only-btn { display: none !important; }

  .mobile-menu-overlay.is-visible {
    display: block;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-primary);
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(244, 63, 131, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.btn-light {
  background: white;
  color: var(--primary);
  border-color: white;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.w-full { width: 100%; }

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-primary); }
  50% { box-shadow: 0 8px 40px rgba(244, 63, 131, 0.6); }
}

.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Theme Toggle */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f43f83 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f9a8d4 0%, transparent 70%);
  top: 40%;
  left: 40%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(244,63,131,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(244,63,131,0.2);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .hero-buttons { justify-content: center; }
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-stats { justify-content: center; }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}

/* =========================================================
   GLASSMORPHISM CARD
   ========================================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 30, 60, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   AGE TRACKER WIDGET
   ========================================================= */
.age-tracker-widget {
  padding: 28px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.widget-icon {
  font-size: 36px;
  line-height: 1;
}

.widget-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.widget-desc {
  font-size: 12px;
  color: var(--gray-400);
}

.age-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 8px;
}

.age-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(to left, var(--primary), var(--secondary));
  outline: none;
  margin-bottom: 12px;
}

.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244,63,131,0.4);
  border: 3px solid white;
  transition: transform 0.2s;
}

.age-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.selected-age-display {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.smart-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.suggestion-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid rgba(244,63,131,0.12);
  transition: var(--transition-fast);
}

.suggestion-tag:hover { background: linear-gradient(135deg, rgba(244,63,131,0.1), rgba(139,92,246,0.1)); }
.suggestion-tag i { color: var(--primary); }

.widget-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag-line {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--dark);
  margin: 0;
}

.section-title.text-white { color: white; }

.section-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  margin-top: 14px;
  line-height: 1.8;
}

.section-subtitle.text-light { color: rgba(255,255,255,0.85); }

.max-w-2xl { max-width: 680px; margin-right: auto; margin-left: auto; }

/* =========================================================
   MARKET SECTION
   ========================================================= */
.market-section {
  padding: 100px 0;
  background: var(--white);
}

[data-theme="dark"] .market-section {
  background: var(--gray-100);
}

.market-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-600);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(244,63,131,0.3);
}

.sort-select-wrapper {
  position: relative;
}

.select-input {
  padding: 10px 40px 10px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
  direction: rtl;
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244,63,131,0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244,63,131,0.2);
}

[data-theme="dark"] .product-card {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  background: var(--gradient-primary);
  color: white;
}

.product-body {
  padding: 18px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
}

.trust-badge.verified {
  background: #eef2ff;
  color: #4338ca;
}

.trust-badge.phone {
  background: #ecfdf5;
  color: #059669;
}

.product-location {
  font-size: 11px;
  color: var(--gray-400);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 20px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Cairo', monospace;
}

.product-price span {
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   COMMUNITY SECTION
   ========================================================= */
.community-section {
  padding: 100px 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.community-bg-curve {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

[data-theme="dark"] .community-bg-curve {
  background: var(--gray-100);
}

.community-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .community-container { grid-template-columns: 1fr; }
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.feature-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(244,63,131,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 18px;
  flex-shrink: 0;
}

.bullet-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bullet-desc {
  font-size: 13px;
  line-height: 1.7;
}

.text-white { color: white !important; }
.text-light { color: rgba(255,255,255,0.75) !important; }

/* Chat Widget */
.chat-widget-demo {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.chat-header {
  padding: 18px 20px;
  background: rgba(244,63,131,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title-group h4 {
  font-size: 14px;
  color: white;
  font-weight: 700;
}

.chat-room-badge {
  font-size: 10px;
  color: var(--primary-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.chat-status {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  display: inline-block;
}

.chat-channels {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}

.channel-btn {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.channel-btn.active,
.channel-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.chat-messages-area {
  height: 220px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.chat-bubble {
  background: rgba(255,255,255,0.1);
  border-radius: 0 14px 14px 14px;
  padding: 9px 14px;
  max-width: 75%;
}

.chat-author {
  font-size: 10px;
  color: var(--primary-light);
  font-weight: 800;
  margin-bottom: 4px;
}

.chat-text {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: white;
  font-size: 13px;
  outline: none;
}

.chat-input-area input::placeholder { color: rgba(255,255,255,0.4); }
.chat-input-area input:focus { border-color: var(--primary-light); }

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.chat-send-btn:hover { transform: scale(1.1); filter: brightness(1.1); }

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section {
  padding: 100px 0;
  background: var(--light);
}

[data-theme="dark"] .faq-section {
  background: var(--dark);
}

.faq-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

[data-theme="dark"] .faq-card {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.faq-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(244,63,131,0.2);
}

.faq-card h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-section {
  padding: 100px 0;
  background: var(--white);
}

[data-theme="dark"] .how-section {
  background: var(--gray-100);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

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

.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(244,63,131,0.1);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  position: absolute;
  top: -16px;
  right: 50%;
  transform: translateX(50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
}

.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 20px;
  box-shadow: var(--shadow-primary);
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-container { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.app-footer-dark {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

[data-theme="dark"] .app-footer-dark {
  background: #0d0d1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-info { grid-column: 1 / -1; }
}

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

.footer-brand-info .logo-area { margin-bottom: 16px; }
.footer-brand-info .logo-text { color: white; }

.footer-about {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h5,
.footer-contact h5 {
  font-size: 15px;
  color: white;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-right: 6px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i { color: var(--primary-light); }

.app-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.app-badge-mock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition-fast);
}

.app-badge-mock:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: white;
}

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

[data-theme="dark"] .form-container {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.form-title {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--dark);
  border-color: var(--gray-200);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244,63,131,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.form-divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 600;
}

[data-theme="dark"] .form-divider span { background: var(--gray-100); }

.form-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.form-link:hover { color: var(--primary-dark); text-decoration: underline; }

.form-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 24px;
}

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}

.success-msg {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

.modal-body { padding: 28px; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* =========================================================
   IMAGE UPLOAD
   ========================================================= */
.image-upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.image-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.upload-icon { font-size: 36px; color: var(--gray-400); margin-bottom: 12px; }
.upload-text { font-size: 15px; font-weight: 700; color: var(--gray-600); margin-bottom: 4px; }
.upload-subtext { font-size: 12px; color: var(--gray-400); }

/* =========================================================
   DASHBOARD / PROFILE
   ========================================================= */
.page-header-section {
  background: var(--gradient-primary);
  padding: calc(var(--header-height) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.page-header-content {
  position: relative;
  z-index: 1;
  color: white;
}

.page-header-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.page-header-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.page-content {
  padding: 60px 0 100px;
}

/* Stats cards for dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

[data-theme="dark"] .stat-card {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 600;
}

/* Wallet Card */
.wallet-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.wallet-amount {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.wallet-label {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 28px;
}

/* =========================================================
   TABLES
   ========================================================= */
.data-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .data-table {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 16px 20px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

[data-theme="dark"] .data-table th {
  background: var(--dark);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

[data-theme="dark"] .data-table td {
  border-bottom-color: var(--gray-200);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(244,63,131,0.03); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

.status-badge.active { background: #dcfce7; color: #15803d; }
.status-badge.pending { background: #fef9c3; color: #854d0e; }
.status-badge.completed { background: #dbeafe; color: #1d4ed8; }
.status-badge.cancelled { background: #fee2e2; color: #b91c1c; }
.status-badge.refunded { background: #f3e8ff; color: #6d28d9; }

/* =========================================================
   FORUM / THREAD CARDS
   ========================================================= */
.thread-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  gap: 20px;
}

[data-theme="dark"] .thread-card {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.thread-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,63,131,0.2);
}

.thread-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.thread-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.thread-card:hover .thread-title { color: var(--primary); }

.thread-meta {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   LOADING / SKELETON
   ========================================================= */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* =========================================================
   TOAST / NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  text-align: center;
}

.toast.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: var(--gradient-primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   OFFLINE BANNER
   ========================================================= */
.offline-banner {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #f59e0b;
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 990;
}

.offline-banner.visible { display: block; }

/* =========================================================
   PAGE TRANSITIONS
   ========================================================= */
::view-transition-old(root) {
  animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out;
}

::view-transition-new(root) {
  animation: 210ms cubic-bezier(0, 0, 0.2, 1) both slide-in-up;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slide-in-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: var(--radius-full); border: 3px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.hidden { display: none !important; }
.block { display: block; }

.main-content {
  padding-top: var(--header-height);
}

/* =========================================================
   ADMIN MEGA DASHBOARD
   ========================================================= */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  background: var(--dark);
  padding: 32px 20px;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(244,63,131,0.15);
  color: var(--primary-light);
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
}

.admin-main {
  padding: 40px;
  background: var(--light);
  overflow-x: auto;
}

[data-theme="dark"] .admin-main {
  background: var(--dark-2);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */
@media (max-width: 600px) {
  .hero-section { padding: calc(var(--header-height) + 48px) 0 60px; }
  .market-section, .community-section, .faq-section, .how-section, .cta-section { padding: 64px 0; }
  .form-container { padding: 28px 20px; }
  .admin-main { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PWA SHELL — VARIABLES & DUAL MODE SYSTEM
   ========================================================= */
:root {
  --pwa-top-bar-height: 56px;
  --pwa-bottom-nav-height: 66px;
  --pwa-safe-top: env(safe-area-inset-top, 0px);
  --pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── WEB MODE (Browser — Default) ── */
.pwa-top-bar    { display: none !important; }
.pwa-bottom-nav { display: none !important; }
.pwa-search-bar { display: none; }
.pwa-only       { display: none !important; }
.web-only       { display: block; }

/* ── PWA MODE (Installed App — Standalone) ── */
@media (display-mode: standalone) {
  /* إخفاء عناصر الموقع */
  .app-header      { display: none !important; }
  .app-footer-dark { display: none !important; }
  .web-only        { display: none !important; }
  .pwa-bridge-banner { display: none !important; }

  /* إظهار عناصر التطبيق */
  .pwa-top-bar    { display: flex !important; }
  .pwa-bottom-nav { display: grid !important; }
  .pwa-only       { display: block !important; }

  /* مسافات المحتوى الرئيسي */
  .main-content,
  body > main,
  main {
    padding-top: calc(var(--pwa-top-bar-height) + var(--pwa-safe-top)) !important;
    padding-bottom: calc(var(--pwa-bottom-nav-height) + var(--pwa-safe-bottom) + 8px) !important;
  }

  /* Hero section في وضع PWA */
  .hero-section {
    padding-top: calc(var(--pwa-top-bar-height) + var(--pwa-safe-top) + 32px) !important;
  }
}

/* ── كلاس JS كبديل لـ @media (display-mode: standalone) ── */
html.pwa-mode .app-header      { display: none !important; }
html.pwa-mode .app-footer-dark { display: none !important; }
html.pwa-mode .web-only        { display: none !important; }
html.pwa-mode .pwa-bridge-banner { display: none !important; }
html.pwa-mode .pwa-top-bar     { display: flex !important; }
html.pwa-mode .pwa-bottom-nav  { display: grid !important; }
html.pwa-mode .pwa-only        { display: block !important; }
html.pwa-mode main,
html.pwa-mode .main-content {
  padding-top: calc(var(--pwa-top-bar-height) + var(--pwa-safe-top)) !important;
  padding-bottom: calc(var(--pwa-bottom-nav-height) + var(--pwa-safe-bottom) + 8px) !important;
}
html.pwa-mode .hero-section {
  padding-top: calc(var(--pwa-top-bar-height) + var(--pwa-safe-top) + 32px) !important;
}

/* =========================================================
   PWA TOP BAR
   ========================================================= */
.pwa-top-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--pwa-top-bar-height);
  padding-top: var(--pwa-safe-top);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 63, 131, 0.1);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  gap: 8px;
  z-index: 1001;
  transition: box-shadow 0.2s ease;
}

[data-theme="dark"] .pwa-top-bar {
  background: rgba(26, 26, 46, 0.96);
  border-bottom-color: rgba(244, 63, 131, 0.2);
}

/* Back Button */
.pwa-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.pwa-back-btn:hover { background: var(--primary-bg); color: var(--primary); }
.pwa-back-btn:active { transform: scale(0.9); }

[data-theme="dark"] .pwa-back-btn {
  background: rgba(255,255,255,0.08);
  color: var(--dark);
}

/* Page Title */
.pwa-page-title {
  flex: 1;
  font-size: 16px;
  font-weight: 900;
  color: var(--dark);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Top Action Icons */
.pwa-top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pwa-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pwa-icon-btn:hover { background: var(--primary-bg); color: var(--primary); }
.pwa-icon-btn:active { transform: scale(0.9); }

/* Notification Badge */
.pwa-notif-badge {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
  font-family: var(--font-primary);
}

/* =========================================================
   PWA SEARCH BAR (Expandable)
   ========================================================= */
.pwa-search-bar {
  position: fixed;
  top: var(--pwa-top-bar-height);
  inset-inline: 0;
  background: var(--white);
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  display: none;
  gap: 10px;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

[data-theme="dark"] .pwa-search-bar {
  background: var(--gray-100);
  border-bottom-color: var(--gray-200);
}

.pwa-search-bar.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.pwa-search-bar input {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  background: var(--gray-100);
  color: var(--dark);
  direction: rtl;
  transition: border-color 0.15s;
}
.pwa-search-bar input:focus { border-color: var(--primary); background: var(--white); }

.pwa-search-submit {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(244,63,131,0.35);
  transition: transform 0.15s;
}
.pwa-search-submit:active { transform: scale(0.92); }

/* =========================================================
   PWA BOTTOM NAVIGATION
   ========================================================= */
.pwa-bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  height: calc(var(--pwa-bottom-nav-height) + var(--pwa-safe-bottom));
  padding-bottom: var(--pwa-safe-bottom);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(244, 63, 131, 0.08);
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  z-index: 1001;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .pwa-bottom-nav {
  background: rgba(20, 20, 40, 0.97);
  border-top-color: rgba(244, 63, 131, 0.15);
}

/* Nav Items */
.pwa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 10px 4px 12px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-height: 56px;
}

.pwa-nav-item:active {
  transform: scale(0.92);
}

.pwa-nav-item.active {
  color: var(--primary);
}

.pwa-nav-item.tapping {
  animation: nav-tap 0.15s ease;
}

@keyframes nav-tap {
  0% { transform: scale(1); }
  50% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* Nav Icon wrapper */
.pwa-nav-icon {
  position: relative;
  font-size: 23px;
  line-height: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-nav-item.active .pwa-nav-icon {
  transform: scale(1.18) translateY(-2px);
}

/* Nav Avatar (for profile) */
.pwa-nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* Nav Label */
.pwa-nav-label {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-primary);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s;
}

/* Active Pill Indicator */
.nav-active-pill {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pwa-nav-item.active .nav-active-pill {
  transform: translateX(-50%) scaleX(1);
}

/* Badge (notifications dot) */
.pwa-badge {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
  font-family: var(--font-primary);
}

/* ── CTA (Sell) Button ── */
.pwa-nav-cta {
  justify-content: flex-end;
  padding-bottom: 10px;
}

.pwa-nav-cta-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 28px rgba(244, 63, 131, 0.45);
  margin-top: -24px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  flex-shrink: 0;
  border: 3px solid var(--white);
}

[data-theme="dark"] .pwa-nav-cta-btn {
  border-color: rgba(20, 20, 40, 0.97);
}

.pwa-nav-cta:active .pwa-nav-cta-btn {
  transform: scale(0.92) rotate(45deg);
  box-shadow: 0 3px 14px rgba(244, 63, 131, 0.3);
}

/* =========================================================
   PWA SKELETON SCREENS
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
}

.skeleton-line {
  height: 14px;
  margin: 8px 12px;
  border-radius: var(--radius-full);
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }

/* =========================================================
   WEB TRACK: HEADER IMPROVEMENTS
   ========================================================= */
/* User avatar dropdown in header */
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: var(--transition-fast);
}
.user-avatar-btn:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  color: var(--primary);
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Dropdown Menu */
.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}

[data-theme="dark"] .user-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.user-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: var(--font-primary);
}
.dropdown-item i { width: 18px; text-align: center; color: var(--gray-400); }
.dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
.dropdown-item:hover i { color: var(--primary); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: #fef2f2; }
.dropdown-item.danger i { color: #ef4444; }

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 6px 0;
}

/* Admin badge in nav */
.nav-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(244,63,131,0.35);
}
.nav-admin-badge:hover { opacity: 0.9; transform: translateY(-1px); }

/* =========================================================
   WEB TRACK: PWA BRIDGE BANNER
   ========================================================= */
.pwa-bridge-banner {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  max-width: 320px;
  background: var(--white);
  border: 1px solid rgba(244,63,131,0.2);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pwa-bridge-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.pwa-bridge-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.pwa-bridge-text {
  flex: 1;
}

.pwa-bridge-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
}

.pwa-bridge-text p {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
}

.pwa-bridge-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-install-pwa {
  padding: 8px 16px;
  font-size: 12px;
  white-space: nowrap;
}

.pwa-bridge-close {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-bridge-close:hover { background: var(--primary-bg); color: var(--primary); }

/* =========================================================
   WEB TRACK: FOOTER IMPROVEMENTS (Responsive)
   ========================================================= */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 24px;
  }
}

.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links h5 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-links ul li a:hover { color: var(--primary-light); }

.footer-contact h5 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-bottom: 10px;
  direction: ltr;
  justify-content: flex-end;
}

[dir="rtl"] .footer-contact p {
  direction: rtl;
  justify-content: flex-start;
}

.footer-contact p i {
  color: var(--primary-light);
  width: 16px;
  text-align: center;
}

.app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.app-badge-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.app-badge-mock:hover { background: rgba(244,63,131,0.2); }

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.18s;
}
.social-icons a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244,63,131,0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

/* =========================================================
   PWA TOAST (Mobile-style)
   ========================================================= */
.pwa-toast-container {
  position: fixed;
  top: calc(var(--pwa-top-bar-height) + var(--pwa-safe-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 360px;
}

.pwa-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--dark);
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}

.pwa-toast.success { background: #10b981; }
.pwa-toast.error   { background: #ef4444; }
.pwa-toast.info    { background: var(--primary); }

@keyframes toast-slide-in {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(244, 63, 131, 0.25);
  transform: scale(0);
  animation: ripple-expand 0.45s linear;
  pointer-events: none;
}

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

/* =========================================================
   WEB TRACK: HEADER BLOG LINK + STATE AWARE
   ========================================================= */
.header-blog-link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.header-blog-link:hover,
.header-blog-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

/* Tablet layout improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav ul {
    gap: 2px;
  }
  .nav-link {
    padding: 7px 12px;
    font-size: 14px;
  }
  .header-actions {
    gap: 6px;
  }
}

