/* ===================================================================
   VERBHUB — Premium Fintech Theme
   Earn Smarter. Grow Faster.
   =================================================================== */

:root {
  --vh-blue: #2563eb;
  --vh-blue-dark: #1e40af;
  --vh-blue-light: #60a5fa;
  --vh-emerald: #10b981;
  --vh-emerald-dark: #059669;
  --vh-gold: #f59e0b;
  --vh-gold-light: #fbbf24;

  --vh-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  --vh-gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --vh-gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 55%, #fbbf24 100%);
  --vh-gradient-hero: linear-gradient(135deg, #0f2a6b 0%, #1d4ed8 50%, #0ea5e9 100%);

  --vh-radius: 16px;
  --vh-radius-sm: 10px;
  --vh-shadow: 0 10px 40px -12px rgba(37, 99, 235, .25);
  --vh-shadow-lg: 0 25px 60px -15px rgba(15, 23, 42, .35);
  --vh-transition: all .3s cubic-bezier(.4, 0, .2, 1);

  /* Light theme tokens */
  --vh-bg: #f1f5f9;
  --vh-bg-soft: #f8fafc;
  --vh-card: #ffffff;
  --vh-card-glass: rgba(255, 255, 255, .75);
  --vh-border: #e2e8f0;
  --vh-text: #0f172a;
  --vh-text-muted: #64748b;
  --vh-sidebar: #ffffff;
  --vh-topbar: rgba(255, 255, 255, .85);
  --vh-input-bg: #ffffff;
}

[data-theme="dark"] {
  --vh-bg: #0a1128;
  --vh-bg-soft: #0f172a;
  --vh-card: #131f3a;
  --vh-card-glass: rgba(19, 31, 58, .7);
  --vh-border: rgba(148, 163, 184, .15);
  --vh-text: #f1f5f9;
  --vh-text-muted: #94a3b8;
  --vh-sidebar: #0d1526;
  --vh-topbar: rgba(13, 21, 38, .85);
  --vh-input-bg: #1a2545;
  --vh-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--vh-bg);
  color: var(--vh-text);
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .display-font { font-family: 'Plus Jakarta Sans', sans-serif; }
a { color: var(--vh-blue); }
.text-muted { color: var(--vh-text-muted) !important; }
::selection { background: var(--vh-blue); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--vh-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--vh-text-muted); }

/* ---------- PAGE LOADER / SPLASH ---------- */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--vh-gradient-hero);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: #fff; }
.loader-logo { height: 56px; margin-bottom: 24px; animation: float 2s ease-in-out infinite; }
.loader-ring {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text { font-size: .9rem; opacity: .85; letter-spacing: .5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--vh-gradient); border: none;
  box-shadow: 0 8px 20px -8px rgba(37,99,235,.6);
  transition: var(--vh-transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(37,99,235,.7); background: var(--vh-gradient); }
.btn-success { background: var(--vh-gradient-emerald); border: none; }
.btn-success:hover { background: var(--vh-gradient-emerald); transform: translateY(-2px); }
.btn-warning { background: var(--vh-gradient-gold); border: none; color: #fff; }
.btn-warning:hover { background: var(--vh-gradient-gold); color: #fff; transform: translateY(-2px); }
.btn-outline-primary { border-color: var(--vh-blue); color: var(--vh-blue); }
.btn-outline-primary:hover { background: var(--vh-blue); border-color: var(--vh-blue); }
.btn { border-radius: 10px; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }
.btn-glass {
  background: var(--vh-card-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--vh-border); color: var(--vh-text);
}
.btn-glass:hover { background: var(--vh-card); color: var(--vh-text); transform: translateY(-2px); }

/* ---------- CARDS / GLASSMORPHISM ---------- */
.glass-card, .vh-card {
  background: var(--vh-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  box-shadow: var(--vh-shadow);
  transition: var(--vh-transition);
}
.vh-card { padding: 1.5rem; }
.glass-card:hover.lift, .vh-card.lift:hover { transform: translateY(-4px); box-shadow: var(--vh-shadow-lg); }
.glass-alert { border: 1px solid var(--vh-border); }

.card { background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); }
.card-header { background: transparent; border-bottom: 1px solid var(--vh-border); }

/* ---------- FORMS ---------- */
.form-control, .form-select {
  background: var(--vh-input-bg); color: var(--vh-text);
  border: 1px solid var(--vh-border); border-radius: var(--vh-radius-sm);
  padding: .7rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: var(--vh-input-bg); color: var(--vh-text);
  border-color: var(--vh-blue); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--vh-text-muted); }
.form-label { font-weight: 600; font-size: .875rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.input-group-text { background: var(--vh-bg-soft); border-color: var(--vh-border); color: var(--vh-text-muted); }

/* ---------- TABLES ---------- */
.table { color: var(--vh-text); --bs-table-bg: transparent; }
.table > :not(caption) > * > * { border-bottom-color: var(--vh-border); background: transparent; color: var(--vh-text); }
.table-hover > tbody > tr:hover > * { background: rgba(37,99,235,.05); }
.table thead th { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--vh-text-muted); border-bottom: 2px solid var(--vh-border); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  border: 1px solid var(--vh-border); border-radius: 10px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--vh-card-glass); color: var(--vh-text);
}
.theme-toggle:hover { background: var(--vh-blue); color: #fff; border-color: var(--vh-blue); }
[data-theme="dark"] .theme-toggle i::before { content: "\F5A1"; } /* sun icon swap via bootstrap-icons class toggle in JS */

/* ===================================================================
   PUBLIC NAVBAR
   =================================================================== */
.public-nav {
  background: var(--vh-topbar);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vh-border);
  padding: .7rem 0;
  transition: var(--vh-transition);
}
.public-nav .nav-link { color: var(--vh-text); font-weight: 500; font-size: .95rem; padding: .5rem .9rem !important; border-radius: 8px; }
.public-nav .nav-link:hover { color: var(--vh-blue); background: rgba(37,99,235,.08); }
.nav-spacer { height: 68px; }

/* ===================================================================
   HERO / SLIDER
   =================================================================== */
.hero-slider { position: relative; }
.hero-slider .carousel-item { min-height: 560px; }
.hero-slide {
  min-height: 560px; display: flex; align-items: center;
  background-size: cover; background-position: center; position: relative;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,42,107,.92) 0%, rgba(29,78,216,.75) 55%, rgba(14,165,233,.35) 100%);
}
.hero-orbs { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.hero-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38;
  animation: orbFloat 11s ease-in-out infinite;
}
.hero-orbs span:first-child { width: 340px; height: 340px; background: #38bdf8; top: -100px; right: 6%; }
.hero-orbs span:last-child { width: 260px; height: 260px; background: #f59e0b; bottom: -70px; left: 8%; animation-delay: -5.5s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -26px) scale(1.06); }
}
.gradient-text-light { background: linear-gradient(90deg, #fff, #bfdbfe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 4rem 0; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
.hero-content p { font-size: 1.15rem; opacity: .9; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.2rem; backdrop-filter: blur(8px);
}
.carousel-indicators [data-bs-target] { width: 30px; height: 4px; border-radius: 4px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--vh-bg-soft); }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-sub { color: var(--vh-text-muted); max-width: 640px; margin: 0 auto; }
.section-eyebrow {
  color: var(--vh-blue); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 2px;
}

/* ---------- FEATURE CARDS ---------- */
.feature-card {
  background: var(--vh-card); border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius); padding: 2rem 1.6rem; height: 100%;
  transition: var(--vh-transition); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--vh-gradient); transform: scaleX(0); transform-origin: left; transition: var(--vh-transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--vh-shadow-lg); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.icon-blue { background: rgba(37,99,235,.12); color: var(--vh-blue); }
.icon-emerald { background: rgba(16,185,129,.12); color: var(--vh-emerald); }
.icon-gold { background: rgba(245,158,11,.12); color: var(--vh-gold); }
.icon-purple { background: rgba(139,92,246,.12); color: #8b5cf6; }

/* ---------- STATS COUNTER ---------- */
.stats-band { background: var(--vh-gradient-hero); color: #fff; position: relative; overflow: hidden; }
.stats-band::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.06); top: -200px; right: -100px;
}
.stat-item { text-align: center; padding: 1.5rem; position: relative; z-index: 2; }
.stat-number { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.stat-label { opacity: .85; font-size: .95rem; }

/* ---------- PACKAGES ---------- */
.package-card {
  background: var(--vh-card); border: 1px solid var(--vh-border);
  border-radius: 20px; padding: 2.2rem 1.8rem; height: 100%;
  transition: var(--vh-transition); position: relative; overflow: hidden;
}
.package-card:hover { transform: translateY(-8px); box-shadow: var(--vh-shadow-lg); }
.package-card.featured { border: 2px solid var(--vh-blue); }
.package-ribbon {
  position: absolute; top: 16px; right: -38px; transform: rotate(45deg);
  background: var(--vh-gradient-gold); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem 3rem; letter-spacing: 1px;
}
.package-badge {
  display: inline-block; padding: .3rem .9rem; border-radius: 50px;
  font-size: .75rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.package-name { font-size: 1.3rem; font-weight: 700; }
.package-price { font-size: 2.4rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.package-price small { font-size: .9rem; font-weight: 500; color: var(--vh-text-muted); }
.package-features { list-style: none; padding: 0; margin: 1.4rem 0; }
.package-features li { padding: .45rem 0; font-size: .92rem; display: flex; align-items: center; gap: .6rem; }
.package-features li i { color: var(--vh-emerald); }
.package-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.package-meta div { font-size: .8rem; color: var(--vh-text-muted); }
.package-meta strong { display: block; color: var(--vh-text); font-size: .95rem; }

/* ---------- WHY CHOOSE ---------- */
.why-item { display: flex; gap: 1rem; padding: 1.2rem 0; }
.why-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: var(--vh-card); border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius); padding: 2rem; height: 100%; transition: var(--vh-transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--vh-shadow-lg); }
.testimonial-stars { color: var(--vh-gold); margin-bottom: 1rem; }
.testimonial-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--vh-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- FAQ ---------- */
.accordion-item { background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius-sm) !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { background: var(--vh-card); color: var(--vh-text); font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }
.accordion-button:not(.collapsed) { background: rgba(37,99,235,.06); color: var(--vh-blue); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--vh-border); }
.accordion-body { color: var(--vh-text-muted); }

/* ---------- FLYERS ---------- */
.flyer-card { border-radius: var(--vh-radius); overflow: hidden; border: 1px solid var(--vh-border); transition: var(--vh-transition); background: var(--vh-card); }
.flyer-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--vh-shadow-lg); }
.flyer-card img { width: 100%; display: block; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--vh-gradient-hero); border-radius: 28px;
  padding: 4rem 2rem; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08); bottom: -150px; left: -50px;
}
.cta-band::after {
  content: ''; position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: rgba(251,191,36,.15); top: -120px; right: -40px;
}

/* ---------- CONTACT ---------- */
.contact-info-card { display: flex; gap: 1rem; padding: 1.2rem 0; align-items: flex-start; }

/* ---------- FOOTER ---------- */
.site-footer { background: #0b1530; color: #cbd5e1; padding-top: 4rem; }
.footer-text { font-size: .92rem; line-height: 1.7; opacity: .85; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1.1rem; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: .35rem 0; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: .9rem; opacity: .85; transition: var(--vh-transition); }
.footer-links a:hover { color: #fff; opacity: 1; padding-left: 4px; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--vh-transition);
}
.footer-social a:hover { background: var(--vh-blue); transform: translateY(-3px); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { padding: .4rem 0; font-size: .9rem; display: flex; gap: .7rem; align-items: center; opacity: .85; }
.footer-contact i { color: var(--vh-blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; margin-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .85rem; opacity: .8;
}
.footer-bottom a { color: #cbd5e1; text-decoration: none; }

/* ===================================================================
   AUTH PAGES
   =================================================================== */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; }
.auth-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(16,185,129,.12), transparent 40%),
    var(--vh-bg);
}
.auth-container { width: 100%; max-width: 480px; }
.auth-card {
  background: var(--vh-card-glass); backdrop-filter: blur(16px);
  border: 1px solid var(--vh-border); border-radius: 20px;
  padding: 2.4rem; box-shadow: var(--vh-shadow-lg);
}
.auth-brand img { filter: drop-shadow(0 4px 12px rgba(37,99,235,.3)); }
.auth-title { font-weight: 800; font-size: 1.6rem; margin-bottom: .3rem; }
.auth-subtitle { color: var(--vh-text-muted); font-size: .92rem; margin-bottom: 1.8rem; }
.divider-or { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--vh-text-muted); font-size: .85rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--vh-border); }
.btn-google {
  background: #fff; border: 1px solid var(--vh-border); color: #1f2937;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .7rem; border-radius: 10px; font-weight: 600; transition: var(--vh-transition);
}
.btn-google:hover { background: #f8fafc; transform: translateY(-2px); box-shadow: var(--vh-shadow); color: #1f2937; }
.password-strength { height: 5px; border-radius: 5px; background: var(--vh-border); margin-top: .5rem; overflow: hidden; }
.password-strength .bar { height: 100%; width: 0; border-radius: 5px; transition: all .3s; }
.strength-weak { width: 25%; background: #ef4444; }
.strength-fair { width: 50%; background: #f59e0b; }
.strength-good { width: 75%; background: #3b82f6; }
.strength-strong { width: 100%; background: #10b981; }

/* ===================================================================
   APP SHELL (dashboard layout)
   =================================================================== */
.app-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1040;
  background: var(--vh-topbar); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vh-border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem;
}
.topbar-brand img { display: block; }
.topbar-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.user-chip {
  display: flex; align-items: center; gap: .6rem; border: 1px solid var(--vh-border);
  border-radius: 50px; padding: .3rem .8rem .3rem .3rem; background: var(--vh-card-glass); color: var(--vh-text);
}
.user-chip:hover { background: var(--vh-card); color: var(--vh-text); }
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%; background: var(--vh-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
}
.notif-btn { border: 1px solid var(--vh-border); border-radius: 10px; width: 38px; height: 38px; background: var(--vh-card-glass); color: var(--vh-text); }
.notif-btn:hover { background: var(--vh-card); color: var(--vh-blue); }
.notif-count { font-size: .6rem; }
.notif-dropdown { width: 340px; max-width: 90vw; border-radius: 14px !important; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: .8rem; padding: .85rem 1rem; text-decoration: none; color: var(--vh-text); border-bottom: 1px solid var(--vh-border); transition: background .2s; }
.notif-item:hover { background: rgba(37,99,235,.06); color: var(--vh-text); }
.notif-item.unread { background: rgba(37,99,235,.05); }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body { display: flex; flex-direction: column; min-width: 0; }
.notif-title { font-weight: 600; font-size: .85rem; }
.notif-msg { font-size: .78rem; color: var(--vh-text-muted); }
.notif-time { font-size: .7rem; color: var(--vh-text-muted); }

.app-shell { display: flex; padding-top: 64px; min-height: 100vh; }
.app-sidebar {
  width: 264px; flex-shrink: 0; background: var(--vh-sidebar);
  border-right: 1px solid var(--vh-border);
  position: fixed; top: 64px; bottom: 0; left: 0; z-index: 1030;
  overflow-y: auto; transition: transform .3s ease;
}
.sidebar-inner { padding: 1.2rem .9rem 3rem; }
.side-section {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.2px;
  color: var(--vh-text-muted); padding: 1rem .9rem .4rem; text-transform: uppercase;
}
.side-link {
  display: flex; align-items: center; gap: .75rem; padding: .62rem .9rem;
  border-radius: 10px; color: var(--vh-text-muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; margin-bottom: 2px; transition: all .2s;
}
.side-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.side-link:hover { background: rgba(37,99,235,.08); color: var(--vh-blue); }
.side-link.active { background: var(--pkg-gradient, var(--vh-gradient)); color: #fff; box-shadow: 0 6px 16px -6px rgba(37,99,235,.6); }
.side-link-badge {
  margin-left: auto; font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  padding: .15rem .5rem; border-radius: 999px; white-space: nowrap;
  background: rgba(148,163,184,.18); color: var(--vh-text-muted);
}
.side-link-badge-locked { background: rgba(100,116,139,.22); color: #64748b; display: inline-flex; align-items: center; gap: .2rem; }
.side-link.active .side-link-badge { background: rgba(255,255,255,.25); color: #fff; }
.app-main { flex: 1; margin-left: 264px; min-width: 0; }
.sidebar-overlay { display: none; }
.sidebar-toggler { border: 1px solid var(--vh-border); background: var(--vh-card-glass); color: var(--vh-text); }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); box-shadow: var(--vh-shadow-lg); }
  .app-main { margin-left: 0; }
  .sidebar-overlay.show { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(0,0,0,.45); z-index: 1020; }
}

/* ---------- WALLET CARDS ---------- */
.wallet-card {
  border-radius: 18px; padding: 1.5rem; color: #fff; position: relative; overflow: hidden;
  transition: var(--vh-transition); height: 100%;
}
.wallet-card:hover { transform: translateY(-5px); box-shadow: var(--vh-shadow-lg); }
.wallet-card::after {
  content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.1); top: -60px; right: -40px;
}
.wallet-card .w-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.wallet-card .w-label { font-size: .82rem; opacity: .9; text-transform: uppercase; letter-spacing: 1px; }
.wallet-card .w-amount { font-size: 1.7rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.wallet-main { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.wallet-referral { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.wallet-task { background: linear-gradient(135deg, #059669, #10b981); }
.wallet-bonus { background: linear-gradient(135deg, #d97706, #f59e0b); }
.wallet-investment { background: linear-gradient(135deg, #be123c, #f43f5e); }
.wallet-call { background: linear-gradient(135deg, #0e7490, #06b6d4); }

/* ---------- STAT MINI CARDS ---------- */
.stat-card {
  background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius);
  padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: 1rem; transition: var(--vh-transition); height: 100%;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--vh-shadow); }
.stat-card .s-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.stat-card .s-value { font-size: 1.4rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.1; }
.stat-card .s-label { font-size: .8rem; color: var(--vh-text-muted); }

/* ---------- QUICK ACTIONS ---------- */
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.2rem .6rem; border-radius: 14px; border: 1px solid var(--vh-border);
  background: var(--vh-card); text-decoration: none; color: var(--vh-text);
  font-size: .8rem; font-weight: 600; transition: var(--vh-transition); text-align: center;
}
.quick-action i { font-size: 1.4rem; color: var(--vh-blue); transition: var(--vh-transition); }
.quick-action:hover { transform: translateY(-4px); box-shadow: var(--vh-shadow); color: var(--vh-blue); border-color: var(--vh-blue); }

/* ---------- PROGRESS ---------- */
.progress { background: var(--vh-border); border-radius: 10px; height: 8px; }
.progress-bar { background: var(--pkg-gradient, var(--vh-gradient)); border-radius: 10px; }

/* ---------- TASK / EARN CARDS ---------- */
.earn-card {
  background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius);
  padding: 1.5rem; height: 100%; transition: var(--vh-transition); position: relative;
}
.earn-card:hover { transform: translateY(-5px); box-shadow: var(--vh-shadow-lg); }
.earn-card.completed { opacity: .75; }
.earn-reward {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(16,185,129,.12); color: var(--vh-emerald);
  font-weight: 700; font-size: .82rem; padding: .25rem .7rem; border-radius: 50px;
}

/* ---------- SPIN WHEEL ---------- */
.spin-wrapper { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.spin-pointer {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--vh-gold); z-index: 5; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3));
}
#spinCanvas { border-radius: 50%; box-shadow: 0 0 0 8px var(--vh-card), 0 0 0 10px var(--vh-border), var(--vh-shadow-lg); }

/* ---------- SCRATCH ---------- */
.scratch-wrap { position: relative; width: 280px; height: 160px; margin: 0 auto; border-radius: 16px; overflow: hidden; }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--vh-gradient-emerald); color: #fff; border-radius: 16px; }
.scratch-prize .prize-amount { font-size: 2rem; font-weight: 800; }
#scratchCanvas { position: absolute; inset: 0; border-radius: 16px; cursor: crosshair; }

/* ---------- CHAT ---------- */
.chat-box { height: 420px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 80%; padding: .7rem 1rem; border-radius: 16px; font-size: .9rem; }
.chat-msg.mine { align-self: flex-end; background: var(--vh-gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.other { align-self: flex-start; background: var(--vh-bg-soft); border: 1px solid var(--vh-border); border-bottom-left-radius: 4px; }
.chat-meta { font-size: .68rem; opacity: .75; margin-top: .25rem; }

/* ---------- LEADERBOARD ---------- */
.leader-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 12px; transition: var(--vh-transition); }
.leader-row:hover { background: rgba(37,99,235,.06); }
.leader-row.me { background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.3); }
.leader-rank { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; background: var(--vh-bg-soft); }
.rank-1 { background: var(--vh-gradient-gold); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #b45309, #d97706); color: #fff; }

/* ---------- REFERRAL ---------- */
.referral-link-box {
  display: flex; align-items: center; gap: .8rem; background: var(--vh-bg-soft);
  border: 1px dashed var(--vh-blue); border-radius: 12px; padding: .8rem 1rem;
}
.referral-link-box input { border: none; background: transparent; color: var(--vh-text); flex: 1; outline: none; font-size: .9rem; }
.ref-tree { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.ref-tree .node { background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: 12px; padding: .6rem 1.2rem; font-size: .85rem; font-weight: 600; }
.ref-tree .node.root { background: var(--vh-gradient); color: #fff; border: none; }
.ref-children { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- COMING SOON ---------- */
.coming-soon {
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(16,185,129,.1));
  border: 2px dashed var(--vh-border); border-radius: 20px; padding: 3rem 2rem; text-align: center;
}
.coming-soon .cs-badge {
  display: inline-block; background: var(--vh-gradient-gold); color: #fff;
  font-weight: 800; letter-spacing: 2px; padding: .4rem 1.4rem; border-radius: 50px; font-size: .8rem;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- MUSIC ---------- */
.music-track { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--vh-border); background: var(--vh-card); transition: var(--vh-transition); }
.music-track:hover { box-shadow: var(--vh-shadow); transform: translateY(-3px); }
.music-cover { width: 56px; height: 56px; border-radius: 12px; background: var(--vh-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; flex-shrink: 0; }
.music-progress { flex: 1; }

/* ---------- CHECK-IN CALENDAR ---------- */
.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.checkin-day {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--vh-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .75rem; background: var(--vh-card); transition: var(--vh-transition);
}
.checkin-day.done { background: var(--vh-gradient-emerald); color: #fff; border: none; }
.checkin-day.today { border: 2px solid var(--vh-blue); }
.checkin-day .day-num { font-weight: 800; font-size: 1rem; }

/* ---------- BADGES ---------- */
.bg-success-subtle { background: rgba(16,185,129,.14) !important; }
.bg-danger-subtle { background: rgba(239,68,68,.14) !important; }
.bg-warning-subtle { background: rgba(245,158,11,.14) !important; }
.bg-info-subtle { background: rgba(14,165,233,.14) !important; }
.bg-primary-subtle { background: rgba(37,99,235,.14) !important; }
.bg-dark-subtle { background: rgba(15,23,42,.14) !important; }
.bg-secondary-subtle { background: rgba(100,116,139,.14) !important; }
.text-success { color: #059669 !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #d97706 !important; }
.text-info { color: #0284c7 !important; }

/* ---------- DROPDOWNS ---------- */
.dropdown-menu { background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: 12px; box-shadow: var(--vh-shadow-lg); }
.dropdown-item { color: var(--vh-text); border-radius: 8px; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(37,99,235,.08); color: var(--vh-blue); }
.dropdown-divider { border-color: var(--vh-border); }

/* ---------- MODALS ---------- */
.modal-content { background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: 18px; }
.modal-header, .modal-footer { border-color: var(--vh-border); }
.btn-close { filter: var(--vh-close-filter, none); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ---------- PAGINATION ---------- */
.page-link { background: var(--vh-card); border-color: var(--vh-border); color: var(--vh-text); }
.page-item.active .page-link { background: var(--vh-blue); border-color: var(--vh-blue); }
.page-link:hover { background: rgba(37,99,235,.08); color: var(--vh-blue); }

/* ---------- TOASTS ---------- */
.toast { background: var(--vh-card); border: 1px solid var(--vh-border); color: var(--vh-text); border-radius: 12px; }

/* ---------- QR ---------- */
#qrcode img { margin: 0 auto; border-radius: 12px; padding: 10px; background: #fff; }

/* ---------- UTILITIES ---------- */
.hover-lift { transition: var(--vh-transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--vh-shadow); }
.gradient-text { background: var(--vh-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cursor-pointer { cursor: pointer; }
.text-xs { font-size: .75rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--vh-text-muted); }
.empty-state i { font-size: 3rem; opacity: .4; margin-bottom: 1rem; display: block; }

/* ---------- ANIMATION DELAYS ---------- */
.delay-1 { animation-delay: .1s; } .delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; } .delay-4 { animation-delay: .4s; }

@media (max-width: 575.98px) {
  .wallet-card .w-amount { font-size: 1.4rem; }
  .auth-card { padding: 1.6rem; }
  .section { padding: 3rem 0; }
  .hero-content h1 { font-size: 2rem; }
}

/* ===================================================================
   LAYOUT & OVERFLOW FIXES (v1.1)
   - Numbers no longer spill out of wallet / stat cards
   - Reward badge no longer collides with card titles
   - Earn cards align their buttons at equal heights
   - Spin / scratch / check-in scale correctly on small screens
   =================================================================== */

img { max-width: 100%; }

/* ---------- Wallet cards: keep amounts inside the card ---------- */
.wallet-card { min-width: 0; }
.wallet-card .w-icon,
.wallet-card .w-label,
.wallet-card .w-amount { position: relative; z-index: 1; }
.wallet-card .w-amount {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.wallet-card .w-label { word-break: break-word; }

/* ---------- Stat cards: text column must shrink, numbers wrap ---------- */
.stat-card { min-width: 0; overflow: hidden; }
.stat-card > div:not(.s-icon) { min-width: 0; flex: 1 1 auto; }
.stat-card .s-value {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.stat-card .s-label { overflow-wrap: break-word; }

/* ---------- Earn cards: uniform heights, badge never overlaps titles ---------- */
.earn-card { display: flex; flex-direction: column; overflow: hidden; }
.earn-card > .d-grid:last-child,
.earn-card > button:last-child,
.earn-card > .btn:last-child { margin-top: auto; }

/* When the reward badge sits directly above a heading (e.g. quiz cards),
   reserve space so the text never slides under the badge */
.earn-card > .earn-reward:not(.position-static) + h5,
.earn-card > .earn-reward:not(.position-static) + h6 { padding-right: 5rem; }
.earn-card h5, .earn-card h6 { overflow-wrap: break-word; }
.earn-reward { max-width: 60%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-reward.position-static { position: static; max-width: none; white-space: normal; }

/* ---------- Package cards ---------- */
.package-price { font-size: clamp(1.8rem, 5vw, 2.4rem); word-break: break-word; }
.package-meta div { min-width: 0; }
.package-meta strong { overflow-wrap: break-word; }

/* ---------- Spin wheel & scratch card scale down on small screens ---------- */
.spin-wrapper { max-width: 100%; }
#spinCanvas { max-width: 100%; height: auto; }
.scratch-wrap { max-width: 100%; }
#scratchCanvas { max-width: 100%; }

/* ---------- Chat bubbles: long words wrap instead of breaking layout ---------- */
.chat-msg { overflow-wrap: anywhere; word-break: break-word; }
.chat-box { min-height: 0; }

/* ---------- Music tracks wrap gracefully on phones ---------- */
.music-track { flex-wrap: wrap; }
.music-track .music-progress { flex: 1 1 140px; min-width: 0; }

/* ---------- Leaderboard / referral rows ---------- */
.leader-row { flex-wrap: nowrap; min-width: 0; }
.leader-row .flex-grow-1 { min-width: 0; }
.referral-link-box input { min-width: 0; }

/* ---------- Tables inside cards stay tidy ---------- */
.vh-card .table td, .vh-card .table th { vertical-align: middle; }
.vh-card .table .text-break { overflow-wrap: anywhere; }

/* ---------- Check-in calendar on small screens ---------- */
@media (max-width: 575.98px) {
  .checkin-grid { gap: .35rem; }
  .checkin-day { font-size: .58rem; border-radius: 8px; }
  .checkin-day .day-num { font-size: .85rem; }
  .checkin-day span:not(.day-num) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .spin-wrapper { width: 260px; height: 260px; }
  #spinCanvas { width: 260px; height: 260px; }
  .stat-card { padding: 1rem; gap: .7rem; }
  .stat-card .s-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .wallet-card { padding: 1.1rem; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .checkin-day { font-size: .52rem; }
  .package-meta { gap: .6rem; }
}

/* ===================================================================
   SCROLL REVEAL — classic fade + rise, triggered once per element
   =================================================================== */
.reveal-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ===================================================================
   TILT CARD — subtle pointer-driven 3D tilt (desktop only, restrained)
   =================================================================== */
.tilt-card { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; will-change: transform; }

/* ===================================================================
   WITHDRAWAL — selectable wallet cards
   =================================================================== */
.wallet-select-card {
  display: block; position: relative; text-align: center; cursor: pointer;
  border: 2px solid var(--vh-border); border-radius: var(--vh-radius);
  padding: 1rem .75rem; background: var(--vh-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wallet-select-card input[type="checkbox"] {
  position: absolute; top: .6rem; right: .6rem; width: 1.05rem; height: 1.05rem; margin: 0;
}
.wallet-select-card:has(input:checked) {
  border-color: var(--vh-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.wallet-select-card:has(input:not(:disabled)):hover { transform: translateY(-2px); }
.wallet-select-card.locked {
  cursor: not-allowed; opacity: .55; background: var(--vh-bg-soft);
}
.wallet-locked-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 600; color: var(--vh-text-muted);
  margin-top: .35rem;
}
@media (max-width: 575.98px) {
  .wallet-select-card { padding: .75rem .5rem; }
}

/* ===================================================================
   LUCKY DRAW — hero, countdown, winner cards
   =================================================================== */
.lucky-hero {
  position: relative; overflow: hidden; border-radius: var(--vh-radius-lg, 20px);
  background: linear-gradient(135deg, #6d28d9 0%, #a21caf 55%, #db2777 100%);
  padding: 2.5rem 1.5rem; text-align: center; color: #fff;
}
.lucky-hero-orbs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.lucky-hero-orbs span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .4;
  animation: orbFloat 9s ease-in-out infinite;
}
.lucky-hero-orbs span:nth-child(1) { width: 260px; height: 260px; background: #facc15; top: -60px; left: -40px; }
.lucky-hero-orbs span:nth-child(2) { width: 220px; height: 220px; background: #38bdf8; bottom: -60px; right: -30px; animation-delay: -3s; }
.lucky-hero-orbs span:nth-child(3) { width: 180px; height: 180px; background: #f472b6; top: 40%; left: 60%; animation-delay: -6s; }
.lucky-hero-content { position: relative; z-index: 1; }
.lucky-badge {
  display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.18);
  padding: .35rem 1rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(250,204,21,.5); } 50% { box-shadow: 0 0 0 8px rgba(250,204,21,0); } }
.lucky-prize { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 1rem; }
.lucky-countdown { display: flex; gap: .6rem; justify-content: center; margin-top: .5rem; }
.lucky-countdown > div {
  background: rgba(255,255,255,.14); border-radius: 12px; padding: .6rem .5rem; min-width: 58px;
}
.lucky-countdown .cd-val { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.lucky-countdown .cd-label { display: block; font-size: .6rem; opacity: .75; text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.lucky-entries { font-size: .85rem; opacity: .9; }
.lucky-draw-teaser { background: linear-gradient(135deg, #6d28d9, #db2777); border: none; }

.winner-card {
  display: flex; align-items: center; gap: .75rem; padding: .85rem; border-radius: var(--vh-radius);
  background: var(--vh-bg-soft); border: 1px solid var(--vh-border);
}
.winner-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}

/* ===================================================================
   MILESTONES — progress bar + ladder
   =================================================================== */
.milestone-progress-track {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden;
}
.vh-card .milestone-progress-track { background: var(--vh-bg-soft); }
.milestone-progress-fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
.milestone-ladder { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.milestone-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.milestone-item:hover { transform: translateY(-2px); box-shadow: var(--vh-shadow); }
.milestone-item.claimed { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.05); }
.milestone-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(245,158,11,.12); color: var(--vh-gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.milestone-item.claimed .milestone-icon { background: rgba(16,185,129,.15); color: var(--vh-emerald); }
@media (max-width: 575.98px) {
  .lucky-countdown > div { min-width: 48px; padding: .5rem .35rem; }
  .lucky-countdown .cd-val { font-size: 1.1rem; }
  .milestone-item { padding: .8rem .9rem; gap: .7rem; }
  .milestone-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ===================================================================
   VOICECAST — premium locked card
   =================================================================== */
.voicecast-locked { text-align: center; padding: 3.5rem 1.5rem; }
.voicecast-locked-illustration {
  position: relative; width: 120px; height: 120px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e293b, #334155); border-radius: 50%;
  font-size: 2.6rem; color: #fbbf24;
}
.vc-orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; animation: orbFloat 8s ease-in-out infinite; }
.vc-orb-1 { width: 90px; height: 90px; background: #8b5cf6; top: -20px; left: -20px; }
.vc-orb-2 { width: 70px; height: 70px; background: #f59e0b; bottom: -15px; right: -15px; animation-delay: -4s; }
.badge-premium {
  display: inline-flex; align-items: center; background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; padding: .35rem 1rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
}

/* ===================================================================
   VOICECAST — browse cards
   =================================================================== */
.voicecast-hero-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fbbf24; flex-shrink: 0;
}
.voicecast-card {
  background: var(--vh-card); border: 1px solid var(--vh-border); border-radius: var(--vh-radius-lg, 18px);
  padding: 1.5rem 1.25rem; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.voicecast-card:hover { transform: translateY(-4px); box-shadow: var(--vh-shadow-lg); }
.voicecast-card-avatar { position: relative; width: 76px; height: 76px; margin: 0 auto 1rem; }
.voicecast-card-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.voicecast-avatar-fallback {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; font-size: 1.3rem;
}
.voicecast-done-badge {
  position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--vh-emerald); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; border: 3px solid var(--vh-card);
}

/* ===================================================================
   VOICECAST — active call screen (cinematic, glassmorphism)
   =================================================================== */
.vc-call-wrap {
  min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column;
  text-align: center; border-radius: var(--vh-radius-lg, 20px); padding: 3rem 1.5rem;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 60%, #020617 100%); color: #fff;
  position: relative; overflow: hidden;
}
.vc-phase { width: 100%; max-width: 420px; }
.vc-avatar-ring {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; position: relative;
  padding: 6px; background: linear-gradient(135deg, #8b5cf6, #6366f1, #38bdf8);
}
.vc-avatar-ring img, .vc-avatar-ring .vc-avatar-lg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.vc-avatar-ring.pulsing::before, .vc-avatar-ring.speaking::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(139,92,246,.5);
  animation: vcPulse 1.8s ease-out infinite;
}
@keyframes vcPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.vc-dots span { animation: vcDotBlink 1.4s infinite; opacity: 0; }
.vc-dots span:nth-child(2) { animation-delay: .2s; }
.vc-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes vcDotBlink { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

.vc-call-badge {
  display: inline-flex; align-items: center; background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  padding: .4rem 1rem; border-radius: 999px; font-size: .68rem; font-weight: 600; color: #a5b4fc; margin-bottom: 1.25rem;
}
.vc-status { font-size: .85rem; color: #cbd5e1; margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.vc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: vcDotBlink 1.2s infinite; display: inline-block; }
#vcTimer { font-variant-numeric: tabular-nums; font-weight: 700; }

.vc-waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 48px; margin-top: 1.5rem; }
.vc-waveform span {
  width: 4px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #a78bfa, #38bdf8);
  transition: height .15s ease;
}

.vc-control-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.vc-control-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.vc-control-btn.active { background: rgba(239,68,68,.25); color: #f87171; }
.vc-end-btn { background: linear-gradient(135deg, #ef4444, #dc2626); }
.vc-end-btn:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.vc-done-icon { font-size: 3.5rem; color: var(--vh-emerald); }
.vc-done-icon.vc-icon-muted { color: #94a3b8; }
.vc-reward-amount { font-size: 2.2rem; font-weight: 800; margin: .5rem 0; }
@media (max-width: 575.98px) {
  .vc-call-wrap { min-height: 60vh; padding: 2rem 1rem; }
  .vc-avatar-ring { width: 108px; height: 108px; }
  .vc-control-btn { width: 48px; height: 48px; font-size: 1.05rem; }
}

/* ===================================================================
   MODAL — fix mobile scrollbar-compensation bug
   Bootstrap adds padding-right to <body> when a modal opens, sized to
   the browser's scrollbar width, to stop content jumping. Several mobile
   browsers miscalculate this (mobile scrollbars are usually 0-width
   overlays), producing a large phantom padding that looks like a blank
   grey/white gutter next to the modal. Force it off below desktop width,
   where there's no real scrollbar to compensate for anyway.
   =================================================================== */
@media (max-width: 991.98px) {
  body.modal-open { padding-right: 0 !important; }
  /* Bootstrap's modal.js also pads/margins .fixed-top, .fixed-bottom, .sticky-top, .is-fixed
     elements with the same (often miscalculated) scrollbar width — neutralize on mobile too. */
  .modal-open .fixed-top, .modal-open .fixed-bottom, .modal-open .sticky-top, .modal-open .is-fixed,
  .modal-open .app-shell, .modal-open .app-sidebar {
    padding-right: 0 !important; margin-right: 0 !important;
  }
}

/* ===================================================================
   FEATURE GATE — blurred skeleton + locked/coming-soon overlay
   Shown in place of a page's real content when a module is disabled
   globally (admin toggle) or excluded from the user's package.
   =================================================================== */
.feature-locked { position: relative; min-height: 360px; }
.feature-locked-skeleton {
  filter: blur(6px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.fl-block {
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
}
.fl-card { height: 110px; }
.fl-row { height: 54px; margin-bottom: .9rem; }
.fl-row.w-75 { width: 75%; }

.feature-locked-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.feature-locked-card {
  background: var(--vh-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  box-shadow: var(--vh-shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.feature-locked-card .cs-badge.badge-locked {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  animation: none;
}
@media (max-width: 575.98px) {
  .feature-locked { min-height: 300px; }
  .feature-locked-card { padding: 1.8rem 1.3rem; }
  .fl-card { height: 80px; }
}
