:root {
  --bg: #2E1065;
  --surface: #4C1D95;
  --text: #F5F3FF;
  --muted: #C4B5FD;
  --primary: #F472B6;
  --secondary: #5B21B6;
  --accent: #EC4899;
  --border: rgba(255, 255, 255, 0.12);
  --sidebar-w: 72px;
  --mobile-nav-h: 52px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(244, 114, 182, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(91, 33, 182, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, #1a0640 50%, var(--secondary) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 85% 75%, rgba(196, 181, 253, 0.06) 0%, transparent 10%);
  pointer-events: none;
  z-index: 0;
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
  position: relative;
  z-index: 10;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(20, 5, 50, 0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  margin-bottom: 12px;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.sidebar-logo span {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
  word-break: break-word;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  width: 100%;
  padding: 0 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background: var(--surface);
  color: var(--primary);
  transform: scale(1.08);
}

.sidebar-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-soft);
  z-index: 200;
}

.sidebar-link:hover::after,
.sidebar-link:focus::after {
  opacity: 1;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: rgba(20, 5, 50, 0.98);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.mobile-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 50, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 24px 24px;
}

.mobile-overlay.open {
  display: flex;
}

.mobile-overlay a {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.2s;
}

.mobile-overlay a:hover {
  background: var(--surface);
  transform: scale(1.05);
}

.page-wrap {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-footer {
  background: rgba(20, 5, 50, 0.9);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.page-wrap-go {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-wrap-go main {
  flex: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.footer-brand span {
  font-size: 18px;
  font-weight: 700;
}

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

.footer-badges a,
.footer-badges span {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges a:hover img {
  opacity: 1;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-company {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-disclosure {
  font-size: 11px;
  color: rgba(196, 181, 253, 0.75);
  line-height: 1.7;
}

.footer-disclosure p {
  margin-bottom: 12px;
}

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

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

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

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

.modal-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 114, 182, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: rgba(20, 5, 50, 0.97);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 0.4s ease;
}

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

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

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

.cookie-banner a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.legal-wrap h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--primary);
}

.legal-wrap h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-wrap h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-wrap ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.legal-meta {
  font-size: 13px;
  color: rgba(196, 181, 253, 0.6);
}

.page-hero {
  padding: 48px 24px 32px;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

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

.field-error {
  color: var(--accent);
  font-size: 13px;
  display: none;
}

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

.contact-success {
  display: none;
  padding: 20px;
  background: rgba(244, 114, 182, 0.15);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 600;
  margin-top: 16px;
}

.contact-success.visible {
  display: block;
}

.form-privacy {
  font-size: 13px;
}

.subpage-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.subpage-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary);
}

.subpage-content h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}

.subpage-content h3 {
  font-size: 18px;
  margin: 20px 0 8px;
  color: var(--muted);
}

.subpage-content p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.subpage-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--muted);
}

.subpage-content li {
  margin-bottom: 8px;
}

.subpage-cta {
  margin-top: 32px;
}

.subpage-cta a {
  color: var(--primary);
  font-weight: 600;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.redirect-page .ad-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.redirect-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin-top: 16px;
}

.redirect-note a {
  color: var(--primary);
}

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-size: 72px;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 18px;
}

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

  .mobile-header {
    display: flex;
  }

  .page-wrap {
    margin-left: 0;
    padding-top: var(--mobile-nav-h);
  }

  .cookie-banner {
    left: 0;
  }
}

body.no-sidebar .cookie-banner {
  left: 0;
}
