
/* ---------- Imports & Custom Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --clr-bg:        #171717;
  --clr-surface:   #202020;
  --clr-surface2:  #313131;
  --clr-gold:      #e8c97a;
  --clr-gold-soft: #e8c97a;
  --clr-gold-dim:  rgba(53, 53, 76, 0.18);
  --clr-text:      #e8e0d0;
  --clr-muted:     #8c8275;
  --clr-border:    rgba(201, 168, 76, 0.25);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ---------- General Section Spacing ---------- */
section {
  padding: var(--sp-lg) var(--sp-sm);
}

@media (min-width: 768px) {
  section { padding: var(--sp-xl) var(--sp-md); }
}

/* ============================================
   HERO AUTH BUTTONS
   ============================================ */
.hero-auth {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-md);
  /* animation: fadeUp 1s var(--ease-out) 0.75s both; */
}

/* ============================================
   HERO GREETING (LOGGED IN USER)
   ============================================ */
.hero-greeting {
  margin-top: var(--sp-md);
  /* animation: fadeUp 1s var(--ease-out) 0.75s both; */
}

.hero-greeting p {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1.5vw, 1.35rem);
  font-weight: 30;
  color: var(--clr-gold);
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

/* ============================================
   FIRST SLIDE
   ============================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--sp-md) var(--sp-sm);
  background-color: var(--clr-bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: -3;

  pointer-events: none;
}

/* Noise grain overlay for depth */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
}

/* Dark gradient overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(0,0,0,0.55) 0%,
    rgba(15,14,11,0.75) 60%,
    rgba(15,14,11,0.95) 100%
  );
  z-index: -1;
}

/* Decorative gold line above heading */
#hero h1::before {
  content: '✦';
  display: block;
  font-size: 1rem;
  color: var(--clr-gold);
  letter-spacing: 0.4em;
  margin-bottom: var(--sp-sm);
  /* animation: fadeUp 1s var(--ease-out) 0.2s both; */
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  /* animation: fadeUp 1s var(--ease-out) 0.4s both; */
}

/* Gold underline accent on last word */
#hero h1 span {
  color: var(--clr-gold);
}

#hero > p {
  max-width: 520px;
  margin: var(--sp-md) auto 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(232, 224, 208, 0.8);
  font-style: italic;
  /* animation: fadeUp 1s var(--ease-out) 0.65s both; */
}

/* ============================================
   SPONSORS TICKER
   ============================================ */
.sponsors-ticker {
  width: 100%;
  margin-top: var(--sp-lg);
  overflow: hidden;
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  /* animation: fadeUp 1s var(--ease-out) 0.85s both; */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sponsors-track {
  display: flex;
  width: max-content;

  animation: scroll 28s linear infinite;

  will-change: transform;
  transform: translate3d(0,0,0);

  contain: layout paint style;
}

.sponsors-ticker:hover .sponsors-track {
  animation-play-state: paused;
}

.sponsors-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;         /* never compress — keeps loop seamless */
  align-items: center;
}

.sponsors-list li {
  display: inline-block;
  margin-right: 3rem;
  transition: opacity 0.3s ease;
}

.sponsors-list li:hover { opacity: 0.8; }

.sponsors-list li img {
  display: block;
  max-height: 80px;
  max-width: 300px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.sponsors-list li:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
  opacity: 1;
}

/* Translate by exactly 50% — one of two identical copies */
@keyframes scroll {
  0% {
    transform: translate3d(0,0,0);
  }

  100% {
    transform: translate3d(-50%,0,0);
  }
}

@media (max-width: 768px) {
  .sponsors-track {
    animation-duration: 42s;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  background: var(--clr-surface);
  position: relative;
}

/* Decorative vertical gold rule */
#about::before {
  content: '';
  position: absolute;
  top: var(--sp-lg);
  bottom: var(--sp-lg);
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--clr-border) 20%, var(--clr-border) 80%, transparent);
  display: none;   /* shown at desktop below */
}

@media (min-width: 960px) {
  #about::before { display: block; }
}

.about-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.about-row:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .about-row {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-lg);
  }

  .about-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.about-image {
  flex: 1 1 300px;

  aspect-ratio: 16 / 9;
  width: 100%;

  min-height: 220px;
  max-height: 600px;

  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--clr-border);

  background: linear-gradient(
    110deg,
    var(--clr-surface2) 33%,
    var(--clr-surface) 50%,
    var(--clr-surface2) 67%
  );

  background-size: 300%;
  animation: shimmer 2.5s linear infinite;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-image {
    aspect-ratio: 4 / 3;
  }
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.about-text {
  flex: 1 1 300px;
  padding: var(--sp-sm) 0;
}

.about-text p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.85;
  color: var(--clr-text);
}

/* Decorative drop-cap */
.about-text p::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  font-weight: 700;color: var(--clr-gold);
  float: left;
  line-height: 0.75;
  margin: 0.12em 0.08em 0 0;
}

/* ============================================
   TEST SECTION
   ============================================ */
#test {
  background: var(--clr-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind questions */
#test::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(700px, 120%);
  height: min(700px, 120%);
  background: radial-gradient(circle, var(--clr-gold-dim) 0%, transparent 70%);
  pointer-events: none;
}

/* Section label */
#test::after {
  content: '— Спасибо за ваши ответы, это нам очень поможет —';
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--clr-gold);
  margin-bottom: var(--sp-md);
  position: relative;
}

.test-question {
  margin: var(--sp-md) auto;
  max-width: 560px;
  padding: var(--sp-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.test-question:hover {
  border-color: var(--clr-gold);
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.12);
}

.test-question p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: var(--sp-md);
  color: var(--clr-text);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 2rem;
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--clr-gold);
  color: var(--clr-bg);
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  min-width: 100px;
}

.btn:hover  { background: var(--clr-gold-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--clr-gold);
}

.btn-secondary:hover {
  background: var(--clr-gold-dim);
  color: var(--clr-gold-soft);
}

/* ============================================
   LIGHTWEIGHT GIVEAWAY STYLING
   ============================================ */

.giveaway-text p {
  margin-bottom: 1.25rem;
}

/* Simple section spacing */
.giveaway-card {
  margin: 2rem 0;
}

/* Elegant small headings */
.giveaway-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* Thin decorative line */
.giveaway-card h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 0.65rem;
  background: var(--clr-border);
}

/* ============================================
   LISTS
   ============================================ */

.gold-list,
.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gold-list li,
.prize-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;

  font-size: 1rem;
  line-height: 1.75;
  color: rgba(232, 224, 208, 0.9);
}

/* subtle gold bullets */
.gold-list li::before,
.prize-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;

  color: var(--clr-gold);
  font-size: 1rem;
}

/* Soft link styling */
.giveaway-text a {
  color: var(--clr-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 201, 122, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.giveaway-text a:hover {
  border-color: var(--clr-gold);
  color: #fff;
}

/* Footer note */
.giveaway-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;

  border-top: 1px solid rgba(232, 201, 122, 0.12);

  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--clr-muted);
}

/* Remove decorative drop cap ONLY here
.giveaway-text p::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  color: inherit;
  font-family: inherit;
} */

/* ============================================
   PODCASTS SECTION
   ============================================ */
#podcasts {
  background: var(--clr-surface);
}

/* Section eyebrow */
#podcasts > *:first-child {
  position: relative;
}
#podcasts > *:first-child::before {
  /* content: 'ПОДКАСТЫ'; */
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--clr-gold);
  margin-bottom: var(--sp-md);
}

/* --- Featured Podcast --- */
.podcast-featured {
  margin-bottom: var(--sp-lg);
  padding: var(--sp-md);
  background: var(--clr-surface2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

@media (min-width: 768px) {
  .podcast-featured { padding: var(--sp-lg); }
}

.podcast-featured h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  line-height: 1.2;
}

/* Responsive video wrapper (16:9) */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;      /* 16:9 */
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-md);
  border: 1px solid var(--clr-border);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Fallback "no video" state */
.video-wrapper p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.podcast-featured > p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(232, 224, 208, 0.75);
}

/* --- Podcast Grid --- */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 480px) {
  .podcast-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .podcast-grid { grid-template-columns: repeat(4, 1fr); }
}

.podcast-item {
  background: var(--clr-surface2);
  padding: var(--sp-sm);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  cursor: pointer;
}

.podcast-item:hover {
  border-color: var(--clr-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.podcast-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--sp-sm);
  background: var(--clr-surface);
}

.podcast-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.podcast-item:hover .podcast-preview img {
  transform: scale(1.05);
}

.podcast-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
  line-height: 1.35;
}

.podcast-item > p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--clr-muted);
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal utility (add .reveal to elements, JS adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.featured-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: end;
}

.btn-cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 2.25rem;
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--clr-gold);
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-cta:hover  { background: var(--clr-gold); color: var(--clr-bg); transform: translateY(-2px); }
.btn-cta:active { transform: translateY(0); }

/* Podcast featured — fade transition while switching */
.podcast-featured {
  transition: opacity 0.3s ease;
}
.podcast-featured.switching {
  opacity: 0;
  pointer-events: none;
}

/* Active grid item highlight */
.podcast-item.active {
  border-color: var(--clr-gold);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.15);
}

.podcast-item.active h4 {
  color: var(--clr-gold);
}

/* Selected answer button state */
.answer-btn.selected {
  background: var(--clr-gold);
  color: var(--clr-bg);
  border-color: var(--clr-gold);
}

/* Make answer buttons feel more like choices */
.btn-group {
  flex-wrap: wrap;
}

.answer-btn {
  flex: 1 1 auto;
  min-width: 120px;
}

/* Submit button wrapper */
.quiz-submit-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* Result banner */
.quiz-result {
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.6;
}

.quiz-result.passed {
  border-color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.08);
  color: var(--clr-gold-soft);
}

.quiz-result.failed {
  border-color: var(--clr-muted);
  background: rgba(140, 130, 117, 0.08);
  color: var(--clr-muted);
}

/* Unavailable state */
.quiz-unavailable {
  text-align: center;
  color: var(--clr-muted);
  font-style: italic;
}


/* =============================================
   FLOATING SIDE NAVIGATION
   ============================================= */

.side-nav {
    /* Hidden on mobile by default */
    display: none;

    position: fixed;
    right: 2rem;
    top: 50%;
    translate: 0 -50%;
    z-index: 100;

    flex-direction: column;
    align-items: center;
    gap: 0;

    /* Subtle glass card */
    background: rgba(26, 24, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    padding: 1.5rem 1rem;

    /* Fade in on load */
    animation: fadeUp 0.8s var(--ease-out) 1s both;
}

/* Show on screens wide enough to have room */
@media (min-width: 1024px) {
    .side-nav { display: flex; }
}

/* Icon + label wrapper */
.side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--clr-muted);
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.25s ease, background 0.25s ease;
}

.side-nav-item:hover,
.side-nav-item.active {
    color: var(--clr-gold);
    background: var(--clr-gold-dim);
}

.side-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.side-nav-icon svg,
.side-nav-icon img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Tooltip label — appears to the left on hover */
.side-nav-label {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    translate: 0 -50%;
    white-space: nowrap;

    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text);

    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, translate 0.2s ease;
    translate: 6px -50%;
}

.side-nav-item:hover .side-nav-label {
    opacity: 1;
    translate: 0 -50%;
}

/* Active dot indicator */
.side-nav-item.active::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    translate: 0 -50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clr-gold);
}

/* Hairline connector between items */
.side-nav-line {
    display: block;
    width: 1px;
    height: 1.25rem;
    background: var(--clr-border);
    flex-shrink: 0;
}

/* ── Passed badge ── */
.podcast-featured-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  line-height: 1.2;
}

.passed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a9e72;
  flex-shrink: 0;
  animation: popIn 0.4s var(--ease-out) both;
}

.podcast-item h4 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.podcast-item .passed-badge svg {
  width: 14px;
  height: 14px;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   REGISTRATION SUGGESTION MODAL
   ============================================= */

.register-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s var(--ease-out) both;
}

.register-modal[style*="display: flex"] {
    display: flex !important;
}

.register-modal-content {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: fadeUp 0.4s var(--ease-out) both;
    text-align: center;
}

.register-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.6rem;
    color: var(--clr-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    font-family: var(--font-ui);
}

.register-modal-close:hover {
    color: var(--clr-gold);
}

.register-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.register-modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 1rem;
}

.register-modal-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--clr-muted);
    margin-bottom: 1.5rem;
}

.register-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.register-modal-actions .btn-cta,
.register-modal-actions .btn-secondary {
    min-width: 140px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


