/* ============================================================
   SMMSpot – Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #3B5BDB;
  --primary-dark: #2f4cc4;
  --primary-light:#EEF2FF;
  --success:      #12B76A;
  --success-bg:   #ECFDF5;
  --warning:      #F79009;
  --warning-bg:   #FFFAEB;
  --danger:       #F04438;
  --danger-bg:    #FEF3F2;
  --info:         #0BA5EC;
  --info-bg:      #F0F9FF;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-300:     #D1D5DB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-600:     #4B5563;
  --gray-700:     #374151;
  --gray-800:     #1F2937;
  --gray-900:     #111827;
  --white:        #ffffff;
  --sidebar-w:    260px;
  --topbar-h:     68px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 24px rgba(0,0,0,.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,.10);
  --transition:   .2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: #EEF2FF;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── Layout ─────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  box-shadow: var(--shadow);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--gray-800);
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.logo-text { font-weight: 500; letter-spacing: -0.3px; }
.logo-text strong { font-weight: 800; color: var(--primary); }

.sidebar-close {
  display: none;
  background: none; border: none;
  color: var(--gray-500);
  padding: 4px;
  border-radius: 6px;
}
.sidebar-close:hover { background: var(--gray-100); }

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--gray-100);
}

.user-card-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.user-card-info { flex: 1; min-width: 0; }
.user-card-role { display: block; font-size: 10px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.user-card-name { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--gray-600);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

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

.nav-item svg { flex-shrink: 0; }

.sidebar-bottom {
  padding: 8px 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
}

/* ── Main Content ──────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  background: none; border: none;
  color: var(--gray-500);
  padding: 6px;
  border-radius: 8px;
  display: none;
}
.sidebar-toggle:hover { background: var(--gray-100); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-800); font-weight: 600; }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.topbar-user .avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.user-role { font-size: 11px; color: var(--gray-400); }

.dropdown-menu-wrap { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.topbar-user:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-700);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-50); }
.dropdown-menu a.text-danger { color: var(--danger); }

/* ── Page Content ──────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px;
}

.page-header {
  margin-bottom: 24px;
}
.page-title { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.page-subtitle { font-size: 13.5px; color: var(--gray-500); margin-top: 4px; }

/* ── Welcome Banner ────────────────────────────────────── */
.welcome-banner {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: .5;
}
.welcome-banner h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.welcome-banner p { color: var(--gray-500); font-size: 14px; max-width: 480px; }

/* ── Stat Cards ────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-card-icon.blue  { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.green { background: var(--success-bg);    color: var(--success); }
.stat-card-icon.red   { background: var(--danger-bg);     color: var(--danger); }

.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -1px; }

.stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 16px -24px -24px;
  border-top: 1px solid var(--gray-100);
  font-size: 12.5px;
  font-weight: 500;
  transition: background var(--transition);
}
.stat-card-footer:hover { background: var(--gray-50); }
.stat-card-footer a { display: flex; align-items: center; width: 100%; justify-content: space-between; }
.stat-card-footer.blue a { color: var(--primary); }
.stat-card-footer.green a { color: var(--success); }
.stat-card-footer.red a { color: var(--danger); }

/* ── Card ──────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.card-title-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.card-body { padding: 24px; }

/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: all var(--transition);
}
.tab-btn.active {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: white;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,.1);
}
.form-control::placeholder { color: var(--gray-400); }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray-400);
  pointer-events: none;
}

.select-with-icon {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
  transition: all var(--transition);
}
.select-with-icon:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,.1);
}
.select-platform-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.select-with-icon select {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  color: var(--gray-800);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.service-option-wrap {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  transition: all var(--transition);
}
.service-option-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,.1);
}
.service-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-bottom: 1px solid var(--gray-100);
}
.service-id-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.service-option-wrap select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--gray-700);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 2px;
}

.form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}

.qty-range { width: 100%; margin-top: 8px; accent-color: var(--primary); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,91,219,.3); }

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { background: #0e9557; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #c9302c; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-success  { background: var(--success-bg);  color: var(--success); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger); }
.badge-info     { background: var(--info-bg);     color: var(--info); }
.badge-secondary{ background: var(--gray-100);    color: var(--gray-600); }
.badge-primary  { background: var(--primary-light); color: var(--primary); }

/* ── Table ─────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead { background: var(--gray-50); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

.table-link { color: var(--gray-600); font-size: 12px; word-break: break-all; max-width: 160px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Alerts ────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: var(--success-bg); color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger   { background: var(--danger-bg);  color: #9B1C1C; border: 1px solid #FECACA; }
.alert-warning  { background: var(--warning-bg); color: #92400E; border: 1px solid #FDE68A; }
.alert-info     { background: var(--info-bg);    color: #075985; border: 1px solid #BAE6FD; }

/* ── Order Info Panel ──────────────────────────────────── */
.order-info-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}
.order-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.order-info-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.order-info-title { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.order-info-meta { font-size: 11.5px; color: var(--gray-500); }

.order-info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.order-info-stat label { font-size: 11px; color: var(--gray-400); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.order-info-stat span { font-size: 13px; font-weight: 600; color: var(--gray-800); }

.order-how {
  margin-top: 16px;
}
.order-how h4 { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.order-how ul { list-style: none; padding: 0; }
.order-how li {
  font-size: 12.5px;
  color: var(--gray-600);
  padding: 4px 0 4px 16px;
  position: relative;
}
.order-how li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Subtotal Bar ──────────────────────────────────────── */
.subtotal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  margin: 24px -24px -24px;
}
.subtotal-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.subtotal-value { font-size: 18px; font-weight: 800; color: var(--primary); }

/* ── Two col layout ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ── Services Grid ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.service-card {
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.service-platform { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.service-platform-dot { width: 8px; height: 8px; border-radius: 50%; }
.service-card-name { font-size: 13.5px; font-weight: 600; color: var(--gray-800); margin-bottom: 12px; line-height: 1.4; }
.service-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.service-meta-item { font-size: 11.5px; color: var(--gray-500); background: var(--gray-100); padding: 3px 10px; border-radius: 20px; }
.service-card-price { font-size: 16px; font-weight: 800; color: var(--primary); }

/* ── Referral ──────────────────────────────────────────── */
.referral-card {
  text-align: center;
  padding: 40px 32px;
}
.referral-icon { font-size: 56px; margin-bottom: 16px; }
.referral-link-box {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.referral-code {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
  margin: 16px 0;
}

/* ── API Page ──────────────────────────────────────────── */
.api-key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.api-key-box code { flex: 1; font-family: 'Courier New', monospace; font-size: 13px; color: var(--gray-700); word-break: break-all; }

/* ── Tickets ───────────────────────────────────────────── */
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ticket-item:hover { border-color: var(--primary); }
.ticket-item-id { font-size: 11px; color: var(--gray-400); font-weight: 600; }
.ticket-item-subject { font-size: 14px; font-weight: 600; color: var(--gray-800); flex: 1; }
.ticket-item-date { font-size: 12px; color: var(--gray-400); }

/* ── Add Funds ─────────────────────────────────────────── */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.payment-method:hover, .payment-method.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.payment-method-icon { font-size: 28px; }
.payment-method-name { font-size: 12px; font-weight: 600; }

/* ── Profile ───────────────────────────────────────────── */
.profile-avatar-big {
  width: 80px; height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin: 0 auto 20px;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; color: var(--gray-500); }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.auth-header {
  background: var(--primary);
  padding: 32px;
  text-align: center;
  color: white;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.auth-logo-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.auth-subtitle { font-size: 14px; opacity: .85; }
.auth-body { padding: 32px; }
.auth-footer {
  text-align: center;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--gray-100);
  font-size: 13.5px;
  color: var(--gray-500);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── Landing Page ──────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 0 60px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.landing-nav-links { display: flex; align-items: center; gap: 24px; }
.landing-nav-links a { color: var(--gray-600); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.landing-nav-links a:hover { color: var(--primary); }
.landing-nav-actions { display: flex; gap: 12px; }

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 60%, white 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.hero-stat-label { font-size: 12.5px; color: var(--gray-500); }

.section { padding: 80px 60px; }
.section-center { text-align: center; }
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.section p.lead {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }

.platforms-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.platform-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition);
}
.platform-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.pricing-section { background: var(--gray-50); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  text-align: center;
  padding: 28px 20px;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--gray-500); }

.landing-footer {
  background: var(--gray-900);
  color: white;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.landing-footer p { font-size: 13px; color: var(--gray-400); }
.landing-footer-links { display: flex; gap: 20px; }
.landing-footer-links a { font-size: 13px; color: var(--gray-400); transition: color var(--transition); }
.landing-footer-links a:hover { color: white; }

/* ── Notification toast ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--gray-900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideIn .3s ease;
  max-width: 340px;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-danger   { border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(110%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}
.page-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  background: white;
  outline: none;
}
.filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--primary);
}

/* ── Admin stats ─────────────────────────────────────────── */
.admin-stat {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--gray-100);
}
.admin-stat-label { font-size: 12px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.admin-stat-value { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-top: 6px; }

/* ── Progress bar ─────────────────────────────────────────── */
.progress { background: var(--gray-200); border-radius: 10px; height: 6px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; border-radius: 10px; background: var(--primary); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .stats-row { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  .landing-nav { padding: 0 24px; }
  .landing-nav-links { display: none; }
}
@media (max-width: 600px) {
  .page-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .user-info { display: none; }
  .payment-methods { grid-template-columns: repeat(3,1fr); }
}

/* ── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-400); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.hidden { display: none; }
