/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card2: #161620;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --primary: #6c63ff;
  --primary-dark: #5549e8;
  --primary-glow: rgba(108, 99, 255, 0.3);
  --secondary: #00d4ff;
  --accent: #ff6584;
  --text: #f0f0f5;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
  --gradient-warm: linear-gradient(135deg, #6c63ff, #ff6584);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.logo-icon { color: var(--primary); font-size: 1.4rem; }
.logo-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-muted); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card2); }
.credits-link { color: var(--primary) !important; font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 500; border: none; cursor: pointer; border-radius: var(--radius-sm); transition: var(--transition); text-align: center; }
.btn-primary-sm { background: var(--primary); color: #fff; padding: 8px 16px; font-size: 0.875rem; }
.btn-primary-sm:hover { background: var(--primary-dark); color: #fff; }
.btn-outline-sm { background: transparent; color: var(--text); padding: 7px 15px; font-size: 0.875rem; border: 1px solid var(--border-light); }
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-hero { background: var(--gradient); color: #fff; padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: var(--radius); box-shadow: 0 0 30px var(--primary-glow); }
.btn-hero:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.btn-hero-outline { background: transparent; color: var(--text); padding: 13px 27px; font-size: 1rem; font-weight: 500; border-radius: var(--radius); border: 1px solid var(--border-light); }
.btn-hero-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary-full { background: var(--gradient); color: #fff; padding: 12px 20px; font-size: 0.95rem; font-weight: 600; width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn-primary-full:hover { opacity: 0.9; color: #fff; }
.btn-outline-full { background: transparent; color: var(--text); padding: 11px 20px; font-size: 0.95rem; width: 100%; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.btn-outline-full:hover { border-color: var(--primary); color: var(--primary); }
.btn-start { background: var(--success); color: #fff; padding: 14px 32px; font-size: 1rem; font-weight: 700; border-radius: var(--radius); }
.btn-start:hover { background: #16a34a; color: #fff; }
.btn-stop { background: var(--error); color: #fff; padding: 14px 32px; font-size: 1rem; font-weight: 700; border-radius: var(--radius); }
.btn-stop:hover { background: #dc2626; color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== ALERTS ===== */
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108,99,255,0.12) 0%, transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); color: var(--primary); padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { color: var(--text-muted); font-size: 0.85rem; }
.hero-note i { color: var(--success); margin-right: 4px; }

/* Demo Card */
.video-demo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-glow), var(--shadow); }
.demo-header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-card2); border-bottom: 1px solid var(--border); }
.demo-dot { width: 12px; height: 12px; border-radius: 50%; }
.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #28ca40; }
.demo-title { flex: 1; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.demo-live { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 700; color: var(--error); }
.demo-live span { width: 7px; height: 7px; background: var(--error); border-radius: 50%; animation: pulse 1.5s infinite; }
.demo-screens { display: flex; align-items: center; gap: 10px; padding: 20px 16px; }
.demo-screen { flex: 1; aspect-ratio: 16/10; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.demo-screen.transformed { background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,255,0.1)); border-color: rgba(108,99,255,0.4); }
.screen-label { font-size: 0.7rem; color: var(--text-muted); }
.screen-placeholder { font-size: 2.5rem; color: var(--text-dim); }
.screen-placeholder.ai { color: var(--primary); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)} }
.demo-arrow { color: var(--primary); font-size: 1.5rem; flex-shrink: 0; }
.demo-prompt { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; background: var(--bg-card2); border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.demo-prompt i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ===== FEATURES ===== */
.features { padding: 80px 0; border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-2px); }
.feature-icon { width: 50px; height: 50px; background: rgba(108,99,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing { padding: 80px 0; background: linear-gradient(180deg, transparent, rgba(108,99,255,0.03)); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: var(--transition); position: relative; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; padding: 4px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.pricing-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.pricing-price { font-size: 2rem; font-weight: 800; margin-bottom: 2px; }
.pricing-usd { font-size: 0.82rem; color: var(--text-muted); opacity: 0.75; margin-bottom: 6px; letter-spacing: 0.01em; }
.pricing-credits { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.pricing-time { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.pricing-note i { color: var(--success); }

/* ===== CTA ===== */
.cta { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.cta h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.cta p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-link { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--text); }
.contact-strip {
  padding: 80px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.12) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-strip-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-strip-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--primary);
}
.contact-strip-heading { font-size: 2rem; font-weight: 800; margin: 0; }
.contact-strip-sub { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0; line-height: 1.6; }
.contact-strip-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-contact-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-contact-primary:hover { opacity: 0.85; }
.btn-contact-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted);
  padding: 13px 28px; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-contact-secondary:hover { border-color: var(--primary); color: var(--primary); }
.contact-strip-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.contact-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
}

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(108,99,255,0.08) 0%, transparent 60%); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-logo { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 1.4rem; font-weight: 700; }
.auth-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.form-group input { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text); font-family: var(--font); font-size: 0.95rem; transition: var(--transition); }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.auth-switch { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-top: 20px; }
.auth-free-note { text-align: center; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius-sm); padding: 10px; font-size: 0.85rem; color: #86efac; margin-top: 16px; }
.auth-free-note i { margin-right: 4px; }

/* ===== DASHBOARD ===== */
.app-layout { min-height: calc(100vh - 64px); }
.app-main { padding: 32px 0 60px; }
.welcome-banner { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 28px; }
.welcome-banner h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.welcome-banner p { color: var(--text-muted); font-size: 0.9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.credits { background: rgba(108,99,255,0.15); color: var(--primary); }
.stat-icon.used { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-icon.time { background: rgba(0,212,255,0.15); color: var(--secondary); }
.stat-icon.purchased { background: rgba(34,197,94,0.15); color: var(--success); }
.stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header-row .section-title { margin-bottom: 0; }
.view-all { font-size: 0.8rem; color: var(--primary); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.quick-action { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 18px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.quick-action i { font-size: 1.5rem; }
.quick-action span { font-size: 0.85rem; font-weight: 600; }
.quick-action small { font-size: 0.75rem; color: var(--text-muted); }
.quick-action:hover { border-color: var(--primary); color: var(--primary); }
.quick-action.primary { background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.4); color: var(--primary); }
.quick-action.primary:hover { background: rgba(108,99,255,0.2); }
.low-credits-warning { display: flex; align-items: flex-start; gap: 12px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--radius-sm); padding: 14px; color: #fde68a; font-size: 0.875rem; }
.low-credits-warning strong { display: block; margin-bottom: 2px; }
.low-credits-warning a { color: var(--warning); text-decoration: underline; }
.empty-state { text-align: center; padding: 32px 0; color: var(--text-muted); }
.empty-state i { font-size: 2rem; margin-bottom: 8px; display: block; }
.empty-state a { color: var(--primary); }
.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); }
.session-icon { width: 34px; height: 34px; background: rgba(108,99,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.session-details { flex: 1; min-width: 0; }
.session-prompt { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.session-status { font-size: 0.75rem; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.session-status.ended { background: rgba(34,197,94,0.15); color: var(--success); }
.session-status.active { background: rgba(245,158,11,0.15); color: var(--warning); }
.txn-list { display: flex; flex-direction: column; gap: 10px; }
.txn-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); }
.txn-icon { color: var(--success); font-size: 1.2rem; flex-shrink: 0; }
.txn-details { flex: 1; }
.txn-credits { font-size: 0.9rem; font-weight: 600; color: var(--success); }
.txn-date { font-size: 0.75rem; color: var(--text-muted); }
.txn-amount { font-weight: 700; font-size: 0.92rem; text-align: right; line-height: 1.3; }
.txn-ngn { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; opacity: 0.7; }
.txn-ngn-sm { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; opacity: 0.7; margin-left: 4px; }
.btn-ngn { font-size: 0.8em; opacity: 0.75; font-weight: 400; }

/* ===== PAGE HEADER ===== */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== BALANCE CARD ===== */
.balance-card { display: flex; align-items: center; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.balance-icon { width: 52px; height: 52px; background: rgba(108,99,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.balance-info, .balance-time { flex: 1; }
.balance-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.balance-value { font-size: 1.5rem; font-weight: 700; }

/* ===== PACKAGES ===== */
.packages-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.package-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; position: relative; transition: var(--transition); }
.package-card:hover { border-color: var(--primary); }
.package-card.popular { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.package-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; padding: 4px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.package-name { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.package-price { font-size: 2rem; font-weight: 800; margin-bottom: 2px; }
.package-credits { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.package-usd-ref { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; opacity: 0.75; }
.package-details { text-align: left; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.pd-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
/* .payment-methods override below */

/* ===== TRANSACTION TABLE ===== */
.txn-history h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; }
.txn-table { width: 100%; border-collapse: collapse; }
.txn-table th { text-align: left; padding: 10px 14px; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.txn-table td { padding: 12px 14px; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.txn-table tr:last-child td { border-bottom: none; }
.txn-ref { font-family: monospace; font-size: 0.75rem; color: var(--text-dim); }
.txn-credits-badge { background: rgba(34,197,94,0.15); color: var(--success); padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-completed { background: rgba(34,197,94,0.15); color: var(--success); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-failed { background: rgba(239,68,68,0.15); color: var(--error); }

/* ===== STUDIO ===== */
.studio-page { height: calc(100vh - 64px); overflow: hidden; }
.studio-layout { display: grid; grid-template-columns: 320px 1fr; height: 100%; }
.studio-sidebar { background: var(--bg-card); border-right: 1px solid var(--border); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-section h3 { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.prompt-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 0.875rem; resize: none; margin-bottom: 10px; transition: var(--transition); }
.prompt-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.ref-image-upload { border: 2px dashed var(--border-light); border-radius: var(--radius-sm); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); margin-bottom: 10px; }
.ref-image-upload:hover { border-color: var(--primary); background: rgba(108,99,255,0.05); }
.ref-image-upload i { font-size: 1.5rem; color: var(--text-dim); display: block; margin-bottom: 8px; }
.ref-image-upload p { font-size: 0.8rem; color: var(--text-muted); }
.upload-link { color: var(--primary); cursor: pointer; }
.ref-preview { position: relative; margin-bottom: 10px; }
.ref-preview img { width: 100%; border-radius: var(--radius-sm); display: block; }
.clear-ref { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.8); border: none; color: #fff; border-radius: 50%; width: 26px; height: 26px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; margin-top: 8px; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.qp-btn { background: var(--bg); border: 1px solid var(--border-light); color: var(--text-muted); padding: 5px 10px; font-size: 0.75rem; border-radius: 999px; cursor: pointer; transition: var(--transition); }
.qp-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,0.08); }
.credits-display { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.credits-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.875rem; color: var(--text-muted); }
.credit-value { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.credits-bar-bg { background: var(--border); border-radius: 999px; height: 6px; margin-bottom: 8px; overflow: hidden; }
.credits-bar { background: var(--gradient); height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.credits-rate { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-bottom: 8px; }
.buy-more-link { display: block; text-align: center; font-size: 0.8rem; color: var(--primary); font-weight: 500; }

/* Studio Main Area */
.studio-main { display: flex; flex-direction: column; background: var(--bg); padding: 20px; gap: 16px; overflow: hidden; }
.video-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.video-status { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.status-dot.connecting { background: var(--warning); animation: pulse 1s infinite; }
.status-dot.connected { background: var(--success); animation: pulse 2s infinite; }
.status-dot.error { background: var(--error); }
.session-timer { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
#timerDisplay { font-variant-numeric: tabular-nums; color: var(--text); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; min-height: 0; }
.video-wrapper { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video-wrapper.transformed { border-color: rgba(108,99,255,0.4); box-shadow: 0 0 20px var(--primary-glow); }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-label { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #fff; z-index: 2; }
.ai-label { background: rgba(108,99,255,0.8) !important; }
.video-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-dim); font-size: 0.85rem; pointer-events: none; }
.video-overlay i { font-size: 2rem; }
.video-overlay.hidden { display: none; }
.studio-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; }
.error-banner { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; padding: 12px 16px; border-radius: var(--radius-sm); text-align: center; font-size: 0.875rem; }

/* No credits */
.studio-no-credits { height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.no-credits-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 36px; max-width: 400px; width: 100%; text-align: center; }
.no-credits-card i { font-size: 3rem; color: var(--primary); display: block; margin-bottom: 16px; }
.no-credits-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.no-credits-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; line-height: 1.6; }
.credit-balance { background: rgba(108,99,255,0.1); padding: 10px; border-radius: var(--radius-sm); margin-bottom: 20px !important; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .studio-layout { grid-template-columns: 280px 1fr; }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px; gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .studio-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .studio-sidebar { height: auto; max-height: 40vh; overflow-y: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .studio-page { height: auto; overflow: auto; }
  .video-grid { grid-template-columns: 1fr; }
  .balance-card { flex-wrap: wrap; }
  .packages-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .packages-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; gap: 16px; text-align: center; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   AUTH EXTRAS — verify, forgot, reset
═══════════════════════════════════════════════ */
.forgot-link {
  float: right;
  font-size: 13px;
  color: var(--accent, #a855f7);
  text-decoration: none;
  font-weight: 400;
}
.forgot-link:hover { text-decoration: underline; }

.verify-icon {
  font-size: 48px;
  text-align: center;
  margin: 8px 0 16px;
  color: #a855f7;
}
.verify-icon.success { color: #22c55e; }
.verify-icon.error   { color: #ef4444; }

.auth-info {
  font-size: 14px;
  color: #888;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-outline-full {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 8px;
  background: transparent;
  color: #a855f7;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline-full:hover { background: rgba(168,85,247,.1); }

.alert-success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════════════ */
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #f0f0ff;
}
.admin-title i { color: #a855f7; margin-right: 8px; }
.admin-subtitle { color: #888; margin: 0; font-size: 14px; }
.admin-nav-links { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-stats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Table */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666;
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.025); }
.admin-table tr.row-banned { opacity: .6; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-success  { background: rgba(34,197,94,.15);  color: #86efac; }
.badge-danger   { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-warning  { background: rgba(234,179,8,.15);  color: #fde047; }
.badge-admin    { background: rgba(168,85,247,.2);  color: #d8b4fe; }
.ml-1 { margin-left: 6px; }

/* Helpers */
.text-success { color: #86efac; }
.text-muted   { color: #666; }
.mono         { font-family: 'Fira Code', 'Courier New', monospace; font-size: 12px; }
.btn-link     { color: #a855f7; text-decoration: none; font-size: 13px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* Filters */
.admin-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-search-input,
.admin-filter-select,
.admin-input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #f0f0ff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.admin-search-input { min-width: 240px; }
.admin-filter-select option { background: #12121a; }
.admin-search-input:focus,
.admin-filter-select:focus,
.admin-input:focus { border-color: #a855f7; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 7px 13px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all .2s;
}
.page-btn:hover { background: rgba(168,85,247,.2); color: #f0f0ff; }
.page-btn.active { background: #a855f7; color: #fff; font-weight: 600; }

/* User detail */
.back-link {
  display: inline-block;
  color: #a855f7;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}
.back-link:hover { text-decoration: underline; }
.user-badges { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-key { color: #888; }
.detail-val { font-weight: 500; color: #e0e0f0; text-align: right; word-break: break-all; max-width: 60%; }

/* Action panel */
.action-group { display: flex; flex-direction: column; gap: 12px; }
.action-form { display: flex; flex-direction: column; gap: 6px; }
.action-label { font-size: 13px; font-weight: 600; color: #aaa; }
.action-row { display: flex; gap: 8px; align-items: center; }
.action-hint { font-size: 12px; color: #555; }
.action-divider { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; }

/* Action buttons */
.btn-success-sm {
  padding: 8px 16px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(34,197,94,.2); color: #86efac; font-size: 13px; font-weight: 600;
  transition: all .2s; font-family: inherit;
}
.btn-success-sm:hover { background: rgba(34,197,94,.35); }

.btn-warning-sm {
  padding: 8px 16px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(234,179,8,.15); color: #fde047; font-size: 13px; font-weight: 600;
  transition: all .2s; font-family: inherit;
}
.btn-warning-sm:hover { background: rgba(234,179,8,.28); }

.btn-danger-sm {
  padding: 8px 16px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(239,68,68,.15); color: #fca5a5; font-size: 13px; font-weight: 600;
  transition: all .2s; font-family: inherit;
}
.btn-danger-sm:hover { background: rgba(239,68,68,.28); }

/* Admin nav link */
.nav-link.admin-link { color: #d8b4fe; }
.nav-link.admin-link:hover,
.nav-link.admin-link.active { color: #a855f7; }

/* Savings tag on packages */
.package-savings-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(34,197,94,.18);
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .04em;
}
.package-card { position: relative; }

/* ── Admin Settings ─────────────────────────────────────────────────────────── */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.settings-card-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.settings-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.settings-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.settings-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.settings-card-desc code {
  background: var(--surface-raised, rgba(168,85,247,.1));
  color: #a855f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Preview row */
.settings-preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.settings-preview-item .preview-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.settings-preview-item .preview-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Impact table */
.settings-impact {
  margin-bottom: 1.75rem;
}

.impact-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Settings form */
.settings-form-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.settings-form-group {
  flex: 1;
  min-width: 220px;
}

.settings-form-action {
  flex-shrink: 0;
  padding-bottom: 1.5rem;
}

.rate-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.rate-prefix, .rate-suffix {
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--surface);
  border: none;
  white-space: nowrap;
  height: 44px;
  display: flex;
  align-items: center;
}

.rate-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  padding: 0 0.75rem !important;
  height: 44px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-hint a {
  color: #a855f7;
}

.text-success { color: #22c55e !important; font-weight: 600; }
.text-danger  { color: #ef4444 !important; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   IMAGE TRANSFORM PAGE
═══════════════════════════════════════════════════════════════ */

.transform-page { min-height: 100vh; }

.transform-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px);
}

/* Re-use .studio-sidebar / .studio-main from realtime studio */

/* Output image display — mirrors video-wrapper sizing */
.image-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transform-output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px 0;
}

/* Resolution picker */
.resolution-options { display: flex; gap: 10px; }
.resolution-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.resolution-option input { display: none; }
.resolution-option span { font-size: 0.9rem; color: var(--text-secondary); }
.resolution-option span em { display: block; font-style: normal; font-size: 0.75rem; color: var(--primary); }
.resolution-option.selected { border-color: var(--primary); background: rgba(99,102,241,0.08); }
.resolution-option.selected span { color: var(--text-primary); }

/* Optional badge */
.badge-optional {
  font-size: 0.65rem; font-weight: 500; padding: 2px 7px;
  background: rgba(255,255,255,0.07); border-radius: 20px;
  color: var(--text-muted); vertical-align: middle; margin-left: 4px;
}

/* Ref small upload area */
.ref-small { padding: 12px 16px; }
.ref-small i { font-size: 1.2rem; }
.ref-small p { margin: 4px 0 0; font-size: 0.8rem; }

/* Download button */
.download-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.download-btn:hover { background: var(--primary); color: #fff; }
.download-btn.hidden { display: none; }
.video-wrapper { position: relative; }

/* Progress bar */
.progress-wrap {
  margin: 14px 20px 0;
  text-align: center;
}
.progress-wrap.hidden { display: none; }
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  border-radius: 99px;
  transition: width 0.4s ease;
}
#progressLabel {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* History section */
.history-section {
  margin: 20px 20px 0;
  padding-bottom: 20px;
}
.history-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.history-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s, transform 0.15s;
  background: #111;
}
.history-item:hover { border-color: var(--primary); transform: scale(1.02); }
.history-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.history-label {
  padding: 5px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard transform thumbs */
.transforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.transform-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: #111;
}
.transform-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.transform-thumb-label {
  padding: 5px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Upload hint text */
.upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .transform-layout { grid-template-columns: 1fr; height: auto; }
  .transform-output-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN SETTINGS CARDS
═══════════════════════════════════════════════════════════════ */

.settings-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.settings-card-icon {
  width: 44px; height: 44px;
  background: rgba(99,102,241,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.settings-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.settings-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.settings-card-desc code {
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--primary-light, #a5b4fc);
}

/* Preview row */
.settings-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.settings-preview-item {}
.preview-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.preview-value { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }

/* Impact table */
.settings-impact { margin-bottom: 24px; }
.impact-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Settings form */
.settings-form {}
.settings-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.settings-form-group { flex: 1; }

.settings-form-action { display: flex; align-items: flex-end; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-hint a { color: var(--primary); }

.rate-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-prefix, .rate-suffix {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.rate-input {
  width: 160px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}
.rate-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Credit rates grid */
.settings-rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.btn-primary-full {
  width: 100%;
  padding: 11px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-primary-full:hover { background: var(--primary-dark, #4f46e5); }

/* Admin button variants */
.btn-success-sm {
  padding: 6px 14px;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.btn-success-sm:hover { background: rgba(34,197,94,0.25); }

.text-danger { color: #f87171; }
.text-success { color: #4ade80; }

/* Responsive */
@media (max-width: 900px) {
  .settings-preview-row  { grid-template-columns: 1fr; }
  .settings-rates-grid   { grid-template-columns: 1fr; }
  .settings-form-row     { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SUPPORT PAGE
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SUPPORT / CONTACT PAGE
═══════════════════════════════════════════════════════════════ */

.support-page {
  padding: 60px 0 80px;
  min-height: calc(100vh - 64px);
}

.support-page-header {
  text-align: center;
  margin-bottom: 48px;
}
.support-page-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--primary);
  margin-bottom: 20px;
}
.support-page-header h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 10px; }
.support-page-header p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* Alerts */
.support-alert {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: 12px; margin-bottom: 28px;
  font-size: 0.9rem;
}
.support-alert i { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.support-alert div { display: flex; flex-direction: column; gap: 2px; }
.support-alert strong { font-weight: 600; }
.support-alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
.support-alert-success i { color: #4ade80; }
.support-alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: #fca5a5; }
.support-alert-error i { color: #f87171; }

/* Grid */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Form panel ── */
.support-form-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 36px;
}

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

.sf-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px;
}
.sf-group:last-of-type { margin-bottom: 0; }

.sf-group label {
  font-size: 0.83rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px;
}
.sf-req { color: #f87171; }
.sf-optional {
  font-size: 0.72rem; font-weight: 400;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 10px;
  color: var(--text-muted);
}

.sf-group input,
.sf-group select,
.sf-group textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.sf-group input:focus,
.sf-group select:focus,
.sf-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(139,92,246,0.05);
}
.sf-group input::placeholder,
.sf-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.sf-group textarea { resize: vertical; min-height: 150px; }
.sf-group select option { background: #1a1a2e; color: #e0e0e0; }
.sf-group small { font-size: 0.77rem; color: var(--text-muted); }

.sf-user-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px;
  font-size: 0.82rem; color: var(--text-muted);
  margin: 16px 0;
}
.sf-divider { opacity: 0.4; }

.sf-submit {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.98rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.sf-submit:hover { opacity: 0.88; }
.sf-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Sidebar ── */
.support-sidebar { display: flex; flex-direction: column; gap: 14px; }

.ss-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.ss-card-highlight {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(99,102,241,0.06));
  border-color: rgba(139,92,246,0.25);
}
.ss-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(139,92,246,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--primary);
}
.ss-card h3 { font-size: 0.88rem; font-weight: 700; margin: 0 0 6px; }
.ss-card p { font-size: 0.81rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

.ss-email-link {
  font-size: 0.82rem; color: var(--primary);
  text-decoration: none; font-weight: 500;
  word-break: break-all;
}
.ss-email-link:hover { text-decoration: underline; }

.ss-faq { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ss-faq li a {
  font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.ss-faq li a:hover { color: var(--primary); }
.ss-faq li a i { font-size: 0.65rem; opacity: 0.6; }
.ss-card a { color: var(--primary); text-decoration: none; }
.ss-card a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
  .sf-row-2 { grid-template-columns: 1fr; }
  .support-form-panel { padding: 24px; }
  .support-page-header h1 { font-size: 1.7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PROFIT ANALYTICS PAGE
═══════════════════════════════════════════════════════════════ */

.profit-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 28px 0 12px;
}

.margin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 54px;
}
.margin-good { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.margin-ok   { background: rgba(250,204,21,0.12);  color: #facc15; border: 1px solid rgba(250,204,21,0.25); }
.margin-low  { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

.row-highlight { background: rgba(99,102,241,0.04); }

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.formula-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
}
.formula-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.formula-expr {
  margin-bottom: 6px;
}
.formula-expr code {
  font-size: 0.8rem;
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: monospace;
  word-break: break-all;
}
.formula-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .formula-grid     { grid-template-columns: 1fr; }
}

/* ── Payment Methods (Credits Page) ───────────────────────────────────────── */
.payment-methods {
  text-align: center;
  margin-bottom: 40px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pm-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pm-label i { color: #4ade80; font-size: 0.9rem; }
.pm-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pm-icon-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pm-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pm-icon-wrap:hover { transform: translateY(-2px); }
.pm-icon-wrap.card-icon  { background: rgba(99,102,241,0.12); color: #818cf8; border-color: rgba(99,102,241,0.3); }
.pm-icon-wrap.bank-icon  { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.3); }
.pm-icon-wrap.ussd-icon  { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.pm-icon-wrap.wallet-icon { background: rgba(239,68,68,0.1);  color: #f87171; border-color: rgba(239,68,68,0.25); }
.pm-icon-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.pm-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0.8;
}
.pm-note strong { color: var(--text-primary); }

/* ── Home Page Pricing — Payment Note & Savings Tag ───────────────────────── */
.pricing-savings-tag {
  position: absolute;
  top: -11px;
  right: 14px;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.home-payment-note {
  margin-top: 32px;
  text-align: center;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hpn-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hpn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.hpn-chip.card-icon  { background: rgba(99,102,241,0.1);  color: #818cf8; border-color: rgba(99,102,241,0.25); }
.hpn-chip.bank-icon  { background: rgba(16,185,129,0.1);  color: #34d399; border-color: rgba(16,185,129,0.25); }
.hpn-chip.ussd-icon  { background: rgba(245,158,11,0.1);  color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.hpn-chip.wallet-icon { background: rgba(239,68,68,0.08); color: #f87171; border-color: rgba(239,68,68,0.2); }
.hpn-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hpn-text strong { color: var(--text-primary); }
