/* ===== FlashService — Premium Dark Theme ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222842;
  --bg-input: #151b2e;
  --border: #2a3150;
  --border-focus: #6366f1;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --online: #22c55e;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }
.main-wrapper { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.main-content { padding: 2rem; flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: 1.25rem;
}
.brand-icon { font-size: 2rem; color: var(--accent); }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.sidebar-nav { padding: 1rem 0; flex: 1; overflow-y: auto; }
.nav-section { padding: 0 1rem; margin-bottom: 1.5rem; }
.nav-section-title {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.5rem; padding: 0 0.75rem;
}
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { background: var(--accent-glow); color: var(--text-primary); }
.nav-link.active { background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4); }
.nav-link i { font-size: 1.25rem; }
.mt-auto { margin-top: auto; }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.credits-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  padding: 0.4rem 1rem; border-radius: 20px;
  font-weight: 600; font-size: 0.85rem; color: #fff;
}
.user-menu { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.user-name { font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.page-header h1 { font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.page-header p { color: var(--text-muted); margin-top: 0.25rem; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.stat-primary .stat-icon { background: var(--accent-glow); color: var(--accent); }
.stat-success .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-online .stat-icon { background: var(--success-bg); color: var(--online); }
.stat-warning .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-error .stat-icon { background: var(--danger-bg); color: var(--danger); }
.stat-info .stat-icon { background: var(--info-bg); color: var(--info); }
.stat-value { font-size: 1.5rem; font-weight: 700; display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h2 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.card-body { padding: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table tbody tr:hover { background: var(--bg-card-hover); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--accent-glow); color: var(--accent); }
.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-outline { border: 1px solid var(--border); color: var(--text-secondary); }

/* ===== STATUS DOT ===== */
.status-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 0.25rem;
}
.status-online { background: var(--online); box-shadow: 0 0 8px var(--online); animation: pulse-green 2s infinite; }
.status-offline { background: var(--danger); }
.status-expired { background: var(--text-muted); }
.status-dormant { background: var(--text-muted); }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px var(--online); }
  50% { box-shadow: 0 0 12px var(--online); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer;
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.4rem;
}
.form-group label i { margin-right: 0.25rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.9rem; font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 3rem; }
.password-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.2rem;
}

/* ===== ALERTS ===== */
.alert {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
  margin-bottom: 1rem; font-size: 0.9rem;
  transition: opacity 0.3s;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.alert i { font-size: 1.25rem; flex-shrink: 0; }

/* ===== MODALS ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.95) translateY(10px); } }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ===== FILTERS ===== */
.filters-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.45rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== DEVICES GRID ===== */
.devices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.device-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.device-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card-hover);
}
.device-status { display: flex; align-items: center; gap: 0.5rem; }
.device-card-body { padding: 1rem 1.25rem; }
.device-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; font-size: 0.85rem;
}
.info-label { color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.info-value { font-weight: 500; text-align: right; }
.device-card-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #c9d1d9;
  white-space: pre;
  max-height: 500px;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.tab {
  padding: 0.75rem 1.5rem;
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 0.5rem;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== INSTALL STEPS ===== */
.install-steps { margin-bottom: 1.5rem; }
.step {
  display: flex; gap: 1rem; margin-bottom: 1rem;
  padding: 0.75rem; border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
}
.step-number {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.step-content h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.step-content p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state p { margin-bottom: 1rem; }

/* ===== AUTH PAGES ===== */
.auth-page { background: var(--bg-primary); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-container { display: flex; width: 90%; max-width: 900px; min-height: 580px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.auth-card {
  flex: 1; background: var(--bg-card);
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { margin-bottom: 1rem; }
.auth-logo i { font-size: 3.5rem; color: var(--accent); }
.auth-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.auth-header p { color: var(--text-muted); }
.auth-form { max-width: 360px; margin: 0 auto; width: 100%; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-decoration {
  flex: 1; background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.decoration-content { text-align: center; color: #fff; }
.decoration-icon { font-size: 5rem; margin-bottom: 1.5rem; opacity: 0.9; }
.decoration-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.decoration-content p { opacity: 0.85; font-size: 0.95rem; }

/* ===== ERROR PAGE ===== */
.error-container { text-align: center; padding: 3rem; }
.error-container h1 { font-size: 2rem; margin: 1rem 0 0.5rem; }
.error-container p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== UTILITIES ===== */
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85em; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .sidebar-close { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: block; }
  .main-content { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .devices-grid { grid-template-columns: 1fr; }
  .auth-container { flex-direction: column; max-width: 440px; }
  .auth-decoration { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .topbar { padding: 0 1rem; }
  .tabs { overflow-x: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .user-name { display: none; }
}

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.25rem; margin-top: 1.5rem; justify-content: center; }
.page-btn {
  padding: 0.4rem 0.85rem; border-radius: 6px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== CREDITS GRID ===== */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.credit-pack {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; position: relative;
  transition: var(--transition);
}
.credit-pack:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.credit-pack.popular { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.pack-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  padding: 0.2rem 0.85rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.pack-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pack-credits { margin-bottom: 0.5rem; }
.pack-amount { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.pack-unit { font-size: 1rem; color: var(--text-muted); }
.pack-bonus { color: var(--success); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.pack-price { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.pack-details { text-align: left; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.pack-details div { padding: 0.25rem 0; display: flex; align-items: center; gap: 0.5rem; }

/* ===== PRICING INFO BAR ===== */
.pricing-info { display: flex; gap: 2rem; flex-wrap: wrap; }
.pricing-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.pricing-item i { color: var(--accent); font-size: 1.25rem; }

/* ===== PAYMENT METHODS ===== */
.payment-methods { display: flex; flex-direction: column; gap: 1rem; }
.payment-method {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
}
.payment-method p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

/* ===== AFFILIATE ===== */
.affiliate-link-box { display: flex; gap: 0.5rem; }
.affiliate-input {
  flex: 1; padding: 0.75rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
}

/* ===== SETTINGS GRID ===== */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

/* ===== REMOTE ACCESS ===== */
.remote-access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.remote-card {
  background: var(--bg-card-hover); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  transition: var(--transition);
}
.remote-card:hover { border-color: var(--accent); }
.remote-icon { font-size: 2rem; color: var(--accent); margin-bottom: 0.75rem; }
.remote-card h4 { margin-bottom: 0.75rem; }
.remote-info { text-align: left; margin-bottom: 1rem; }
.remote-connect { margin-top: 0.5rem; }
.remote-connect code {
  display: block; background: var(--bg-input); padding: 0.5rem;
  border-radius: 6px; word-break: break-all;
}

/* ===== LANDING PAGE ===== */
.landing-body { overflow-x: hidden; }
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem; backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--border);
}
.landing-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary); text-decoration: none;
}
.landing-brand i { color: var(--accent); font-size: 1.75rem; }
.landing-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.landing-nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.landing-nav-links a:hover { color: var(--accent); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              var(--bg-primary);
}
.hero-content { max-width: 750px; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: var(--accent-glow); border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-stat span:last-child { font-size: 0.85rem; color: var(--text-muted); }

/* Sections */
.section { padding: 5rem 3rem; max-width: 1200px; margin: 0 auto; }
.section-dark { background: var(--bg-secondary); max-width: 100%; }
.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; margin-bottom: 0.75rem; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.feature-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; padding: 0 2rem; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  text-align: center; position: relative;
  transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); transform: scale(1.05); }
.price-card.popular:hover { transform: scale(1.05) translateY(-4px); }
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-credits { color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.price-card li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.price-card li i { color: var(--success); }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius); padding: 3rem; text-align: center;
}
.cta-box h2 { font-size: 1.75rem; color: #fff; margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.cta-box .btn { background: #fff; color: var(--accent); }
.cta-box .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Footer */
.landing-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 2rem 3rem; text-align: center;
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.footer-brand i { color: var(--accent); }
.landing-footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }

/* Landing responsive */
@media (max-width: 768px) {
  .landing-nav { padding: 0.75rem 1rem; }
  .landing-nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .section { padding: 3rem 1.5rem; }
  .pricing-grid { padding: 0; }
  .price-card.popular { transform: scale(1); }
  .price-card.popular:hover { transform: translateY(-4px); }
  .credits-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
