/* fd77.my Design System - Midnight Gold Premium UI */
:root {
  --color-primary: #c8a44e;
  --color-primary-dark: #a68737;
  --color-primary-soft: rgba(200,164,78,.12);
  --color-secondary: #1a3a5c;
  --color-accent: #e8c547;
  --color-bg: #0a0f1a;
  --color-bg-soft: #0f1629;
  --color-surface: #141c2f;
  --color-surface-strong: #1a2540;
  --color-card: #151e33;
  --color-card-alt: #1a2744;
  --color-border: rgba(200,164,78,.18);
  --color-border-strong: rgba(200,164,78,.35);
  --color-text: #e2e5eb;
  --color-text-soft: #a0a8b8;
  --color-text-muted: #6b7690;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --color-footer-bg: #060a14;
  --color-footer-text: #8892a8;
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #141c2f 50%, #1a2540 100%);
  --gradient-button: linear-gradient(135deg, #c8a44e, #e8c547);
  --gradient-button-hover: linear-gradient(135deg, #d4b05a, #f0d060);
  --gradient-card-border: linear-gradient(135deg, rgba(200,164,78,.25), rgba(200,164,78,.05));
  --gradient-cta: linear-gradient(135deg, #1a2540, #0f1629);
  --shadow-header: 0 2px 20px rgba(0,0,0,.45);
  --shadow-card: 0 4px 24px rgba(0,0,0,.3);
  --shadow-card-hover: 0 8px 32px rgba(200,164,78,.12);
  --shadow-button: 0 4px 16px rgba(200,164,78,.2);
  --shadow-soft: 0 2px 12px rgba(0,0,0,.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(1.8rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --lh-body: 1.75;
  --lh-heading: 1.25;
  --section-y: clamp(48px, 6vw, 80px);
  --container-max: 1200px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --motion-fast: .15s;
  --motion-normal: .3s;
  --motion-slow: .5s;
  --ease-out: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.page-monster-fight {
  --page-accent: #f8b84f;
  --page-accent-strong: #f59e0b;
  --page-accent-soft: rgba(245, 158, 11, 0.14);
  --page-accent-glow: rgba(245, 158, 11, 0.2);
}
body.page-ludo-quick {
  --page-accent: #6ee7f9;
  --page-accent-strong: #06b6d4;
  --page-accent-soft: rgba(6, 182, 212, 0.14);
  --page-accent-glow: rgba(6, 182, 212, 0.18);
}
body.page-casino {
  --page-accent: #f6c66d;
  --page-accent-strong: #eab308;
  --page-accent-soft: rgba(234, 179, 8, 0.14);
  --page-accent-glow: rgba(234, 179, 8, 0.18);
}
body.page-legend-of-perseus {
  --page-accent: #b5a3ff;
  --page-accent-strong: #8b5cf6;
  --page-accent-soft: rgba(139, 92, 246, 0.14);
  --page-accent-glow: rgba(139, 92, 246, 0.18);
}
body.page-sports {
  --page-accent: #5ee7a2;
  --page-accent-strong: #22c55e;
  --page-accent-soft: rgba(34, 197, 94, 0.14);
  --page-accent-glow: rgba(34, 197, 94, 0.18);
}
body.page-diver {
  --page-accent: #67d7ff;
  --page-accent-strong: #0ea5e9;
  --page-accent-soft: rgba(14, 165, 233, 0.14);
  --page-accent-glow: rgba(14, 165, 233, 0.18);
}
body.page-jurassic-kingdom {
  --page-accent: #b7ea59;
  --page-accent-strong: #84cc16;
  --page-accent-soft: rgba(132, 204, 22, 0.14);
  --page-accent-glow: rgba(132, 204, 22, 0.18);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: rgba(10,15,26,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal);
}
.header-inner {
  width: 100%; max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex; align-items: center;
  gap: clamp(10px, 1vw, 18px);
}
.brand-wrap { flex: 0 0 auto; margin-right: clamp(4px, .8vw, 14px); }
.site-logo { display: block; width: auto; height: clamp(32px, 3vw, 42px); max-width: clamp(118px, 10vw, 168px); object-fit: contain; }
.primary-nav {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: clamp(6px, .72vw, 14px);
  white-space: nowrap; overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto; min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: var(--fs-nav); line-height: 1; white-space: nowrap;
  color: var(--color-text-soft); font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav a.active { color: var(--color-primary); background: var(--color-primary-soft); }
.header-actions {
  flex: 0 0 auto; margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px); white-space: nowrap;
}
.nav-toggle {
  display: none; flex: 0 0 40px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px 8px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-primary); border-radius: 2px; transition: transform var(--motion-normal); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none; position: fixed; top: var(--mobile-header-h); left: 0; right: 0;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card); z-index: 999;
  max-height: calc(100vh - var(--mobile-header-h)); overflow-y: auto;
  padding: 12px 16px; flex-direction: column; gap: 2px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px;
  color: var(--color-text); font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.mobile-menu a:hover { background: var(--color-primary-soft); color: var(--color-primary); }

@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%; max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px); padding-right: clamp(8px, 2.4vw, 14px);
    min-height: var(--mobile-header-h);
    justify-content: flex-start; gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb-nav { padding: 14px 0; border-bottom: 1px solid rgba(200,164,78,.08); }
.breadcrumb-nav a { color: var(--color-text-muted); }
.breadcrumb-nav a:hover { color: var(--color-primary); }
.breadcrumb-nav .bc-sep { color: var(--color-text-muted); margin: 0 8px; }
.breadcrumb-nav span:last-child { color: var(--color-text-soft); }

/* ============ SECTIONS ============ */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-surface { background: var(--color-surface); }
.section-title { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-heading); margin-bottom: .75rem; color: #fff; }
.section-lead { color: var(--color-text-soft); font-size: 1.05rem; max-width: 780px; margin-bottom: 2rem; }
.tag-badge {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--color-primary-soft); color: var(--color-primary);
  border: 1px solid var(--color-border); font-size: var(--fs-small);
  font-weight: 700; margin-bottom: 1rem;
}

/* ============ HERO ============ */
.hero-home {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero-home::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,78,.08), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-title .gold { color: var(--color-primary); }
.hero-desc { color: var(--color-text-soft); font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.2rem; text-align: center;
}
.stat-card strong { display: block; color: var(--color-primary); font-size: 1.25rem; margin-bottom: .3rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* Inner page hero */
.hero-inner {
  padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at top right, var(--page-accent-glow, rgba(200,164,78,.12)), transparent 30%),
    linear-gradient(135deg, #0a0f1a 0%, #111b31 52%, #18233b 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner::before {
  width: 360px;
  height: 360px;
  top: -180px;
  right: -90px;
  background: radial-gradient(circle, var(--page-accent-glow, rgba(200,164,78,.14)), transparent 68%);
}
.hero-inner::after {
  width: 240px;
  height: 240px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}
.hero-inner .hero-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--page-accent, var(--color-primary));
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--color-text-soft);
  font-size: .92rem;
  font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: none; transition: all var(--motion-normal) var(--ease-out);
  min-height: 44px; text-align: center;
}
.btn-primary {
  background: var(--gradient-button); color: #111;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: var(--gradient-button-hover); transform: translateY(-1px); color: #111; }
.btn-outline {
  background: transparent; color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #111; }

/* ============ CARDS ============ */
.card-grid { display: grid; gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .card-grid-3 { grid-template-columns: 1fr; } .card-grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .card-grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.feature-card .icon-badge {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-primary-soft);
  border: 1px solid var(--color-border); color: var(--color-primary);
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: .5rem; color: #fff; }
.feature-card p { color: var(--color-text-soft); margin: 0; }

.trust-card {
  background: linear-gradient(135deg, var(--color-card), var(--color-card-alt));
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 1.8rem; position: relative; overflow: hidden;
}
.trust-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(200,164,78,.1), transparent); border-radius: 0 0 0 80px;
}
.trust-card h3 { color: var(--color-primary); font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }

.info-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 2rem;
}
.info-card h3 { color: #fff; font-weight: 700; margin-bottom: .75rem; }

/* ============ COMPARE TABLE ============ */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
  text-align: left; font-size: .95rem;
}
.compare-table th { color: var(--color-primary); font-weight: 700; background: var(--color-surface); }
.compare-table td { color: var(--color-text-soft); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }

/* ============ CTA SECTIONS ============ */
.cta-band {
  background: linear-gradient(135deg, var(--color-surface-strong), var(--color-surface));
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px); text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: var(--color-text-soft); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 20px; background: transparent;
  border: none; color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-align: left; gap: 12px;
}
.faq-btn::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); flex-shrink: 0; transition: transform var(--motion-normal); }
.faq-btn[aria-expanded="true"]::after { content: '\2212'; transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--color-text-soft); display: none; line-height: 1.7; }
.faq-answer.is-open { display: block; }

/* ============ FORM (login/register) ============ */
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.auth-form-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.auth-form-card label { display: block; color: var(--color-text-soft); font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.auth-form-card input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-bg-soft);
  color: var(--color-text); font-size: 1rem; margin-bottom: 16px;
  transition: border-color var(--motion-fast);
}
.auth-form-card input:focus { border-color: var(--color-primary); outline: none; }
.auth-trust { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }

/* ============ CONTENT PROSE ============ */
.prose { max-width: 820px; }
.prose p { margin-bottom: 1.1rem; line-height: 1.8; color: var(--color-text); }
.prose h2 { font-size: var(--fs-h2); font-weight: 800; color: #fff; margin: 2.5rem 0 .75rem; line-height: var(--lh-heading); }
.prose h3 { font-size: var(--fs-h3); font-weight: 700; color: #fff; margin: 2rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; color: var(--color-text-soft); }
.prose img { border-radius: var(--radius-md); margin: 1.5rem 0; border: 1px solid var(--color-border); }
.highlight-box {
  border-left: 4px solid var(--color-primary); padding: 1rem 1.5rem;
  background: var(--color-primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: var(--color-text); }

/* Two column layout */
.content-two-col { display: grid; grid-template-columns: 1fr minmax(280px, .42fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .content-two-col { grid-template-columns: 1fr; } }

.section-shell {
  background: linear-gradient(180deg, rgba(26, 37, 64, 0.92), rgba(17, 26, 44, 0.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}
.section-copy {
  max-width: 720px;
}
.section-copy h2,
.section-shell .section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  color: #fff;
  margin-bottom: .9rem;
}
.section-copy p {
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}
.section-intro {
  color: var(--color-text);
  font-size: 1.08rem;
  line-height: 1.85;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .9rem;
  color: var(--page-accent, var(--color-primary));
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.bullet-list,
.aside-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.bullet-list {
  display: grid;
  gap: 12px;
}
.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text-soft);
  line-height: 1.8;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--page-accent, var(--color-primary));
  box-shadow: 0 0 0 6px var(--page-accent-soft, rgba(200,164,78,.12));
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2rem;
}
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.spotlight-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--page-accent, var(--color-primary)), transparent);
}
.spotlight-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .65rem;
}
.spotlight-card p {
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.75;
}
.aside-card {
  background: linear-gradient(180deg, rgba(20, 30, 51, 0.96), rgba(13, 19, 33, 0.98));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.5vw, 28px);
  box-shadow: var(--shadow-soft);
}
.aside-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: .65rem;
}
.aside-card p {
  color: var(--color-text-soft);
}
.aside-list {
  display: grid;
  gap: 12px;
}
.aside-list li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  color: var(--color-text-soft);
  line-height: 1.7;
}
.aside-list strong {
  color: var(--page-accent, var(--color-primary));
}
.theme-frame {
  margin: 0;
  height: 100%;
}
.theme-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-card);
}
@media (max-width: 980px) {
  .showcase-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ POLICY LAYOUT ============ */
.policy-layout { max-width: 880px; margin: 0 auto; }
.policy-toc {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 2rem;
}
.policy-toc h3 { color: var(--color-primary); margin-bottom: .75rem; }
.policy-toc a { display: block; padding: 6px 0; color: var(--color-text-soft); }
.policy-toc a:hover { color: var(--color-primary); }
.policy-note {
  background: rgba(200,164,78,.06); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.2rem; margin: 1.5rem 0;
}
.policy-note strong { color: var(--color-primary); }

/* ============ IMAGE FRAME ============ */
.image-frame { text-align: center; margin: 2rem 0; }
.image-frame img { border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); margin: 0 auto; }

/* ============ STEP CARDS ============ */
.step-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem; position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step); position: absolute; top: -10px; left: 16px;
  background: var(--gradient-button); color: #111; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 800; font-size: .85rem;
}
.step-card h3 { margin-top: .5rem; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.step-card p { color: var(--color-text-soft); margin: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: clamp(40px, 5vw, 64px) 0 24px;
  margin-top: var(--section-y);
}
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; margin-bottom: 2rem; }
.footer-brand p { color: var(--color-footer-text); font-size: .92rem; line-height: 1.7; margin: 1rem 0 .5rem; }
.footer-email { color: var(--color-text-soft); }
.footer-email strong { color: var(--color-primary); }
.footer-logo { height: 36px; width: auto; margin-bottom: .5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h3 { color: var(--color-primary); font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--color-footer-text); font-size: .9rem; transition: color var(--motion-fast); }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(200,164,78,.1); padding-top: 1rem;
  color: var(--color-text-muted); font-size: .85rem; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ 404 ============ */
.page-404 { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.page-404 h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--color-primary); margin-bottom: 1rem; }

/* ============ AOS FALLBACK ============ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-init[data-aos] { opacity: 0; }
.aos-animate[data-aos] { opacity: 1; }

/* ============ SWIPER FALLBACK (not used but safe) ============ */
.swiper:not(.swiper-initialized) { overflow-x: auto; display: flex; gap: 16px; scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 auto; scroll-snap-align: start; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 80px; right: 20px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #111;
  display: none; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 1.2rem;
  box-shadow: var(--shadow-button);
  transition: opacity var(--motion-normal);
}
.back-to-top.is-visible { display: flex; }
