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

:root {
  --bg-primary: #080d14;
  --bg-secondary: #0e1623;
  --bg-card: #121c2e;
  --bg-card-hover: #182436;
  --gold: #e8a020;
  --gold-light: #f5c842;
  --gold-dark: #c47a10;
  --teal: #1abc9c;
  --teal-dark: #148f77;
  --orange: #e67e22;
  --white: #ffffff;
  --text-primary: #e8edf5;
  --text-secondary: #8a9ab5;
  --text-muted: #5a6880;
  --border: rgba(232,160,32,0.18);
  --border-teal: rgba(26,188,156,0.2);
  --shadow: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 24px rgba(232,160,32,0.25);
  --shadow-teal: 0 0 24px rgba(26,188,156,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --gradient-gold: linear-gradient(135deg, #e8a020, #f5c842);
  --gradient-teal: linear-gradient(135deg, #1abc9c, #16a085);
  --gradient-dark: linear-gradient(135deg, #0e1623, #121c2e);
  --gradient-hero: linear-gradient(135deg, #080d14 0%, #0e1a2e 50%, #0a1520 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -50px; left: 0; background: var(--gold);
  color: #000; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.6rem,4vw,2.4rem); }
h3 { font-size: clamp(1.2rem,3vw,1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: var(--white); margin-bottom: 12px; }
.section-title h2 span { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title p { max-width: 600px; margin: 0 auto; }
.gold-text { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.teal-text { color: var(--teal); }

/* ── HEADER ── */
#site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8,13,20,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; gap: 20px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo img { height: 68px !important; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 992px) { .header-logo img { height: 46px !important; max-width: 150px !important; } }
@media (max-width: 480px)  { .header-logo img { height: 38px !important; max-width: 120px !important; } }
.header-logo-text { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; }
.header-logo-text span:first-child { color: var(--white); }
.header-logo-text span:last-child { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all var(--transition);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { color: var(--white); background: rgba(232,160,32,0.12); }

.header-cta-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-header-login {
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px;
  transition: all var(--transition);
}
.btn-header-login:hover { color: var(--white); border-color: var(--gold); }
.btn-header-reg {
  background: var(--gradient-gold); color: #000 !important; font-size: 0.88rem;
  font-weight: 700; padding: 9px 20px; border-radius: 8px;
  transition: all var(--transition); box-shadow: var(--shadow-gold);
}
.btn-header-reg:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(232,160,32,0.4); }

/* ── MOBILE NAV ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 20px; z-index: 899; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-primary); padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.mobile-nav a:hover { background: rgba(232,160,32,0.1); color: var(--gold); }
.mobile-nav-cta { margin-top: 10px; display: flex; gap: 10px; }
.mobile-nav-cta a { flex: 1; text-align: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1;
}
.btn-gold { background: var(--gradient-gold); color: #000; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(232,160,32,0.45); color: #000; }
.btn-teal { background: var(--gradient-teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(26,188,156,0.4); color: #fff; }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/images/hero-banner.webp');
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,20,0.9) 40%, rgba(8,13,20,0.3) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.12); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; font-size: 0.82rem;
  color: var(--gold); font-weight: 600; margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; margin-bottom: 36px; color: var(--text-secondary); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border); }
.hero-stat-val { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CARDS ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.card:hover { border-color: rgba(232,160,32,0.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-gold { border-color: var(--gold); background: linear-gradient(135deg, rgba(232,160,32,0.08), var(--bg-card)); }
.card-teal { border-color: var(--teal-dark); background: linear-gradient(135deg, rgba(26,188,156,0.08), var(--bg-card)); }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── RATING BARS ── */
.rating-bar-wrap { margin-bottom: 14px; }
.rating-bar-label { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px; }
.rating-bar-label strong { color: var(--gold); }
.rating-bar-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gradient-gold); border-radius: 3px; width: 0; transition: width 1.2s ease; }

/* ── BONUS CARDS ── */
.bonus-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; transition: all var(--transition);
}
.step-card { overflow: hidden; }
.step-card > div:last-child { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.bonus-card:hover { transform: translateY(-4px); border-color: rgba(232,160,32,0.4); box-shadow: var(--shadow-gold); }
.bonus-card-header { background: var(--gradient-gold); padding: 18px 24px; display: flex; align-items: center; gap: 12px; }
.bonus-card-header h3 { color: #000; font-size: 1rem; margin: 0; }
.bonus-card-icon { font-size: 1.8rem; }
.bonus-card-body { padding: 24px; }
.bonus-amount { font-family: 'Oswald', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.bonus-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 18px; }
.bonus-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 0.82rem; color: var(--text-muted); }
.bonus-meta span { display: flex; align-items: center; gap: 6px; }
.bonus-meta span::before { content: '•'; color: var(--teal); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead { background: linear-gradient(135deg, #0e1a2e, #121c2e); }
thead th { padding: 16px 20px; text-align: left; color: var(--gold); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(232,160,32,0.05); }
tbody td { padding: 14px 20px; color: var(--text-secondary); vertical-align: middle; }
tbody td:first-child { color: var(--text-primary); font-weight: 500; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.tag-green { background: rgba(26,188,156,0.15); color: var(--teal); }
.tag-gold { background: rgba(232,160,32,0.15); color: var(--gold); }
.tag-red { background: rgba(231,76,60,0.15); color: #e74c3c; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; background: var(--bg-card); border: none; cursor: pointer;
  padding: 20px 24px; text-align: left; color: var(--text-primary);
  font-size: 0.97rem; font-weight: 600; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question.active { color: var(--gold); }
.faq-icon { font-size: 1.2rem; color: var(--gold); transition: transform var(--transition); flex-shrink: 0; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; background: rgba(255,255,255,0.02); }
.faq-answer.open { max-height: 400px; }
.faq-answer p { padding: 20px 24px; margin: 0; }

/* ── AUTHOR BLOCK ── */
.author-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px;
  display: flex; gap: 28px; align-items: flex-start;
  margin: 60px 0 0;
}
.author-block-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
.author-block-name { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--white); font-weight: 600; }
.author-block-title { font-size: 0.82rem; color: var(--teal); margin-bottom: 10px; }
.author-block-bio { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ── BONUS POPUP ── */
#bonus-popup {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 280px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--gold);
  box-shadow: 0 8px 40px rgba(232,160,32,0.3);
  overflow: hidden; animation: slideInPopup 0.5s ease 2s both;
}
@keyframes slideInPopup { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.popup-img { width: 100%; height: 160px; display: block; }
.popup-body { padding: 16px; }
.popup-title { font-family: 'Oswald', sans-serif; font-size: 1rem; color: var(--gold); margin-bottom: 4px; }
.popup-text { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.popup-close {
  position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,0.65);
  border: none; color: #fff; cursor: pointer; font-size: 1rem;
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 100; transition: background 0.2s;
}
.popup-close:hover { background: rgba(232,160,32,0.85); }

/* ── FOOTER ── */
#site-footer { background: #060a10; border-top: 1px solid var(--border); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 1rem; color: var(--gold); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.payment-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-disclaimer { font-size: 0.76rem; color: var(--text-muted); opacity: 0.7; text-align: center; margin-top: 16px; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #e74c3c; color: #e74c3c; font-weight: 700; font-size: 0.72rem; }

/* ── STEP CARDS ── */
.step-card { text-align: center; }
.step-num { width: 54px; height: 54px; background: var(--gradient-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: #000; margin: 0 auto 18px; }
.step-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }

/* ── FEATURE ICONS ── */
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card { text-align: center; }
.feature-card h3 { color: var(--white); margin-bottom: 8px; font-size: 1rem; }

/* ── SCORE BOX ── */
.score-box { background: var(--gradient-gold); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.score-big { font-family: 'Oswald', sans-serif; font-size: 4rem; font-weight: 700; color: #000; line-height: 1; }
.score-label { color: rgba(0,0,0,0.65); font-size: 0.88rem; margin-top: 4px; }
.score-stars { font-size: 1.4rem; margin-top: 8px; }

/* ── NOTICE / WARNING ── */
.notice { background: rgba(26,188,156,0.08); border: 1px solid var(--border-teal); border-radius: var(--radius); padding: 18px 22px; font-size: 0.9rem; color: var(--text-secondary); }
.notice-warn { background: rgba(231,76,60,0.08); border-color: rgba(231,76,60,0.2); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); }

/* ── PAGE HERO (inner) ── */
.page-hero { background: var(--gradient-hero); padding: 70px 0 50px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(232,160,32,0.06), transparent 60%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 700px; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 55px 0; }
  .hero { min-height: 500px; padding: 60px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .author-block { flex-direction: column; }
  #bonus-popup { position: fixed !important; width: calc(100% - 32px); left: 16px; right: 16px; bottom: 16px; top: auto !important; max-width: 360px; transform: none !important; }
  .popup-img { height: 110px; }
  .popup-body { padding: 12px; }
  /* Bonus banner CTA button smaller on mobile */
  #bonus-banner-cta { font-size: 0.85rem !important; padding: 12px 20px !important; }
  /* Bonus banner wrapper – remove side padding so it doesn't overflow */
  .reveal[style*="padding:32px 40px"] { padding: 16px 0 !important; }
  /* Inregistrare banner inner text block – reduce padding */
  #register-promo-banner > div:not(img):not(div[style*='absolute']) > div[style*='padding:40px 48px'],
  #register-promo-banner [style*='padding:40px 48px'] { padding: 20px 18px !important; min-height: unset !important; }
  #register-promo-banner [style*='font-size:2.6rem'] { font-size: 1.6rem !important; }
  /* Table overflow fix */
  .table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; }
  table { min-width: 280px; width: 100%; }
  /* Step cards go column on mobile */
  .step-card { flex-direction: column !important; }
  .step-card .step-num { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta-group .btn-header-login { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
/* ── PAGE HERO WITH BG IMAGE ── */
.page-hero--img {
  background-image: url('/assets/images/hero-inner.webp');
  background-size: cover;
  background-position: center;
}
.page-hero--img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,13,20,0.88) 0%, rgba(8,13,20,0.65) 60%, rgba(8,13,20,0.4) 100%);
  z-index: 0;
}
.page-hero--img .page-hero-content { position: relative; z-index: 2; }
