:root {
  --background: #0d0c11;
  --foreground: #ffffff;
  --foreground-muted: #a0a0a0;
  --primary: #f7c948;
  --secondary: #1a1a1a;
  --radius: 0.75rem;
  --shadow-card: 0 10px 25px rgba(0,0,0,0.6);
  --shadow-cinematic: 0 25px 50px rgba(0,0,0,0.8);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0d0c11 0%, #121016 50%, #0d0c11 100%);
  color: var(--foreground);
  margin: 0;
  padding-top: 70px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove underline globally */
a {
  text-decoration: none;
  color: var(--foreground);
}

a:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo and title container */
.logo-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo image */
.nav-logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--foreground);
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.menu-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--foreground);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn:hover .menu-line {
  background-color: var(--primary);
}

/* Hamburger to X Animation */
.mobile-menu-btn.active .menu-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-line-2 {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .menu-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-links li a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  display: block;
}

.mobile-nav-links li a:hover {
  color: var(--primary);
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close-menu:hover {
  color: var(--primary);
}

/* General container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjust logo and title for mobile */
  .logo-title-container {
    gap: 0.5rem;
  }
  
  .nav-logo-img {
    height: 35px;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  body {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-links li a {
    font-size: 1.25rem;
  }
  
  .close-menu {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .nav-logo-img {
    height: 30px;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
}


/* Movie Tournament Design System - Cinema-inspired theme */

:root {
  /* Cinema Theme - Dark base with golden accents */
  --background: hsl(215, 25%, 8%);
  --foreground: hsl(40, 20%, 95%);
  
  --card: hsl(215, 20%, 12%);
  --card-foreground: hsl(40, 15%, 92%);
  
  /* Golden movie winner theme */
  --primary: hsl(43, 96%, 56%);
  --primary-foreground: hsl(215, 25%, 8%);
  

  /* Muted cinema seats */
  --muted: hsl(215, 15%, 18%);
  --muted-foreground: hsl(40, 8%, 65%);
  
  /* Red elimination accent */
  --accent: hsl(0, 75%, 55%);
  --accent-foreground: hsl(40, 20%, 95%);
  
  --border: hsl(215, 15%, 22%);
  --input: hsl(215, 15%, 18%);
  --ring: hsl(43, 96%, 56%);
  
  --radius: 0.75rem;
  
  /* Custom movie tournament variables */
  --movie-poster-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --winner-glow: 0 0 20px hsl(43, 96%, 56%, 0.4);
  --eliminated-overlay: rgba(0, 0, 0, 0.7);
  
  /* Gradients */
  --gradient-cinema: linear-gradient(135deg, hsl(215, 25%, 8%), hsl(215, 20%, 12%));
  --gradient-winner: linear-gradient(135deg, hsl(43, 96%, 56%), hsl(38, 92%, 50%));
  --gradient-elimination: linear-gradient(135deg, hsl(0, 75%, 55%), hsl(0, 60%, 45%));
}

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

/* Header Styles */
.header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: bold;
  background: var(--gradient-winner);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.logo p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.tournament-selector {
  display: flex;
  gap: 1rem;
}

.tournament-btn {
  background: var(--card);
  color: var(--card-foreground);
  border: 2px solid var(--border);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tournament-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--winner-glow);
  transform: translateY(-2px);
}

.tournament-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Main Tournament Area */
.main {
  padding: 3rem 0;
}

.tournament-info {
  text-align: center;
  margin-bottom: 3rem;
}

.tournament-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.tournament-info p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

/* Tournament Bracket */
.tournament-bracket {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.round-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.match {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
}

.match:hover {
  border-color: var(--primary);
}

.match-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.match-movies {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.movie-card {
  flex: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--winner-glow);
}

.movie-card.winner {
  box-shadow: var(--winner-glow);
  border: 2px solid var(--primary);
}

.movie-card.eliminated {
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}

.movie-card.eliminated::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--eliminated-overlay);
}

.movie-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--movie-poster-shadow);
}

.movie-info {
  padding: 1rem 0;
  text-align: center;
}

.movie-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.movie-year {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Controls */
.tournament-controls {
  text-align: center;
  margin-top: 3rem;
}

.reset-btn {
  background: var(--accent);
  color: var(--accent-foreground);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--winner-glow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.celebration-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.winner-movie {
  margin-bottom: 2rem;
}

.winner-poster {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--winner-glow);
  margin-bottom: 1rem;
}

.winner-movie h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.winner-movie p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.facebook {
  background: #4267b2;
}

/* Animations */
@keyframes winner-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: var(--winner-glow); }
  100% { transform: scale(1); }
}

.winner-animation {
  animation: winner-pulse 0.6s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo h1 {
    font-size: 2rem;
  }
  
  .tournament-selector {
    flex-direction: column;
    width: 100%;
  }
  
  .tournament-btn {
    width: 100%;
  }
  
  .matches-grid {
    grid-template-columns: 1fr;
  }
  
  .match-movies {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .modal-content {
    padding: 2rem;
  }
  
  .winner-poster {
    width: 150px;
    height: 225px;
  }
  
  .share-buttons {
    flex-direction: column;
  }
}

/* Footer Styles */
.footer {
  background: var(--secondary);
  color: var(--foreground);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social h4 {
  margin-bottom: 0.8rem;
  color: var(--foreground);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--foreground);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-legal {
  margin: 0.8rem 0;
}

.footer-legal a {
  color: var(--foreground-muted);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal span {
  color: var(--foreground-muted);
  margin: 0 0.5rem;
}

.footer-attribution p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .social-icons {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer {
    padding: 1.5rem 0 0.8rem;
    margin-top: 2rem;
  }
}

/* ===== Auth & Account UI (ported from moviesreviews.css) ===== */
/* Auth bar (separate buttons) */
.fd-authbar { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; }
.fd-authbtn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all .18s ease;
}
.fd-authbtn:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); color: var(--primary); }
.fd-authbtn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authbtn--primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.fd-authbtn i { opacity: .9; }
.fd-authbtn img#navAvatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); background: #222; }

/* Navbar Account button */
.navbar .account-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
  padding: .4rem .9rem;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--foreground);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.navbar .account-btn:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(247,201,72,0.15) inset;
}
.navbar .account-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -150%; right: -150%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.navbar .account-btn:hover::after { transform: translateX(100%); }
.navbar .account-btn:active { transform: translateY(0); }
.navbar .fd-acc { position: relative; }
.navbar .account-btn #navAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar .account-btn #navAvatar[src=""],
.navbar .account-btn #navAvatar:not([src]) { display: none; }
.navbar .account-btn .fa-user-circle { font-size: 1.2rem; opacity: .9; }
.navbar .account-btn .caret { font-size: .8rem; opacity: .7; }
.navbar .account-btn span { line-height: 1; }

/* Dropdown */
.fd-acc__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18,16,22,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.55);
  padding: .4rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 1002;
}
.fd-acc.open .fd-acc__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fd-acc__menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  color: var(--foreground);
  font-weight: 600;
}
.fd-acc__menu a:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.fd-acc__menu i { width: 1.1rem; text-align: center; opacity: .9; }

/* Modal styles (auth/profile) and controls */
.fd-modal {
  background: var(--secondary);
  color: var(--foreground);
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-cinematic);
}
.fd-modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  padding: .25rem .5rem;
}
.fd-modal__grid { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: start; }
.fd-modal__avatar { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; background: #333; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); }
.fd-modal__avatar-actions { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }
.fd-modal__listforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.fd-modal__listform-row { display: flex; gap: .5rem; }

/* General UI elements used by modal */
.fd-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--secondary);
  color: var(--foreground);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
}
.fd-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.fd-btn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-btn--secondary { background: rgba(255,255,255,0.06); }
.fd-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
}
.fd-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(247,201,72,0.25); }
.fd-authbox { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-card); }
.fd-tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.fd-tab { background: rgba(255,255,255,0.06); color: var(--foreground); border: 1px solid rgba(255,255,255,0.12); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; }
.fd-tab--active { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authstate, .fd-substate { color: var(--foreground-muted); font-size: .9rem; margin: .25rem 0 .75rem; }
.fd-form.fd-form--auth { display: grid; gap: .5rem; margin-bottom: .75rem; }

/* Gate/Notice overlays used by openGatePopup and openStyledPopup */
.account-modal { background: rgba(0,0,0,0.85) !important; }
.fd-gate-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 1100; }
.fd-gate-dialog { background: var(--secondary); color: var(--foreground); width: min(520px, 92vw); border-radius: var(--radius); box-shadow: var(--shadow-cinematic); padding: 1rem 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.1); }
.fd-gate-header { display:flex; align-items:center; justify-content: space-between; }
.fd-gate-title { font-weight: 800; font-size: 1.15rem; }
.fd-gate-close { background:none; border:1px solid rgba(255,255,255,0.12); color:var(--foreground); border-radius:8px; cursor:pointer; padding:.25rem .5rem; }
.fd-gate-body { margin:.5rem 0 .75rem; color: var(--foreground-muted); }
.fd-gate-actions { display:flex; gap:.5rem; justify-content:flex-end; }
