/* ========================================================
   Royal Chess 3D - Global Style Sheet
   Luxury Dark Aesthetic with Royal Gold Accents
   ======================================================== */

:root {
  --bg-primary: #0b0d13;
  --bg-secondary: #131722;
  --bg-card: #181d2c;
  --bg-card-hover: #1f2538;
  --border-color: #272f45;
  --border-gold: rgba(212, 175, 55, 0.4);

  --gold-primary: #d4af37;
  --gold-bright: #ffd700;
  --gold-glow: rgba(212, 175, 55, 0.25);

  --text-main: #f0f3fa;
  --text-muted: #8b96ad;
  --text-dim: #5c667e;

  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body.site-body {
  background-color: #07090e;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 65%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.09) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Luxury Ambient Background Stardust Texture */
body.site-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: 
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(255, 215, 0, 0.5), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 85px, rgba(255, 255, 255, 0.35), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 45px, rgba(212, 175, 55, 0.45), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 190px 140px, rgba(255, 215, 0, 0.3), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 260px 260px;
  opacity: 0.45;
  z-index: 0;
  animation: bgStarsDrift 100s linear infinite;
}

@keyframes bgStarsDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-260px); }
}

/* ================= Headers & Typography ================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--gold-bright);
  font-size: 0.9em;
}

/* ================= Header / Navigation ================= */
.site-header {
  background: rgba(11, 13, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gold-primary);
  color: #000;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.2rem;
  position: relative;
  text-decoration: none;
}

.nav-svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sound-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.sound-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b89727 100%);
  color: #000;
  border-color: var(--gold-bright);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #000;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  color: #fff;
  text-decoration: none;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-gold);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ================= Cards & Containers ================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.page-header {
  margin-bottom: 2rem;
}

.badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ================= Google AdSense Unit Styling (Compact & Little Small) ================= */
.ad-unit-wrapper {
  margin: 0.5rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ad-unit-card {
  width: 100%;
  background: rgba(18, 22, 34, 0.78);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-unit-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.12);
}

.ad-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  padding: 0 0.25rem;
}

.ad-header-left, .ad-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ad-board-name {
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ad-badge {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-bright);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 0.06rem 0.35rem;
  border-radius: var(--radius-sm);
}

.ad-pub-info {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-family: monospace;
}

.ad-content-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.adsense-active-container {
  width: 100%;
  position: relative;
}

/* Ensure unfilled AdSense elements never leave large empty gaps */
ins.adsbygoogle {
  display: block;
  overflow: hidden;
}

ins.adsbygoogle:empty,
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

ins.adsbygoogle[data-ad-status="filled"] ~ .adsense-visual-board,
ins.adsbygoogle:not(:empty) ~ .adsense-visual-board {
  display: none !important;
}

/* Slim & Little Small Visual Board */
.adsense-visual-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.9) 0%, rgba(13, 16, 26, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  position: relative;
  overflow: hidden;
}

.ad-board-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.65rem;
}

.ad-board-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-board-icon {
  font-size: 1.4rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.ad-board-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.ad-board-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.ad-board-btn {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
}

/* Side Column Advertisement Cards (Left & Right Flanking the Chess Board) */
.ad-unit-wrapper.ad-side-card {
  margin: 0;
  width: 100%;
}

.ad-unit-wrapper.ad-side-card .ad-unit-card {
  background: rgba(18, 22, 34, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.08);
  transition: all 0.3s ease;
}

.ad-unit-wrapper.ad-side-card .ad-unit-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.16);
  transform: translateY(-2px);
}

.ad-unit-wrapper.ad-side-card .adsense-visual-board {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(22, 27, 44, 0.95) 0%, rgba(13, 16, 26, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.ad-unit-wrapper.ad-side-card .ad-board-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
}

.ad-unit-wrapper.ad-side-card .ad-board-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ad-unit-wrapper.ad-side-card .ad-board-icon {
  font-size: 1.6rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
  flex-shrink: 0;
}

.ad-unit-wrapper.ad-side-card .ad-board-title {
  font-family: var(--font-serif);
  font-size: 0.90rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

.ad-unit-wrapper.ad-side-card .ad-board-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.ad-unit-wrapper.ad-side-card .ad-board-btn {
  width: 100%;
  text-align: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Side by Side Dual Advertisement Units (For Bottom Sections) */
.ads-side-by-side-section {
  width: 100%;
  margin: 0.4rem 0 0.6rem;
}

.ads-side-by-side-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ads-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.ad-dual-item {
  min-width: 0;
  display: flex;
}

.ad-dual-item .ad-unit-wrapper {
  margin: 0;
  height: 100%;
}

.ad-dual-item .ad-unit-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .ads-dual-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.custom-ad-banner {
  display: block;
  width: 100%;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.custom-ad-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.custom-ad-placeholder {
  background: linear-gradient(135deg, #1e2538 0%, #131722 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.custom-ad-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.custom-ad-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ad-top-slot {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.ad-bottom-slot {
  margin-top: 2.5rem;
}

.leaderboard-ad-wrapper {
  max-width: 1400px;
  margin: 0.75rem auto 0;
  padding: 0 1.5rem;
}

/* ================= Legal Pages (Privacy, Terms, Cookies) ================= */
.legal-page .legal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.highlight-callout {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.highlight-callout h4 {
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}

.checklist {
  list-style: none;
  margin: 1rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: 700;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.policy-table th, .policy-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.policy-table th {
  background: var(--bg-secondary);
  color: #fff;
  font-family: var(--font-serif);
}

.cookie-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.cookie-type-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* ================= Contact Page ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control-sm {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.form-control-sm:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.alert-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-bright);
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.faq-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item strong {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ================= About & Rules Pages ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.tech-list li {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.feature-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.feature-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.piece-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.piece-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.piece-symbol {
  font-size: 3rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.special-rule-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.outcome-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.toc-links a {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toc-links a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  color: #fff;
  text-decoration: none;
}

/* ================= Footer ================= */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand .footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 360px;
}

.footer-publisher-badge {
  margin-top: 1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-publisher-badge code {
  color: var(--gold-bright);
}

.footer-nav-group h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-group a, .footer-nav-group span {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-nav-group a:hover {
  color: var(--gold-bright);
  text-decoration: none;
  padding-left: 4px;
}

.footer-compliance-notice {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-compliance-notice code {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-quick-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-quick-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= Cookie Banner ================= */
.cookie-banner-overlay {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  z-index: 9999;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-card {
  background: rgba(19, 23, 34, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cookie-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-bright);
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.cookie-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.flex-1 { flex: 1; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .contact-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .cookie-banner-card {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle-btn {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
