/* style.css - Public Storefront Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161e;
  --bg-card-hover: #1e1e28;
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(99,102,241,0.4);
  --text-primary: #f0f0f8;
  --text-secondary: #8b8ba8;
  --text-muted: #55556a;
  --accent-purple: #6366f1;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #111130 50%, #0a0a0f 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* PARTICLES */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(99,102,241,0.4);
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(99,102,241,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* HERO */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 24px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  min-width: 130px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* FEATURES */
.features {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ORDER SECTION */
.order-section {
  padding: 80px 0;
  background: var(--bg-primary);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 16px; }
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) { .order-layout { grid-template-columns: 1fr; } }

.order-form-card, .payment-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group textarea { resize: vertical; }

/* QUANTITY CONTROL */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 48px; height: 48px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover { background: rgba(99,102,241,0.15); }
.quantity-control input {
  flex: 1;
  text-align: center;
  border: none;
  border-radius: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 700;
  font-size: 18px;
}

/* PRICE SUMMARY */
.price-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 12px;
  margin-top: 4px;
}
.price-row.total span:last-child {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* PAYMENT STEPS */
.payment-steps { margin-bottom: 24px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px;
  min-width: 32px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.step-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.step-text p { font-size: 12px; color: var(--text-muted); }

/* BANK INFO */
.bank-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.bank-header {
  padding: 12px 16px;
  background: rgba(99,102,241,0.1);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
}
.bank-detail { padding: 12px 16px; }
.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.bank-row span { color: var(--text-muted); }
.bank-row strong { color: var(--text-primary); }

/* CHECK SECTION */
.check-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}
.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.check-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.check-card > p { color: var(--text-secondary); margin-bottom: 24px; }
.check-form {
  display: flex;
  gap: 12px;
}
.check-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.check-form input:focus { border-color: var(--accent-purple); }

.order-status-result {
  margin-top: 24px;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.order-status-result h4 { font-size: 16px; margin-bottom: 12px; }
.account-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
  font-size: 13px;
}
.account-item .email { font-weight: 700; color: #a5b4fc; }
.account-item .pass { color: var(--text-secondary); }
.account-item .expiry { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.status-active { background: rgba(16,185,129,0.15); color: #10b981; }
.status-pending { background: rgba(249,115,22,0.15); color: #f97316; }
.status-deleted { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-completed { background: rgba(16,185,129,0.15); color: #10b981; }
.status-paid { background: rgba(16,185,129,0.15); color: #10b981; }
.status-unpaid { background: rgba(249,115,22,0.15); color: #f97316; }

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon { font-size: 56px; margin-bottom: 16px; }
.modal h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal > p { color: var(--text-secondary); margin-bottom: 16px; }
.order-id-box {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: monospace;
  font-size: 14px;
  color: #a5b4fc;
  word-break: break-all;
  margin-bottom: 16px;
  cursor: pointer;
}
.modal-note { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* FOOTER */
.footer {
  padding: 40px 0;
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer p { color: var(--text-muted); font-size: 13px; }
.footer-note { margin-top: 8px; font-size: 12px; }

/* LOADING SPINNER */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* VARIANT CARDS */
.variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.variant-card {
  position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}
.variant-card:hover {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.05);
}
.variant-card.active {
  border-color: var(--accent-purple);
  background: rgba(99,102,241,0.1);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}
.variant-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--gradient-1);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 var(--radius) 0 8px;
  letter-spacing: 0.5px;
}
.variant-days {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.variant-card.active .variant-days { color: #a5b4fc; }
.variant-price {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.variant-price span {
  font-size: 12px;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}
.variant-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
