::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #60A5FA 0%, #C026D3 100%); border-radius: 4px; }

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* ===== AURORA GLOW EFFECTS ===== */
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

@keyframes aurora-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(40px, -30px) scale(1.1); opacity: 0.5; }
    50% { transform: translate(-30px, 40px) scale(0.9); opacity: 0.35; }
    75% { transform: translate(20px, 20px) scale(1.05); opacity: 0.45; }
}

@keyframes aurora-drift-slow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    33% { transform: translate(-50px, 30px) scale(1.15); opacity: 0.4; }
    66% { transform: translate(40px, -20px) scale(0.95); opacity: 0.25; }
}

/* ===== STAR FIELD ===== */
.star-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: star-twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* ===== GLASS CARDS (dark) ===== */
.glass-dark {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-dark:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow:
        0 0 30px rgba(245, 158, 11, 0.08),
        0 0 60px rgba(96, 165, 250, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.glass-dark-static {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

/* Homepage pillar cards — shared sizing (Activation, value pillars, etc.) */
.landing-pillar-grid {
    align-items: stretch;
}

.landing-pillar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 18.5rem;
}

.landing-pillar-card__body {
    flex: 1;
}

/* ===== GRADIENT TEXT ===== */
.text-gold-shimmer {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #fcd34d 50%, #f59e0b 70%, #fbbf24 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 6s ease-in-out infinite;
}

@keyframes gold-shimmer {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.text-gradient-violet {
    background: linear-gradient(135deg, #C026D3, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gold:hover::before { opacity: 1; }
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -5px rgba(245, 158, 11, 0.4);
}

.btn-gold span { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.5rem; }

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== ICON GLOW ===== */
.icon-glow {
    position: relative;
}

.icon-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    filter: blur(12px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.3s;
}

.icon-glow:hover::before { opacity: 0.7; }

/* ===== SACRED GEOMETRY ===== */
.sacred-ring {
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.15);
    position: absolute;
    animation: sacred-pulse var(--speed) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes sacred-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.06); opacity: 0.6; }
}

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

/* ===== NAV ===== */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.animate-fade-up { animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-float { animation: float 6s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* ===== SECTION DIVIDERS ===== */
.section-fade-top { 
    background: linear-gradient(to bottom, #020617 0%, transparent 100%);
    height: 120px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.section-fade-bottom { 
    background: linear-gradient(to top, #020617 0%, transparent 100%);
    height: 120px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===== STEP INDICATOR ===== */
.step-glow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
}

.step-glow::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}

/* ===== PORTED FROM MEDIT8TE (dark aurora retheme) ===== */

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slide-right {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.animate-scale-in { animation: scale-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-slide-right { animation: slide-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-pulse-soft { animation: pulse-soft 3s ease-in-out infinite; }
.delay-600 { animation-delay: 600ms; }

/* Animated gradient divider line */
.animated-gradient-line {
    background: linear-gradient(90deg, transparent, #C026D3, #f59e0b, #60A5FA, transparent);
    background-size: 200% 100%;
    animation: gradient-shift 5s ease infinite;
}

/* Divider dots */
.divider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}
.divider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(192, 38, 211, 0.4);
    animation: pulse-soft 2.4s ease-in-out infinite;
}

/* Wave dividers — dark aurora SVG fills handled inline; this just animates SVG width */
.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}
.wave-top { top: 0; transform: rotate(180deg); }
.wave-bottom { bottom: 0; }
.wave-top svg, .wave-bottom svg {
    position: relative;
    display: block;
    width: calc(200% + 1.3px);
    height: 70px;
    animation: wave-animation 22s linear infinite;
}

/* ===== APP + AUTH ALIASES (ponytail: one theme, old class names keep working) ===== */
.text-gradient { background: linear-gradient(135deg, #60A5FA, #C026D3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text, .text-gradient-violet { background: linear-gradient(135deg, #60A5FA 0%, #C026D3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass-card { background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(96, 165, 250, 0.12); }
.glass { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-strong { background: rgba(2, 6, 23, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(96, 165, 250, 0.1); }
.btn-primary, .btn-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; font-weight: 600; transition: all 0.3s ease; }
.btn-primary:hover, .btn-gold:hover { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); transform: translateY(-2px); box-shadow: 0 10px 40px -5px rgba(245, 158, 11, 0.4); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.card-premium { background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%); border: 1px solid rgba(96, 165, 250, 0.12); backdrop-filter: blur(20px); transition: all 0.4s ease; }
.card-premium:hover { border-color: rgba(245, 158, 11, 0.25); transform: translateY(-4px); box-shadow: 0 0 30px rgba(245, 158, 11, 0.08); }
.input-field, .auth-input { background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(96, 165, 250, 0.2); border-radius: 0.75rem; padding: 0.75rem 1rem; width: 100%; color: #e2e8f0; }
.input-field:focus, .auth-input:focus { outline: none; border-color: #C026D3; box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.15); }
.input-field::placeholder, .auth-input::placeholder { color: #64748b; }
.page-hero-dark { position: relative; padding-top: 8rem; padding-bottom: 6rem; overflow: hidden; background: #020617; }
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #60A5FA, #f59e0b); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.stat-card:hover::before { transform: scaleX(1); }
.live-badge { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); animation: pulse-soft 2s ease-in-out infinite; }
.session-card { position: relative; overflow: hidden; }
.quick-action { position: relative; overflow: hidden; }
.badge-healing { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-guidance { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }
.badge-gratitude { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-peace { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-strength { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-family { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.3); border-radius: 4px; }

/* ===== APP COMPONENT STYLES (ported from inline blocks) ===== */

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(96, 165, 250, 0.4); }
    50% { box-shadow: 0 0 25px rgba(96, 165, 250, 0.8); }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

@keyframes audio-wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 8s linear infinite; }
.gradient-text-blue {
    background: linear-gradient(135deg, #60A5FA 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.15);
    transform: translateY(-2px);
}

.premium-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}
.premium-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sidebar-link { transition: all 0.2s ease; }
.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}
.sidebar-link.active { border-left: 3px solid #F59E0B; }

.admin-gradient { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.pulse-dot { animation: pulse 2s infinite; }
.health-good { color: #34D399; }
.health-bad { color: #FB7185; }
.priority-low { background: rgba(96, 165, 250, 0.1); color: #60A5FA; border-color: rgba(96, 165, 250, 0.3); }
.priority-medium { background: rgba(251, 191, 36, 0.1); color: #FBBF24; border-color: rgba(251, 191, 36, 0.3); }
.priority-high { background: rgba(251, 113, 133, 0.1); color: #FB7185; border-color: rgba(251, 113, 133, 0.3); }
.priority-urgent { background: rgba(244, 63, 94, 0.2); color: #F43F5E; border-color: rgba(244, 63, 94, 0.5); animation: pulse 1.5s infinite; }

.quick-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.quick-action:hover::before { opacity: 1; }

.session-card { position: relative; overflow: hidden; }
.session-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(96, 165, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.session-card:hover::after { opacity: 1; }

.audio-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}
.audio-wave span {
    width: 3px;
    background: linear-gradient(180deg, #60A5FA, #f59e0b);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}
.audio-wave span:nth-child(1) { animation-delay: 0s; height: 8px; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; height: 8px; }

.audio-bar {
    width: 6px;
    background: linear-gradient(to top, #60A5FA, #f59e0b);
    border-radius: 3px;
    animation: audio-wave 0.6s ease-in-out infinite;
}
.audio-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.audio-bar:nth-child(2) { animation-delay: 0.1s; height: 35px; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; height: 50px; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; height: 35px; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; height: 20px; }
.audio-wave.paused .audio-bar {
    animation-play-state: paused;
    transform: scaleY(0.3);
}

/* Shared meditation audio — avoid clipping native controls / time labels */
.medit8-audio-player .medit8-audio-element {
    min-height: 40px;
    height: auto;
}
.medit8-audio-player audio::-webkit-media-controls-enclosure {
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
}

.voice-card { position: relative; cursor: pointer; transition: all 0.3s ease; }
.voice-card:hover { border-color: rgba(245,158,11,0.4) !important; transform: translateY(-2px); }
.voice-card.selected {
    border-color: #f59e0b !important;
    background: rgba(245,158,11,0.08) !important;
    box-shadow: 0 0 24px rgba(245,158,11,0.15);
}
.voice-card .checkmark {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    align-items: center;
    justify-content: center;
}
.voice-card.selected .checkmark { display: flex; }
.voice-preview-btn { transition: all 0.2s ease; }
.voice-preview-btn:hover { transform: scale(1.1); }
.voice-preview-btn.loading { opacity: 0.5; pointer-events: none; }

.intention-card { position: relative; }
.intention-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.intention-card:hover::before { width: 6px; }

.badge-work { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.badge-other { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.border-healing { border-color: rgba(34, 197, 94, 0.3); }
.border-guidance { border-color: rgba(96, 165, 250, 0.3); }
.border-gratitude { border-color: rgba(245, 158, 11, 0.3); }
.border-peace { border-color: rgba(168, 85, 247, 0.3); }
.border-strength { border-color: rgba(239, 68, 68, 0.3); }
.border-family { border-color: rgba(236, 72, 153, 0.3); }
.border-work { border-color: rgba(6, 182, 212, 0.3); }
.border-other { border-color: rgba(148, 163, 184, 0.3); }
.bar-healing::before { background: #22c55e; }
.bar-guidance::before { background: #60A5FA; }
.bar-gratitude::before { background: #f59e0b; }
.bar-peace::before { background: #a855f7; }
.bar-strength::before { background: #ef4444; }
.bar-family::before { background: #ec4899; }
.bar-work::before { background: #06b6d4; }
.bar-other::before { background: #94a3b8; }

.journal-entry { position: relative; }
.journal-entry::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.3), transparent);
}

.circle-card { position: relative; overflow: hidden; }
.circle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #60A5FA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.circle-card:hover::before { transform: scaleX(1); }

.touch-manipulation { touch-action: manipulation; }
#participant-mic-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}
#participant-mic-btn:active { transform: scale(0.95); }
@supports (-webkit-touch-callout: none) {
    #participant-mic-btn { min-height: 80px; min-width: 80px; }
}

input:focus {
    outline: none;
    border-color: #60A5FA !important;
}
