/* ==========================================================
   ASTROLITE - PREMIUM DASHBOARD CSS (BENTO GRID)
   Enhances #section-dashboard to match the premium sample UI
   ========================================================== */

/* 1. Main Dashboard Container */
.premium-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Glassmorphism Bento Card */
.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-muted);
}

/* 3. Hero Section (Welcome) */
.bento-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
}

@media (min-width: 768px) {
    .bento-hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 2rem;
    }
}

.hero-titles h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-main);
}
.hero-titles p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-elevated);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.hero-badge-item {
    display: flex;
    flex-direction: column;
}
.hero-badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.hero-badge-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}
.hero-badge-value.accent-alt {
    color: var(--gold-accent);
}
.badge-divider {
    width: 1px;
    background: var(--border-strong);
}

/* 4. Two Column Layout (Matrix + Chart) */
.bento-split-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .bento-split-row {
        grid-template-columns: 1fr 2fr;
    }
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.bento-header i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

/* Details List (Vedic Matrix) */
.details-list {
    display: flex;
    flex-direction: column;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.detail-item:last-child {
    border-bottom: none;
}
.detail-label {
    color: var(--text-secondary);
}
.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Chart Container */
.chart-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    position: relative;
}
.chart-toggles {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 0.5rem;
    background: var(--bg-elevated);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}
.chart-toggle-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.chart-toggle-btn.active {
    background: var(--accent);
    color: white;
}
.premium-chart-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-top: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

/* SVG Chart Overrides (Matches sample style) */
.premium-chart-svg rect, 
.premium-chart-svg line, 
.premium-chart-svg polygon {
    stroke: var(--accent);
    stroke-opacity: 0.4;
    stroke-width: 1.5px;
    fill: none;
}
.premium-chart-svg text {
    fill: var(--text-primary);
    font-family: var(--font-main);
}
.premium-chart-svg text.planet {
    font-size: 14px;
    font-weight: 600;
}
.premium-chart-svg text.house-num {
    font-size: 16px;
    font-weight: 700;
    fill: var(--accent-text);
    opacity: 0.7;
}

/* 5. Domain Vectors (4 Col Grid) */
.vectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.vector-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 1rem;
    transition: background 0.2s ease;
}
.vector-card:hover {
    background: var(--bg-surface);
}
.vector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.vector-icon {
    padding: 0.5rem;
    background: var(--bg-base);
    border-radius: 0.5rem;
    color: var(--text-tertiary);
}
.vector-score {
    font-size: 1.5rem;
    font-weight: 700;
}
.vector-score.high { color: var(--success); }
.vector-score.mid { color: var(--warning); }
.vector-score.low { color: var(--danger); }

.vector-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.vector-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--border-strong);
    border-radius: 99px;
    overflow: hidden;
}
.vector-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s ease-out;
}
.vector-bar-fill.high { background: var(--success); }
.vector-bar-fill.mid { background: var(--warning); }
.vector-bar-fill.low { background: var(--danger); }

/* 6. Planetary State Table */
.premium-table-container {
    overflow-x: auto;
    width: 100%;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.premium-table th {
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
}
.premium-table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.premium-table tr:hover td {
    background: var(--bg-elevated);
}
.premium-table td.p-name {
    color: var(--text-primary);
    font-weight: 600;
}
.p-rx {
    color: var(--danger);
    font-size: 0.7rem;
    margin-left: 0.25rem;
}
.dignity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-base);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* 7. Bottom Two Cols (Aspects / Highlights) */
.bento-half-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .bento-half-row {
        grid-template-columns: 1fr 1fr;
    }
}

.aspect-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.aspect-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.aspect-planet {
    font-weight: 700;
    color: var(--text-primary);
}
.aspect-from {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
.aspect-targets {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.aspect-targets span {
    color: var(--accent);
    font-weight: 500;
}

/* Highlights */
.highlight-block {
    margin-bottom: 1.25rem;
}
.highlight-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}
.highlight-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.highlight-box i {
    color: var(--text-secondary);
}
.highlight-box.success {
    background: var(--success-bg);
    border-color: rgba(22,163,74,0.3);
    color: var(--success);
}
.highlight-box.warning {
    background: var(--warning-bg);
    border-color: rgba(245,158,11,0.3);
    color: var(--warning);
}

/* ═══════════════════════════════════════════════════════════════════
   8. Global Loading Overlay — Kundli Generation / Login
   ═══════════════════════════════════════════════════════════════════ */
.ai-global-loading {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, #0f0c2a 0%, #060612 100%);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}
.ai-global-loading.active {
    display: flex;
    animation: fadeInOverlay 0.6s ease-out forwards;
}
@keyframes fadeInOverlay {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Star field --- */
.loading-stars {
    position: absolute; inset: 0; pointer-events: none;
}
.loading-stars span {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: #fff;
    animation: starTwinkle var(--tw, 2s) ease-in-out infinite;
    opacity: 0;
}
.loading-stars span:nth-child(1)  { top:5%;  left:10%; --tw:2.1s; animation-delay:0s;    width:2px;  height:2px; }
.loading-stars span:nth-child(2)  { top:12%; left:75%; --tw:3.2s; animation-delay:0.4s;  width:3px;  height:3px; }
.loading-stars span:nth-child(3)  { top:22%; left:38%; --tw:2.5s; animation-delay:0.8s; }
.loading-stars span:nth-child(4)  { top:35%; left:88%; --tw:1.9s; animation-delay:0.2s;  width:1px;  height:1px; }
.loading-stars span:nth-child(5)  { top:48%; left:5%;  --tw:2.8s; animation-delay:1.1s;  width:3px;  height:3px; }
.loading-stars span:nth-child(6)  { top:60%; left:55%; --tw:2.2s; animation-delay:0.6s; }
.loading-stars span:nth-child(7)  { top:72%; left:20%; --tw:3.5s; animation-delay:1.5s;  width:2px;  height:2px; }
.loading-stars span:nth-child(8)  { top:80%; left:90%; --tw:1.8s; animation-delay:0.3s;  width:1px;  height:1px; }
.loading-stars span:nth-child(9)  { top:18%; left:50%; --tw:2.6s; animation-delay:0.9s;  width:2px;  height:2px; }
.loading-stars span:nth-child(10) { top:90%; left:40%; --tw:3.0s; animation-delay:1.8s;  width:3px;  height:3px; }
.loading-stars span:nth-child(11) { top:7%;  left:60%; --tw:2.3s; animation-delay:0.5s; }
.loading-stars span:nth-child(12) { top:42%; left:70%; --tw:1.7s; animation-delay:1.3s;  width:1px;  height:1px; }
.loading-stars span:nth-child(13) { top:65%; left:32%; --tw:2.9s; animation-delay:0.7s;  width:2px;  height:2px; }
.loading-stars span:nth-child(14) { top:30%; left:18%; --tw:3.3s; animation-delay:2.0s; }
.loading-stars span:nth-child(15) { top:85%; left:65%; --tw:2.4s; animation-delay:1.0s;  width:3px;  height:3px; }
.loading-stars span:nth-child(16) { top:55%; left:82%; --tw:1.6s; animation-delay:0.1s; }
.loading-stars span:nth-child(17) { top:93%; left:12%; --tw:2.7s; animation-delay:1.6s;  width:2px;  height:2px; }
.loading-stars span:nth-child(18) { top:3%;  left:30%; --tw:3.1s; animation-delay:0.8s; }
.loading-stars span:nth-child(19) { top:78%; left:48%; --tw:2.0s; animation-delay:1.4s;  width:1px;  height:1px; }
.loading-stars span:nth-child(20) { top:25%; left:93%; --tw:2.5s; animation-delay:0.2s;  width:2px;  height:2px; }
@keyframes starTwinkle {
    0%,100% { opacity: 0; transform: scale(0.5); }
    50%      { opacity: 0.9; transform: scale(1.3); }
}

/* --- Content wrapper --- */
.loading-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 2.5rem;
    text-align: center; max-width: 480px; padding: 2rem;
    position: relative; z-index: 2;
}

/* --- Spinner --- */
.orbital-spinner {
    position: relative; width: 260px; height: 260px;
    display: flex; align-items: center; justify-content: center;
}
.zodiac-wheel-container {
    width: 200px; height: 200px;
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: center;
}
.geometric-wheel { width: 100%; height: 100%; stroke: #d4af37; fill: none; }

/* Circles */
.wheel-outer   { stroke-opacity: 0.25; animation: slowRotate 60s linear infinite; }
.wheel-mid     { stroke: #6366f1; stroke-opacity: 0.2; stroke-width: 0.4; animation: slowRotate 30s linear reverse infinite; }
.wheel-inner   { stroke: #6366f1; stroke-opacity: 0.5; animation: rotateRing 14s linear reverse infinite; }
.wheel-spokes  { stroke-opacity: 0.15; animation: rotateRing 18s linear infinite; transform-origin: 50px 50px; }
.wheel-spokes line { stroke-width: 0.25; }
.wheel-squares { stroke-opacity: 0.35; stroke: #d4af37; animation: rotateRing 9s ease-in-out infinite alternate; transform-origin: 50px 50px; }
.wheel-squares rect { stroke-width: 0.35; }
.wheel-center  { fill: #6366f1; filter: drop-shadow(0 0 6px #6366f1); animation: pulseCore 2.2s ease-in-out infinite; }
.wheel-om      { font-size: 14px; fill: #d4af37; opacity: 0.55; font-family: serif; animation: pulseCore 3s ease-in-out infinite; }

@keyframes pulseCore {
    0%,100% { opacity: 0.6; } 50% { opacity: 1; }
}
@keyframes slowRotate {
    from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes rotateRing {
    from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}

/* Zodiac glyph orbit */
.zodiac-orbit {
    position: absolute; inset: 0;
    animation: rotateRing 36s linear infinite;
}
.zodiac-glyph {
    position: absolute;
    top: 50%; left: 50%;
    font-size: 11px; color: #d4af37; opacity: 0.55;
    transform:
        rotate(calc(var(--i) * 30deg))
        translateY(-125px)
        rotate(calc(var(--i) * -30deg));
    transform-origin: 0 0;
    animation: glyphPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}
@keyframes glyphPulse {
    0%,100% { opacity: 0.35; } 50% { opacity: 0.8; }
}

/* Planet dot orbiting at mid radius */
.planet-orbit-track {
    position: absolute; width: 100%; height: 100%;
    animation: rotateRing 5s linear infinite;
}
.planet-dot {
    position: absolute; top: -5px; left: 50%;
    width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #6366f1 60%);
    box-shadow: 0 0 10px 2px rgba(99,102,241,0.7);
    transform: translateX(-50%);
}

/* Orbital rings */
.orbital-ring {
    position: absolute; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(212,175,55,0.12);
}
.orbital-ring:nth-of-type(1) {
    width: 225px; height: 225px;
    border-top-color: rgba(99,102,241,0.6);
    border-top-width: 1.5px;
    animation: rotateRing 3.5s linear infinite;
}
.orbital-ring:nth-of-type(2) {
    width: 252px; height: 252px;
    border-bottom-color: rgba(212,175,55,0.5);
    border-bottom-width: 1.5px;
    animation: rotateRing 5.5s linear reverse infinite;
}

/* Shimmer aura */
.shimmer-aura {
    position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 68%);
    animation: pulseAura 3.5s ease-in-out infinite; z-index: 1;
}
@keyframes pulseAura {
    0%,100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.25); opacity: 0.75; }
}

/* Loading text */
.loading-status h2 {
    font-size: 1.75rem; font-weight: 700; margin: 0 0 0.6rem;
    background: linear-gradient(100deg, #fff 30%, #d4af37 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 0.03em; animation: textFadeIn 0.5s ease-out;
}
.loading-status p {
    color: #94a3b8; font-size: 0.95rem; margin: 0 0 1.8rem;
    max-width: 78%; margin-left: auto; margin-right: auto;
    animation: textFadeIn 0.5s ease-out 0.1s both;
}
@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.loading-progress-container { width: 300px; margin: 0 auto; }
.loading-progress-bar {
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px; overflow: hidden; margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #a78bfa 50%, #d4af37 100%);
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
    transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.progress-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: shimmerMove 1.8s linear infinite;
}
@keyframes shimmerMove {
    from { transform: translateX(-100%); } to { transform: translateX(200%); }
}
.progress-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(212,175,55,0.65);
}

/* Loading dots */
.loading-dots {
    display: flex; gap: 6px; justify-content: center; margin-top: 0.4rem;
}
.loading-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(212,175,55,0.5);
    animation: dotBounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%,80%,100% { transform: scale(0.7); opacity: 0.4; }
    40%          { transform: scale(1.2); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════════
   8b. Premium Unlock Overlay (AI insights / section unlocking)
   ═══════════════════════════════════════════════════════════════════ */
.premium-unlock-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #1a1205 0%, #0a0800 100%);
    z-index: 10001;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}
.premium-unlock-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.55s ease-out forwards;
}

/* Stars */
.unlock-stars {
    position: absolute; inset: 0; pointer-events: none;
}
.unlock-stars span {
    position: absolute; border-radius: 50%; background: #fff; opacity: 0;
    animation: starTwinkle 2.5s ease-in-out infinite;
}
.unlock-stars span:nth-child(1)  { top:4%;  left:8%;  width:2px; height:2px; animation-delay:0s; }
.unlock-stars span:nth-child(2)  { top:10%; left:70%; width:3px; height:3px; animation-delay:0.5s; }
.unlock-stars span:nth-child(3)  { top:20%; left:35%; width:2px; height:2px; animation-delay:1.0s; }
.unlock-stars span:nth-child(4)  { top:40%; left:90%; width:1px; height:1px; animation-delay:0.3s; }
.unlock-stars span:nth-child(5)  { top:55%; left:4%;  width:3px; height:3px; animation-delay:1.5s; }
.unlock-stars span:nth-child(6)  { top:65%; left:60%; width:2px; height:2px; animation-delay:0.8s; }
.unlock-stars span:nth-child(7)  { top:75%; left:25%; width:2px; height:2px; animation-delay:2.0s; }
.unlock-stars span:nth-child(8)  { top:85%; left:85%; width:1px; height:1px; animation-delay:0.2s; }
.unlock-stars span:nth-child(9)  { top:15%; left:52%; width:2px; height:2px; animation-delay:1.2s; }
.unlock-stars span:nth-child(10) { top:92%; left:45%; width:3px; height:3px; animation-delay:1.8s; }
.unlock-stars span:nth-child(11) { top:32%; left:78%; width:2px; height:2px; animation-delay:0.6s; }
.unlock-stars span:nth-child(12) { top:48%; left:15%; width:1px; height:1px; animation-delay:1.4s; }
.unlock-stars span:nth-child(13) { top:70%; left:42%; width:2px; height:2px; animation-delay:0.9s; }
.unlock-stars span:nth-child(14) { top:28%; left:20%; width:3px; height:3px; animation-delay:2.3s; }
.unlock-stars span:nth-child(15) { top:88%; left:68%; width:2px; height:2px; animation-delay:1.1s; }

/* Floating planet symbols */
.planet-symbol {
    position: fixed;
    top: var(--py); left: var(--px);
    font-size: 1.4rem; color: rgba(212,175,55,0.18);
    animation: planetFloat var(--pd, 9s) ease-in-out infinite;
    pointer-events: none; user-select: none;
}
@keyframes planetFloat {
    0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
    50%      { transform: translateY(-18px) rotate(8deg); opacity: 0.28; }
}

/* Content */
.unlock-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 2.2rem;
    position: relative; z-index: 2;
    text-align: center; padding: 1.5rem;
    max-width: 420px; width: 100%;
}

/* Mandala */
.unlock-mandala-wrap {
    position: relative; width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.unlock-mandala {
    width: 180px; height: 180px;
    filter: drop-shadow(0 0 18px rgba(212,175,55,0.35));
}
.um-ring1  { animation: rotateRing 30s linear infinite; transform-origin: 60px 60px; }
.um-ring2  { animation: rotateRing 20s linear reverse infinite; transform-origin: 60px 60px; }
.um-petals { animation: rotateRing 60s linear infinite; transform-origin: 60px 60px; }
.um-triangles { animation: rotateRing 15s ease-in-out infinite alternate; transform-origin: 60px 60px; }
.um-inner  { animation: pulseCore 2.5s ease-in-out infinite; transform-origin: 60px 60px; }
.um-om {
    font-size: 20px; fill: #d4af37; opacity: 0.85; font-family: serif;
    animation: pulseCore 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.6));
}

/* Glow rings */
.unlock-glow-ring {
    position: absolute; border-radius: 50%;
    width: var(--r); height: var(--r);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(212,175,55, var(--op, 0.2));
    animation: pulseRing var(--d, 3s) ease-in-out infinite;
}
@keyframes pulseRing {
    0%,100% { transform: translate(-50%,-50%) scale(0.95); opacity: 0.5; }
    50%      { transform: translate(-50%,-50%) scale(1.05); opacity: 1; }
}

/* Sparkles */
.unlock-sparkles {
    position: absolute; width: 1px; height: 1px;
    top: 50%; left: 50%;
}
.sparkle {
    position: absolute;
    font-size: 10px; color: #d4af37;
    transform: translate(var(--sx,0), var(--sy,0));
    animation: sparklePulse 1.8s ease-in-out infinite;
    animation-delay: var(--sd, 0s);
    opacity: 0;
}
@keyframes sparklePulse {
    0%,100% { opacity: 0; transform: translate(var(--sx,0), var(--sy,0)) scale(0.5); }
    50%      { opacity: 1; transform: translate(var(--sx,0), var(--sy,0)) scale(1.2); }
}

/* Text */
.unlock-status { width: 100%; }
.unlock-status h2 {
    font-size: 1.6rem; font-weight: 700; margin: 0 0 0.5rem;
    background: linear-gradient(100deg, #f5d77a 0%, #d4af37 50%, #fef3c7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 0.04em;
}
.unlock-status p {
    color: rgba(212,175,55,0.6); font-size: 0.88rem; margin: 0 0 1.4rem;
    min-height: 1.3em; transition: opacity 0.4s;
}

/* Phase steps */
.unlock-phases {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 1.4rem; text-align: left;
}
.unlock-phase {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: rgba(255,255,255,0.35);
    transition: color 0.4s, opacity 0.4s;
    opacity: 0.5;
}
.unlock-phase.done {
    color: #4ade80; opacity: 1;
}
.unlock-phase.active {
    color: #d4af37; opacity: 1;
}
.phase-icon {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; flex-shrink: 0; transition: all 0.4s;
}
.unlock-phase.done .phase-icon {
    border-color: #4ade80; color: #4ade80; background: rgba(74,222,128,0.1);
}
.unlock-phase.active .phase-icon {
    border-color: #d4af37; color: #d4af37; background: rgba(212,175,55,0.1);
    animation: dotBounce 1s ease-in-out infinite;
}

/* Gold progress bar */
.unlock-progress-wrap { width: 100%; }
.unlock-progress-bar {
    width: 100%; height: 4px;
    background: rgba(212,175,55,0.1);
    border-radius: 20px; overflow: hidden; margin-bottom: 0.5rem;
    border: 1px solid rgba(212,175,55,0.15);
    position: relative;
}
.unlock-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #92710a, #d4af37, #fef3c7);
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.unlock-progress-fill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmerMove 1.6s linear infinite;
}
.unlock-progress-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(212,175,55,0.5); text-align: right;
}

/* 9. AI Insight Card Redesign (Theme-Aware) */
.premium-ai-insight {
    background-color: var(--bg-surface) !important;
    border-left: 6px solid var(--accent) !important;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text-primary) !important;
}

[data-theme="dark"] .premium-ai-insight {
    background-color: var(--bg-elevated) !important;
    border-left-color: #8b5cf6 !important; /* Vibrant Purple for Dark Mode */
    border-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
}

.ai-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--accent), #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.ai-section-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.ai-section-content strong {
    color: var(--accent);
}

.ai-sub-header {
    color: var(--gold-accent);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 10. NEW TECHNICAL REPORTS STYLES */

/* Shadbala Grid */
.shadbala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.shadbala-item {
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}
.shadbala-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.shadbala-pname {
    font-weight: 700;
    color: var(--text-primary);
}
.shadbala-points {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}
.shadbala-bar-bg {
    height: 8px;
    background: var(--bg-base);
    border-radius: 4px;
    overflow: hidden;
}
.shadbala-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}
.shadbala-grade {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.4rem;
    color: var(--text-tertiary);
    text-align: right;
}

/* Yogas Masonry */
.yoga-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.yoga-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.yoga-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}
.yoga-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.yoga-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-text);
}
.yoga-type-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--bg-base);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
}
.yoga-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.yoga-meaning {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--gold-accent);
}

/* Sadesati Card */
.sadesati-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.sadesati-phase-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sadesati-phase-box i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.sadesati-phase-box.active {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}
.sadesati-phase-box.safe {
    border-color: var(--success);
    background: rgba(22, 163, 74, 0.05);
}
.sadesati-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.sadesati-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Sadesati Lifetime Table */
.sadesati-table-container {
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.05);
}
.sadesati-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.sadesati-table th {
    position: sticky;
    top: 0;
    background: var(--bg-elevated);
    z-index: 1;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--border-strong);
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}
.sadesati-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.sadesati-table tr:last-child td {
    border-bottom: none;
}
.sadesati-table tr.active-row td {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-text);
    font-weight: 600;
}
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.past { background: var(--bg-base); color: var(--text-tertiary); }
.status-badge.active { background: var(--danger); color: white; }
.status-badge.future { background: var(--accent); color: white; }

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM REDESIGN ADDITIONS — "Cosmic Obsidian" v3.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Vector / Domain Score Cards ─────────────────────────────────────────── */
[data-theme="dark"] .vector-card {
    background: rgba(12,18,34,0.90) !important;
    border: 1px solid rgba(124,109,240,0.14) !important;
    border-radius: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
[data-theme="dark"] .vector-card:hover {
    background: rgba(15,24,48,0.95) !important;
    border-color: rgba(124,109,240,0.28) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.50) !important;
}

[data-theme="light"] .vector-card {
    background: #fefdfb !important;
    border: 1px solid rgba(79,67,232,0.12) !important;
    border-radius: 14px !important;
}
[data-theme="light"] .vector-card:hover {
    border-color: rgba(79,67,232,0.22) !important;
    box-shadow: 0 4px 16px rgba(20,10,60,0.08) !important;
}

/* Gradient bar fills */
.vector-bar-fill.high {
    background: linear-gradient(90deg, #34d399, #059669) !important;
}
.vector-bar-fill.mid {
    background: linear-gradient(90deg, #fbbf24, #d97706) !important;
}
.vector-bar-fill.low {
    background: linear-gradient(90deg, #f87171, #dc2626) !important;
}

/* Score colors (from new palette) */
.vector-score.high { color: #34d399 !important; }
.vector-score.mid  { color: #fbbf24 !important; }
.vector-score.low  { color: #f87171 !important; }

/* Bar track */
[data-theme="dark"] .vector-bar-bg {
    background: rgba(255,255,255,0.06) !important;
}

/* Vector icon container */
[data-theme="dark"] .vector-icon {
    background: rgba(0,0,0,0.30) !important;
    border-radius: 8px !important;
    color: var(--text-secondary) !important;
}

/* ── Shadbala grid ───────────────────────────────────────────────────────── */
[data-theme="dark"] .shadbala-item {
    background: rgba(12,18,34,0.90) !important;
    border: 1px solid rgba(124,109,240,0.12) !important;
    border-radius: 12px !important;
}

.shadbala-bar-fill {
    background: linear-gradient(90deg, #7c6df0, #8b5cf6) !important;
}

[data-theme="dark"] .shadbala-bar-bg {
    background: rgba(255,255,255,0.06) !important;
}

.shadbala-points { color: var(--accent-text) !important; }

/* ── Premium Planet Table ────────────────────────────────────────────────── */
[data-theme="dark"] .premium-table th {
    background: rgba(0,0,0,0.28) !important;
    border-bottom-color: rgba(124,109,240,0.14) !important;
    color: var(--accent-text) !important;
    font-size: 10px !important;
    letter-spacing: 0.9px !important;
}

[data-theme="dark"] .premium-table td {
    border-bottom-color: rgba(124,109,240,0.08) !important;
}

[data-theme="dark"] .premium-table tr:hover td {
    background: rgba(124,109,240,0.05) !important;
}

[data-theme="dark"] .premium-table td.p-name {
    color: #c7d2fe !important;
}

[data-theme="dark"] .dignity-badge {
    background: rgba(0,0,0,0.28) !important;
    border-color: rgba(124,109,240,0.14) !important;
    border-radius: 6px !important;
}

/* ── Aspect Items ────────────────────────────────────────────────────────── */
[data-theme="dark"] .aspect-item {
    background: rgba(12,18,34,0.85) !important;
    border-color: rgba(124,109,240,0.12) !important;
    border-radius: 10px !important;
}

/* ── Highlight Boxes ─────────────────────────────────────────────────────── */
[data-theme="dark"] .highlight-box {
    background: rgba(12,18,34,0.85) !important;
    border-color: rgba(124,109,240,0.12) !important;
    border-radius: 10px !important;
}

[data-theme="dark"] .highlight-box.success {
    background: rgba(52,211,153,0.10) !important;
    border-color: rgba(52,211,153,0.25) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .highlight-box.warning {
    background: rgba(251,191,36,0.10) !important;
    border-color: rgba(251,191,36,0.25) !important;
    color: #fbbf24 !important;
}

/* ── Yoga Cards ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .yoga-card {
    background: rgba(12,18,34,0.90) !important;
    border: 1px solid rgba(124,109,240,0.14) !important;
    border-radius: 14px !important;
    transition: all 0.22s ease !important;
}

[data-theme="dark"] .yoga-card:hover {
    border-color: rgba(232,168,60,0.32) !important;
    box-shadow: 0 0 28px rgba(232,168,60,0.09), 0 4px 20px rgba(0,0,0,0.45) !important;
    transform: translateY(-2px) !important;
}

.yoga-name {
    color: var(--gold-accent) !important;
    font-size: 1.05rem !important;
}

.yoga-type-badge {
    background: rgba(124,109,240,0.14) !important;
    color: var(--accent-text) !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    padding: 2px 9px !important;
}

.yoga-meaning {
    color: var(--gold-accent) !important;
    opacity: 0.80;
}

[data-theme="light"] .yoga-card:hover {
    border-color: rgba(184,98,14,0.28) !important;
    box-shadow: 0 4px 20px rgba(184,98,14,0.08) !important;
    transform: translateY(-2px) !important;
}

/* ── Hero card h1 Cinzel ─────────────────────────────────────────────────── */
.hero-titles h1 {
    font-family: var(--font-display, 'Cinzel', serif) !important;
    letter-spacing: 0.8px !important;
}

/* Hero badges divider */
[data-theme="dark"] .badge-divider,
[data-theme="light"] .badge-divider {
    background: rgba(124,109,240,0.20) !important;
}

/* Hero badge label */
.hero-badge-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

/* ── Loading Overlay — match new theme ───────────────────────────────────── */
[data-theme="dark"] .ai-global-loading {
    background: radial-gradient(ellipse at 50% 30%, #0d0a26 0%, #05060d 100%) !important;
}

