:root {
  --bg: #1A0000;
  --surface: #2D0000;
  --text: #FFDADA;
  --muted: #944444;
  --primary: #D4AF37;
  --secondary: #800000;
  --accent: #FF0000;
  --border: rgba(212, 175, 55, 0.2);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --vintage-theme: mid-century audio analog knobs hifi;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(128, 0, 0, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.03) 2px,
      rgba(212, 175, 55, 0.03) 4px
    );
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

a:hover {
  text-decoration: underline;
}

.disclosure-banner {
  background: #fff8f0;
  color: #3d2020;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  border-left: 4px solid #f59e0b;
  padding: 10px 16px 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.site-header {
  background: var(--surface);
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-bottom: 2px solid var(--accent);
  position: static;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-lockup:hover {
  text-decoration: none;
}

.logo-lockup img {
  max-height: 36px;
  width: 36px;
  height: 36px;
}

.logo-lockup span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.burger-btn {
  display: none;
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  z-index: 1000;
  padding: 80px 24px 24px;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 2px solid var(--accent);
}

.nav-drawer.open {
  left: 0;
}

.nav-drawer a {
  display: block;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 4px;
  text-decoration: none;
}

.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 48px 20px 32px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(212, 175, 55, 0.04) 3px,
    rgba(212, 175, 55, 0.04) 6px
  );
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-logo span {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-compliance {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-company {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-au-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.modal-box h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 16px 20px;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.page-main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.decor-img,
.decor-wrap img,
.guide-hero img,
.guide-sidebar img {
  max-width: 100%;
  height: auto;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-content h1 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 2rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.legal-content h3 {
  color: var(--primary);
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--text);
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content code {
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin: -12px 0 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--primary);
  border-radius: 12px;
  text-align: center;
  color: var(--text);
}

.form-success.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

.bonus-page-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 280px;
}

.bonus-header-text {
  background: var(--surface);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bonus-header-text h1 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 12px;
}

.bonus-header-text p {
  color: var(--muted);
}

.bonus-header-img {
  background-image: url("/images/decorative/decor_10.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.bonus-header-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.bonus-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.bonus-main h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.3rem;
  margin: 28px 0 10px;
}

.bonus-main h2:first-child {
  margin-top: 0;
}

.bonus-main p {
  margin-bottom: 14px;
}

.bonus-main ul {
  margin: 0 0 16px 24px;
}

.bonus-main li {
  margin-bottom: 6px;
}

.bonus-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.bonus-aside h3 {
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.check-icon {
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.warning-box {
  background: rgba(128, 0, 0, 0.3);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .bonus-page-header,
  .bonus-columns {
    grid-template-columns: 1fr;
  }

  .bonus-header-img {
    min-height: 180px;
    max-width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }

  .bonus-aside {
    position: static;
  }
}
