/* ============================================
   ResellerPro - Premium Global Stylesheet
   Version: 1.0
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors */
  --primary:        #6C63FF;
  --primary-dark:   #5A52E0;
  --primary-light:  #8B85FF;
  --primary-rgb:    108, 99, 255;

  --secondary:      #10B981;
  --secondary-dark: #059669;
  --accent:         #F59E0B;
  --danger:         #EF4444;
  --warning:        #F59E0B;
  --info:           #3B82F6;
  --teal:           #14B8A6;
  --orange:         #F97316;
  --purple:         #8B5CF6;

  /* Neutral Palette */
  --white:          #FFFFFF;
  --gray-50:        #F8FAFC;
  --gray-100:       #F1F5F9;
  --gray-200:       #E2E8F0;
  --gray-300:       #CBD5E1;
  --gray-400:       #94A3B8;
  --gray-500:       #64748B;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1E293B;
  --gray-900:       #0F172A;
  --black:          #020617;

  /* Surface Colors */
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --surface-2:      #F1F5F9;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  /* Text Colors */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-inverse:   #FFFFFF;

  /* Sidebar */
  --sidebar-bg:     #0F172A;
  --sidebar-text:   #94A3B8;
  --sidebar-active: #6C63FF;
  --sidebar-hover:  #1E293B;
  --sidebar-width:  260px;

  /* Topbar */
  --topbar-height:  65px;

  /* Typography */
  --font-sans:      'Cairo', 'Inter', -apple-system, sans-serif;
  --font-mono:      'Courier New', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 25px rgba(108,99,255,0.3);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
p  { color: var(--text-secondary); line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(108,99,255,0.4);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #DC2626; }
.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-xl {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
}
.btn-plan {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  background: var(--plan-color, var(--primary));
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-top: var(--space-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-plan:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

/* ============================================
   ALERTS / FLASH MESSAGES
   ============================================ */
.alert {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  font-size: 0.9rem;
}
.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}
.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FCD34D;
}
.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success   { background: #ECFDF5; color: #059669; }
.badge-danger    { background: #FEF2F2; color: #DC2626; }
.badge-warning   { background: #FFFBEB; color: #D97706; }
.badge-info      { background: #EFF6FF; color: #2563EB; }
.badge-primary   { background: #EDE9FE; color: #7C3AED; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-orange    { background: #FFF7ED; color: #EA580C; }
.badge-teal      { background: #F0FDFA; color: #0D9488; }

/* Level Badges */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}
.level-bronze { background: #FDF4EB; color: #92400E; }
.level-silver { background: #F1F5F9; color: #475569; }
.level-gold   { background: #FFFBEB; color: #B45309; }
.level-vip    { background: #EDE9FE; color: #6D28D9; }

/* Confidence Badge */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.card-header h3, .card-header h4 {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.card-body { padding: var(--space-xl); }
.card-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

/* Stat Cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-color, var(--primary));
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--stat-icon-bg, #EDE9FE);
  color: var(--stat-color, var(--primary));
}
.stat-info { flex: 1; min-width: 0; }
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.3rem;
}
.stat-change.up { color: var(--secondary); }
.stat-change.down { color: var(--danger); }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  font-size: 0.875rem;
}
.data-table thead th {
  background: var(--gray-50);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  color: var(--text-secondary);
}
.data-table td strong { color: var(--text-primary); }

/* Comparison Table */
.comparison-table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-table thead tr {
  background: var(--gray-900);
  color: var(--white);
}
.comparison-table thead th {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  text-align: center;
}
.comparison-table thead th:first-child { text-align: right; }
.comparison-table tbody td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table tbody td:first-child { text-align: right; font-weight: 500; color: var(--text-primary); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--gray-50); }
.comparison-table .highlighted { background: rgba(108,99,255,0.05); }
.text-success { color: var(--secondary); }
.text-danger  { color: var(--danger); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: all var(--transition-fast);
  direction: rtl;
  font-family: var(--font-sans);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.input-group .input-icon {
  padding: 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--gray-50);
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1.5px solid var(--border);
}
.input-group .form-control {
  border: none;
  box-shadow: none;
}
.input-group .form-control:focus { box-shadow: none; }
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all var(--transition-fast);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  border-bottom: 2px solid var(--border);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content { display: none; padding: var(--space-xl) 0; }
.tab-content.active { display: block; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4 { margin: 0; font-size: 1.1rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--gray-100); color: var(--text-primary); }
.modal-body { padding: var(--space-xl); }
.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-300);
  margin: 0 auto var(--space-lg);
}
.empty-state h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.empty-state p { font-size: 0.9rem; margin-bottom: var(--space-lg); }

/* ============================================
   LANDING PAGE - NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-base);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.nav-link:hover { background: var(--gray-100); color: var(--text-primary); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   LANDING PAGE - HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 50%, #FAF5FF 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; left: 100px;
  animation: orbFloat 14s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 50%; left: 40%;
  animation: orbFloat 8s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.98); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}
.hero-badge i { color: var(--accent); }
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--gray-900);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Dashboard Preview */
.hero-visual { position: relative; }
.dashboard-preview {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.preview-header {
  background: var(--gray-900);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}
.preview-dots span:nth-child(1) { background: #FF5F57; }
.preview-dots span:nth-child(2) { background: #FFBD2E; }
.preview-dots span:nth-child(3) { background: #28CA41; }
.preview-title { color: var(--gray-400); font-size: 0.8rem; font-weight: 500; }
.preview-body { padding: 1rem; }
.preview-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.preview-stat-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.psc-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.psc-value { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.psc-label { font-size: 0.65rem; color: var(--text-muted); }
.preview-order { background: var(--gray-50); border-radius: var(--radius-md); padding: 0.6rem; }
.preview-order-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.preview-order-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}
.poi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.poi-info { flex: 1; }
.poi-name { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); }
.poi-status { font-size: 0.62rem; color: var(--text-muted); }
.poi-price { font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatCard 5s ease-in-out infinite;
}
.fc-1 { top: 10%; left: -15%; animation-delay: 0s; }
.fc-2 { bottom: 25%; left: -10%; animation-delay: 1.5s; }
.fc-3 { top: 60%; right: -10%; animation-delay: 3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   LANDING PAGE - SECTIONS
   ============================================ */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--gray-50); }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}
.section-badge {
  display: inline-block;
  background: rgba(108,99,255,0.1);
  color: var(--primary);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(108,99,255,0.2);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(var(--icon-color), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  color: var(--icon-color);
  background: color-mix(in srgb, var(--icon-color) 10%, white);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  align-items: start;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.plan-card.animate-in { opacity: 1; transform: translateY(0); }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2xl); }
.plan-card.plan-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl);
  transform: scale(1.02);
}
.plan-badge-popular {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-header {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--plan-color) 8%, white), color-mix(in srgb, var(--plan-color) 3%, white));
  border-bottom: 1px solid var(--border);
  text-align: center;
  margin-top: var(--space-lg);
}
.plan-card.plan-popular .plan-header { margin-top: 2rem; }
.plan-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--plan-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto var(--space-md);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.plan-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.3rem; }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.plan-price { display: flex; align-items: flex-start; justify-content: center; gap: 0.2rem; }
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--plan-color); margin-top: 0.5rem; }
.price-amount { font-size: 3rem; font-weight: 900; color: var(--plan-color); line-height: 1; }
.plan-body { padding: var(--space-xl); }
.plan-features { margin-bottom: var(--space-lg); }
.plan-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: var(--secondary); font-size: 0.8rem; flex-shrink: 0; }
.plan-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.plan-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Why Us */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.why-us-points { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-xl); }
.why-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateX(20px);
}
.why-point.animate-in { opacity: 1; transform: translateX(0); transition: all 0.5s ease; }
.why-point-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108,99,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.why-point-body h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.why-point-body p { font-size: 0.9rem; }
.trust-cards { display: flex; flex-direction: column; gap: var(--space-md); }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.trust-number { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.trust-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.trust-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.trust-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}
.testimonial-card.animate-in { opacity: 1; transform: translateY(0); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--accent); margin-bottom: var(--space-md); font-size: 0.9rem; }
.testimonial-text { font-style: italic; font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-title { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

/* FAQ */
.faq-list { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--space-xl);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: right;
  gap: var(--space-md);
}
.faq-question i { color: var(--text-muted); transition: transform var(--transition-base); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: 0 var(--space-xl) var(--space-lg); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.9rem; line-height: 1.7; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: rgba(108,99,255,0.1);
  color: var(--primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.contact-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.85rem; }
.contact-cta { text-align: center; }

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer .brand-name { color: var(--white); }
.footer .brand-logo { box-shadow: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: var(--space-xl);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h5 { color: var(--white); font-size: 0.95rem; margin-bottom: var(--space-lg); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col ul a { font-size: 0.875rem; color: var(--gray-500); transition: color var(--transition-fast); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--gray-600); }

/* ============================================
   APP LAYOUT (DASHBOARD / ADMIN)
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 200;
  transition: transform var(--transition-base);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.sidebar-logo .brand-name { color: var(--white); font-size: 1.1rem; }
.sidebar-close {
  display: none;
  color: var(--gray-500);
  font-size: 1.1rem;
  cursor: pointer;
  padding: var(--space-xs);
}
.sidebar-user {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-username {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-role {
  font-size: 0.72rem;
  color: var(--gray-500);
}
.sidebar-nav { flex: 1; padding: var(--space-md) 0; }
.nav-section {
  padding: 0.4rem var(--space-xl) 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-top: var(--space-sm);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem var(--space-xl);
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-right: 3px solid transparent;
  margin: 1px 0;
  position: relative;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--white);
}
.sidebar-link.active {
  background: rgba(108,99,255,0.15);
  color: var(--white);
  border-right-color: var(--primary);
}
.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-link .nav-badge {
  margin-right: auto;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  margin-right: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  gap: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.topbar-start { display: flex; align-items: center; gap: var(--space-md); }
.topbar-end   { display: flex; align-items: center; gap: var(--space-sm); }
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}
.sidebar-toggle:hover { background: var(--gray-100); }
.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  min-width: 220px;
  transition: all var(--transition-fast);
}
.search-box:focus-within {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.search-box i { color: var(--text-muted); font-size: 0.85rem; }
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-sans);
}
.topbar-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}
.topbar-btn:hover { background: var(--gray-100); color: var(--text-primary); }
.notif-count {
  position: absolute;
  top: 4px; left: 4px;
  width: 16px; height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.user-menu:hover { background: var(--gray-100); }
.user-menu-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.user-menu-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* PAGE CONTENT */
.page-content {
  padding: var(--space-xl);
  flex: 1;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.page-header-info h2 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.page-header-info p { font-size: 0.875rem; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}
.content-grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ============================================
   ORDER TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-bottom: var(--space-xl);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.timeline-dot.done {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.timeline-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(108,99,255,0.2);
}
.timeline-content { flex: 1; padding-top: 0.4rem; }
.timeline-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.timeline-desc { font-size: 0.82rem; color: var(--text-muted); }
.timeline-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ============================================
   KANBAN BOARD
   ============================================ */
.kanban-board {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  min-height: 500px;
}
.kanban-col {
  min-width: 240px;
  max-width: 240px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-sm);
}
.kanban-col-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.kanban-count {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  color: var(--text-secondary);
}
.kanban-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--primary);
}
.kanban-card-number { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.kanban-card-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.kanban-card-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 300;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-dropdown-header h5 { font-size: 0.9rem; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: rgba(108,99,255,0.03); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(108,99,255,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.notif-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.1rem; }
.notif-msg { font-size: 0.78rem; color: var(--text-muted); }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-dropdown-footer {
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border);
}
.notif-dropdown-footer a { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* ============================================
   DELIVERY TABS
   ============================================ */
.delivery-field {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.delivery-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.delivery-field-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  word-break: break-all;
}
.copy-btn {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary); color: #fff; }

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}
.quick-action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================
   STEP FORM
   ============================================ */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(108,99,255,0.15);
}
.step-dot.done {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.step-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.step-label.active { color: var(--primary); }
.step-label.done { color: var(--secondary); }
.step-connector { height: 2px; width: 40px; background: var(--border); margin: 0 0.5rem; flex-shrink: 0; }
.step-connector.done { background: var(--secondary); }

/* ============================================
   BALANCE / WALLET ITEMS
   ============================================ */
.transaction-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}
.transaction-item:last-child { border-bottom: none; }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.txn-icon.credit { background: #ECFDF5; color: var(--secondary); }
.txn-icon.debit  { background: #FEF2F2; color: var(--danger); }
.txn-info { flex: 1; }
.txn-title { font-size: 0.875rem; font-weight: 600; }
.txn-date  { font-size: 0.75rem; color: var(--text-muted); }
.txn-amount { font-weight: 700; font-size: 0.95rem; }
.txn-amount.credit { color: var(--secondary); }
.txn-amount.debit  { color: var(--danger); }

/* ============================================
   MILESTONE BADGES
   ============================================ */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}
.milestone-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}
.milestone-item.achieved {
  border-color: var(--accent);
  background: #FFFBEB;
}
.milestone-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.milestone-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--gray-100);
  color: var(--gray-400);
}
.milestone-item.achieved .milestone-icon { background: rgba(245,158,11,0.1); color: var(--accent); }
.milestone-title { font-size: 0.82rem; font-weight: 700; }
.milestone-desc  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-900);
}
.auth-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #4338CA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.auth-visual::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.05'%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");
}
.auth-visual-content { position: relative; text-align: center; color: #fff; }
.auth-visual-content h2 { font-size: 2rem; margin-bottom: var(--space-md); }
.auth-visual-content p { opacity: 0.8; font-size: 1rem; line-height: 1.7; }
.auth-visual-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  text-align: right;
}
.auth-visual-feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
}
.auth-visual-feature i { font-size: 1.1rem; }
.auth-visual-feature span { font-size: 0.9rem; font-weight: 500; }
.auth-form-container {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  overflow-y: auto;
}
.auth-form-box { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-2xl); }
.auth-form-box h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; }
.auth-form-box .auth-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-2xl); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-link {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-link a { color: var(--primary); font-weight: 600; }

/* ============================================
   OVERLAY FOR MOBILE SIDEBAR
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close { display: flex; }
  .main-content { margin-right: 0; }
  .sidebar-toggle { display: flex; }
  .content-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 1.75rem;
    --space-3xl: 2.5rem;
  }

  /* Landing Mobile */
  .navbar-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 99;
  }
  .navbar-menu.open { display: flex; }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 2rem; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .navbar-actions .btn { display: none; }
  .navbar-actions { gap: var(--space-sm); }
  .navbar-actions .btn:last-child { display: inline-flex; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero { padding: 5rem 0 3rem; }
  .hero-visual { display: none; }
  .hero-badge, .hero-actions { justify-content: center; }
  .hero-subtitle { margin: 0 auto var(--space-xl); }
  .hero-stats { justify-content: center; }

  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.plan-popular { transform: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:not(:first-child) { display: none; }

  /* App Mobile */
  .page-content { padding: var(--space-md); }
  .topbar { padding: 0 var(--space-md); }
  .search-box { display: none; }
  .page-header { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .stat-card { padding: var(--space-md); }
  .stat-value { font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .content-grid-equal { grid-template-columns: 1fr; }
  .kanban-board { min-height: 300px; }
  .data-table thead th, .data-table td { padding: 0.6rem 0.75rem; font-size: 0.8rem; }

  /* Auth Mobile */
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-container { padding: var(--space-xl); min-height: 100vh; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: var(--space-xs); }
  .quick-actions { gap: var(--space-xs); }
  .modal { margin: var(--space-sm); }
  .tabs { gap: 0; }
  .tab-btn { padding: 0.75rem 0.85rem; font-size: 0.78rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.d-flex       { display: flex; }
.d-grid       { display: grid; }
.d-none       { display: none; }
.d-block      { display: block; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }
.gap-lg       { gap: var(--space-lg); }
.flex-1       { flex: 1; }
.w-100        { width: 100%; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-danger  { color: var(--danger); }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-sm      { font-size: 0.85rem; }
.font-xs      { font-size: 0.75rem; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.p-0   { padding: 0 !important; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.border-bottom { border-bottom: 1px solid var(--border); }
.bg-surface { background: var(--surface); }
.bg-gray    { background: var(--gray-50); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .sidebar, .topbar, .navbar, .footer { display: none !important; }
  .main-content { margin: 0 !important; }
  body { background: white; }
}