@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Philosopher:wght@400;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   YOUR GRIMUAR - Mystical Education Platform
   Premium Dark Esoteric Design System
   ═══════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Colors - Keep for API compatibility */
    --primary: #1a1a2e;
    --secondary: #0f1419;
    --accent: #d4af37;
    --dark: #0a0a0a;
    --darker: #050505;
    --blood: #1a1a2e;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --purple: #4b0082;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Extended Mystical Palette */
    --obsidian: #0d0d12;
    --void: #070709;
    --midnight: #12121a;
    --ember: #c9a227;
    --moonlight: #e8e6e3;
    --mist: rgba(200, 200, 210, 0.08);
    --ancient-gold: linear-gradient(135deg, #d4af37 0%, #f4e5b2 25%, #d4af37 50%, #8b7021 75%, #d4af37 100%);
    --ritual-glow: 0 0 40px rgba(212, 175, 55, 0.15);
    
    /* Timing */
    --ease-mystical: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-ritual: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BASE & BACKGROUND
   ═══════════════════════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Philosopher', 'Cormorant Garamond', Georgia, serif;
    background: var(--void);
    color: var(--moonlight);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mystical ambient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(75, 0, 130, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(26, 26, 46, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Animated cosmic dust particles */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.background-overlay::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(200, 200, 200, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 90%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(200, 200, 200, 0.25) 0%, transparent 100%);
    background-size: 250px 250px;
    animation: cosmicDrift 180s linear infinite;
    opacity: 0.6;
}

@keyframes cosmicDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

main {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

header {
    background: linear-gradient(180deg, 
        rgba(7, 7, 9, 0.98) 0%, 
        rgba(13, 13, 18, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(212, 175, 55, 0.1) inset;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    position: relative;
}

.logo span {
    background: var(--ancient-gold);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGold 4s ease-in-out infinite;
}

@keyframes shimmerGold {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.logo-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.logo-image {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    transition: all 0.5s var(--ease-mystical);
    mix-blend-mode: screen;
    opacity: 0.95;
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.9));
    opacity: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--moonlight);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-ritual);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 0;
    opacity: 0.8;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-mystical);
    box-shadow: 0 0 10px var(--accent);
}

.nav-link::after {
    content: '✦';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 0.5rem;
    color: var(--accent);
    transition: transform 0.3s var(--ease-mystical);
    opacity: 0;
}

.nav-link:hover {
    color: var(--accent);
    opacity: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    padding: 0.9rem 2.2rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s var(--ease-mystical);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s var(--ease-mystical);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--void);
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.4),
        0 5px 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--moonlight);
    border: 1px solid rgba(200, 200, 200, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.btn-large {
    padding: 1.3rem 3.5rem;
    font-size: 1rem;
    letter-spacing: 3px;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 10rem 2rem 8rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mystical Circle Ornament */
.hero-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    animation: ritualize 90s linear infinite;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-ornament::before {
    width: 85%;
    height: 85%;
    border: 1px solid rgba(75, 0, 130, 0.1);
    animation: ritualize 60s linear infinite reverse;
}

.hero-ornament::after {
    width: 70%;
    height: 70%;
    border: 1px solid rgba(212, 175, 55, 0.06);
    animation: ritualize 45s linear infinite;
}

@keyframes ritualize {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sacred Geometry Patterns - Subtle */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(circle, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
    animation: sacredRotate 120s linear infinite;
    opacity: 0.3;
}

@keyframes sacredRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-content h1 {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, 
        var(--accent) 0%, 
        #f4e5b2 20%, 
        var(--accent) 40%, 
        var(--silver) 60%, 
        var(--accent) 80%, 
        #f4e5b2 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 6s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-content p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--silver);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

/* Decorative Runes Divider */
.runes-divider {
    font-size: 1.8rem;
    color: var(--accent);
    margin: 2.5rem 0 1rem 0;
    letter-spacing: 1.5rem;
    opacity: 0.7;
    position: relative;
    display: inline-block;
}

/* Hero CTA Button Container */
.hero-cta {
    margin-top: 3.5rem;
}

.runes-divider::before,
.runes-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.runes-divider::before {
    right: 100%;
    margin-right: 1rem;
}

.runes-divider::after {
    left: 100%;
    margin-left: 1rem;
}

/* Floating Mystical Symbols */
.hero-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-symbol {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.15;
    animation: floatMystic 8s ease-in-out infinite;
    filter: blur(0.5px);
}

.floating-symbol:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.floating-symbol:nth-child(2) {
    top: 70%;
    right: 12%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-symbol:nth-child(3) {
    bottom: 25%;
    left: 12%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.floating-symbol:nth-child(4) {
    top: 35%;
    right: 8%;
    animation-delay: 6s;
    animation-duration: 11s;
}

@keyframes floatMystic {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-10px) rotate(180deg) scale(1);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-25px) rotate(270deg) scale(1.05);
        opacity: 0.18;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section {
    padding: 8rem 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(26, 26, 46, 0.03) 30%, 
        rgba(26, 26, 46, 0.05) 50%, 
        rgba(26, 26, 46, 0.03) 70%, 
        transparent 100%);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.ornamental-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    max-width: 250px;
    position: relative;
}

.ornamental-line::before {
    content: '◆';
    position: absolute;
    font-size: 0.5rem;
    color: var(--accent);
    opacity: 0.6;
}

.ornamental-line:first-child::before {
    right: -10px;
    top: -4px;
}

.ornamental-line:last-child::before {
    left: -10px;
    top: -4px;
}

.section-title {
    text-align: center;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   PRACTITIONERS GRID
   ═══════════════════════════════════════════════════════════════ */

.practitioners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.practitioner-card {
    background: linear-gradient(180deg, 
        rgba(13, 13, 18, 0.95) 0%, 
        rgba(7, 7, 9, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: 2.5rem;
    transition: all 0.5s var(--ease-mystical);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Mystic corner ornaments */
.practitioner-card::before,
.practitioner-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.5s var(--ease-mystical);
}

.practitioner-card::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.practitioner-card::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.practitioner-card:hover::before,
.practitioner-card:hover::after {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
}

.practitioner-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.practitioner-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.practitioner-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(212, 175, 55, 0.2) 0%, 
        var(--midnight) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
}

.practitioner-avatar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: auraRing 3s ease-out infinite;
    opacity: 0;
}

.practitioner-card:hover .practitioner-avatar::before {
    animation: auraRing 2s ease-out infinite;
}

@keyframes auraRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.practitioner-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--moonlight);
    transition: color 0.3s ease;
}

.practitioner-card:hover .practitioner-info h3 {
    color: var(--accent);
}

.practitioner-specialty {
    color: var(--silver);
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    opacity: 0.8;
}

.practitioner-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.stars {
    color: var(--gold);
    font-size: 0.95rem;
}

.practitioner-description {
    color: rgba(232, 230, 227, 0.7);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1rem;
}

.practitioner-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(232, 230, 227, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════════════════════════
   COURSES GRID
   ═══════════════════════════════════════════════════════════════ */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: linear-gradient(180deg, 
        rgba(13, 13, 18, 0.95) 0%, 
        rgba(7, 7, 9, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    overflow: hidden;
    transition: all 0.5s var(--ease-mystical);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.1);
}

.course-image {
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at center, 
        rgba(26, 26, 46, 0.8) 0%, 
        var(--void) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, 
        transparent, 
        rgba(212, 175, 55, 0.05), 
        transparent, 
        rgba(212, 175, 55, 0.03), 
        transparent);
    animation: mysticalGlow 8s linear infinite;
}

@keyframes mysticalGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--moonlight);
    transition: color 0.3s ease;
}

.course-card:hover .course-content h3 {
    color: var(--accent);
}

.course-author {
    color: var(--silver);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    opacity: 0.7;
}

.course-description {
    color: rgba(232, 230, 227, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.course-price {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #f4e5b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.about-card {
    background: linear-gradient(180deg, 
        rgba(13, 13, 18, 0.9) 0%, 
        rgba(7, 7, 9, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.5s var(--ease-mystical);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
    transition: all 0.6s var(--ease-mystical);
}

.about-card:hover::before {
    width: 400px;
    height: 400px;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    position: relative;
    z-index: 1;
}

.about-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.about-card p {
    color: rgba(232, 230, 227, 0.75);
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
}

.modal-content {
    background: linear-gradient(180deg, 
        rgba(13, 13, 18, 0.99) 0%, 
        rgba(7, 7, 9, 0.99) 100%);
    margin: 5% auto;
    padding: 3.5rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    width: 90%;
    max-width: 550px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: relative;
    animation: modalReveal 0.5s var(--ease-mystical);
}

.modal-large {
    max-width: 950px;
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Corner decorations for modal */
.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.modal-content::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.modal-content::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.modal-ornament {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 1rem;
    opacity: 0.6;
}

.close {
    color: var(--accent);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s var(--ease-mystical);
    line-height: 1;
    opacity: 0.7;
    z-index: 10;
}

.close:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.modal-content h2 {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent);
    font-size: 1.8rem;
    letter-spacing: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(13, 13, 18, 0.8);
    color: var(--moonlight);
    font-size: 1rem;
    transition: all 0.3s var(--ease-ritual);
    font-family: 'Philosopher', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(13, 13, 18, 0.95);
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.15),
        inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.form-group input::placeholder {
    color: rgba(192, 192, 192, 0.4);
}

.form-footer {
    text-align: center;
    color: rgba(232, 230, 227, 0.6);
    margin-top: 1rem;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 320px;
    background: linear-gradient(180deg, 
        rgba(7, 7, 9, 0.99) 0%, 
        rgba(13, 13, 18, 0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.3);
}

.user-profile {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.user-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(212, 175, 55, 0.2) 0%, 
        var(--midnight) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border: 2px solid rgba(212, 175, 55, 0.4);
    position: relative;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: auraRing 3s ease-out infinite;
}

.user-profile h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--moonlight);
}

.user-rank {
    color: var(--silver);
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    opacity: 0.8;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: rgba(232, 230, 227, 0.7);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease-ritual);
    font-weight: 500;
    font-size: 1rem;
}

.dashboard-link:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--accent);
}

.dashboard-link.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
    border-left: 3px solid var(--accent);
    color: var(--accent);
}

.dashboard-link.logout {
    margin-top: 2rem;
    color: rgba(232, 230, 227, 0.5);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 1.5rem;
}

.dashboard-link.logout:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.2);
    color: #ff8888;
}

.dashboard-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: rgba(5, 5, 5, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(7, 7, 9, 0.98) 30%);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    transition: all 0.4s var(--ease-mystical);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.footer-logo:hover .footer-logo-image {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
    opacity: 1;
}

.footer-ornament {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 1rem;
    opacity: 0.5;
}

footer p {
    color: var(--silver);
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE LOAD ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s var(--ease-mystical) 0.2s both;
}

.section-header {
    animation: fadeInUp 0.8s var(--ease-mystical) both;
}

.practitioner-card,
.course-card,
.about-card {
    animation: fadeInUp 0.6s var(--ease-mystical) both;
}

.practitioners-grid .practitioner-card:nth-child(1) { animation-delay: 0.1s; }
.practitioners-grid .practitioner-card:nth-child(2) { animation-delay: 0.2s; }
.practitioners-grid .practitioner-card:nth-child(3) { animation-delay: 0.3s; }
.practitioners-grid .practitioner-card:nth-child(4) { animation-delay: 0.4s; }

.courses-grid .course-card:nth-child(1) { animation-delay: 0.1s; }
.courses-grid .course-card:nth-child(2) { animation-delay: 0.15s; }
.courses-grid .course-card:nth-child(3) { animation-delay: 0.2s; }
.courses-grid .course-card:nth-child(4) { animation-delay: 0.25s; }
.courses-grid .course-card:nth-child(5) { animation-delay: 0.3s; }
.courses-grid .course-card:nth-child(6) { animation-delay: 0.35s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 5%;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero {
        padding: 6rem 2rem 5rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .practitioners-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        white-space: normal;
    }

    .ornamental-line {
        width: 80px;
        max-width: none;
    }

    .practitioners-grid,
    .courses-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .logo-image {
        width: 50px;
        height: 50px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .runes-divider {
        letter-spacing: 0.8rem;
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.text-gold {
    color: var(--accent);
}

.text-silver {
    color: var(--silver);
}

.glow-gold {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.border-gold {
    border-color: var(--accent);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--moonlight);
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--moonlight);
}
/* ═══════════════════════════════════════════════════════════════
   FOOTER EXTENDED — contacts & legal links
   ═══════════════════════════════════════════════════════════════ */

.footer-info {
    margin: 1.2rem 0 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-info p {
    color: var(--silver);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.65;
    margin: 0;
}

.footer-info a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-info a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-divider {
    color: var(--accent);
    opacity: 0.35;
    font-size: 1rem;
    margin: 1.2rem 0 1rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin-top: 0.2rem;
}

.footer-legal-link {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    opacity: 0.55;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--accent);
    opacity: 1;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.footer-legal-sep {
    color: var(--accent);
    opacity: 0.3;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .footer-legal-sep {
        display: none;
    }
    .footer-legal {
        flex-direction: column;
        gap: 0.6rem;
    }
}