/* ===== ROOT VARIABLES ===== */
:root {
    --bg-deep: #020617;
    --bg-navy: #0f172a;
    --bg-panel: rgba(15, 23, 42, 0.6);
    --bg-glass: rgba(30, 41, 59, 0.4);

    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.4);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --gold: #fbbf24;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-glow: rgba(168, 85, 247, 0.2);
    --border-subtle: rgba(148, 163, 184, 0.1);

    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

@media (pointer: coarse) {
    body { cursor: auto; }
}

/* ===== BACKGROUND CANVAS ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SCAN LINES ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

/* ===== FLOATING SYMBOLS ===== */
.floating-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-symbol {
    position: absolute;
    color: var(--primary);
    opacity: 0.08;
    display: flex;
    animation: floatSymbol 20s infinite ease-in-out;
    user-select: none;
    pointer-events: none;
}

@keyframes floatSymbol {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.05; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.12; }
}

/* ===== CURSOR TRAIL ===== */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

.trail-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 1s forwards;
}

@keyframes trailFade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* ===== CRYSTAL BALL ===== */
.crystal-ball {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

.crystal-ball.mobile-centerpiece {
    top: auto !important;
    left: auto !important;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    transform: none;
    animation: mobileBob 4s ease-in-out infinite;
}

@keyframes mobileBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.crystal-ball-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.2), transparent 70%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3),
                inset 0 0 20px rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(2px);
}

.crystal-ball-inner {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.9;
}

#crystalBallCanvas {
    width: 100%;
    height: 100%;
}

.crystal-ball-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    animation: crystalPulse 3s infinite ease-in-out;
}

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

.crystal-ball.active {
    transform: translate(-50%, -50%) scale(1.3);
}

.crystal-ball.active .crystal-ball-outer {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow),
                inset 0 0 30px rgba(245, 158, 11, 0.2);
}

.crystal-ball.excited {
    animation: crystalExcited 0.5s ease-out;
}

@keyframes crystalExcited {
    0% { transform: translate(-50%, -50%) scale(1.3) rotate(0deg); }
    25% { transform: translate(-50%, -50%) scale(1.5) rotate(90deg); }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(180deg); }
    75% { transform: translate(-50%, -50%) scale(1.4) rotate(270deg); }
    100% { transform: translate(-50%, -50%) scale(1.3) rotate(360deg); }
}

/* ===== APP CONTAINER ===== */
.app-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
    animation: logoSpin 10s linear infinite;
}

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

.logo-accent {
    color: var(--secondary);
}

.header-line {
    position: absolute;
    bottom: 0;
    left: 3rem;
    right: 3rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    animation: screenFadeIn 0.8s ease-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* ===== INTRO SCREEN ===== */
.intro-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: introFloat 6s ease-in-out infinite;
}

@keyframes introFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.intro-symbol {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--primary-glow);
    animation: symbolPulse 3s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.intro-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

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

.intro-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ===== FORM ===== */
.input-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group label .optional {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.65rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(30, 41, 59, 0.6);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-error {
    min-height: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fca5a5;
    text-align: left;
    margin-top: -0.5rem;
}

/* ===== REVEAL BUTTON ===== */
.reveal-btn {
    position: relative;
    padding: 1.25rem 3rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: none;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.reveal-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 30px var(--primary-glow),
                inset 0 0 30px rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
    border-color: var(--secondary);
}

.reveal-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.reveal-btn:hover .btn-glow {
    opacity: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.disclaimer-icon {
    font-size: 1rem;
}

/* ===== ANALYSIS SCREEN ===== */
.analysis-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    width: 100%;
}

.analysis-terminal {
    width: 100%;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--secondary);
}

.terminal-line.typing::after {
    content: '█';
    animation: cursorBlink 0.8s infinite;
    color: var(--primary);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-progress {
    height: 2px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px var(--primary-glow);
}

.analysis-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.analysis-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: ringSpin 2s linear infinite;
}

.analysis-ring::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: ringSpin 3s linear infinite reverse;
}

.analysis-ring::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    border-top-color: transparent;
    animation: ringSpin 1.5s linear infinite;
}

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

/* ===== DASHBOARD ===== */
.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Central Card */
.central-card {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.central-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08), transparent 50%);
    pointer-events: none;
}

.zodiac-display {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.zodiac-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: zodiacFloat 4s ease-in-out infinite;
}

.central-zodiac-glyph { display: block; }

@keyframes zodiacFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.zodiac-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

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

.profile-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-separator {
    color: var(--primary);
    opacity: 0.5;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dash-card {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.dash-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(168, 85, 247, 0.1);
    transform: translateY(-5px);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.dash-card:hover::before {
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.card-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-subtle), transparent);
    margin-left: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

/* Numerology Card */
.num-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.num-item {
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.num-item:hover {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.num-item-icon {
    color: var(--secondary);
    display: flex;
    opacity: 0.8;
}

.num-item.full-width {
    grid-column: 1 / -1;
}

.num-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.num-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px var(--accent-glow);
}

.card-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.num-meaning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border-left: 2px solid var(--primary);
}

/* Astrology Card */
.astro-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.astro-sign-icon {
    color: var(--secondary);
    filter: drop-shadow(0 0 12px var(--secondary-glow));
    flex-shrink: 0;
    display: flex;
}

.astro-sign {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 15px var(--secondary-glow);
    margin-bottom: 0.35rem;
}

.astro-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.moon-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.5rem 0.7rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    min-height: 1.6rem;
}

.moon-badge svg { color: var(--secondary); flex-shrink: 0; }

.astro-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.astro-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.astro-value {
    color: var(--text-primary);
    font-weight: 600;
}

.traits-container {
    margin-bottom: 1.5rem;
}

.traits-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary);
    transition: var(--transition-smooth);
}

.trait-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.horoscope-box {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border-left: 2px solid var(--secondary);
}

.horoscope-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.horoscope-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Gematria Card */
.gematria-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gematria-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.gematria-value-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
}

.gematria-total {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
}

.gematria-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

.gematria-breakdown {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    justify-content: center;
}

.gematria-meaning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border-left: 2px solid var(--primary);
}

.gematria-connections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.connection-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* Birthday Card */
.birth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.birth-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.birth-facts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fact-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border-left: 2px solid var(--accent);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition-smooth);
}

.fact-item:hover {
    background: rgba(245, 158, 11, 0.05);
    transform: translateX(5px);
}

.fact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===== VISUALIZATION SECTION ===== */
.visualization-section {
    margin-bottom: 3rem;
    text-align: center;
}

.viz-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.circular-viz {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-viz svg {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.viz-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-node:hover {
    filter: brightness(1.5);
}

.viz-node-circle {
    fill: var(--bg-navy);
    stroke: var(--primary);
    stroke-width: 2;
}

.viz-node-text {
    fill: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.viz-line {
    stroke: url(#connectionGrad);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.6;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* ===== COSMIC SIGNATURE ===== */
.cosmic-signature-section {
    margin-bottom: 3rem;
    text-align: center;
}

.signature-container {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

#cosmicSignatureCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.signature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
}

.signature-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* ===== DASHBOARD FOOTER ===== */
.dashboard-footer {
    text-align: center;
    padding: 2rem 0;
}

.reset-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: none;
    transition: var(--transition-smooth);
}

.reset-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: fixed;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tooltip.visible {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Card entrance animations */
.dash-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.dash-card:nth-child(1) { animation-delay: 0.1s; }
.dash-card:nth-child(2) { animation-delay: 0.2s; }
.dash-card:nth-child(3) { animation-delay: 0.3s; }
.dash-card:nth-child(4) { animation-delay: 0.4s; }

.central-card {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.2s forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
    }

    .intro-title {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .birth-stats {
        grid-template-columns: 1fr;
    }

    .astro-main {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-separator {
        display: none;
    }

    .num-grid {
        grid-template-columns: 1fr;
    }

    .screen {
        padding: 5rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.5rem;
    }

    .zodiac-symbol {
        font-size: 3.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .gematria-total {
        font-size: 2rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

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

/* ===== SELECTION ===== */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}
