/* ============================================================
   VOTi – Main Stylesheet
   Brand: Royal Blue #1B2DC5 / Navy #0B1275 / Gold #F59E0B
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary:       #1B2DC5;
  --primary-dark:  #0B1275;
  --primary-light: #3A4FE8;
  --primary-ultra: #e8ecff;
  --accent:        #F59E0B;
  --accent-dark:   #D97706;
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --white:         #FFFFFF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-400:      #9CA3AF;
  --gray-600:      #4B5563;
  --gray-900:      #111827;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(27,45,197,.12);
  --shadow-lg:     0 12px 40px rgba(27,45,197,.18);
  --transition:    all .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p  { color: var(--gray-600); }

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ── Container ──────────────────────────────────────────── */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm  { max-width: 800px;  margin: 0 auto; padding: 0 20px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(27,45,197,.35);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,45,197,.45); }
.btn-accent {
  background: var(--accent); color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,18,117,.97); backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text {
  font-size: 1.6rem; font-weight: 900; color: var(--white); letter-spacing: -1px;
}
.nav-logo-text span { color: var(--accent); }
.nav-tagline { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 2px; margin-top: -4px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-menu a { color: rgba(255,255,255,.8); font-size: .9rem; padding: 8px 14px; border-radius: 6px; }
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2a44e8 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.05) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(245,158,11,.08) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 55%; opacity: .06; pointer-events: none;
  font-size: 30vw; line-height: 1; color: var(--white);
  font-weight: 900; user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--accent); padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── Section ────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--primary-dark); }
.section-label {
  font-size: .8rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px; display: block;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--gray-600); max-width: 540px; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Feature Cards ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-ultra); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary-ultra); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: .9rem; }

/* ── Steps ──────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; position: relative; }
.step-card { text-align: center; padding: 40px 24px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(27,45,197,.35);
}
.step-card h3 { margin-bottom: 10px; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; border: 2px solid var(--gray-200);
  max-width: 440px; margin: 0 auto; text-align: center;
  transition: var(--transition);
}
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.price-amount { font-size: 3rem; font-weight: 900; color: var(--primary); }
.price-pct { font-size: 1.1rem; color: var(--gray-600); }
.pricing-features { list-style: none; margin: 28px 0; text-align: left; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: .95rem; border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border: none; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { font-style: italic; color: var(--gray-600); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.author-name { font-weight: 600; font-size: .9rem; }
.author-role { font-size: .8rem; color: var(--gray-400); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 90px 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--gray-900); color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}
.footer-bottom span { color: rgba(255,255,255,.4); }
.powered-by { display: flex; align-items: center; gap: 8px; }
.powered-by img { height: 22px; filter: brightness(0) invert(.6); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--gray-900); }
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .95rem; font-family: inherit;
  background: var(--white); color: var(--gray-900);
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,45,197,.1); }
.form-control::placeholder { color: var(--gray-400); }
.form-hint { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: .85rem; color: var(--danger); margin-top: 4px; }

/* ── Alert ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .9rem; border: 1px solid transparent; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.alert-danger   { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-warning  { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.alert-info     { background: #e0e7ff; border-color: #a5b4fc; color: #3730a3; }

/* ── Voting Page ────────────────────────────────────────── */
.event-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 0 60px; text-align: center;
}
.event-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.8rem); }
.event-hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 500px; margin: 12px auto 0; }
.event-meta {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.event-meta-item {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8); font-size: .85rem;
  background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 50px;
}
.event-countdown {
  background: rgba(0,0,0,.25); padding: 14px 28px; border-radius: 12px;
  display: inline-flex; gap: 20px; margin-top: 24px;
}
.countdown-unit { text-align: center; }
.countdown-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.countdown-label { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; }

.categories-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 4px; margin-bottom: 36px; flex-wrap: wrap;
}
.cat-tab {
  padding: 10px 22px; border-radius: 50px; font-size: .9rem; font-weight: 500;
  cursor: pointer; border: 2px solid var(--gray-200); background: var(--white);
  white-space: nowrap; transition: var(--transition);
}
.cat-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.contestants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

.contestant-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 2px solid var(--gray-100);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  text-align: center;
}
.contestant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-ultra); }
.contestant-photo {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--primary-ultra);
}
.contestant-photo-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary-ultra), #c7d0ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--primary);
}
.contestant-body { padding: 20px 16px; }
.contestant-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contestant-votes {
  font-size: .85rem; color: var(--gray-400);
  background: var(--gray-50); padding: 4px 12px;
  border-radius: 50px; display: inline-block; margin-bottom: 16px;
}
.contestant-number {
  width: 28px; height: 28px; background: var(--primary); color: var(--white);
  border-radius: 50%; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 12px; left: 12px;
}

/* ── Vote Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--gray-400); }
.modal-contestant {
  display: flex; align-items: center; gap: 14px;
  background: var(--gray-50); border-radius: var(--radius);
  padding: 14px; margin-bottom: 24px;
}
.modal-contestant-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--primary-ultra); }
.vote-amount-display {
  background: var(--primary); color: var(--white);
  border-radius: var(--radius); padding: 16px;
  text-align: center; margin-bottom: 20px;
}
.vote-amount-label { font-size: .8rem; opacity: .8; }
.vote-amount-num { font-size: 2rem; font-weight: 800; }
.vote-counter { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vote-counter button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: var(--white);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.vote-counter button:hover { border-color: var(--primary); color: var(--primary); }
.vote-counter-num { font-size: 1.4rem; font-weight: 700; flex: 1; text-align: center; }

/* ── Payment States ─────────────────────────────────────── */
.payment-pending, .payment-success, .payment-failed {
  text-align: center; padding: 20px 0;
}
.spinner {
  width: 56px; height: 56px; border: 4px solid var(--primary-ultra);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check-icon {
  width: 64px; height: 64px; background: #d1fae5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2rem;
}
.x-icon {
  width: 64px; height: 64px; background: #fee2e2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2rem;
}

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 40px 20px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 40px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { text-align: center; font-size: 1.4rem; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: .9rem; color: var(--gray-400); margin-bottom: 28px; }

/* ── 404 Page ───────────────────────────────────────────── */
.not-found {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center; padding: 40px 20px;
}
.not-found-code { font-size: clamp(5rem, 20vw, 12rem); font-weight: 900; color: rgba(255,255,255,.15); line-height: 1; }
.not-found-msg { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.not-found-sub { color: rgba(255,255,255,.6); margin-bottom: 32px; }

/* ── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--gray-400); }
.text-white   { color: var(--white); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; } .mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; } .mb-32 { margin-bottom: 32px; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-primary { background: var(--primary-ultra); color: var(--primary); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .auth-card { padding: 28px 20px; }
  .modal { padding: 24px 20px; }
  .contestants-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
