/* ══════════════════════════════════════════════════════
   BHAZAR.COM — Master Stylesheet
   ══════════════════════════════════════════════════════ */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
    --bg-body: #2a2a2a;
    --bg-dark: #1a1a1a;
    --bg-card: rgba(10, 10, 10, 0.7);
    --gold: #f0d060;
    --gold-mid: rgba(240, 208, 96, 0.5);
    --gold-dim: rgba(200, 170, 100, 0.75);
    --gold-faint: rgba(200, 170, 100, 0.3);
    --gold-glow: rgba(240, 208, 96, 0.15);
    --text-light: #e8e0d0;
    --text-muted: rgba(200, 170, 100, 0.4);
    --border-subtle: rgba(200, 170, 100, 0.2);
    --border-ring: rgba(100, 100, 100, 0.25);
    --craft-color: #ff5500;
    --tech-color: #00ccff;
    --merchant-color: #ffd700;
    --omnism-color: #aa44ff;
    --frith-color: #44ff88;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
    --container-max: 1200px;
}

/* ── 2. RESET & BASE ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    overflow-x: clip;
    position: relative;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 170, 100, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

/* Selection */
::selection {
    background: rgba(240, 208, 96, 0.3);
    color: #fff;
}

/* ── 3. MAIN NAVIGATION BAR (Centered Logo) ── */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px 10px;
    z-index: 5000;
    position: sticky;
    top: 0;
    gap: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.7) 80%, transparent 100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav.scrolled {
    padding: 6px 20px 5px;
    background: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(200, 170, 100, 0.08);
    border-bottom: 1px solid rgba(200, 170, 100, 0.1);
}

.main-nav.scrolled .nav-logo img {
    height: 55px;
}

.main-nav.scrolled .nav-link {
    font-size: 0.55rem;
    padding: 6px 12px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 20px;
    z-index: 2;
    position: relative;
}

.nav-logo::before,
.nav-logo::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.nav-logo::before {
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(240, 208, 96, 0.08) 0%, transparent 70%);
    animation: smokeSwirl 8s ease-in-out infinite;
}

.nav-logo::after {
    width: 180%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(200, 150, 40, 0.05) 0%, transparent 60%);
    animation: smokeSwirl 12s ease-in-out 3s infinite reverse;
}

@keyframes smokeSwirl {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }

    25% {
        opacity: 0.6;
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(-3deg);
    }

    75% {
        opacity: 0.5;
        transform: scale(1.05) rotate(4deg);
    }
}

.hidden {
    display: none !important;
}

/* ── 4. LOGO ANIMATIONS ── */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes logoMysticGlow {

    0%,
    100% {
        filter:
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(240, 208, 96, 0.15));
    }

    20% {
        filter:
            drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(240, 208, 96, 0.5)) drop-shadow(0 0 50px rgba(200, 150, 40, 0.2));
    }

    40% {
        filter:
            drop-shadow(0 3px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 35px rgba(255, 220, 120, 0.55)) drop-shadow(0 0 70px rgba(220, 170, 50, 0.25)) drop-shadow(0 0 15px rgba(160, 120, 255, 0.1));
    }

    60% {
        filter:
            drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(240, 208, 96, 0.35)) drop-shadow(0 0 55px rgba(200, 150, 40, 0.15)) drop-shadow(0 0 25px rgba(160, 120, 255, 0.15));
    }

    80% {
        filter:
            drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(240, 208, 96, 0.5)) drop-shadow(0 0 80px rgba(200, 150, 40, 0.25)) drop-shadow(0 0 20px rgba(160, 120, 255, 0.12));
    }
}

@keyframes logoShimmer {

    0%,
    100% {
        opacity: 1;
    }

    33% {
        opacity: 0.93;
    }

    66% {
        opacity: 0.97;
    }
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(240, 208, 96, 0.4)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
    animation:
        logoFadeIn 1.8s var(--ease-bounce) forwards,
        logoFloat 6s ease-in-out 2s infinite,
        logoMysticGlow 10s ease-in-out 2s infinite;
    cursor: pointer;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 40px rgba(240, 208, 96, 0.8)) drop-shadow(0 0 80px rgba(200, 150, 40, 0.5));
    transform: scale(1.08);
    animation-play-state: paused, paused, paused;
}

/* ── 5. NAV LINKS ── */
.nav-link {
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 24px;
    text-align: center;
    position: relative;
    transition: color 0.4s ease, text-shadow 0.4s ease, background 0.4s ease;
    white-space: nowrap;
    border: 1px solid rgba(200, 170, 100, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(200, 170, 100, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 0.5s ease, left 0.5s ease;
}

.nav-link:hover {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(200, 170, 100, 0.2);
    border-color: rgba(200, 170, 100, 0.3);
    background: rgba(200, 170, 100, 0.03);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
    border-color: rgba(200, 170, 100, 0.2);
}

/* ── 5b. NAV AUTH BUTTONS ── */
.nav-auth-group {
    position: fixed;
    top: 18px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 200;
}

/* Hide standalone login/register buttons — floating sidebar handles auth */
#btn-login,
#btn-register {
    display: none;
}

.nav-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--gold-faint);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.nav-auth-btn:hover {
    color: var(--gold);
    background: rgba(240, 208, 96, 0.05);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: scale(1.1);
}

.nav-auth-btn svg {
    stroke: currentColor;
}

.nav-user-btn {
    width: auto;
    border-radius: 17px;
    padding: 0 14px 0 10px;
    gap: 6px;
}

.nav-user-btn span {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-user-widget {
    display: flex;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* ── 5c. AUTH MODALS ── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 420px;
    max-width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(240, 208, 96, 0.05);
    z-index: 9001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
    padding: 16px 20px;
}

@keyframes ledBorderGlow {
    0% {
        border-color: rgba(240, 208, 96, 0.2);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 5px rgba(240, 208, 96, 0.05);
    }

    100% {
        border-color: rgba(240, 208, 96, 0.8);
        box-shadow: 0 0 25px rgba(240, 208, 96, 0.5), inset 0 0 15px rgba(240, 208, 96, 0.2);
    }
}

.auth-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    animation: ledBorderGlow 3s infinite alternate ease-in-out;
}

.auth-modal-wide {
    width: 620px;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gold-dim);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
    padding: 4px;
}

.auth-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 14px;
}

.auth-modal-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.2));
    margin-bottom: 8px;
}

.auth-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.auth-modal-header p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ── Form Elements ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-field label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--gold-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-field input,
.auth-field select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field input::placeholder {
    color: rgba(200, 170, 100, 0.25);
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--gold-mid);
    background: rgba(240, 208, 96, 0.04);
    box-shadow: 0 0 0 3px rgba(240, 208, 96, 0.08);
}

.auth-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(200,170,100,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.auth-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.company-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(240, 208, 96, 0.02);
    border: 1px solid rgba(200, 170, 100, 0.08);
    border-radius: var(--radius-sm);
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Auth Toggle (Remember Me / GDPR) ── */
.auth-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.auth-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-toggle-track {
    position: relative;
    width: 38px;
    height: 20px;
    background: #444;
    border-radius: 10px;
    transition: background 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.auth-toggle-track::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 3px;
    transition: transform 0.3s var(--ease-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-toggle input:checked+.auth-toggle-track {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(240, 208, 96, 0.3);
    border-color: rgba(240, 208, 96, 0.4);
}

.auth-toggle input:checked+.auth-toggle-track::after {
    transform: translateX(17px);
}

.auth-toggle-label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.auth-toggle-label a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gdpr-toggle {
    padding: 4px 0 2px;
}

.auth-link {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--gold-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--gold);
}

.auth-error {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #ff6b6b;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.15);
    border-radius: 4px;
    padding: 8px 12px;
    display: none;
    animation: fadeSlide 0.3s ease;
}

.auth-error.show {
    display: block;
}

.auth-success {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #44ff88;
    background: rgba(68, 255, 136, 0.08);
    border: 1px solid rgba(68, 255, 136, 0.15);
    border-radius: 4px;
    padding: 8px 12px;
}

.auth-submit {
    width: 100%;
    padding: 13px 20px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(240, 208, 96, 0.12), rgba(200, 150, 40, 0.08));
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.auth-submit:hover {
    background: linear-gradient(135deg, rgba(240, 208, 96, 0.22), rgba(200, 150, 40, 0.15));
    border-color: rgba(240, 208, 96, 0.5);
    box-shadow: 0 0 20px rgba(240, 208, 96, 0.15);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid rgba(200, 170, 100, 0.08);
}

.auth-modal-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s;
}

.auth-modal-footer a:hover {
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ── 5d. TOAST NOTIFICATIONS ── */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 380px;
    padding: 14px 20px;
    background: rgba(18, 18, 18, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s var(--ease-smooth);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast.success {
    border-color: rgba(68, 255, 136, 0.3);
}

.toast.error {
    border-color: rgba(255, 80, 80, 0.3);
}

/* ── 6. HAMBURGER MENU (Mobile) ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 12px;
    position: fixed;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(20, 20, 20, 0.8);
    border-color: var(--gold-faint);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-dim);
    border-radius: 2px;
    transition: all 0.4s var(--ease-smooth);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 998;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 15, 15, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(200, 170, 100, 0.1);
    z-index: 999;
    padding: 80px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: right 0.5s var(--ease-smooth);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-link {
    display: block;
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(240, 208, 96, 0.08), transparent);
    transition: width 0.4s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold);
    border-color: rgba(200, 170, 100, 0.15);
    text-shadow: 0 0 10px var(--gold-glow);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 100%;
}

.mobile-nav-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
    margin: 12px auto;
}

/* ── 7. 3D TUNNEL STRIP ── */
.tunnel-strip {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
    perspective: 1200px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tunnel-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 10%,
            transparent 25%, transparent 75%,
            rgba(0, 0, 0, 0.1) 90%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.tunnel-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow:
        inset 40px 0 60px -20px rgba(0, 0, 0, 0.6),
        inset -40px 0 60px -20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

/* ── 8. PANORAMA / GUILD LAYOUT ── */
.panorama-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 20px 0;
}

.card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-left: -10vmin;
    z-index: 2;
    transform: translateX(0px);
    transition: opacity 1.2s ease, transform 1s var(--ease-bounce), filter 0.6s ease, z-index 0s 1s;
    filter: blur(0px);
}

.panorama-container:hover .card-wrapper:not(:hover):not(.active) {
    filter: blur(3px);
    opacity: 0.65;
    transform: scale(0.96);
}

.panorama-container:hover .card-wrapper:hover:not(.active) {
    z-index: 50;
}

body.has-active .card-wrapper:not(.active) {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    filter: blur(8px);
    transition: opacity 1.2s ease, transform 1s ease, filter 0.6s ease;
}

.card-wrapper:first-child {
    margin-left: 0;
}

.card-wrapper.active {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    z-index: 10000;
    transform: translate(-50%, -50%) scale(1.4);
    transition: opacity 1.2s ease, transform 1.2s var(--ease-bounce), filter 0.6s ease;
}



/* ── 9. RING / MEDALLION ── */
.ring {
    position: relative;
    width: 38vmin;
    height: 38vmin;
    max-width: 360px;
    max-height: 360px;
    border-radius: 50%;
    margin-bottom: 30px;
    transition: transform 0.6s var(--ease-bounce), box-shadow 0.6s ease;
    overflow: visible;
    border: 2px solid var(--border-ring);
    box-shadow: var(--shadow-heavy), inset 0 0 0 3px rgba(80, 80, 80, 0.3);
    cursor: pointer;
    z-index: 5;
}

.ring:hover {
    transform: scale(1.15);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.9),
        0 4px 15px rgba(0,0,0,0.7),
        0 0 25px rgba(240, 208, 96, 0.3),
        inset 0 0 0 3px rgba(80, 80, 80, 0.3);
}

.ring-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #000;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse at center, 
        black 0%, black 42%, rgba(0, 0, 0, 0.85) 55%, 
        rgba(0, 0, 0, 0.50) 68%, rgba(0, 0, 0, 0.18) 80%, 
        rgba(0, 0, 0, 0.04) 91%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, 
        black 0%, black 42%, rgba(0, 0, 0, 0.85) 55%, 
        rgba(0, 0, 0, 0.50) 68%, rgba(0, 0, 0, 0.18) 80%, 
        rgba(0, 0, 0, 0.04) 91%, transparent 100%);
    z-index: 2;
}

/* ── 11. Guild Hover SVG Titles ── */
.guild-hover-svg {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-bounce), transform 0.5s var(--ease-bounce);
    transform: translateY(10px);
}

.arc-bottom {
    top: auto;
    bottom: -15%;
    transform: translateY(-10px);
}

.ring:hover .guild-hover-svg {
    opacity: 1;
    transform: translateY(0);
}

.ring:hover .guild-hover-svg.arc-bottom {
    transform: translateY(0);
}

.guild-hover-text {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 26px;
    font-weight: 500;
    fill: #c8952a;
    letter-spacing: 3px;
    text-anchor: middle;
}
/* ── 11. Guild Hover SVG Titles ── */
.guild-hover-svg {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-bounce), transform 0.5s var(--ease-bounce);
    transform: translateY(10px);
}

.arc-bottom {
    top: auto;
    bottom: -15%;
    transform: translateY(-10px);
}

.ring:hover .guild-hover-svg {
    opacity: 1;
    transform: translateY(0);
}

.ring:hover .guild-hover-svg.arc-bottom {
    transform: translateY(0);
}

.card-wrapper.active .guild-hover-svg {
}

.guild-hover-text {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 26px;
    font-weight: 500;
    fill: #c8952a;
    letter-spacing: 3px;
    text-anchor: middle;
}
/* ── 10. RING INNER + VIDEO ── */
.ring-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #000;
    overflow: hidden;
    z-index: 1;
    -webkit-mask-image: radial-gradient(ellipse at center,
            black 0%, black 42%, rgba(0, 0, 0, 0.85) 55%,
            rgba(0, 0, 0, 0.50) 68%, rgba(0, 0, 0, 0.18) 80%,
            rgba(0, 0, 0, 0.04) 91%, transparent 100%);
    mask-image: radial-gradient(ellipse at center,
            black 0%, black 42%, rgba(0, 0, 0, 0.85) 55%,
            rgba(0, 0, 0, 0.50) 68%, rgba(0, 0, 0, 0.18) 80%,
            rgba(0, 0, 0, 0.04) 91%, transparent 100%);
    transition: -webkit-mask-image 0.5s;
}

.card-wrapper.active .ring-inner {
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, black 65%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 0%, black 65%, transparent 100%);
}

.ring-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 11. CURVED HOVER TITLE (SVG) ── */
.guild-hover-svg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: visible;
}

.card-wrapper:hover .guild-hover-svg {
    opacity: 1;
}

.card-wrapper.active .guild-hover-svg {
    opacity: 0;
}

.guild-hover-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    fill: var(--theme-color, #c8952a);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 4px var(--theme-color, #c8952a));
}

.arc-top-mobile {
    display: none;
}

.guild-title-mobile {
    display: none;
}

/* ── 12. GUILD LABEL (Active State) ── */
.guild-label {
    position: absolute;
    top: -25vmin;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--theme-color, #c8952a);
    text-shadow:
        0 0 20px var(--theme-color, #c8952a),
        0 0 40px var(--theme-color, #c8952a),
        0 2px 8px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease 0.3s;
    z-index: 110;
}

.card-wrapper.active .guild-label {
    opacity: 1;
}

/* ── 13. SUB-ELEMENTS (Orbiting Bubbles) ── */
.sub-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.sub-element {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) translate(0, 0);
    transition: all 1s var(--ease-bounce);
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    animation: ledBorderGlow 4s infinite alternate ease-in-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(200, 150, 40, 0.2);
    overflow: hidden;
}

/* Sub-medallion image styling — circular images inside orbs */
.sub-medallion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: brightness(0.6) saturate(0.8);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.sub-medallion:hover img {
    filter: brightness(0.9) saturate(1);
    transform: scale(1.1);
}

/* Sub-medallion label overlay */
.sub-medallion-info {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    pointer-events: none;
}

.sub-medallion-info h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 170, 100, 0.85);
    text-shadow: 0 0 10px rgba(200, 150, 40, 0.4);
}

.sub-element:hover {
    border-color: var(--theme-color);
    box-shadow: 0 0 40px var(--theme-color), inset 0 0 20px rgba(200, 150, 40, 0.5);
    transform: scale(1.15) !important;
    z-index: 10;
}

.sub-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px var(--theme-color, rgba(200, 150, 40, 0.4)));
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.sub-element:hover .sub-icon {
    transform: scale(1.2);
}

.sub-content {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-bounce);
    padding: 10px;
    background: rgba(10, 10, 10, 0.85);
    border-radius: 8px;
    border: 1px solid rgba(200, 150, 40, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sub-element:hover .sub-content {
    opacity: 1;
    bottom: -90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(200, 150, 40, 0.2);
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-color, #c8952a);
    text-shadow: 0 0 10px rgba(200, 150, 40, 0.5);
    margin: 0 0 6px 0;
}

.sub-desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

@keyframes mysticPulse {
    0% {
        box-shadow: 0 0 15px var(--theme-color, rgba(200, 150, 40, 0.4)),
            0 0 30px rgba(0, 0, 0, 0.4),
            inset 0 0 10px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.15);
    }

    100% {
        box-shadow: 0 0 35px var(--theme-color, rgba(200, 150, 40, 0.8)),
            0 0 60px var(--theme-color, rgba(200, 150, 40, 0.3)),
            inset 0 0 15px rgba(0, 0, 0, 0.5);
        border-color: var(--theme-color, #c8952a);
    }
}

.card-wrapper.active .sub-element {
    opacity: 1;
    animation: mysticPulse 2.5s infinite alternate ease-in-out;
}

.card-wrapper.active .sub-element:nth-child(1) {
    transform: rotate(45deg) translateX(50vmin) rotate(-45deg) scale(1);
    transition-delay: 0.15s;
    animation-delay: 1.1s;
}

.card-wrapper.active .sub-element:nth-child(2) {
    transform: rotate(135deg) translateX(50vmin) rotate(-135deg) scale(1);
    transition-delay: 0.25s;
    animation-delay: 1.25s;
}

.card-wrapper.active .sub-element:nth-child(3) {
    transform: rotate(225deg) translateX(50vmin) rotate(-225deg) scale(1);
    transition-delay: 0.35s;
    animation-delay: 1.4s;
}

.card-wrapper.active .sub-element:nth-child(4) {
    transform: rotate(315deg) translateX(50vmin) rotate(-315deg) scale(1);
    transition-delay: 0.45s;
    animation-delay: 1.55s;
}

/* ── 14. OVERLAY ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    transition: all 1.2s;
}

body.has-active .overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ── 15. GUILD THEME COLORS ── */
.card-wrapper[data-guild="Frith's Guild"] {
    --theme-color: var(--frith-color);
}

.card-wrapper[data-guild="Craft's Guild"] {
    --theme-color: var(--craft-color);
}

.card-wrapper[data-guild="Tech's Guild"] {
    --theme-color: var(--tech-color);
}

.card-wrapper[data-guild="Merchant's Guild"] {
    --theme-color: var(--merchant-color);
}

.card-wrapper[data-guild="Omnism's Guild"] {
    --theme-color: var(--omnism-color);
}

/* ── 16. CONTENT PAGES ── */
.content-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    padding: 60px 20px;
    background:
        linear-gradient(180deg,
            #1a1a1a 0%, #222 3%, #303030 8%,
            #3a3a3a 15%, #404040 25%, #484848 40%,
            #4a4a4a 50%,
            #484848 60%, #404040 75%, #3a3a3a 85%,
            #303030 92%, #222 97%, #1a1a1a 100%);
    box-shadow:
        inset 0 6px 20px rgba(0, 0, 0, 0.7),
        inset 0 -6px 20px rgba(0, 0, 0, 0.7),
        inset 0 0 60px rgba(0, 0, 0, 0.4);
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
}

.content-card {
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 170, 100, 0.12);
    border-radius: var(--radius-lg);
    padding: 50px 45px;
    color: var(--text-light);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.content-card h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--gold-glow);
    margin-bottom: 8px;
    text-align: center;
}

.content-card .last-updated {
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 170, 100, 0.1);
}

.content-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold-dim);
    letter-spacing: 1px;
    margin: 20px 0 8px;
}

.content-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(230, 220, 200, 0.8);
    margin-bottom: 14px;
}

.content-card ul,
.content-card ol {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(230, 220, 200, 0.8);
    margin: 0 0 14px 20px;
    list-style: disc;
}

.content-card ol {
    list-style: decimal;
}

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

.content-card a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s, text-shadow 0.3s;
}

.content-card a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--gold-glow);
}

.content-card strong {
    color: var(--text-light);
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.content-card th,
.content-card td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(200, 170, 100, 0.08);
}

.content-card th {
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── 17. COOKIE CONSENT ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(12, 12, 12, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(200, 170, 100, 0.15);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
    padding: 28px 30px;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.6s var(--ease-smooth);
}

.cookie-banner.show {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-inner {
    max-width: 960px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cookie-icon {
    font-size: 1.4rem;
}

.cookie-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cookie-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(230, 220, 200, 0.7);
    line-height: 1.5;
    margin-bottom: 18px;
}

.cookie-desc a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    margin-bottom: 20px;
}

.cookie-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-toggle-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dim);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.cookie-toggle-label.disabled {
    opacity: 0.5;
    cursor: default;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 12px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-switch input:checked+.toggle-track {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(240, 208, 96, 0.3);
    border-color: rgba(240, 208, 96, 0.4);
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 3px;
    transition: transform 0.3s var(--ease-smooth);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-track::after {
    transform: translateX(19px);
}

.toggle-switch input:disabled+.toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--gold-dim);
}

.cookie-btn:hover {
    color: var(--gold);
    border-color: var(--gold-mid);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-1px);
}

.cookie-btn.primary {
    background: linear-gradient(135deg, rgba(240, 208, 96, 0.15), rgba(200, 150, 40, 0.1));
    border-color: var(--gold-mid);
    color: var(--gold);
}

.cookie-btn.primary:hover {
    background: linear-gradient(135deg, rgba(240, 208, 96, 0.25), rgba(200, 150, 40, 0.15));
    box-shadow: 0 0 20px rgba(240, 208, 96, 0.2);
}

/* ── 18. FOOTER ── */
.site-footer {
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid #444;
    padding: 24px 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-links a {
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 20px;
    text-align: center;
    border: 1px solid rgba(200, 170, 100, 0.1);
    border-radius: 4px;
    transition: all 0.4s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}

.footer-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(200, 170, 100, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-links a:hover {
    color: var(--gold);
    border-color: rgba(200, 170, 100, 0.3);
    text-shadow: 0 0 15px var(--gold-glow), 0 0 30px rgba(200, 170, 100, 0.15);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-separator {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
}

.footer-copy {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-manage-cookies {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.3s;
    font-style: italic;
}

.footer-manage-cookies:hover {
    color: var(--gold);
}

/* ── 19. PLACEHOLDER PAGE STYLES ── */
.page-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.page-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.page-placeholder h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-placeholder p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── 20. SCREEN READER ONLY ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ══════════════════════════
   SMOOTH SCROLL
   ══════════════════════════ */
html {
    scroll-behavior: smooth;
}

/* ══════════════════════════
   GUILD INTRO SECTION
   ══════════════════════════ */
.guild-intro {
    text-align: center;
    padding: 30px 20px 10px;
    max-width: 700px;
    margin: 0 auto;
}

.guild-intro-tagline {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 8px;
}

.guild-intro-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.guild-intro-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(230, 220, 200, 0.55);
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

/* ══════════════════════════
   HOMEPAGE SECTIONS (About, Partners, Contact)
   ══════════════════════════ */
.home-section {
    padding: 70px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.home-section-dark {
    position: relative;
    max-width: 100%;
    padding-left: max(40px, calc((100% - var(--container-max)) / 2 + 40px));
    padding-right: max(40px, calc((100% - var(--container-max)) / 2 + 40px));
}

.home-section-dark>* {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(240, 208, 96, 0.08);
    border: 1px solid rgba(240, 208, 96, 0.12);
    border-radius: 20px;
    padding: 5px 18px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 10px;
    text-shadow: 0 0 25px rgba(240, 208, 96, 0.15);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── About Grid ── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.about-card {
    background: rgba(18, 18, 18, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 170, 100, 0.1);
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.4s ease;
    text-align: center;
}

.about-card:hover {
    border-color: rgba(240, 208, 96, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(240, 208, 96, 0.06);
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.3));
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.about-card p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(230, 220, 200, 0.6);
    line-height: 1.6;
    margin: 0;
}

.about-narrative {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-narrative h3 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 30px 0 10px;
}

.about-narrative h3:first-child {
    margin-top: 0;
}

.about-narrative p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(230, 220, 200, 0.55);
    line-height: 1.7;
    margin: 0 0 20px;
}

.about-narrative strong {
    color: var(--gold-dim);
}

.about-cta {
    text-align: center;
}

.cta-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-radius: 8px;
    padding: 12px 28px;
    background: rgba(240, 208, 96, 0.04);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: rgba(240, 208, 96, 0.1);
    border-color: rgba(240, 208, 96, 0.4);
    box-shadow: 0 0 20px rgba(240, 208, 96, 0.1);
    transform: translateY(-2px);
}

/* ── Partners Grid ── */
/* ── Partner Marquee Scroller ── */
.partner-marquee-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.partner-marquee-wrap::before,
.partner-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.partner-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body) 0%, transparent 100%);
}

.partner-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body) 0%, transparent 100%);
}

.partner-marquee {
    overflow: hidden;
}

.partner-marquee-track {
    display: flex;
    gap: 40px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.partner-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    padding: 20px;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(200, 170, 100, 0.08);
    border-radius: 12px;
    transition: all 0.35s ease;
    cursor: pointer;
}

.marquee-partner:hover {
    border-color: rgba(240, 208, 96, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.marquee-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    filter: grayscale(80%) opacity(0.7);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.marquee-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(240, 208, 96, 0.1);
}

.marquee-partner:hover .marquee-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.marquee-partner span {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 170, 100, 0.55);
    transition: color 0.3s ease;
}

.marquee-partner:hover span {
    color: var(--gold);
}

.partners-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(230, 220, 200, 0.6);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ── Become a Partner ── */
.become-partner-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px;
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(200, 170, 100, 0.1);
    border-radius: 16px;
}

.become-partner-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin: 0 0 8px;
}

.become-partner-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(230, 220, 200, 0.5);
    text-align: center;
    margin: 0 0 25px;
}

.become-partner-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.become-partner-form textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.become-partner-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}


/* ── Contact Section ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item h4 {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 3px;
}

.contact-info-item p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(230, 220, 200, 0.7);
    margin: 0;
}

.contact-link {
    color: rgba(230, 220, 200, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
    border-bottom-color: rgba(200, 170, 100, 0.3);
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 100, 0.15);
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(240, 208, 96, 0.1);
    border-color: rgba(240, 208, 96, 0.35);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 208, 96, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.optional-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.auth-success {
    display: none;
    color: #2ecc71;
    font-size: 0.85rem;
    text-align: center;
    padding: 8px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 6px;
}

.auth-success.show {
    display: block;
}

.contact-map {
    max-width: 1300px;
    margin: 0 auto;
    width: 90%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 170, 100, 0.15);
    border: 1px solid rgba(200, 170, 100, 0.2);
    position: relative;
    z-index: 5;
    animation: ledBorderGlow 4s infinite alternate ease-in-out;
}

.contact-map iframe,
.contact-map-iframe {
    border: 0;
    width: 100%;
    display: block;
    border-radius: 12px;
    filter: grayscale(0.5) contrast(1.1) sepia(0.2) hue-rotate(5deg);
    transition: filter 0.6s ease;
}

.contact-map iframe:hover,
.contact-map-iframe:hover {
    filter: grayscale(0.1) contrast(1.2) sepia(0.1);
}

/* ── Logo animation on modals ── */
.auth-modal-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    animation: logoMysticGlow 10s ease-in-out infinite;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.auth-modal-logo:hover {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(240, 208, 96, 0.5));
    transform: scale(1.08);
}

/* ── Cookie Preferences Widget ── */
.cookie-prefs-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 170, 100, 0.15);
    color: var(--gold-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 90;
    transition: all 0.4s ease;
}

.cookie-prefs-btn:hover {
    color: var(--gold);
    border-color: rgba(200, 170, 100, 0.35);
    background: rgba(240, 208, 96, 0.08);
    box-shadow: 0 0 15px rgba(240, 208, 96, 0.1);
    transform: scale(1.08);
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 100, 0.2);
    background: rgba(18, 18, 18, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(240, 208, 96, 0.1);
    border-color: rgba(240, 208, 96, 0.4);
    box-shadow: 0 0 20px rgba(240, 208, 96, 0.15);
    transform: translateY(-2px);
}

/* ══════════════════════════
   RESPONSIVE — TABLET (≤768px)
   ══════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop nav, show hamburger */
    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Auth modals responsive */
    .auth-modal {
        padding: 18px 16px;
        max-width: 94vw;
        max-height: 94vh;
        overflow-y: auto;
    }

    .auth-modal-logo {
        height: 45px;
    }

    .auth-modal-header h2 {
        font-size: 0.7rem;
    }

    .auth-modal-wide {
        width: 420px;
    }

    .auth-row-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Homepage sections responsive */
    .guild-intro {
        padding: 20px 16px 6px;
    }

    .guild-intro-title {
        font-size: 1rem;
    }

    .guild-intro-desc {
        font-size: 0.85rem;
    }

    .home-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-card {
        padding: 22px 18px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-map iframe {
        height: 200px;
    }

    .tunnel-strip { position: relative; perspective: 1000px; padding: 40px 0; min-height: auto; }

    .panorama-container {
        flex-wrap: wrap;
        gap: 8vmin 2vmin;
        padding: 10px 5px;
        justify-content: center;
    }

    .card-wrapper {
        margin-left: 0 !important;
        flex: 0 0 44%;
        max-width: 44%;
    }

    .card-wrapper:nth-child(5) {
        flex: 0 0 44%;
        max-width: 44%;
    }

    .ring {
        width: 36vmin;
        height: 36vmin;
    }

    .guild-hover-svg {
        display: none !important;
    }

    .guild-label {
        display: none;
    }

    .guild-title-mobile {
        display: block;
        width: 100%;
        height: auto;
        pointer-events: none;
        overflow: visible;
        margin-bottom: -2px;
    }

    .guild-title-mobile .guild-mobile-text {
        font-family: var(--font-heading);
        font-size: 44px;
        font-weight: 700;
        letter-spacing: 4px;
        text-transform: uppercase;
        fill: var(--theme-color, #c8952a);
        filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 3px var(--theme-color, #c8952a));
    }

    body:not(.has-active) .panorama-container:hover .card-wrapper:not(:hover):not(.active) {
        filter: none;
        opacity: 1;
        transform: none;
    }

    .card-wrapper {
        transition: opacity 0.6s ease, transform 0.6s ease, filter 0.5s ease;
    }

    body.has-active .card-wrapper:not(.active) {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.7);
        pointer-events: none;
    }

    .card-wrapper.active {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        z-index: 1000;
        flex: none;
        max-width: none;
        width: auto;
        transition: opacity 0.6s ease, filter 0.5s ease;
    }

    .card-wrapper.active .ring {
        transform: scale(1.4);
    }

    .card-wrapper.active .guild-title-mobile {
        display: none;
    }

    .card-wrapper.active .guild-label {
        display: block;
        position: absolute;
        top: -16vmin;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        white-space: nowrap;
        font-size: clamp(0.9rem, 3vw, 1.5rem);
        letter-spacing: 6px;
        z-index: 210;
        animation: none;
    }

    .card-wrapper.active .sub-element:nth-child(1) {
        transform: rotate(45deg) translateX(40vw) rotate(-45deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(2) {
        transform: rotate(135deg) translateX(40vw) rotate(-135deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(3) {
        transform: rotate(225deg) translateX(40vw) rotate(-225deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(4) {
        transform: rotate(315deg) translateX(40vw) rotate(-315deg) scale(1);
    }

    .sub-element {
        width: 70px;
        height: 70px;
        top: -35px;
        left: -35px;
        font-size: 1.2rem;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        font-size: 0.55rem;
        padding: 5px 10px;
        letter-spacing: 1px;
    }

    .site-footer {
        padding: 16px 12px;
    }

    /* Content pages responsive */
    .content-card {
        padding: 30px 20px;
    }

    .content-card h1 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    /* Cookie responsive */
    .cookie-banner {
        padding: 20px 16px;
    }

    .cookie-toggles {
        gap: 10px 20px;
    }

    .cookie-buttons {
        justify-content: center;
    }
}

/* ══════════════════════════
   RESPONSIVE — PHONE (≤420px)
   ══════════════════════════ */
@media (max-width: 420px) {
    .header .logo-link img {
        height: 48px;
    }

    .tunnel-strip { position: relative; perspective: 1000px; padding: 30px 0; }

    .panorama-container {
        gap: 6vmin 1vmin;
    }

    .card-wrapper {
        flex: 0 0 46%;
        max-width: 46%;
    }

    .ring {
        width: 38vmin;
        height: 38vmin;
    }

    .guild-title-mobile .guild-mobile-text {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .footer-links a {
        font-size: 0.5rem;
        padding: 4px 8px;
    }

    .content-card {
        padding: 24px 16px;
    }

    .content-card h1 {
        font-size: 1rem;
    }

    .content-card h2 {
        font-size: 0.85rem;
    }

    .content-card p,
    .content-card ul,
    .content-card ol {
        font-size: 0.9rem;
    }

    .cookie-toggles {
        flex-direction: column;
        gap: 8px;
    }
}

/* ══════════════════════════
   REDUCED MOTION
   ══════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════
   PRINT
   ══════════════════════════ */
@media print {

    .header,
    .site-footer,
    .cookie-banner,
    .overlay,
    .hamburger,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }

    .tunnel-strip,
    .content-section {
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
    }

    .content-card {
        background: #fff !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .content-card h1,
    .content-card h2,
    .content-card h3 {
        color: #000 !important;
    }

    .content-card p,
    .content-card li {
        color: #333 !important;
    }
}

/* ══════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════ */

.hidden {
    display: none !important;
}

/* ── Fix footer transition — seamless gradient from body to footer ── */
.site-footer {
    border-top: none;
    margin-top: 0;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-dark) 30%);
    padding-top: 40px;
}

/* ── Back to top — ensure it works and is visible ── */
html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-faint);
    background: rgba(26, 26, 26, 0.85);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: rgba(240, 208, 96, 0.15);
    border-color: var(--gold-mid);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* ── Cookie preferences floating button ── */
.cookie-prefs-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-faint);
    background: rgba(26, 26, 26, 0.85);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-prefs-btn:hover {
    transform: scale(1.1);
    border-color: var(--gold-mid);
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* ══════════════════════════════════════════════════════
   ADMIN PANEL — Media Grid & Tags Cloud
   ══════════════════════════════════════════════════════ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.media-grid .media-item {
    position: relative;
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.media-grid .media-item:hover {
    border-color: var(--gold-mid);
    box-shadow: 0 0 15px var(--gold-glow);
}

.media-grid .media-item img,
.media-grid .media-item video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.media-grid .media-item .media-info {
    padding: 8px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-grid .media-item .media-actions {
    display: flex;
    gap: 6px;
    padding: 6px 10px 10px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
}

.tags-cloud .tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--gold-faint);
    border-radius: 20px;
    background: rgba(240, 208, 96, 0.05);
    color: var(--gold-dim);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tags-cloud .tag-item:hover {
    border-color: var(--gold);
    background: rgba(240, 208, 96, 0.12);
    color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   RESET PASSWORD PAGE
   ══════════════════════════════════════════════════════ */
.reset-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-card {
    max-width: 460px;
    width: 100%;
}

.reset-form-gap {
    margin-top: 20px;
}

.reset-back-link {
    text-align: center;
    margin-top: 20px;
}

.reset-back-link a {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ══════════════════════════════════════════════════════
   USER DASHBOARD PAGE
   ══════════════════════════════════════════════════════ */
.dash-wrap {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #222 10%, #2a2a2a 50%, #222 90%, #1a1a1a 100%);
    padding: 40px 20px;
}

.dash-header {
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-header .logo-sm {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.2));
}

.dash-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #f0d060;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.dash-header h1 span {
    color: rgba(200, 170, 100, 0.5);
    font-weight: 400;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dash-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 9px 18px;
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-radius: 6px;
    background: rgba(240, 208, 96, 0.05);
    color: rgba(200, 170, 100, 0.75);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.dash-btn:hover {
    color: #f0d060;
    border-color: rgba(240, 208, 96, 0.4);
    background: rgba(240, 208, 96, 0.1);
    box-shadow: 0 0 15px rgba(240, 208, 96, 0.1);
}

.dash-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card {
    background: rgba(10, 10, 10, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 170, 100, 0.12);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.dash-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: rgba(200, 170, 100, 0.75);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 170, 100, 0.1);
}

.dash-card.full {
    grid-column: 1 / -1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200, 170, 100, 0.05);
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    color: rgba(230, 220, 200, 0.8);
}

.info-row .label {
    color: rgba(200, 170, 100, 0.5);
    font-size: 0.85rem;
}

.info-row .value {
    color: #e8e0d0;
}

.info-row .value.status-active {
    color: #44ff88;
}

.info-row .value.text-capitalize {
    text-transform: capitalize;
}

.coming-soon {
    text-align: center;
    padding: 30px;
    color: rgba(200, 170, 100, 0.3);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════
   MYSTIC PARTICLE CANVAS
   ══════════════════════════════════════════════════════ */
.mystic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* ══════════════════════════════════════════════════════
   STATS COUNTER SECTION
   ══════════════════════════════════════════════════════ */
.stats-section {
    position: relative;
    z-index: 5;
    padding: 30px 40px;
    margin: 40px auto;
    max-width: var(--container-max);
}

.stats-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 130px;
    padding: 24px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 40px rgba(240, 208, 96, 0.6), 0 0 80px rgba(240, 208, 96, 0.2);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(240, 208, 96, 0.4), 0 0 60px rgba(240, 208, 96, 0.15);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .stats-grid {
        gap: 20px;
    }

    .stat-item {
        min-width: 100px;
        padding: 14px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scroll-reveal.delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal.delay-4 {
    transition-delay: 0.4s;
}

/* ══════════════════════════════════════════════════════
   MYSTIC GLOW PULSE (for section headers)
   ══════════════════════════════════════════════════════ */
@keyframes mysticPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(240, 208, 96, 0.15);
    }

    50% {
        text-shadow: 0 0 25px rgba(240, 208, 96, 0.35), 0 0 50px rgba(240, 208, 96, 0.1);
    }
}

.section-title {
    animation: mysticPulse 4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   FLOATING MYSTIC ORBS (CSS-only ambient effect)  
   ══════════════════════════════════════════════════════ */
@keyframes floatOrb {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(-200px) translateX(40px) scale(1.5);
        opacity: 0.3;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-400px) translateX(-20px) scale(0.8);
        opacity: 0;
    }
}

.mystic-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mystic-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 208, 96, 0.3) 0%, transparent 70%);
    animation: floatOrb linear infinite;
    will-change: transform, opacity;
}

.mystic-orb:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 10%;
    bottom: 0;
    animation-duration: 12s;
    animation-delay: 0s;
}

.mystic-orb:nth-child(2) {
    width: 4px;
    height: 4px;
    left: 25%;
    bottom: 0;
    animation-duration: 16s;
    animation-delay: 2s;
}

.mystic-orb:nth-child(3) {
    width: 8px;
    height: 8px;
    left: 40%;
    bottom: 0;
    animation-duration: 10s;
    animation-delay: 4s;
}

.mystic-orb:nth-child(4) {
    width: 3px;
    height: 3px;
    left: 55%;
    bottom: 0;
    animation-duration: 18s;
    animation-delay: 1s;
}

.mystic-orb:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 70%;
    bottom: 0;
    animation-duration: 14s;
    animation-delay: 3s;
}

.mystic-orb:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 85%;
    bottom: 0;
    animation-duration: 11s;
    animation-delay: 5s;
}

.mystic-orb:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 15%;
    bottom: 0;
    animation-duration: 20s;
    animation-delay: 7s;
}

.mystic-orb:nth-child(8) {
    width: 6px;
    height: 6px;
    left: 50%;
    bottom: 0;
    animation-duration: 13s;
    animation-delay: 6s;
}

.mystic-orb:nth-child(9) {
    width: 3px;
    height: 3px;
    left: 35%;
    bottom: 0;
    animation-duration: 15s;
    animation-delay: 8s;
}

.mystic-orb:nth-child(10) {
    width: 5px;
    height: 5px;
    left: 90%;
    bottom: 0;
    animation-duration: 17s;
    animation-delay: 2s;
}

.mystic-orb:nth-child(11) {
    width: 4px;
    height: 4px;
    left: 5%;
    bottom: 0;
    animation-duration: 19s;
    animation-delay: 9s;
}

.mystic-orb:nth-child(12) {
    width: 7px;
    height: 7px;
    left: 65%;
    bottom: 0;
    animation-duration: 12s;
    animation-delay: 4s;
}

/* ══════════════════════════════════════════════════════
   CONTACT SECTION ENHANCEMENTS
   ══════════════════════════════════════════════════════ */
.contact-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.contact-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(240, 208, 96, 0.5);
}

.contact-info-item {
    padding: 14px 0;
    position: relative;
}

.contact-info-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(240, 208, 96, 0.15), transparent);
}

.contact-info-item:last-of-type::after {
    display: none;
}

.contact-map-iframe {
    border: 1px solid rgba(240, 208, 96, 0.12);
    border-radius: 12px;
    filter: grayscale(0.6) contrast(1.1) brightness(0.85);
    transition: filter 0.4s ease;
}

.contact-map-iframe:hover {
    filter: grayscale(0.2) contrast(1) brightness(0.95);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(240, 208, 96, 0.15);
    background: rgba(240, 208, 96, 0.04);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(240, 208, 96, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 208, 96, 0.2);
}

/* ══════════════════════════════════════════════════════
   GLOBAL EFFECTS (FOG & CURSOR)
   ══════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ══════════════════════════════════════════════════════ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(200, 150, 40, 0.15);
    border: 1px solid rgba(240, 208, 96, 0.4);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-bounce);
    box-shadow: 0 0 15px rgba(240, 208, 96, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(240, 208, 96, 0.3);
    box-shadow: 0 0 25px rgba(240, 208, 96, 0.4);
    transform: translateY(-5px);
}

.mystic-fog {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.fog-layer {
    position: absolute;
    width: 200vw;
    height: 100vh;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    animation: fogDrift 60s linear infinite;
    opacity: 0.8;
}

.fog-layer-2 {
    animation-duration: 40s;
    animation-direction: reverse;
    opacity: 0.5;
    transform: scale(1.5);
}

@keyframes fogDrift {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50vw);
    }
}

/* ══════════════════════════════════════════════════════
   LOADING SCREEN REWRITE
   ══════════════════════════════════════════════════════ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background: radial-gradient(ellipse at center, #111 0%, #000 100%);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-backdrop {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    opacity: 0.3;
    animation: loaderStars 40s linear infinite;
}

@keyframes loaderStars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 1000px;
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-pulse {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-pulse::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 150, 40, 0.4) 0%, transparent 70%);
    animation: logoGlowPulse 2.5s ease-in-out infinite alternate;
    z-index: -1;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(240, 208, 96, 0.4));
}

.loader-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(240, 208, 96, 0.8);
    text-shadow: 0 0 10px rgba(240, 208, 96, 0.5);
    animation: loaderTextPulse 2s ease-in-out infinite alternate;
}

@keyframes logoGlowPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes loaderTextPulse {
    0% {
        opacity: 0.4;
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* ── MAP CSS MOVED ABOVE ── */

/* ── TESTIMONIALS CAROUSEL ── */
.testimonials-track {
    display: flex;
    gap: 30px;
    animation: testimonialScroll 30s linear infinite;
    width: max-content;
    padding: 20px 0;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 320px;
    background: rgba(20, 20, 20, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(200, 170, 100, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 170, 100, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200, 170, 100, 0.3);
    box-shadow: 0 0 10px rgba(200, 170, 100, 0.15);
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.testimonial-role {
    font-size: 0.75rem;
    color: rgba(200, 170, 100, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-style: italic;
}

.testimonials-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── MYSTIC AMBIENT EFFECTS ── */
.mystic-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mystic-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 170, 100, 0.6), transparent);
    animation: mysticFloat linear infinite;
    opacity: 0;
}

.mystic-particle:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.mystic-particle:nth-child(2) {
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.mystic-particle:nth-child(3) {
    left: 40%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.mystic-particle:nth-child(4) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.mystic-particle:nth-child(5) {
    left: 70%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.mystic-particle:nth-child(6) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.mystic-particle:nth-child(7) {
    left: 15%;
    animation-duration: 16s;
    animation-delay: 6s;
}

.mystic-particle:nth-child(8) {
    left: 50%;
    animation-duration: 9s;
    animation-delay: 7s;
}

@keyframes mysticFloat {

    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* Edge glow on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 100, 0.3), rgba(200, 170, 100, 0.6), rgba(200, 170, 100, 0.3), transparent);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(200, 170, 100, 0.2), 0 0 40px rgba(200, 170, 100, 0.1);
}

/* ── FORM DISABLED STATE (GDPR) ── */
.form-gdpr-locked {
    position: relative;
    pointer-events: none;
    opacity: 0.4;
    filter: blur(1px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.form-gdpr-locked::after {
    content: '🔒 Accept Privacy Policy to continue';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(200, 170, 100, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: auto;
    z-index: 10;
}

/* ── VALIDATION MODAL ── */
.validation-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 380px;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 170, 100, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 170, 100, 0.1);
    z-index: 10001;
    transform: translateX(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.validation-toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.validation-toast.error {
    border-color: rgba(220, 50, 50, 0.4);
}

.validation-toast.success {
    border-color: rgba(50, 200, 100, 0.4);
}

.validation-toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.validation-toast-msg {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 260px;
        padding: 20px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .validation-toast {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ══════════════════════════════════════════════════════
   NOTIFICATION BELL & PROFILE DROPDOWN
   ══════════════════════════════════════════════════════ */
.nav-user-widget {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-user-widget.hidden {
    display: none;
}

.nav-notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notif-badge:empty,
.notif-badge[data-count="0"] {
    display: none;
}

.nav-profile-wrap {
    position: relative;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px !important;
}

.nav-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 100, 0.3);
    object-fit: cover;
}

.nav-profile-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(200, 170, 100, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 170, 100, 0.05);
}

.nav-profile-wrap:hover .nav-profile-dropdown,
.nav-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(200, 170, 100, 0.08);
    color: #c8aa64;
}

.dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.dropdown-item:hover svg {
    opacity: 1;
    stroke: #c8aa64;
}

.dropdown-divider {
    height: 1px;
    background: rgba(200, 170, 100, 0.1);
    margin: 4px 12px;
}

.dropdown-logout:hover {
    color: #e74c3c;
}

.dropdown-logout:hover svg {
    stroke: #e74c3c;
}

/* Section transitions use organic gradient backgrounds — no pseudo-element dividers */

/* ══════════════════════════════════════════════════════
   SMOKE / MIST AMBIENT EFFECTS
   ══════════════════════════════════════════════════════ */
.smoke-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.smoke-wisp {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 170, 100, 0.03) 0%, transparent 70%);
    filter: blur(80px);
    animation: smokeFloat 30s infinite ease-in-out;
    opacity: 0;
}

.smoke-wisp:nth-child(1) {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 35s;
}

.smoke-wisp:nth-child(2) {
    top: 50%;
    right: -10%;
    animation-delay: 8s;
    animation-duration: 40s;
    width: 500px;
    height: 500px;
}

.smoke-wisp:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 15s;
    animation-duration: 45s;
    width: 350px;
    height: 350px;
}

@keyframes smokeFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }

    20% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.4;
        transform: translate(80px, -60px) scale(1.2);
    }

    80% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
}

/* ══════════════════════════════════════════════════════
   GUILD SUB-ELEMENTS — MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sub-element {
        width: 68px;
        height: 74px;
        top: -37px;
        left: -34px;
    }

    .sub-element::before {
        font-size: 1.3rem;
    }

    .sub-element::after {
        font-size: 0.45rem;
        max-width: 60px;
    }

    .card-wrapper.active .sub-element:nth-child(1) {
        transform: rotate(45deg) translateX(28vmin) rotate(-45deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(2) {
        transform: rotate(135deg) translateX(28vmin) rotate(-135deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(3) {
        transform: rotate(225deg) translateX(28vmin) rotate(-225deg) scale(1);
    }

    .card-wrapper.active .sub-element:nth-child(4) {
        transform: rotate(315deg) translateX(28vmin) rotate(-315deg) scale(1);
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-links a {
        flex: 1 1 auto;
        min-width: 120px;
        font-size: 0.6rem;
    }

    .nav-profile-name {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   DELAYED PROMOTIONAL POPUP MODAL
   ══════════════════════════════════════════════════════ */
.promo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.promo-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.promo-popup {
    position: relative;
    max-width: 440px;
    width: 90%;
    background: rgba(12, 10, 8, 0.97);
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 0 60px rgba(200, 170, 100, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.6s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.promo-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(200, 170, 100, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.promo-popup-close:hover {
    color: var(--gold);
}

.promo-popup-glow {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 100, 0.5), transparent);
    border-radius: 4px;
}

.promo-popup-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
    text-shadow: 0 0 30px var(--gold-glow);
    animation: iconPulse 3s infinite ease-in-out;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.promo-popup-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 12px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.promo-popup-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(230, 220, 200, 0.6);
    line-height: 1.6;
    margin: 0 0 20px;
}

.promo-popup-offer {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e74c3c;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 4px;
    display: inline-block;
}

.promo-popup-cta {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, rgba(200, 170, 100, 0.9), rgba(160, 130, 60, 0.9));
    color: #0a0a08;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.promo-popup-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(200, 170, 100, 0.4);
}

.promo-popup-dismiss {
    display: block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(200, 170, 100, 0.3);
    cursor: pointer;
    transition: color 0.3s;
}

.promo-popup-dismiss:hover {
    color: rgba(200, 170, 100, 0.6);
}

/* ══════════════════════════════════════════════════════
   FLOATING RIGHT-SIDE AUTH SIDEBAR
   ══════════════════════════════════════════════════════ */
.side-auth-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 8000;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.side-auth-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(100%);
}

.side-auth-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: rgba(200, 170, 100, 0.6);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Each button independently expands its whole box on hover */
.side-auth-btn:hover {
    color: var(--gold);
    background: rgba(15, 15, 15, 0.95);
    padding: 12px 20px 12px 16px;
    border-color: rgba(200, 170, 100, 0.5);
    box-shadow: 0 0 25px rgba(200, 170, 100, 0.12), inset 0 0 12px rgba(200, 170, 100, 0.04);
}

/* Stagger — one at a time entrance */
.side-auth-btn:nth-child(1) {
    animation: sidebarSlideIn 0.5s 0.5s ease both;
}

.side-auth-btn:nth-child(2) {
    animation: sidebarSlideIn 0.5s 1.0s ease both;
}

@keyframes sidebarSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-auth-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.side-auth-btn:hover svg {
    transform: scale(1.15);
}

.side-auth-btn span {
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.05s;
}

.side-auth-btn:hover span {
    max-width: 100px;
    opacity: 1;
}

@media (max-width: 768px) {
    .side-auth-bar {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 80px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }

    .side-auth-bar.hidden {
        transform: translateX(-50%) translateY(100%);
    }

    .side-auth-btn {
        border-radius: 10px;
        border: 1px solid rgba(200, 170, 100, 0.2);
        padding: 10px;
    }
}

/* ═══════════════════════════════════════════════════
   FINAL 01:00 AM PRODUCTION GOLD (ABS TRUTH)
   SIDEBAR · LANG DROPDOWN · IDLE ANIMATIONS
   ═══════════════════════════════════════════════════ */

.side-menu {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 40px !important;
    padding: 25px 12px !important;
    z-index: 100000 !important;
    width: 60px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.1) !important;
}

.side-menu-btn {
    color: #fff !important;
    opacity: 0.6 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    text-decoration: none !important;
}

.side-menu-btn:hover {
    opacity: 1 !important;
    color: #D4AF37 !important;
    transform: scale(1.15) !important;
}

.side-menu-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.8 !important;
}

.side-menu-divider {
    width: 24px !important;
    height: 1px !important;
    background: rgba(212, 175, 55, 0.2) !important;
    margin: 8px 0 !important;
}

/* LANG DROPDOWN (RIGHT-ALIGN) */
.lang-dropdown {
    display: none;
    position: absolute;
    right: 65px;
    top: -10px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #D4AF37;
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 100001;
}

.lang-dropdown.visible { display: flex !important; }
.lang-option { color: #fff; text-decoration: none; font-size: 13px; font-family: 'Inter', sans-serif; white-space: nowrap; opacity: 0.7; transition: 0.3s; }
.lang-option:hover, .lang-option.active { opacity: 1; color: #D4AF37; }

/* ─── IDLE ANIMATIONS ─── */
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes iconPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }
@keyframes iconWobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(5deg); } 75% { transform: rotate(-5deg); } }
@keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes iconRing { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

.icon-float { animation: iconFloat 3s ease-in-out infinite; }
.icon-pulse { animation: iconPulse 2s ease-in-out infinite; }
.icon-wobble { animation: iconWobble 4s ease-in-out infinite; }
.icon-bounce { animation: iconBounce 1.5s ease-in-out infinite; }
.icon-ring:hover { animation: iconRing 2s linear infinite; }

/* ─── MEDALLION PERFECTION ─── */
.ring-inner {
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,0) 100%) !important;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,0) 100%) !important;
}

