
/* ===== FLAGSHIP VARIABLES (auto-generated) ===== */
:root {
  --primary: #D4AF37;
  --primary-dim: #8B7355;
  --primary-bright: #F0D878;
  --secondary: #4169E1;
  --secondary-glow: #6991ff;
  --accent: #DC143C;
  --void: #0A0A0A;
  --void-deep: #050505;
  --white: #F5F5F5;
  --white-dim: #A0A0A0;
  --white-faint: rgba(255,255,255,0.06);
  --section-pad: clamp(6rem, 12vh, 10rem);
  --container-max: 1200px;
  --font-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 72px;
  --classic-gold: var(--primary);
  --pale-gold: var(--primary-bright);
  --gold-dim: var(--primary-dim);
  --gold-bright: var(--primary-bright);
  --text-gold: var(--primary);
  --bg-primary: var(--void-deep);
  --bg-secondary: var(--void);
  --bg-nav: rgba(5,5,5,0.95);
  --bg-card: rgba(20,20,20,0.8);
  --bg-elevated: rgb(20,20,20);
  --text-primary: var(--white);
  --text-secondary: var(--white-dim);
  --text-muted: var(--white-dim);
  --font-greek: 'Georgia', 'Times New Roman', serif;
  --gradient-card: linear-gradient(135deg, rgba(20,20,20,0.85), rgba(5,5,5,0.92));
  --gradient-gold: linear-gradient(135deg, var(--classic-gold), var(--gold-bright));
  --shadow-gold: 0 0 30px rgba(212,175,55,0.15);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --success: #4ade80;
  --black: #000000;
}

/* =====================================================
   PUNYCODEX — Temple Base Styles
   Shared infrastructure for all temple pages.
   Each temple overrides CSS variables for theming.
   ===================================================== */

/* ─── CSS Variables ─── */


/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: color-mix(in srgb, var(--primary) 25%, transparent);
    color: var(--white);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Particle Canvas (base temples) ─── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ─── Flagship ambient canvases ─── */
canvas[data-effect] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    position: relative;
    z-index: 2;
}

/* ─── Navigation ─── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.35rem 0;
    transition: all 0.5s var(--ease-out-expo);
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.25rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    transition: color 0.3s ease;
}

.nav-logo:hover { color: var(--primary-bright); }

.nav-logo-img {
    display: block;
    height: 96px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(1.5) contrast(1.1) drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.8) contrast(1.15) drop-shadow(0 0 16px color-mix(in srgb, var(--primary) 60%, transparent));
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 64px;
        max-width: 160px;
    }
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--white-dim);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text { position: relative; }

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-greek {
    display: block;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.title-divider {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 1rem 0;
}

.title-trans {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.15em;
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: var(--white-dim);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.meta-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.meta-domain {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent);
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 5%, transparent);
    font-family: var(--font-mono);
}

.tier-bridge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tier-connector {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
}

.tier-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -2px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid var(--secondary);
}

.domain-bridge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.domain-connector {
    color: var(--white-dim);
    font-size: 1.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: var(--void);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translate(3px, -3px); }

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

.btn-ghost:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Hero Mascot / Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mascot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.mascot-img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    filter: brightness(1.35) contrast(1.1) drop-shadow(0 0 60px color-mix(in srgb, var(--secondary) 30%, transparent));
    position: relative;
    z-index: 2;
}

.mascot-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 15%, transparent), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Abstract Pattern Fallback (when no mascot) */
.hero-pattern {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
}

.hero-pattern-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    animation: pattern-rotate 30s linear infinite;
}

.hero-pattern-ring:nth-child(1) {
    width: 100%; height: 100%;
    top: 0; left: 0;
    border-style: dashed;
    animation-duration: 40s;
}

.hero-pattern-ring:nth-child(2) {
    width: 75%; height: 75%;
    top: 12.5%; left: 12.5%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.hero-pattern-ring:nth-child(3) {
    width: 50%; height: 50%;
    top: 25%; left: 25%;
    border-style: dotted;
    animation-duration: 20s;
}

.hero-pattern-center {
    position: absolute;
    width: 30%; height: 30%;
    top: 35%; left: 35%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pattern-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Sections ─── */
.section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 2;
}

.section-name {
    background: linear-gradient(180deg, var(--void) 0%, var(--void-deep) 100%);
}

.section-breakdown { background: var(--void); }

.section-tier {
    background: linear-gradient(180deg, var(--void-deep) 0%, var(--void) 100%);
    border-top: 1px solid var(--white-faint);
    border-bottom: 1px solid var(--white-faint);
}

.section-related {
    background: var(--void);
}

.section-type-cta {
    background: linear-gradient(180deg, var(--void) 0%, color-mix(in srgb, var(--secondary) 8%, var(--void)) 100%);
    padding-bottom: 8rem;
}

.section-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 3%, transparent), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: var(--white-dim);
    font-style: italic;
}

/* ─── Name Section ─── */
.name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.name-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.name-card:hover {
    border-color: color-mix(in srgb, var(--primary) 25%, transparent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.name-card:hover::before { transform: scaleX(1); }

.card-icon { margin-bottom: 1.5rem; opacity: 0.7; }
.card-icon svg { stroke: var(--primary); }

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-greek,
.card-ascii,
.card-unicode {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.card-greek { color: var(--primary); }

.card-ascii {
    color: var(--white-dim);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.card-unicode { color: var(--secondary); }

.card-body {
    font-size: 0.95rem;
    color: var(--white-dim);
    line-height: 1.8;
}

/* Punycode Explainer */
.punycode-explainer {
    text-align: center;
    padding: 3rem;
    background: color-mix(in srgb, var(--secondary) 3%, transparent);
    border: 1px solid color-mix(in srgb, var(--secondary) 15%, transparent);
    border-radius: 2px;
}

.explainer-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.explainer-box { display: inline-block; }

.explainer-code {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2.5rem;
    border-radius: 2px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    word-break: break-all;
}

.explainer-note {
    font-size: 0.9rem;
    color: var(--white-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Breakdown Section ─── */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.breakdown-table th,
.breakdown-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--white-faint);
}

.breakdown-table th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.breakdown-table td {
    font-size: 1rem;
    color: var(--white-dim);
    vertical-align: top;
}

.breakdown-char {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.breakdown-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.breakdown-type {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-weight: 600;
}

.breakdown-type--stress {
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.breakdown-type--length {
    color: var(--secondary);
    border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent);
    background: color-mix(in srgb, var(--secondary) 8%, transparent);
}

.breakdown-type--dual {
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.breakdown-type--same {
    color: var(--white-dim);
    border: 1px solid var(--white-faint);
    background: rgba(255, 255, 255, 0.02);
}

.breakdown-type--special {
    color: #50C878;
    border: 1px solid rgba(80, 200, 120, 0.3);
    background: rgba(80, 200, 120, 0.08);
}

.breakdown-type--drop {
    color: var(--white-dim);
    border: 1px dashed var(--white-faint);
    background: rgba(255, 255, 255, 0.02);
}

.breakdown-stack {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-size: 0.75em;
    opacity: 0.7;
}

.breakdown-note {
    font-size: 0.9rem;
    color: var(--white-dim);
    line-height: 1.6;
    max-width: 400px;
}

/* ─── Tier Section ─── */
.tier-explanation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tier-explanation .lead-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 3rem;
}

.tier-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.tier-feature-card {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--white-faint);
    text-align: center;
    transition: all 0.4s ease;
}

.tier-feature-card:hover {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
    background: rgba(255, 255, 255, 0.025);
}

.tier-feature-card.active {
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.tier-feature-card.inactive {
    opacity: 0.5;
}

.tier-feature-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 1rem;
}

.tier-feature-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tier-feature-desc {
    font-size: 0.85rem;
    color: var(--white-dim);
    line-height: 1.6;
}

/* ─── Sources ─── */
.sources-section {
    text-align: center;
    margin-top: 3rem;
}

.sources-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.sources-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.source-badge,
a.source-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 2px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.3s ease;
}

.source-badge:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    transform: translateY(-2px);
}

/* ─── Related Entries ─── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--white-faint);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-card:hover {
    border-color: color-mix(in srgb, var(--primary) 25%, transparent);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.related-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.related-greek {
    font-size: 0.9rem;
    color: var(--white-dim);
    font-style: italic;
}

.related-domain {
    font-size: 0.8rem;
    color: var(--white-dim);
    line-height: 1.5;
}

.related-tier {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    color: var(--primary);
    align-self: flex-start;
    margin-top: auto;
}

/* ─── Type Tool CTA ─── */
.type-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.type-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.type-cta-body {
    font-size: 1.05rem;
    color: var(--white-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.type-cta-input {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.type-cta-input code {
    background: none;
    font-family: inherit;
    color: var(--primary);
}

/* ─── Footer ─── */
.main-footer {
    background: var(--void-deep);
    border-top: 1px solid var(--white-faint);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand { max-width: 300px; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo:hover { color: var(--primary-bright); }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--white-dim);
    line-height: 1.7;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.footer-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    word-break: break-word;
}

.footer-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.footer-logomark {
    width: 120px;
    height: auto;
    opacity: 0.7;
    filter: brightness(1.6) contrast(1.2);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logomark:hover {
    opacity: 0.95;
    filter: brightness(2) contrast(1.25);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--white-faint);
}

.footer-credit {
    font-size: 0.8rem;
    color: var(--white-dim);
    letter-spacing: 0.1em;
}

/* ─── Scroll Reveal ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-visual { order: -1; }
    .mascot-img { max-height: 40vh; }
    .hero-pattern { max-width: 300px; margin: 0 auto; }
    .title-divider { margin: 1rem auto; }
    .hero-meta { justify-content: center; }
    .hero-cta { justify-content: center; }
    .name-grid { grid-template-columns: 1fr; }
    .tier-feature-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .pronunciation-grid { grid-template-columns: 1fr; }
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .pantheon-content { grid-template-columns: 1fr; text-align: center; }
    .pantheon-mascot { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--white-faint);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .related-grid { grid-template-columns: 1fr; }
    .domains-grid { grid-template-columns: 1fr; }
    .breakdown-table th,
    .breakdown-table td { padding: 0.75rem; font-size: 0.85rem; }
    .breakdown-char { font-size: 1.1rem; min-width: 32px; }
    .hero-visual { display: none; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #particle-canvas { display: none; }
    .mascot-glow,
    .hero-pattern-ring,
    .hero-pattern-center,
    .scroll-line {
        animation: none;
    }
}
/* ═══════════════════════════════════════════════════════════
   Stacked Diacritics — Visual Unicode Decomposition
   Injected into temple-base.css and type.css; kept here as
   canonical reference.
   ═══════════════════════════════════════════════════════════ */

.stacked-diacritics {
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
    vertical-align: bottom;
    font-family: var(--font-mono, 'SF Mono', Monaco, 'Cascadia Code', monospace);
}

.sd-char {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    vertical-align: bottom;
    min-width: 1ch;
}

.sd-marks {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 0.5em;
    line-height: 0.7;
    height: 0.6em;
    margin-bottom: 0.08em;
    white-space: nowrap;
    opacity: 0.8;
}

.sd-mark {
    display: inline-block;
}

.sd-base {
    font-size: 1em;
    line-height: 1;
}

.sd-plain {
    font-size: 1em;
}


/* ═══════════════════════════════════════════════════════════
   Variant Chips — Scholarly Name Variations
   ═══════════════════════════════════════════════════════════ */

.variants-panel {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-faint);
    border-radius: 12px;
    text-align: center;
}

.variants-panel-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 0.75rem;
}

.variants-panel-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.variant-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    border: 1px solid var(--white-faint);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, background 0.2s;
}

.variant-chip:hover {
    border-color: var(--primary-dim);
    background: rgba(255, 255, 255, 0.05);
}

.variant-owned {
    border-color: var(--secondary);
    background: rgba(var(--secondary-rgb, 196, 161, 109), 0.08);
}

.variant-owned::after {
    content: 'OWNED';
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    margin-left: 0.5rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--secondary);
    color: var(--black);
    font-weight: 700;
}

.variant-ideal {
    border-color: var(--primary);
    border-style: dashed;
}

.variant-alt-stress {
    border-color: var(--accent);
}

.variant-macron-only {
    border-color: var(--white-dim);
}

.variant-ascii {
    border-color: var(--white-faint);
    border-style: dotted;
}

.variants-panel-note {
    font-size: 0.8rem;
    color: var(--white-dim);
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   Etymology Section — Deep Ancestry Display
   ═══════════════════════════════════════════════════════════ */

.section-etymology {
    background: rgba(212,175,55, 0.02);
}

.etymology-proto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-faint);
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.proto-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid var(--primary-dim);
    color: var(--primary);
}

.proto-form {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--secondary);
    letter-spacing: 0.02em;
}

.proto-form::first-letter {
    color: var(--primary);
}

.proto-gloss {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--white-dim);
}

.etymology-derivation {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.cognate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.cognate-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-faint);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.cognate-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-dim);
    background: rgba(255, 255, 255, 0.05);
}

.cognate-lang {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.cognate-form {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--white);
}

.cognate-rel {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: capitalize;
}

.cognate-note {
    font-size: 0.75rem;
    color: var(--white-dim);
    line-height: 1.4;
    margin-top: 0.3rem;
}

.etymology-certainty {
    text-align: center;
    margin-top: 1rem;
}

.certainty-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
}

.certainty-attested {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

.certainty-speculative {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.certainty-disputed {
    border-color: #f87171;
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.certainty-unknown {
    border-color: var(--white-dim);
    color: var(--white-dim);
    background: rgba(255, 255, 255, 0.03);
}


/* ═══════════════════════════════════════════════════════════
   Related Names — Cognate Subsection
   ═══════════════════════════════════════════════════════════ */

.related-cognates-header,
.related-same-header {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.related-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.related-subtitle-desc {
    font-size: 0.85rem;
    color: var(--white-dim);
    margin: 0;
}

.related-cognate-rel {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dim);
    margin-top: 0.3rem;
}

/* =====================================================
   AI-Generated Knowledge Panel
   ===================================================== */
.ai-panel {
    background: linear-gradient(180deg, rgba(212,175,55,0.06) 0%, rgba(15,15,15,0.4) 100%);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: var(--container-max);
    position: relative;
    z-index: 2;
}
.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.ai-panel-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}
.ai-panel-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(212,175,55,0.12);
    color: var(--primary);
    border: 1px solid rgba(212,175,55,0.2);
}
.ai-panel-badge.pending { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.ai-panel-badge.approved { background: rgba(74,222,128,0.12); color: #4ade80; border-color: rgba(74,222,128,0.25); }
.ai-panel-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .ai-panel-body {
        grid-template-columns: 1fr 1fr;
    }
}
.ai-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
}
.ai-card.full-width {
    grid-column: 1 / -1;
}
.ai-card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dim);
    margin-bottom: 0.5rem;
}
.ai-card p {
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}
.ai-card p strong {
    color: var(--white);
    font-weight: 700;
}
.ai-summary {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--white);
}



/* ===== AD PAGE VARIABLES (auto-generated) ===== */



/* ===== HOME / LEASE PAGE STYLES ===== */

/* Global Strip (shared across all pages) */
.global-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.global-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.global-brand {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-decoration: none;
}
.global-links {
    display: flex;
    gap: 1.5rem;
}
.global-links a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-dim);
    text-decoration: none;
    transition: color 0.3s;
}
.global-links a:hover {
    color: var(--primary);
}

/* Tab nav adjustment */
.tab-nav {
    top: 40px;
}
.tab-nav .nav-link.active {
    color: var(--classic-gold);
}
.tab-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--classic-gold);
}

/* Lease Header */
.lease-header {
    padding-top: calc(40px + var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.06);
}
.lease-domain {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--classic-gold);
    margin-bottom: 1rem;
}
.lease-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}
.lease-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* Current Endorsements */
.endorsement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.endorsement-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
}
.endorsement-slot.empty:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: var(--shadow-card), var(--shadow-gold);
    transform: translateY(-4px);
}
.slot-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.slot-status {
    font-size: 0.75rem;
    color: #2ecc71;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.slot-cta {
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--classic-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}
.slot-cta:hover {
    background: var(--classic-gold);
    color: var(--void);
}

/* Ad Zone Cards */
.ad-zone-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.ad-zone-card {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.ad-zone-card:hover {
    border-color: rgba(212,175,55,0.25);
    box-shadow: var(--shadow-card), 0 20px 60px rgba(0,0,0,0.4);
    transform: translateY(-4px);
}
.ad-zone-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.06);
}
.ad-tier {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 100px;
    color: var(--classic-gold);
    margin-bottom: 0.75rem;
}
.ad-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}
.ad-dims {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}
.ad-zone-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ad-price-row {
    margin-bottom: 1.25rem;
}
.ad-price {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
}
.ad-currency {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--classic-gold);
    margin-top: 0.3rem;
}
.ad-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--classic-gold);
    line-height: 1;
}
.ad-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 0.4rem;
    margin-left: 0.25rem;
}
.ad-ppm {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}
.ad-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.ad-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}
.ad-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--classic-gold);
    font-size: 0.75rem;
}
.btn-ad-select {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--void);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-ad-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.35);
}

/* Hekaweb Services */
.hekaweb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.hekaweb-card {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.hekaweb-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.hekaweb-service {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.hekaweb-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.hekaweb-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--classic-gold);
}
.hekaweb-price span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.hekaweb-contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(212,175,55,0.08);
}
.hekaweb-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.hekaweb-note strong {
    color: var(--text-primary);
}

/* ===== RESPONSIVE LEASE PAGE ===== */
@media (max-width: 1024px) {
    .endorsement-grid,
    .ad-zone-cards,
    .hekaweb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .endorsement-grid,
    .ad-zone-cards,
    .hekaweb-grid {
        grid-template-columns: 1fr;
    }
    .lease-header {
        padding-top: calc(40px + var(--nav-height) + 2.5rem);
        padding-bottom: 2.5rem;
    }
    .global-links {
        display: none;
    }
}

/* ===== ENDORSEMENT HERO ===== */
.endorsement-hero {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
    padding-top: calc(40px + var(--nav-height) + 3rem);
    padding-bottom: 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--void-deep) 0%, var(--void) 50%, var(--void) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.08);
    position: relative;
    overflow: hidden;
}
.endorsement-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.endorsement-hero-content {
    position: relative;
    z-index: 1;
}
.endorsement-mascot {
    margin-bottom: 1.25rem;
}
.endorsement-mascot-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212,175,55,0.2));
}
.endorsement-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.endorsement-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.endorsement-greek {
    color: var(--classic-gold);
}
.endorsement-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.04em;
}

/* ===== HOW IT WORKS ===== */
.how-it-works-section {
    background: var(--bg-primary);
    border-top: 1px solid rgba(212,175,55,0.06);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.step-card {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.step-card .step-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--classic-gold);
    margin-bottom: 1rem;
    line-height: 1;
}
.step-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}
.step-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 12 SACRED SPACES ===== */
.spaces-section {
    background: linear-gradient(180deg, var(--void) 0%, var(--void-deep) 30%, var(--void) 60%, var(--void-deep) 100%);
    border-top: 1px solid rgba(212,175,55,0.06);
    border-bottom: 1px solid rgba(212,175,55,0.06);
}
.spaces-legend {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}
.spaces-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Space Row Layouts */
.space-row {
    display: flex;
    gap: 2rem;
}
.space-row--sidebar {
    align-items: stretch;
}
.space-row--sidebar .space-slot--narrow {
    flex-shrink: 0;
}
.space-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.space-row--halves > .space-slot {
    flex: 1;
}
.space-row--triple > .space-slot:nth-child(1) {
    flex: 2;
}
.space-row--triple > .space-slot:nth-child(2) {
    flex: 1.2;
}
.space-row--triple > .space-slot:nth-child(3) {
    flex: 1;
}
.space-row--quad > .space-slot:nth-child(1),
.space-row--quad > .space-slot:nth-child(2) {
    flex: 1;
}
.space-row--quad > .space-slot:nth-child(3) {
    flex: 2.5;
}

/* Individual Space Slot */
.space-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}
.space-slot--narrow {
    flex: none;
    width: 260px;
}
.space-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.space-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--classic-gold);
    opacity: 0.4;
    line-height: 1;
    min-width: 36px;
}
.space-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.space-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}
.space-dims {
    font-family: 'Consolas', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.space-exclusive {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--classic-gold);
    padding: 0.25rem 0.75rem;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 100px;
}

/* The Frame */
.space-frame {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, rgba(30,58,95,0.92), rgba(5,5,5,0.97));
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.5s ease;
    box-sizing: border-box;
}
.space-frame-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.space-frame:hover {
    border-color: rgba(212,175,55,0.3);
}

.space-frame-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65,105,225,0.06), rgba(10,10,10,0.12));
}
.space-placeholder-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 6px;
    color: var(--classic-gold);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.space-placeholder-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Proportional Frame Sizes */

/* Elite reserve button inside frame */

/* Frame-type specific button sizing */

/* Frame is the interactive element */
.space-frame {
    cursor: pointer;
}

/* Elegant "Available" hover label */
.space-frame-content::after {
    content: 'Available';
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: var(--font-display);
    font-size: clamp(0.28rem, 0.7vw, 0.5rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(212,175,55,0.5);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    white-space: nowrap;
}
.space-frame:hover .space-frame-content::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: rgba(212,175,55,0.75);
}

/* Refined glow on hover */
.space-frame:hover {
    border-color: rgba(212,175,55,0.25);
    box-shadow: 0 0 20px rgba(212,175,55,0.06), inset 0 0 30px rgba(212,175,55,0.03);
}
.space-frame:hover .space-frame-glow {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   ARCHETYPE ANIMATIONS — NIKE
   ═══════════════════════════════════════════════════════════════ */

/* Frame is the interactive element */
.space-frame {
    cursor: pointer;
}

/* Shimmer sweep across frame */
.space-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.06), transparent);
    transform: skewX(-20deg);
    animation: shimmer-sweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Archetype symbol replaces diamond */
.space-placeholder-logo {
    font-size: 0;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
}
.space-placeholder-logo::before {
    content: '✦';
    font-size: 1.1rem;
    color: var(--classic-gold);
    animation: nike-symbol 3s ease-in-out infinite;
    display: block;
}

/* Floating particles inside frame */
.space-frame-content::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(212,175,55,0.4);
    top: 60%;
    left: 25%;
    animation: float-up 4s ease-in-out infinite;
    pointer-events: none;
}
.space-frame-content .particle-2,
.space-frame-content .particle-3 {
    display: none;
}

/* Elegant "Available" hover label */
.space-frame-content::after {
    content: 'Available';
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: var(--font-display);
    font-size: clamp(0.28rem, 0.7vw, 0.5rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(212,175,55,0.5);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    white-space: nowrap;
}
.space-frame:hover .space-frame-content::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: rgba(212,175,55,0.75);
}

/* Refined glow on hover */
.space-frame:hover {
    border-color: rgba(212,175,55,0.25);
    box-shadow: 0 0 20px rgba(212,175,55,0.06), inset 0 0 30px rgba(212,175,55,0.03);
}
.space-frame:hover .space-frame-glow {
    opacity: 0.7;
}

@keyframes nike-symbol {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px rgba(212,175,55,0.3)); }
    25% { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px rgba(212,175,55,0.6)); }
    50% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(212,175,55,0.4)); }
    75% { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 8px rgba(212,175,55,0.6)); }
}

@keyframes shimmer-sweep {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}
@keyframes float-up {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: translateY(-30px) scale(0.3); opacity: 0; }
}
@keyframes available-pulse {
    0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(4px) scale(0.92); }
    50% { opacity: 0.85; transform: translateX(-50%) translateY(0) scale(1); }
}

.space-frame--hero {
    aspect-ratio: 1200 / 400;
    border-top: 3px solid var(--classic-gold);
}
.space-frame--column {
    aspect-ratio: 300 / 600;
}
.space-frame--inline {
    aspect-ratio: 800 / 300;
    max-height: 240px;
}
.space-frame--content {
    aspect-ratio: 600 / 280;
    max-height: 220px;
}
.space-frame--half {
    aspect-ratio: 500 / 280;
    max-height: 220px;
}
.space-frame--ribbon {
    aspect-ratio: 700 / 180;
    max-height: 160px;
}
.space-frame--badge {
    aspect-ratio: 400 / 150;
    max-height: 140px;
}
.space-frame--text {
    aspect-ratio: 350 / 120;
    max-height: 120px;
}
.space-frame--emblem {
    aspect-ratio: 250 / 100;
    max-height: 100px;
}
.space-frame--footer {
    aspect-ratio: 1200 / 100;
    max-height: 100px;
}
.space-frame--throne {
    aspect-ratio: 1200 / 400;
    max-height: 300px;
    background: linear-gradient(145deg, rgba(212,175,55,0.06), rgba(30,58,95,0.95));
    border-color: rgba(212,175,55,0.25);
}
.space-frame--throne .space-frame-content {
    background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(65,105,225,0.1));
}

/* Space Footer (Price + Reserve, outside frame) */

/* Divider */
.spaces-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}
.spaces-divider span {
    flex: 1;
    height: 1px;
    background: rgba(212,175,55,0.12);
}
.spaces-divider em {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Full Page Slot Special */
.space-slot--fullpage .space-name {
    color: var(--classic-gold);
}
.space-slot--fullpage .space-num {
    opacity: 0.8;
}

/* ===== RESPONSIVE SPACES ===== */
@media (max-width: 1024px) {
    .space-row--sidebar {
        flex-direction: column;
    }
    .space-row--sidebar .space-slot--narrow {
        width: 100%;
        max-width: 320px;
    }
    .space-row--sidebar .space-frame--column {
        max-height: 360px;
        aspect-ratio: 3 / 2;
    }
    .space-row--halves,
    .space-row--triple,
    .space-row--quad {
        flex-wrap: wrap;
    }
    .space-row--halves > .space-slot,
    .space-row--triple > .space-slot,
    .space-row--quad > .space-slot {
        flex: 1 1 calc(50% - 1rem);
        min-width: 240px;
    }
    .space-row--quad > .space-slot:nth-child(3) {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .spaces-layout {
        gap: 1rem;
    }
    .space-row {
        gap: 0.5rem;
    }
    .space-slot {
        gap: 0.35rem;
    }
    .space-row--sidebar {
        flex-direction: row;
    }
    .space-row--sidebar .space-slot--narrow {
        width: 80px;
        max-width: none;
    }
    .space-row--sidebar .space-frame--column {
        flex: 1;
        aspect-ratio: auto;
        min-height: 0;
    }
    .space-row--halves,
    .space-row--triple,
    .space-row--quad {
        flex-wrap: nowrap;
    }
    .space-row--halves > .space-slot,
    .space-row--triple > .space-slot,
    .space-row--quad > .space-slot {
        flex: 1 1 auto;
        min-width: 0;
    }
    .space-row--quad > .space-slot:nth-child(3) {
        flex: 2.5;
    }
    .space-frame--hero,
    .space-frame--throne {
        max-height: none;
    }
    .space-frame--inline {
        max-height: none;
    }
    .space-frame--content,
    .space-frame--half {
        max-height: none;
    }
    .space-row--triple > .space-slot:nth-child(2) {
        flex: 1.8;
    }
    .space-row--quad > .space-slot:nth-child(2) {
        flex: 1.5;
    }
    .space-frame-content {
        gap: 0.15rem;
    }
    .space-frame-content .space-placeholder-logo {
        font-size: 0.7rem;
    }
    .space-meta {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .space-num {
        font-size: 0.6rem;
    }
    .space-name {
        font-size: 0.65rem;
    }
    .space-exclusive {
        margin-left: 0;
        font-size: 0.5rem;
    }
}

.booking-error {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ===== BOOKING MODAL ===== */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}
.booking-modal-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(30,58,95,0.98), rgba(5,5,5,0.99));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.booking-modal-close:hover { color: var(--classic-gold); }
.booking-modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.booking-modal-title span { color: var(--classic-gold); }
.booking-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.booking-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.booking-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}
.booking-input:focus { border-color: var(--classic-gold); }
.booking-input::placeholder { color: var(--text-muted); }
.booking-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(212,175,55,0.08);
    margin-top: 0.5rem;
}
.booking-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.booking-price-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--classic-gold);
}
.booking-submit {
    background: var(--classic-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
}
.booking-submit:hover { opacity: 0.9; }
.booking-submit--secondary {
    background: transparent;
    color: var(--classic-gold);
    border: 1px solid rgba(212,175,55,0.3);
}
.booking-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}
.booking-toggle {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.booking-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
}
.booking-toggle-btn.active {
    background: rgba(212,175,55,0.15);
    color: var(--classic-gold);
}
.booking-char-limit {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-left: 0.4rem;
}
.booking-char-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin: -0.4rem 0 0.4rem 0;
    transition: color 0.2s;
}
.booking-char-count.booking-char-count--near {
    color: var(--gold-dim);
}
.booking-char-count.booking-char-count--over {
    color: #c44;
}
.booking-upload-zone {
    border: 2px dashed rgba(212,175,55,0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}
.booking-upload-zone:hover,
.booking-upload-zone.dragover {
    border-color: var(--classic-gold);
    background: rgba(212,175,55,0.03);
}
.booking-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.booking-upload-prompt { pointer-events: none; }
.booking-upload-icon {
    font-size: 2rem;
    color: var(--classic-gold);
    display: block;
    margin-bottom: 0.5rem;
}
.booking-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.booking-upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 1rem;
    object-fit: contain;
}
.booking-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.booking-live-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212,175,55,0.08);
}
.booking-live-preview-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.booking-live-preview-frame {
    background: linear-gradient(145deg, rgba(30,58,95,0.92), rgba(5,5,5,0.97));
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.booking-live-preview-frame img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}
.booking-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    border: 2px solid var(--classic-gold);
    color: var(--classic-gold);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.booking-status-icon--error {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
}
.booking-token-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 1rem 0;
}
.booking-token-note a {
    color: var(--classic-gold);
    text-decoration: underline;
}
.booking-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212,175,55,0.15);
    border-top-color: var(--classic-gold);
    border-radius: 50%;
    animation: bookingSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes bookingSpin {
    to { transform: rotate(360deg); }
}

/* Reserved badge */
.space-reserved-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--classic-gold);
    padding: 0.5rem 1rem;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 6px;
}
.space-reserved-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}
.space-reserved-badge--reserved::before {
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
}


/* Frame overlay for reserved/live slots */
.space-frame-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 25, 0.85);
    backdrop-filter: blur(2px);
    gap: 0.5rem;
}
.space-frame-overlay-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--classic-gold);
    text-transform: uppercase;
}
.space-frame-overlay-sub {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Live ad inside frame */
.space-live-ad {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
.space-live-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Upload dimensions emphasis */
.booking-upload-dims {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--classic-gold);
    text-align: center;
    margin-bottom: 1rem;
}


/* My Bookings */
.my-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}
.my-booking-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.my-booking-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.my-booking-item-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.my-booking-item-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.my-booking-item-status--live { color: var(--success); }
.my-booking-item-status--pending { color: #fbbf24; }
.my-booking-item-status--rejected { color: #ff6b6b; }
.my-booking-item-link {
    color: var(--classic-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.my-booking-item-link:hover {
    text-decoration: underline;
}

/* My bookings nav link */
.my-bookings-nav {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    background: var(--bg-elevated);
    border: 1px solid var(--gold-dim);
    color: var(--classic-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.my-bookings-nav:hover {
    background: rgba(212,175,55,0.1);

    .space-placeholder-logo {
        width: 24px;
        height: 24px;
    }
    .space-placeholder-logo::before {
        font-size: 0.85rem;
    }
    /* Mobile: Available pulses randomly per slot */
    .space-frame-content::after {
        opacity: 0.5;
        animation: available-pulse 3.5s ease-in-out infinite;
    }
    .space-slot:nth-child(1) .space-frame-content::after { animation-delay: 0s; }
    .space-slot:nth-child(2) .space-frame-content::after { animation-delay: 0.7s; }
    .space-slot:nth-child(3) .space-frame-content::after { animation-delay: 1.4s; }
    .space-slot:nth-child(4) .space-frame-content::after { animation-delay: 2.1s; }
    .space-slot:nth-child(5) .space-frame-content::after { animation-delay: 0.3s; }
    .space-slot:nth-child(6) .space-frame-content::after { animation-delay: 1.0s; }
    .space-slot:nth-child(7) .space-frame-content::after { animation-delay: 1.7s; }
    .space-slot:nth-child(8) .space-frame-content::after { animation-delay: 2.4s; }
    .space-slot:nth-child(9) .space-frame-content::after { animation-delay: 0.5s; }
    .space-slot:nth-child(10) .space-frame-content::after { animation-delay: 1.2s; }
    .space-slot:nth-child(11) .space-frame-content::after { animation-delay: 1.9s; }
    .space-slot:nth-child(12) .space-frame-content::after { animation-delay: 2.6s; }
    .space-slot:nth-child(13) .space-frame-content::after { animation-delay: 0.9s; }

}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}
.gallery-item {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.gallery-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(30,58,95,0.9), rgba(5,5,5,0.95));
    border-bottom: 1px solid rgba(212,175,55,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-md);
    text-align: center;
}
.gallery-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--classic-gold);
    letter-spacing: 0.03em;
}
.gallery-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.03);
    filter: brightness(1.08);
}
.gallery-caption {
    padding: var(--space-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== QUICK FACTS ===== */
.facts-grid {
    max-width: 800px;
    margin: 0 auto;
}
.facts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    overflow: hidden;
}
.fact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(212,175,55,0.06);
    border-right: 1px solid rgba(212,175,55,0.06);
}
.fact-item:nth-child(2n) {
    border-right: none;
}
.fact-item:nth-last-child(-n+2) {
    border-bottom: none;
}
.fact-item dt {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.fact-item dd {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* ===== ETymology ===== */
.etymology-content {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-lg);
    align-items: start;
}
.etymology-main {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: var(--space-lg);
}
.etymology-chain {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.etymology-step {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 3px solid var(--classic-gold);
}
.etym-lang {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.etym-form {
    font-family: var(--font-greek);
    font-size: 1.4rem;
    color: var(--classic-gold);
}
.etym-gloss {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}
.etym-arrow {
    text-align: center;
    color: var(--classic-gold);
    font-size: 1.2rem;
    opacity: 0.5;
}
.etymology-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}
.etymology-note strong {
    color: var(--text-primary);
    font-style: normal;
}
.derivatives-sidebar {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: var(--space-md);
}
.derivatives-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gold);
    margin-bottom: var(--space-md);
    letter-spacing: 0.04em;
}
.derivatives-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.derivative-group h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.08);
}
.derivative-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.derivative-group li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}
.derivative-group li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-gold);
    font-size: 0.7rem;
}
.derivative-group li strong {
    color: var(--text-primary);
}

/* ===== UNICODE BREAKDOWN TABLE ===== */
.breakdown-table {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: var(--space-md);
    overflow-x: auto;
}
.char-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}
.char-table thead {
    border-bottom: 2px solid rgba(212,175,55,0.2);
}
.char-table th {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-gold);
    padding: 0.75rem 0.5rem;
    text-align: left;
}
.char-table td {
    padding: 0.75rem 0.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(212,175,55,0.05);
}
.char-cell {
    font-family: var(--font-greek);
    font-size: 1.3rem;
    color: var(--classic-gold);
}
.char-table code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--pale-gold);
}
.breakdown-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    line-height: 1.6;
}
.breakdown-note strong {
    color: var(--text-primary);
}

/* ===== CULTURAL SIGNIFICANCE ===== */
.cultural-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.cultural-card {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: var(--space-md);
    transition: all 0.4s ease;
}
.cultural-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.cultural-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
}
.cultural-card-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.cultural-card-body strong {
    color: var(--text-primary);
}
.cultural-card-body em {
    color: var(--text-gold);
    font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.faq-item {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: rgba(212,175,55,0.2);
}
.faq-question {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-md);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    transition: color 0.2s;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--classic-gold);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-item[open] .faq-question {
    color: var(--classic-gold);
}
.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid rgba(212,175,55,0.06);
    padding-top: var(--space-sm);
    margin: 0 var(--space-md) var(--space-md);
}
.faq-answer p {
    margin: 0;
}
.faq-answer strong {
    color: var(--text-primary);
}

/* ===== SOURCES ===== */
.sources-content {
    max-width: 1000px;
    margin: 0 auto;
}
.sources-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}
.sources-intro strong {
    color: var(--text-primary);
    font-style: normal;
}
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.source-category {
    background: var(--gradient-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: var(--space-md);
}
.source-category h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-gold);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.source-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.source-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1rem;
    position: relative;
}
.source-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--classic-gold);
    font-size: 0.6rem;
    top: 0.35rem;
}
.source-list cite {
    font-style: italic;
    color: var(--text-primary);
}