/* ========================================
   OlasTech Link — Premium Vibrant (Light) Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Ultra Premium Midnight Base */
  --color-bg-primary: #050505;
  --color-bg-secondary: #0a0a0a;
  
  /* Midnight Glass Cards */
  --color-surface: rgba(15, 15, 20, 0.5);
  --color-surface-hover: rgba(25, 25, 30, 0.7);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-focus: rgba(14, 165, 233, 0.8);

  /* Vibrant Accents */
  --color-accent: #0ea5e9;
  --color-accent-light: #38bdf8;
  --color-accent-glow: rgba(14, 165, 233, 0.3);
  
  --color-magenta: #d946ef;
  --color-magenta-glow: rgba(217, 70, 239, 0.3);

  --color-accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --color-button-gradient: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 50%, #d946ef 100%);
  --color-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);

  /* High Contrast Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  --color-success: #10b981;
  --color-error: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Premium Shadows */
  --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 80px rgba(14, 165, 233, 0.15);
  --shadow-button: 0 8px 25px rgba(14, 165, 233, 0.4);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-main);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- Vibrant Mesh Background --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #111827 0%, var(--color-bg-primary) 80%);
}

.bg-canvas::before {
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vh;
  top: -50%;
  left: -50%;
  background:
    radial-gradient(ellipse 700px 700px at 30% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 800px 800px at 70% 60%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 600px 600px at 50% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 60%);
  animation: cosmicDrift 25s ease-in-out infinite alternate;
}

@keyframes cosmicDrift {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(10deg) scale(1.1); }
}

.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 80%);
}

/* Floating Particles (Soft White/Blue) */
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 6px; height: 6px; background: #fff;
  border-radius: 50%; box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  animation: floatUp infinite linear; opacity: 0;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.6; transform: translateY(80vh) scale(1); }
  80% { opacity: 0.6; transform: translateY(20vh) scale(1); }
  100% { transform: translateY(0) scale(0); opacity: 0; }
}

/* --- Vibrant Rolling Ticker --- */
.ticker-wrap {
  width: 100%;
  background: var(--color-accent-gradient);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--color-accent), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(to left, var(--color-magenta), transparent); }

.ticker-content {
  display: inline-flex; white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 40px; font-size: 0.9rem; font-family: var(--font-mono);
  font-weight: 700; color: #fff; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker-item span { color: rgba(255, 255, 255, 0.85); }

@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Layout Wrapper --- */
.layout-wrapper {
  display: flex; flex: 1; width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 30px 20px; gap: 32px;
  align-items: center; justify-content: center;
  perspective: 1000px;
}

/* --- Sidebar Dashboard Widgets --- */
.ad-sidebar {
  flex: 1; max-width: 380px; display: flex; flex-direction: column; gap: 24px;
  animation: fadeSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.widget-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  transform-style: preserve-3d;
}

.widget-card:hover { border-color: rgba(14, 165, 233, 0.4); box-shadow: 0 25px 50px rgba(14, 165, 233, 0.12); }

.widget-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--color-accent-gradient);
}

.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--color-text-secondary); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.widget-header .pulsing-dot {
  width: 10px; height: 10px; background: var(--color-success); border-radius: 50%;
  box-shadow: 0 0 10px var(--color-success);
  animation: pulseNeon 2s infinite alternate;
}
@keyframes pulseNeon { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.2); } }

.network-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: flex-end; }
.stat-row .stat-label { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 500; }
.stat-row .stat-value { font-size: 1.3rem; font-weight: 800; font-family: var(--font-mono); color: var(--color-text-primary); }
.stat-row .stat-value.highlight { color: var(--color-accent); }

/* Progress Bar */
.stat-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-top: 8px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.stat-bar-fill { height: 100%; width: 24%; background: var(--color-accent-gradient); border-radius: 10px; box-shadow: 0 0 10px rgba(14, 165, 233, 0.5); }

/* Banner Ad */
.promo-card { background: linear-gradient(160deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%); }
.promo-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; line-height: 1.2; color: var(--color-text-primary); }
.promo-card p { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 20px; }
.promo-card .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-accent);
  border-radius: 100px; color: var(--color-text-primary); font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: all var(--transition-fast); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.promo-card .btn-outline:hover { background: var(--color-accent); color: white; box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4); }

/* --- Main Portal Card --- */
.portal-container {
  flex: 1; width: 100%; max-width: 460px;
  animation: fadeSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.portal-card {
  background: var(--color-surface);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--transition-fast);
}

.portal-card::before {
  content: ''; position: absolute; inset: -2px;
  background: var(--color-accent-gradient);
  z-index: -1; filter: blur(25px); opacity: 0.1;
}

/* --- Brand Header --- */
.brand-header { text-align: center; margin-bottom: 12px; }
.brand-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.brand-logo .logo-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--color-accent-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}
.brand-logo .logo-icon svg { width: 30px; height: 30px; color: #fff; }
.brand-logo .logo-text { text-align: left; }
.brand-logo .logo-text h1 {
  font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; color: var(--color-text-primary);
}
.brand-logo .logo-text .tagline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; }

.wifi-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-family: var(--font-mono); font-weight: 700; color: var(--color-text-primary);
  background: rgba(255,255,255,0.05); padding: 8px 16px;
  border-radius: 100px; border: 1px solid var(--color-border);
  margin-bottom: 24px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}
.wifi-badge svg { width: 16px; height: 16px; color: var(--color-accent); }
.wifi-badge .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 10px var(--color-success); animation: pulseNeon 2s infinite alternate; }

/* --- Tabs --- */
.view-tabs { display: flex; gap: 8px; padding: 6px; background: rgba(0,0,0,0.3); border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: 28px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.tab-btn { flex: 1; padding: 14px 16px; background: none; border: none; border-radius: 10px; font-family: var(--font-main); font-size: 0.95rem; font-weight: 700; color: var(--color-text-muted); cursor: pointer; transition: all var(--transition-fast); }
.tab-btn:hover { color: var(--color-text-primary); }
.tab-btn.active { color: var(--color-text-primary); background: rgba(255,255,255,0.1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.view-panel { display: none; animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.view-panel.active { display: block; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* --- Forms & Advanced Inputs --- */
.input-wrapper { position: relative; margin-bottom: 24px; }
.input-wrapper input {
  width: 100%; padding: 24px 20px 16px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  color: var(--color-text-primary); font-family: var(--font-mono); font-size: 1.25rem;
  font-weight: 800; letter-spacing: 0.15em; text-align: center; text-transform: uppercase;
  transition: all var(--transition-normal); outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.input-wrapper label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 1rem; font-weight: 600; color: var(--color-text-muted);
  transition: all var(--transition-normal); pointer-events: none;
}
.input-wrapper input:focus ~ label, .input-wrapper input:not(:placeholder-shown) ~ label {
  top: 10px; font-size: 0.7rem; color: var(--color-accent-light); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.input-wrapper input:focus {
  border-color: var(--color-accent); background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}
.input-wrapper input.error { border-color: var(--color-error); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }

.btn-primary {
  width: 100%; padding: 18px 24px; background: var(--color-button-gradient); background-size: 200% auto;
  color: white; border: none; border-radius: var(--radius-md); font-family: var(--font-main);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; position: relative;
  transition: all var(--transition-normal); box-shadow: var(--shadow-button);
}
.btn-primary:hover:not(:disabled) { background-position: right center; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; filter: grayscale(40%); cursor: not-allowed; }
.btn-buy { background: var(--color-gold-gradient); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3); }

/* --- Plans Grid (Light Style) --- */
.plans-grid { 
  display: flex; 
  flex-direction: column;
  gap: 12px; 
  margin-bottom: 24px; 
  max-height: 380px; 
  overflow-y: auto; 
  padding-right: 6px;
  overscroll-behavior: contain;
}
/* Custom scrollbar for grid */
.plans-grid::-webkit-scrollbar { width: 6px; }
.plans-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
.plans-grid::-webkit-scrollbar-thumb { background: rgba(14, 165, 233, 0.3); border-radius: 10px; }
.plans-grid::-webkit-scrollbar-thumb:hover { background: rgba(14, 165, 233, 0.6); }
.plan-card {
  padding: 16px 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-normal);
  position: relative; overflow: hidden; backdrop-filter: blur(10px);
}
.plan-card:hover { border-color: rgba(14,165,233,0.5); background: rgba(255,255,255,0.06); transform: translateX(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.plan-card.selected { border-color: var(--color-accent); background: rgba(14,165,233,0.1); box-shadow: inset 4px 0 0 var(--color-accent), 0 8px 20px rgba(14, 165, 233, 0.2); transform: translateX(6px); }
.plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.plan-name { font-size: 1.05rem; font-weight: 800; color: var(--color-text-primary); }
.plan-badge { font-size: 0.65rem; font-family: var(--font-mono); font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.plan-badge.popular { background: rgba(14,165,233,0.1); color: var(--color-accent); border: 1px solid rgba(14,165,233,0.2); }
.plan-badge.best-value { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.plan-details { display: flex; align-items: baseline; gap: 16px; }
.plan-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: var(--color-text-primary); }
.plan-price .currency { font-size: 0.85rem; color: var(--color-text-secondary); margin-right: 2px; }
.plan-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }
.plan-meta span { display: flex; align-items: center; gap: 6px; }
.plan-meta svg { width: 16px; height: 16px; color: var(--color-accent); }

/* Payment Methods */
.payment-methods { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(0,0,0,0.1); }
.payment-methods span { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); font-weight: 600; }
.payment-icons { display: flex; gap: 8px; }
.payment-icon { padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,0.08); font-size: 0.65rem; font-family: var(--font-mono); font-weight: 800; color: var(--color-text-secondary); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

/* --- Error/Success Messages --- */
.error-message, .success-message { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.error-message { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.success-message { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.error-message svg, .success-message svg { width: 24px; height: 24px; flex-shrink: 0; }
.error-message.visible, .success-message.visible { display: flex; animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }

/* --- Manual Payment Panel --- */
.manual-payment-panel {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bank-details-card {
  background: #fff; border: 2px dashed rgba(14, 165, 233, 0.3); border-radius: var(--radius-md);
  padding: 20px; box-shadow: inset 0 2px 10px rgba(14, 165, 233, 0.05);
}
.bank-details-card h4 { font-size: 1.1rem; color: var(--color-text-primary); margin-bottom: 16px; text-align: center; }
.bank-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.bank-row:last-child { margin-bottom: 0; }
.bank-label { color: var(--color-text-muted); font-weight: 600; }
.bank-value { color: var(--color-text-primary); font-weight: 800; }
.bank-value.highlight { color: var(--color-accent); font-family: var(--font-mono); font-size: 1.1rem; }
.amount-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.05); align-items: center; }
.amount-row .amount { font-family: var(--font-mono); font-size: 1.5rem; color: #10b981; }

.manual-instructions { font-size: 0.9rem; color: var(--color-text-secondary); text-align: center; line-height: 1.5; padding: 0 10px; font-weight: 500; }

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px; background: #25D366; color: white;
  border-radius: var(--radius-md); font-size: 1.1rem; font-weight: 800; text-decoration: none;
  transition: all var(--transition-normal); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
.btn-whatsapp svg { width: 24px; height: 24px; }
.btn-text { background: none; border: none; color: var(--color-text-muted); font-weight: 700; font-size: 0.95rem; padding: 10px; cursor: pointer; text-decoration: underline; transition: color 0.2s; }
.btn-text:hover { color: var(--color-text-primary); }

/* --- Footer --- */
.portal-footer { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.portal-footer .brand-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.portal-footer .brand-footer span { font-size: 0.9rem; font-weight: 800; color: var(--color-text-primary); letter-spacing: 0.05em; }
.portal-footer .powered-by { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.help-text { text-align: center; font-size: 0.9rem; color: var(--color-text-muted); margin-top: 20px; line-height: 1.6; font-weight: 500; }
.help-text a { color: var(--color-accent); text-decoration: none; font-weight: 700; border-bottom: 2px solid rgba(14, 165, 233, 0.2); padding-bottom: 2px; transition: all 0.2s; }
.help-text a:hover { color: var(--color-accent-light); border-bottom-color: var(--color-accent); }

/* Responsive */
@media (max-width: 850px) {
  .layout-wrapper { flex-direction: column-reverse; padding: 12px; gap: 20px; }
  .ad-sidebar { width: 100%; max-width: 100%; }
  .portal-container { max-width: 100%; }
  .portal-card { padding: 28px 18px 24px; border-radius: var(--radius-lg); }
  
  /* Horizontal Carousel for Mobile Plans */
  .plans-grid {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    padding-right: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .plans-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  
  .plan-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  
  .plan-details { flex-direction: row; align-items: center; justify-content: space-between; }
  .ticker-item { font-size: 0.8rem; padding: 0 20px; }
  .btn-primary { padding: 20px 24px; font-size: 1.15rem; }
}
@media (max-width: 360px) {
  .portal-card { padding: 20px 14px 16px; }
  .plan-price { font-size: 1.3rem; }
  .plan-card { flex: 0 0 92%; }
}

/* Success Overlay (Dark Style) */
.success-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px); z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  animation: successFade 0.4s ease;
}
.success-overlay.visible { display: flex; }
.success-icon-wrap { width: 100px; height: 100px; border-radius: 50%; background: rgba(16, 185, 129, 0.2); border: 4px solid #34d399; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(16, 185, 129, 0.4); animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both; }
@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon-wrap svg { width: 48px; height: 48px; color: #34d399; stroke-dasharray: 50; stroke-dashoffset: 50; animation: checkDraw 0.5s ease 0.5s forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-overlay h2 { font-size: 2.2rem; font-weight: 900; color: var(--color-text-primary); animation: successText 0.4s ease 0.4s both; letter-spacing: -0.02em; }
.success-overlay p { font-size: 1.2rem; font-weight: 500; color: var(--color-text-secondary); animation: successText 0.4s ease 0.5s both; }
.session-info { display: flex; gap: 32px; margin-top: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--color-border); padding: 24px 36px; border-radius: var(--radius-xl); box-shadow: 0 20px 40px rgba(0,0,0,0.5); animation: successText 0.4s ease 0.6s both; }
.session-item { text-align: center; }
.session-label { font-size: 0.85rem; font-family: var(--font-mono); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 700; }
.session-value { font-size: 1.5rem; font-weight: 800; color: var(--color-accent-light); }
@keyframes successText { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Footer Links */
.footer-links { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 0.85rem; font-weight: 600; }
.footer-links a { color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-links .dot { color: rgba(0,0,0,0.1); }

/* Info Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px); z-index: 200; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; animation: modalFade 0.2s ease;
}
.modal-overlay.visible { display: flex; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--color-surface); width: 100%; max-width: 480px;
  border-radius: var(--radius-lg); padding: 24px 30px; box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border); animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh; overflow-y: auto;
}
@keyframes modalPop { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 16px; }
.modal-header h3 { font-size: 1.4rem; font-weight: 800; color: var(--color-text-primary); }
.modal-close { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--color-text-muted); cursor: pointer; transition: color 0.2s; padding: 0 5px; }
.modal-close:hover { color: var(--color-error); }

.modal-body { font-size: 0.95rem; line-height: 1.7; color: var(--color-text-secondary); }
.modal-body p { margin-bottom: 16px; }
.modal-body h4 { font-size: 1.1rem; color: var(--color-text-primary); margin: 24px 0 10px; font-weight: 700; }
