/* ============================================================
   PREMIUM.CSS — Unified Design System for ScriptRent
   Covers: User Pages, Admin Panel, Auth Pages, Mobile
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Brand Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #818cf8;
  --primary-bg: rgba(79,70,229,0.08);

  /* Surfaces */
  --bg-body: #0f1117;
  --bg-surface: #1a1d2e;
  --bg-card: #1e2235;
  --bg-card-hover: #252a40;
  --bg-input: #161929;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: #2a2f45;
  --border-light: #353b55;

  /* Status Colors */
  --success: #22c55e;
  --success-bg: rgba(34,197,94,0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.12);
  --info: #3b82f6;
  --info-bg: rgba(59,130,246,0.12);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #a5b4fc; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   SECTION 1 — PUBLIC NAVBAR (User-facing pages)
   ============================================================ */
.navbar {
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container, .navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.navbar .logo { display: flex; align-items: center; gap: 10px; }
.navbar .logo i { color: var(--primary); font-size: 1.4rem; }
.navbar .logo h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.navbar .logo h2 a { color: inherit; }
.nav-menu, .nav-links { display: flex; align-items: center; gap: 8px; }
.nav-menu li a, .nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-menu li a:hover, .nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-menu li a.btn-login { color: var(--primary-light); }
.nav-menu li a.btn-signup, .btn-primary-nav {
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-sm);
}
.nav-menu li a.btn-signup:hover, .btn-primary-nav:hover { background: var(--primary-hover); }

.hamburger { display: none; cursor: pointer; font-size: 1.4rem; color: var(--text-primary); background: none; border: none; }

/* ============================================================
   SECTION 2 — CONTAINER & LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   SECTION 3 — AUTH PAGES (Login, Register, Forgot)
   ============================================================ */
.auth-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* ============================================================
   SECTION 4 — FORM ELEMENTS (shared across all pages)
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-control, .form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.form-group small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   SECTION 5 — BUTTONS
   ============================================================ */
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary, button[type="submit"] { background: var(--primary); color: white; }
.btn-primary:hover, button[type="submit"]:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: #1a1a1a; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   SECTION 6 — ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.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-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(59,130,246,0.2); }

/* ============================================================
   SECTION 7 — STATUS BADGES
   ============================================================ */
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  text-transform: capitalize;
}
.status-active, .status-completed, .status-paid     { background: var(--success-bg); color: var(--success); }
.status-pending, .status-unpaid                       { background: var(--warning-bg); color: var(--warning); }
.status-expired, .status-cancelled, .status-suspended { background: var(--danger-bg);  color: var(--danger); }
.status-open                                          { background: var(--info-bg);    color: var(--info); }
.status-resolved, .status-closed                      { background: var(--success-bg); color: var(--success); }

/* ============================================================
   SECTION 8 — TABLES (shared for admin + user)
   ============================================================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   SECTION 9 — CARDS & STAT PANELS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-info h3 { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-info .number { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.stat-icon {
  width: 48px; height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon i { font-size: 1.2rem; color: var(--primary); }

/* ============================================================
   SECTION 10 — ADMIN SIDEBAR
   ============================================================ */
.admin-container { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 1000;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sidebar-header h3 { color: var(--primary); font-size: 1.3rem; }
.sidebar-header p { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.sidebar-menu { padding: 16px 0; }
.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.menu-item i { width: 24px; margin-right: 12px; font-size: 1rem; }
.menu-item:hover { background: var(--bg-card); color: var(--text-primary); }
.menu-item.active {
  background: var(--primary);
  color: white;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-right: 12px;
}
.menu-item.active i { color: white; }
.badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
}

/* ── Admin Main Content ── */
.main-content {
  flex: 1;
  margin-left: 260px;
  transition: margin var(--transition);
}
.top-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 900;
}
.page-title { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.admin-profile { display: flex; align-items: center; gap: 14px; }
.admin-profile span { color: var(--text-secondary); font-size: 0.9rem; }
.admin-profile i { color: var(--primary); }
.logout-btn {
  padding: 8px 16px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.logout-btn:hover { background: rgba(239,68,68,0.2); color: #f87171; }
.content-area { padding: 28px; }

/* ── Admin Mobile Toggle ── */
.menu-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px; height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: none;
  text-align: center;
  line-height: 52px;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
  z-index: 1100;
  cursor: pointer;
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--primary-hover); transform: scale(1.08); }

/* ============================================================
   SECTION 11 — USER DASHBOARD LAYOUT
   ============================================================ */
.dashboard-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.dashboard-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.welcome-card h1 { font-size: 1.5rem; font-weight: 700; }
.welcome-card p { opacity: 0.85; margin-top: 4px; }
.quick-stats { display: flex; gap: 24px; }
.quick-stat { text-align: center; }
.quick-stat .number { font-size: 1.4rem; font-weight: 700; display: block; }
.quick-stat .label { font-size: 0.8rem; opacity: 0.8; }

/* ============================================================
   SECTION 12 — LANDING PAGE SECTIONS
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-body) 0%, #1a1040 50%, var(--bg-body) 100%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero .highlight { color: var(--primary-light); }
.hero p { color: var(--text-secondary); font-size: 1.2rem; max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Script Cards (Landing + Scripts page) */
.scripts-grid, .script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.script-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.script-card img { border-radius: var(--radius-md); margin-bottom: 16px; width: 100%; height: 180px; object-fit: cover; }
.script-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-primary); }
.script-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.script-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.script-badge.popular { background: #e11d48; }
.features-mini { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.features-mini span { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 4px; }
.features-mini i { color: var(--success); font-size: 0.75rem; }
.script-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.script-card .price .amount { font-size: 1.5rem; font-weight: 700; color: var(--primary-light); }
.script-card .price .period { color: var(--text-muted); font-size: 0.9rem; }
.btn-card {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}
.btn-card:hover { background: var(--primary-hover); color: white; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   SECTION 13 — FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { margin-bottom: 16px; font-size: 1rem; color: var(--text-primary); }
.footer-col p { color: var(--text-muted); line-height: 1.7; font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col i { margin-right: 8px; color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   SECTION 14 — PRICING CARDS (script-details.php)
   ============================================================ */
.pricing-section, .features-section, .domain-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
}
.pricing-section h2, .features-section h2, .domain-section h2 { font-size: 1.4rem; margin-bottom: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.pricing-card.selected { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 0 0 3px var(--primary-bg); }
.pricing-card .plan { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--primary-light); line-height: 1; margin-bottom: 8px; }
.pricing-card .price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .period { color: var(--text-secondary); margin-bottom: 12px; }
.pricing-card .saving { background: var(--success-bg); color: var(--success); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; }
.pricing-card .original-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; margin-top: 8px; }

.domain-input { flex: 1; padding: 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 1rem; min-width: 250px; }
.domain-input:focus { border-color: var(--primary); outline: none; }
.domain-input-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   SECTION 15 — BREADCRUMB
   ============================================================ */
.breadcrumb { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--text-muted); }

/* ============================================================
   SECTION 16 — ADMIN SETTINGS TABS
   ============================================================ */
.tab-btn {
  padding: 10px 20px;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}
.tab-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary-light);
  border: 1px solid var(--border);
  border-bottom-color: var(--bg-card);
  font-weight: 600;
}
.settings-section {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.settings-section h3 { margin-bottom: 20px; color: var(--text-primary); font-size: 1.1rem; }
.section-desc { color: var(--text-secondary); margin-bottom: 20px; padding: 12px; background: var(--bg-card); border-radius: var(--radius-sm); font-size: 0.9rem; }
.preview-box { margin-top: 12px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); }

/* ============================================================
   SECTION 17 — MISC COMPONENTS
   ============================================================ */

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.pagination a:hover { background: var(--bg-card); color: var(--text-primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* View All / Section Links */
.view-all { text-align: center; margin-top: 32px; }
.btn-link { color: var(--primary-light); font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-link:hover { color: #a5b4fc; }

/* Loading Spinner */
.spinner {
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 36px; height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal Overlay */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%; max-width: 500px;
  box-shadow: var(--shadow);
}

/* Script Detail Header */
.script-detail { padding: 40px 0; }
.script-header { margin-bottom: 32px; }
.script-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.script-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.script-category { background: var(--primary-bg); color: var(--primary-light); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.script-id { color: var(--text-muted); font-size: 0.85rem; }
.script-description { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; max-width: 800px; }
.demo-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 20px; border: 1px solid var(--primary); color: var(--primary-light); border-radius: var(--radius-md); font-weight: 500; transition: var(--transition); }
.demo-link:hover { background: var(--primary); color: white; }

/* Feature items */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-surface); border-radius: var(--radius-sm); transition: var(--transition); }
.feature-item:hover { background: var(--bg-card-hover); transform: translateX(4px); }
.feature-item i { color: var(--primary); font-size: 1.1rem; }
.feature-item span { color: var(--text-secondary); }

/* Related Scripts */
.related-section { margin-top: 48px; }
.related-section h2 { font-size: 1.4rem; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; transition: var(--transition); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card h3 { color: var(--text-primary); margin-bottom: 8px; }
.related-card .price { color: var(--primary-light); font-weight: 700; font-size: 1.1rem; }

/* Domain status */
.domain-status { padding: 14px; border-radius: var(--radius-md); margin: 12px 0; }
.domain-status.success { background: var(--success-bg); color: var(--success); }
.domain-status.error { background: var(--danger-bg); color: var(--danger); }

/* Nameserver box */
.nameserver-info { background: var(--bg-surface); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius-md); margin: 16px 0; display: none; }
.nameserver-info h3 { font-size: 1.1rem; margin-bottom: 12px; }
.nameserver-box { background: var(--bg-input); padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Courier New', monospace; margin: 12px 0; color: var(--text-primary); }
.nameserver-box strong { color: var(--primary-light); }
.copy-btn { padding: 6px 12px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; margin-left: 8px; }

/* Order button */
.btn-order { display: inline-block; padding: 16px 48px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-order:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.3); }
.btn-order:disabled { background: var(--border); cursor: not-allowed; opacity: 0.5; color: var(--text-muted); }

/* Login prompt */
.login-prompt { padding: 16px; background: var(--warning-bg); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-md); color: var(--warning); margin-top: 16px; }
.login-prompt a { color: var(--primary-light); font-weight: 600; }

/* ============================================================
   SECTION 18 — ADMIN LOGIN PAGE
   ============================================================ */
.admin-login-body { background: var(--bg-body); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-box { width: 100%; max-width: 400px; padding: 40px 32px; }
.admin-login-box h1 { text-align: center; font-size: 1.5rem; margin-bottom: 8px; color: var(--text-primary); }
.admin-login-box p { text-align: center; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   SECTION 19 — MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Admin sidebar collapses */
  .sidebar { transform: translateX(-100%); }
  .sidebar.active { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }

  /* Navbar mobile */
  .nav-menu, .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 999; }
  .nav-menu.active, .nav-links.active { display: flex; }
  .hamburger, .mobile-toggle { display: block; background: transparent; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; padding: 10px; }

  /* Tables scroll */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Grids stack */
  .pricing-grid,
  .features-grid,
  .related-grid,
  .feature-grid,
  .scripts-grid,
  .script-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Welcome card */
  .welcome-card { flex-direction: column; text-align: center; }
  .quick-stats { justify-content: center; }

  /* Hero */
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  /* Auth */
  .auth-box { padding: 32px 24px; margin: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Tab buttons */
  .tab-btn { padding: 8px 12px; font-size: 0.8rem; }

  /* Domain input */
  .domain-input-group { flex-direction: column; }

  /* Top nav */
  .top-nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .page-title { font-size: 1rem; }
  .content-area { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .pricing-card .price { font-size: 2rem; }
  .script-title { font-size: 1.5rem; }
  .card { padding: 16px; }
  .auth-box { padding: 24px 16px; }
  body { font-size: 0.95rem; }
}

/* ============================================================
   SECTION 20 — UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }

/* ============================================================
   SECTION 21 — GRADIENT BRAND VARIABLE
   ============================================================ */
:root {
  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
}

/* ============================================================
   SECTION 22 — AUTH PAGES (btn-submit, auth-footer, etc.)
   ============================================================ */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.auth-footer a {
  color: var(--primary-light);
  font-weight: 600;
  margin-left: 4px;
}
.auth-footer a:hover { color: #a5b4fc; text-decoration: underline; }

.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}
.forgot-password a {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
}
.forgot-password a:hover { color: #a5b4fc; }

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

.whatsapp-input {
  display: flex;
  align-items: center;
  gap: 0;
}
.whatsapp-input span {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.whatsapp-input input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.password-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.password-hint i { color: var(--info); font-size: 0.7rem; }

/* ============================================================
   SECTION 23 — USER DASHBOARD LAYOUT
   ============================================================ */
.dashboard {
  display: flex;
  min-height: calc(100vh - 64px);
}
.dashboard .sidebar {
  width: 260px;
  min-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}
.dashboard .main-content {
  flex: 1;
  padding: 28px;
  margin-left: 0;
  min-width: 0;
}

.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Table containers */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-header h3 i { color: var(--primary); }
.table-container table { margin: 0; }
.table-container td, .table-container th { padding: 14px 24px; }

/* Quick actions */
.section-title {
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.action-card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.action-card h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.action-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Small button */
.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-bg);
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-small:hover { background: var(--primary); color: white; }

/* Avatar & User menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Ticket badge */
.ticket-badge {
  background: var(--danger);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--border-light);
  margin-bottom: 12px;
  display: block;
}
.empty-state p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   SECTION 24 — WALLET PAGE STYLES
   ============================================================ */
.wallet-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -60px;
  right: -40px;
}
.wallet-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -30px;
  left: 20px;
}
.balance-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.balance-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.btn-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-balance:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  color: white;
}

/* Info box */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--info);
  font-size: 0.9rem;
  line-height: 1.6;
}
.info-box i { margin-top: 3px; flex-shrink: 0; font-size: 1.1rem; }
.info-box strong { color: var(--text-primary); }

/* Renewals card */
.renewals-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}
.renewals-card .card-header {
  padding: 20px 24px;
}
.renewal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.renewal-item:hover { background: rgba(255,255,255,0.02); }
.renewal-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.renewal-info p { color: var(--text-muted); font-size: 0.85rem; }
.renewal-info p i { margin-right: 4px; }
.renewal-amount {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1.05rem;
}
.renewal-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}
.auto-renew-badge {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Settings card */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.settings-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-card h3 i { color: var(--text-muted); }
.settings-card p {
  padding: 10px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-primary { color: var(--primary-light) !important; }

/* ============================================================
   SECTION 25 — MODALS (Wallet Add Funds)
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal[style*="display: block"] {
  display: flex !important;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-content h2 i { color: var(--primary); }
.close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  line-height: 1;
}
.close:hover { color: var(--text-primary); }

.bank-details {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.bank-details strong { color: var(--text-primary); }

.modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal-footer span { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   SECTION 26 — LANDING PAGE SECTIONS (index.php)
   ============================================================ */
/* Hero stats row */
.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.stat-item { text-align: left; }
.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}
.stat-item p {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-image { display: flex; justify-content: center; align-items: center; }

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* How-it-works */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-surface);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.step {
  padding: 28px 16px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}
.step i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }

/* Pricing section */
.pricing {
  padding: 80px 0;
}
.pricing .pricing-card {
  background: var(--bg-card);
}
.pricing .pricing-card h3 {
  color: var(--text-muted);
}
.pricing .pricing-card .currency {
  color: var(--text-primary);
  font-size: 1.1rem;
  vertical-align: top;
  font-weight: 600;
}
.pricing .pricing-card .amount {
  color: var(--text-primary);
}
.pricing .pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing .pricing-card li { margin-bottom: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.pricing .pricing-card li i { color: var(--primary); margin-right: 8px; }
.pricing .popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-pricing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.btn-pricing:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  color: white;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1040 0%, #312e81 50%, #1a1040 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; color: var(--text-secondary); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}
.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
  color: white;
}

/* Scripts section */
.scripts { padding: 80px 0; }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--bg-body) 0%, #1a1040 50%, var(--bg-body) 100%);
  padding: 100px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.page-hero h1 i { margin-right: 12px; color: var(--primary-light); }
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* Filter bar for scripts page */
.filter-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.filter-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-bar form { display: contents; }
.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.filter-select {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--primary); }
.btn-filter {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-filter:hover { background: var(--primary-hover); }
.btn-reset {
  padding: 10px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-reset:hover { border-color: var(--primary); color: var(--primary-light); }
.results-meta { padding: 20px 0 8px; color: var(--text-muted); font-size: 0.85rem; }
.results-meta strong { color: var(--text-primary); }
.scripts-section { padding: 8px 0 80px; }

/* Script card body & footer for scripts.php */
.script-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.script-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-light);
  overflow: hidden;
}
.script-card-img img { width: 100%; height: 100%; object-fit: cover; }
.script-category-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.script-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.price-block .amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-light);
}
.price-block .period {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 2px;
}
.btn-rent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-rent:hover { background: var(--primary-hover); color: white; }

/* ============================================================
   SECTION 27 — MOBILE NAV TOGGLE & OVERLAY
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.nav-overlay.show { display: block; }

/* ============================================================
   SECTION 28 — STATUS BADGES (missing variants)
   ============================================================ */
.status-expiring { background: var(--warning-bg); color: var(--warning); }
.status-credit { background: var(--success-bg); color: var(--success); }
.status-debit { background: var(--danger-bg); color: var(--danger); }
.badge-auto {
  display: inline-block;
  background: var(--info-bg);
  color: var(--info);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}
.badge-credit { color: var(--success); }
.badge-debit { color: var(--danger); }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-active, .dot-connected { background: var(--success); box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.dot-pending { background: var(--warning); box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.dot-failed, .dot-error { background: var(--danger); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.domain-status { display: flex; align-items: center; }
.welcome-text { flex: 1; }

/* ============================================================
   SECTION 29 — MICRO-ANIMATIONS & POLISH
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-card, .action-card, .script-card, .pricing-card, .feature-card, .renewal-item {
  animation: fadeInUp 0.4s ease both;
}
.stat-card:nth-child(2), .action-card:nth-child(2), .script-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3), .action-card:nth-child(3), .script-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4), .action-card:nth-child(4), .script-card:nth-child(4) { animation-delay: 0.18s; }

/* Smooth focus ring for all interactives */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(15, 17, 23, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   SECTION 30 — EXTENDED MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 40px;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1005;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu li a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  /* Dashboard mobile */
  .dashboard { flex-direction: column; }
  .dashboard .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dashboard .main-content { padding: 16px; }

  .quick-actions { grid-template-columns: 1fr 1fr; }
  .name-row { grid-template-columns: 1fr; }
  .balance-amount { font-size: 2rem; }
  .balance-actions { flex-wrap: wrap; }
  .wallet-card { padding: 24px; }

  .filter-bar .container { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .filter-select { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .stats { flex-wrap: wrap; gap: 20px; }
  .page-hero { padding: 64px 0 32px; }
  .page-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr; }
  .balance-amount { font-size: 1.6rem; }
  .hero h1 { font-size: 1.5rem; }
}
