:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --primary-50: #f5f3ff;
  --secondary: #0d9488;
  --secondary-light: #5eead4;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.15); } 50% { box-shadow: 0 0 40px rgba(124,58,237,0.3); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes countUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Animation Utilities ── */
.animate-in { opacity: 0; }
.animate-in.show { animation: fadeIn 0.7s ease forwards; }
.animate-in-left.show { animation: fadeInLeft 0.7s ease forwards; }
.animate-in-right.show { animation: fadeInRight 0.7s ease forwards; }
.animate-in-scale.show { animation: fadeInScale 0.7s ease forwards; }
.stagger > * { opacity: 0; }
.stagger.show > *:nth-child(1) { animation: fadeIn 0.6s ease 0.05s forwards; }
.stagger.show > *:nth-child(2) { animation: fadeIn 0.6s ease 0.15s forwards; }
.stagger.show > *:nth-child(3) { animation: fadeIn 0.6s ease 0.25s forwards; }
.stagger.show > *:nth-child(4) { animation: fadeIn 0.6s ease 0.35s forwards; }
.stagger.show > *:nth-child(5) { animation: fadeIn 0.6s ease 0.45s forwards; }
.stagger.show > *:nth-child(6) { animation: fadeIn 0.6s ease 0.55s forwards; }
.stagger.show > *:nth-child(7) { animation: fadeIn 0.6s ease 0.65s forwards; }
.stagger.show > *:nth-child(8) { animation: fadeIn 0.6s ease 0.75s forwards; }
.stagger.show > *:nth-child(9) { animation: fadeIn 0.6s ease 0.85s forwards; }

.float { animation: float 4s ease-in-out infinite; }
.float-delayed { animation: float 5s ease-in-out 1.5s infinite; }

/* ── Navigation (Enhanced) ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar.hidden { transform: translateY(-100%); }
.nav-container {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.5rem;
}
@media (min-width: 768px) { .nav-container { padding: 0 2rem; } }
@media (min-width: 1024px) { .nav-container { padding: 0 2.5rem; } }
@media (min-width: 1400px) { .nav-container { padding: 0 4rem; } }
.nav-brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; flex-shrink: 0; }
.nav-brand span { color: var(--text); transition: color 0.2s; }
.nav-brand:hover span { color: var(--primary); }

/* Nav Links Desktop */
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.125rem; margin: 0 0.75rem; border-radius: 0;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color 0.25s;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  transform-origin: left;
}
.nav-link i { font-size: 0.8125rem; transition: transform 0.25s; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover i { transform: translateY(-1px); }
.nav-link.active {
  color: var(--primary); font-weight: 600;
}
.nav-link.active::after { transform: scaleX(1); }

/* Mobile Menu */
@media (max-width: 767px) {
  .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem; gap: 0.5rem;
    transform: translateX(100%); opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    overflow-y: auto; z-index: 40;
  }
  .nav-links.open { transform: translateX(0); opacity: 1; }
  .nav-link {
    font-size: 1rem; padding: 0.875rem 0; margin: 0;
    border: none; width: 100%;
  }
  .nav-link::after { bottom: 4px; }
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }

/* Buy OTP Button */
.nav-buy-btn {
  display: none; align-items: center; gap: 0.375rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.375rem 0.875rem; border-radius: 0.5rem;
  text-decoration: none; transition: all 0.25s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}
.nav-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
@media (min-width: 640px) { .nav-buy-btn { display: inline-flex; } }

/* Balance Badge */
.nav-balance {
  display: none; align-items: center; gap: 0.375rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 0.5rem; padding: 0.25rem 0.625rem;
  font-size: 0.75rem; font-weight: 700; color: #166534; white-space: nowrap;
}
.nav-balance i { font-size: 0.6875rem; color: #22c55e; }
@media (min-width: 640px) { .nav-balance { display: flex; } }

/* Premium User Name */
.premium-user {
  display: none; font-size: 0.8125rem; font-weight: 600;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #eab308 70%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap;
}
@media (min-width: 640px) { .premium-user { display: inline; } }

/* Avatar */
.nav-profile { position: relative; }
.nav-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.75rem;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}
.nav-avatar:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(124,58,237,0.35); }

/* Profile Dropdown */
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 200px; background: #fff; border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12); border: 1px solid #f1f5f9;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1); z-index: 100;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.profile-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.8125rem; color: #475569;
  transition: all 0.15s; text-decoration: none;
}
.profile-link:hover { background: #f8fafc; color: #1e293b; padding-left: 1.25rem; }

/* Hamburger */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; border: none; background: transparent;
  border-radius: 10px; cursor: pointer; padding: 6px;
  transition: background 0.2s; position: relative;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger:hover { background: #f1f5f9; }
.nav-hamburger span {
  display: block; height: 2px; background: #475569; border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary); box-shadow: none;
}
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
  background-size: 200% 200%; animation: gradientShift 15s ease infinite;
  position: relative; overflow: hidden; padding-top: 5rem;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(168,85,247,0.04));
  animation: float 6s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 500px; height: 500px; top: -100px; right: -100px; }
.hero-shape:nth-child(2) { width: 300px; height: 300px; bottom: 10%; left: -60px; animation-delay: -2s; }
.hero-shape:nth-child(3) { width: 200px; height: 200px; top: 40%; right: 20%; animation-delay: -4s; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.count-up { display: inline-block; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.card-hover:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-hover:hover .card-glow {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}
.card-glow {
  position: absolute; top: 50%; left: 50%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  transition: var(--transition); pointer-events: none;
}
.pricing-card { text-align: center; padding: 2rem; }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.pricing-card .service-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

/* ── Phone Frame Mockup ── */
.phone-wrapper {
  perspective: 1000px;
}
.phone-frame {
  width: 270px; height: 555px; margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone-wrapper:hover .phone-frame {
  transform: rotateY(-6deg) rotateX(4deg);
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
/* Chassis — the metal body */
.phone-chassis {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #1e1e32, #0f0f1a, #1a1a2e);
  border-radius: 52px;
  padding: 10px;
  position: relative;
  box-shadow:
    /* 3D edge bevel */
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    /* outer depth */
    0 0 0 2px rgba(255,255,255,0.04),
    0 35px 60px -15px rgba(0,0,0,0.4),
    0 20px 40px -10px rgba(0,0,0,0.25),
    0 0 80px rgba(124,58,237,0.06);
}

/* Reflection overlay on chassis */
.phone-chassis::before {
  content: ''; position: absolute; inset: 4px; border-radius: 46px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.03) 0%, transparent 30%,
    transparent 70%, rgba(0,0,0,0.3) 100%);
  pointer-events: none; z-index: 1;
}

/* Glossy edge highlight */
.phone-chassis::after {
  content: ''; position: absolute; inset: 0; border-radius: 52px;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.12) 0%, transparent 40%,
    transparent 60%, rgba(255,255,255,0.04) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; z-index: 2;
}

/* Side buttons */
.phone-side-btn {
  position: absolute; right: -4px; width: 3px; z-index: 0;
  background: linear-gradient(90deg, #1a1a2e, #2a2a44, #1a1a2e);
  border-radius: 0 2px 2px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.phone-side-btn.vol-up { top: 110px; height: 20px; }
.phone-side-btn.vol-down { top: 138px; height: 20px; }
.phone-side-btn.power { right: -4px; top: 200px; height: 32px; }
.phone-side-btn-left {
  position: absolute; left: -4px; width: 3px; z-index: 0;
  background: linear-gradient(90deg, #2a2a44, #1a1a2e);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.phone-side-btn-left.silent { top: 84px; height: 12px; }

/* Screen */
.phone-screen {
  width: 100%; height: 100%;
  background: #fff; border-radius: 42px;
  overflow: hidden; position: relative; z-index: 3;
  display: flex; flex-direction: column;
}

/* Screen edge glow */
.phone-screen::after {
  content: ''; position: absolute; inset: 0; border-radius: 42px;
  box-shadow: inset 0 0 8px rgba(124,58,237,0.06);
  pointer-events: none; z-index: 10;
}

/* Dynamic Island */
.phone-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.phone-island-body {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 20px;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}
.phone-island-camera {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a3a, #0a0a1a);
  border: 0.5px solid #222;
}
.phone-island-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #333, #111);
}
/* Glowing notification dot on island */
.phone-island-body::after {
  content: ''; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px rgba(52,199,89,0.5);
  animation: islandPulse 2s ease-in-out infinite;
}
@keyframes islandPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Status Bar */
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 8px; font-size: 11px; font-weight: 700; color: #1a1a2e;
  position: relative; z-index: 5;
}
.phone-status-icons { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #1a1a2e; }

/* Screen body */
.phone-body { flex: 1; padding: 8px 16px 0; overflow: hidden; display: flex; flex-direction: column; }
.phone-body-content { flex: 1; overflow-y: auto; padding-bottom: 4px; }
.phone-body-content::-webkit-scrollbar { display: none; }

/* App Header inside phone */
.phone-app-header {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  margin: -8px -16px 16px; padding: 18px 16px 14px;
  color: #fff; border-radius: 0 0 22px 22px;
  display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
}
.phone-app-header::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.phone-app-header::after {
  content: ''; position: absolute; bottom: -10px; left: -10px;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.phone-app-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.phone-app-title { font-weight: 700; font-size: 14px; }
.phone-app-subtitle { font-size: 10px; opacity: 0.75; font-weight: 500; }

/* SMS Code Card */
.phone-label {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px;
}
.phone-sms-code {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #ddd6fe;
  border-radius: 16px; padding: 14px; text-align: center;
  margin: 4px 0 14px; position: relative; overflow: hidden;
}
.phone-sms-code::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(124,58,237,0.04); pointer-events: none;
}
.phone-sms-label { font-size: 10px; color: #64748b; margin-bottom: 5px; font-weight: 500; }
.phone-sms-digits {
  font-size: 24px; font-weight: 800; color: #7c3aed;
  letter-spacing: 7px; font-variant-numeric: tabular-nums;
}

/* Notification Banner */
.phone-notif {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 12px; padding: 8px 12px; margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
  animation: notifSlide 0.5s ease forwards;
}
@keyframes notifSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.phone-notif-icon {
  width: 28px; height: 28px; border-radius: 8px; background: #dcfce7;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 12px; color: #16a34a;
}
.phone-notif-text { flex: 1; font-size: 10px; line-height: 1.4; }
.phone-notif-title { font-weight: 700; color: #166534; font-size: 11px; }
.phone-notif-sub { color: #4ade80; font-size: 9px; }

/* Balance Bar */
.phone-balance {
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
  border: 1px solid #e4d5fd;
  border-radius: 14px; padding: 10px 14px; margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.phone-balance-label { font-size: 9px; color: #7c3aed; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.phone-balance-amount { font-size: 18px; font-weight: 800; color: #5b21b6; }
.phone-balance-btn {
  font-size: 9px; font-weight: 700; color: #fff;
  background: #7c3aed; border: none; border-radius: 8px;
  padding: 5px 10px; cursor: default;
}

/* Service Cards inside phone */
.phone-services { display: flex; flex-direction: column; gap: 6px; margin-bottom: auto; }
.phone-service-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  background: #fafafa; border: 1px solid #f1f5f9;
  transition: background 0.2s;
}
.phone-service-icon {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.phone-service-icon.wa { background: #f0fdf4; }
.phone-service-icon.ig { background: #fdf2f8; }
.phone-service-icon.tg { background: #f0f9ff; }
.phone-service-icon.bl { background: #fefce8; }
.phone-service-name { flex: 1; font-size: 12px; font-weight: 600; color: #1e293b; }
.phone-service-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.phone-service-price { font-size: 13px; font-weight: 800; color: #7c3aed; }
.phone-service-badge { font-size: 8px; color: #22c55e; font-weight: 600; }

/* Bottom Tab Bar */
.phone-tabs {
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 0 4px; border-top: 1px solid #f1f5f9; margin: 0 -16px 0;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.phone-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 8px; color: #94a3b8; font-weight: 500; padding: 2px 8px;
}
.phone-tab i { font-size: 14px; }
.phone-tab.active { color: #7c3aed; }

/* Bottom Home Indicator */
.phone-bottom {
  padding: 4px 0 10px; display: flex; justify-content: center;
  flex-shrink: 0;
}
.phone-home-indicator {
  width: 130px; height: 5px; border-radius: 3px;
  background: #d1d5db;
  position: relative; overflow: hidden;
}
.phone-home-indicator::after {
  content: ''; position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
  animation: homeSwipe 3s ease-in-out infinite;
}
@keyframes homeSwipe {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Screen reflection shine */
.phone-shine {
  position: absolute; inset: 0; border-radius: 42px; z-index: 8;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%, transparent 30%,
    transparent 70%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity 0.6s;
}
.phone-wrapper:hover .phone-shine { opacity: 1; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; color: var(--text); letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-top: 0.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* ── Step Cards ── */
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 1.25rem;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
  background-size: 200% 200%; animation: gradientShift 15s ease infinite;
  position: relative; overflow: hidden;
}
/* Floating blobs */
.auth-page::before, .auth-page::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-page::before {
  width: 400px; height: 400px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
  animation: blobFloat 12s ease-in-out infinite;
}
.auth-page::after {
  width: 350px; height: 350px; bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(16,185,129,0.07), transparent 70%);
  animation: blobFloat 15s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.auth-card {
  width: 100%; max-width: 28rem;
  background: var(--bg-card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  padding: 2.5rem; animation: fadeInScale 0.6s ease;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img, .auth-logo .logo-placeholder {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.25rem; box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; color: var(--text); }
.auth-subtitle { font-size: 0.875rem; text-align: center; color: var(--text-secondary); margin-top: 0.25rem; }

/* Form enhancements */
.form-group { margin-bottom: 1.25rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }
.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
  transition: var(--transition); z-index: 1;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.875rem;
  transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.form-input:focus ~ .input-icon { color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: #ef4444; }
.form-input.error ~ .input-icon { color: #ef4444; }
.form-input.valid { border-color: #22c55e; }
.form-input.valid ~ .input-icon { color: #22c55e; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.875rem; color: #ef4444; display: none; }
.form-error.show { display: block; animation: fadeIn 0.3s ease; }
.toggle-password {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  border: none; background: none; padding: 4px; z-index: 1;
}
.toggle-password:hover { color: var(--primary); }

/* Password strength */
.pw-strength { display: flex; gap: 4px; margin-top: 6px; }
.pw-bar { flex: 1; height: 3px; border-radius: 2px; background: #e2e8f0; transition: var(--transition); }
.pw-bar.active.weak { background: #ef4444; }
.pw-bar.active.medium { background: #f59e0b; }
.pw-bar.active.strong { background: #22c55e; }
.pw-text { font-size: 0.7rem; margin-top: 4px; display: block; }

/* Staggered form entrance */
.form-group.show { animation: fadeIn 0.5s ease forwards; }

/* ── Form Elements ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }
.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.875rem;
  transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.875rem; color: #ef4444; display: none; }
.form-error.show { display: block; animation: fadeIn 0.3s ease; }
.toggle-password {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.toggle-password:hover { color: var(--primary); }

/* ── Features Grid ── */
.features-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Pricing Grid ── */
.pricing-grid { display: grid; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Dashboard ── */
.dashboard-stats { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .dashboard-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-trend { font-size: 0.65rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-top: 0.25rem; letter-spacing: -0.02em; }

/* ── Loading / Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
.btn-loading { pointer-events: none; opacity: 0.8; }

/* ── Toast / Notification ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  color: #fff; font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0;
  transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

/* ── Footer ── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-title { font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.footer-link { color: var(--text-secondary); font-size: 0.875rem; transition: var(--transition); text-decoration: none; display: inline-block; }
.footer-link:hover { color: var(--primary); transform: translateX(3px); }

/* ── Shimmer Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius);
}

/* ── Page Transition ── */
.page-enter { animation: fadeInScale 0.5s ease; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .section-title { font-size: 1.75rem; }
  .auth-card { padding: 1.5rem; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Modals ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 1.25rem; width: 100%;
  max-width: 32rem; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: fadeInScale 0.25s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 { font-size: 1.125rem; font-weight: 700; color: #1e293b; }
.modal-close {
  width: 32px; height: 32px; border-radius: 10px; border: none;
  background: #f1f5f9; color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; font-size: 1rem;
}
.modal-close:hover { background: #e2e8f0; color: #1e293b; }
.modal-body { padding: 1.5rem; }

/* Service grid in order modal */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.service-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 0.5rem; border-radius: 1rem; border: 1.5px solid #f1f5f9;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.service-option:hover { border-color: #ddd6fe; background: #f5f3ff; transform: translateY(-2px); }
.service-option.selected { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.service-option i { font-size: 1.5rem; }
.service-option span { font-size: 0.75rem; font-weight: 600; color: #1e293b; }
.service-option small { font-size: 0.65rem; color: #7c3aed; font-weight: 700; }

/* Top up options */
.topup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.topup-option {
  padding: 1rem; border-radius: 1rem; border: 1.5px solid #f1f5f9;
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.topup-option:hover { border-color: #ddd6fe; background: #f5f3ff; }
.topup-option.selected { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.topup-option .amount { font-size: 1.25rem; font-weight: 800; color: #1e293b; }
.topup-option .label { font-size: 0.7rem; color: #64748b; margin-top: 2px; }
.topup-custom { margin-top: 0.75rem; }
.topup-custom input {
  width: 100%; padding: 0.625rem 1rem; border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem; font-size: 0.875rem; outline: none; text-align: center;
  font-weight: 600; transition: 0.2s;
}
.topup-custom input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* Ticket form */
.ticket-field { margin-bottom: 1rem; }
.ticket-field label { display: block; font-size: 0.75rem; font-weight: 600; color: #1e293b; margin-bottom: 0.375rem; }
.ticket-field input, .ticket-field select, .ticket-field textarea {
  width: 100%; padding: 0.625rem 0.875rem; border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem; font-size: 0.875rem; outline: none; transition: 0.2s;
  font-family: inherit;
}
.ticket-field input:focus, .ticket-field select:focus, .ticket-field textarea:focus {
  border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.ticket-field textarea { min-height: 5rem; resize: vertical; }

/* Sticky footer */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; position: relative; z-index: 1; }
body > footer { flex-shrink: 0; position: relative; z-index: 1; }

/* Premium username gold overlay */
.premium-user {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #eab308 70%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; position: relative; letter-spacing: 0.02em;
}



/* Countdown timer animation */
@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.countdown-live {
  animation: countdownPulse 0.6s ease-in-out infinite;
  display: inline-block;
}
.countdown-urgent {
  color: #dc2626; animation: countdownPulse 0.3s ease-in-out infinite;
}
.countdown-normal {
  color: #1e293b;
}

/* Service menu items */
.service-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 0.875rem; border: 1px solid #f1f5f9;
  padding: 0.75rem 1.25rem; transition: 0.2s; cursor: default;
}
.service-menu-item:hover { border-color: #ddd6fe; box-shadow: 0 2px 12px rgba(124,58,237,0.06); }



/* OTP display page */
.otp-number {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.05em; color: #1e293b;
}
.otp-waiting-dot {
  width: 8px; height: 8px; background: #7c3aed; border-radius: 50%;
  animation: otpPulse 1.2s ease-in-out infinite;
}
.otp-waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.otp-waiting-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes otpPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}
.otp-message {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 0.875rem;
  padding: 1rem 1.25rem; animation: otpSlideIn 0.35s ease-out;
}
@keyframes otpSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Services page grid */
.filter-tab {
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  border: 1.5px solid #e2e8f0; background: #fff; color: #64748b; cursor: pointer;
  transition: 0.2s; outline: none; white-space: nowrap;
}
.filter-tab:hover { border-color: #c4b5fd; color: #6d28d9; }
.filter-tab.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.services-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.service-card {
  background: #fff; border-radius: 1rem; border: 1px solid #f1f5f9;
  padding: 1.25rem; transition: 0.2s;
}
.service-card:hover { border-color: #ddd6fe; box-shadow: 0 4px 20px rgba(124,58,237,0.08); transform: translateY(-2px); }
.service-card.unavailable { opacity: 0.55; }
.service-card.unavailable:hover { transform: none; border-color: #f1f5f9; box-shadow: none; }

/* History feed */
.history-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border-radius: 0.875rem; border: 1px solid #f1f5f9;
  padding: 1rem 1.25rem; transition: 0.2s;
}
.history-item:hover { border-color: #ddd6fe; }
.history-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* 3D Background Elements */
.bg-3d-wrap {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.bg-3d-shape {
  position: absolute; border-radius: 50%;
  transform-style: preserve-3d; will-change: transform;
  opacity: 0.15;
}
.bg-3d-shape-1 {
  width: 300px; height: 300px; top: -5%; right: -5%;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  animation: float3d 12s ease-in-out infinite;
}
.bg-3d-shape-2 {
  width: 200px; height: 200px; bottom: 10%; left: -3%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation: float3d 15s ease-in-out infinite reverse;
}
.bg-3d-shape-3 {
  width: 150px; height: 150px; top: 40%; left: 15%;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  animation: float3d 10s ease-in-out infinite 2s;
}
.bg-3d-shape-4 {
  width: 100px; height: 100px; bottom: 30%; right: 10%;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  animation: float3d 18s ease-in-out infinite 1s;
}
.bg-3d-shape-5 {
  width: 80px; height: 80px; top: 25%; right: 25%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation: float3d 14s ease-in-out infinite 3s;
}

@keyframes float3d {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(20px, -30px, 20px) rotate(90deg) scale(1.05); }
  50% { transform: translate3d(-10px, 10px, -10px) rotate(180deg) scale(0.95); }
  75% { transform: translate3d(15px, 20px, 15px) rotate(270deg) scale(1.02); }
}

/* Floating cube */
.cube-3d-wrap {
  position: fixed; bottom: 15%; right: 5%; width: 60px; height: 60px;
  perspective: 400px; pointer-events: none; z-index: 0; opacity: 0.08;
}
.cube-3d {
  width: 60px; height: 60px; position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 8s linear infinite;
}
.cube-face {
  position: absolute; width: 60px; height: 60px;
  border: 2px solid #7c3aed; border-radius: 8px;
  background: rgba(124,58,237,0.15);
}
.cube-front { transform: translateZ(30px); }
.cube-back { transform: rotateY(180deg) translateZ(30px); }
.cube-right { transform: rotateY(90deg) translateZ(30px); }
.cube-left { transform: rotateY(-90deg) translateZ(30px); }
.cube-top { transform: rotateX(90deg) translateZ(30px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeSpin {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Glow orbs */
.orb-3d {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: 0.06;
}
.orb-3d-1 { width: 400px; height: 400px; top: -10%; left: -5%; background: #7c3aed; animation: orbDrift 20s ease-in-out infinite; }
.orb-3d-2 { width: 350px; height: 350px; bottom: -10%; right: -5%; background: #06b6d4; animation: orbDrift 25s ease-in-out infinite reverse; }
.orb-3d-3 { width: 250px; height: 250px; top: 50%; left: 40%; background: #f59e0b; animation: orbDrift 18s ease-in-out infinite 3s; }

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
