/* ============================================
   🌌 SUPRA ORÁCULO INTERGALÁCTICO v2.0
   CSS Ultra Premium · Galáctico-Egipcio · Sci-Fi
   Mobile-First · Portales Dimensionales
   ============================================ */

/* ===== VARIABLES CSS — PALETA PREMIUM ===== */
:root {
    --primary: #7c6aef;
    --primary-dark: #5b4cc4;
    --primary-light: #a78bfa;
    --secondary: #8b5cf6;
    --accent: #f0b429;
    --accent-glow: #fcd34d;
    --accent-dark: #d4940a;
    --cosmic-purple: #7c3aed;
    --cosmic-blue: #38bdf8;
    --cosmic-pink: #f472b6;
    --cosmic-teal: #2dd4bf;
    --cosmic-cyan: #22d3ee;
    --cosmic-gold: #f0b429;
    --cosmic-amber: #fbbf24;
    --neon-blue: #00d4ff;
    --neon-purple: #b14aed;
    --neon-gold: #ffcf40;
    --egypt-gold: #d4a017;
    --egypt-cyan: #00e5ff;
    --egypt-deep: #0d1b2a;
    --dark: #03030f;
    --dark-mid: #08081a;
    --dark-light: #0f0f2a;
    --dark-card: #0a0a22;
    --dark-card-hover: #12123a;
    --light: #e8e4f5;
    --light-dim: #9d97b8;
    --light-bright: #f5f3ff;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --gradient-main: linear-gradient(135deg, #7c6aef 0%, #8b5cf6 40%, #a855f7 100%);
    --gradient-gold: linear-gradient(135deg, #d4a017 0%, #fcd34d 50%, #d4a017 100%);
    --gradient-cosmic: linear-gradient(180deg, #03030f 0%, #08081a 40%, #0d1137 100%);
    --gradient-neon: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
    --gradient-egypt: linear-gradient(135deg, #0d1b2a 0%, #1a0a2e 50%, #0a1628 100%);
    --gradient-portal: conic-gradient(from 0deg, #00d4ff, #7c3aed, #f472b6, #fbbf24, #00d4ff);
    --glass-bg: rgba(10, 10, 34, 0.65);
    --glass-border: rgba(124, 106, 239, 0.18);
    --glass-border-hover: rgba(124, 106, 239, 0.35);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(124, 106, 239, 0.25);
    --shadow-gold: 0 0 30px rgba(240, 180, 41, 0.2);
    --shadow-neon: 0 0 40px rgba(0, 212, 255, 0.15);
    --font-heading: 'Cinzel', 'Orbitron', serif;
    --font-body: 'Quicksand', sans-serif;
    --font-tech: 'Orbitron', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ===== COSMIC CANVAS ===== */
#cosmicCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== HEADER — GALÁCTICO EGIPCIO ===== */
.main-header {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,106,239,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(0,212,255,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 90%, rgba(240,180,41,0.05) 0%, transparent 40%);
}

.cosmic-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.pyramid-bg {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 300px solid rgba(212, 160, 23, 0.03);
    filter: blur(2px);
}

.portal-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.1);
    animation: portalSpin 20s linear infinite;
}
.portal-ring-1 { width: 300px; height: 300px; border-color: rgba(124,106,239,0.12); }
.portal-ring-2 { width: 450px; height: 450px; border-color: rgba(0,212,255,0.08); animation-direction: reverse; animation-duration: 30s; }
.portal-ring-3 { width: 600px; height: 600px; border-color: rgba(240,180,41,0.05); animation-duration: 40s; }

@keyframes portalSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: nebulaFloat 15s ease-in-out infinite alternate;
}
.nebula-1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124,106,239,0.3), transparent);
    top: -10%; left: -10%;
}
.nebula-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,212,255,0.2), transparent);
    bottom: -10%; right: -10%;
    animation-delay: -7s;
}
@keyframes nebulaFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.15); }
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: starTwinkle 3s ease-in-out infinite alternate;
}
.star-1 { width: 2px; height: 2px; top: 10%; left: 15%; animation-delay: 0s; }
.star-2 { width: 3px; height: 3px; top: 20%; right: 20%; animation-delay: 0.5s; }
.star-3 { width: 1.5px; height: 1.5px; top: 35%; left: 25%; animation-delay: 1s; }
.star-4 { width: 2px; height: 2px; top: 15%; right: 35%; animation-delay: 1.5s; }
.star-5 { width: 2.5px; height: 2.5px; top: 50%; left: 10%; animation-delay: 2s; }
.star-6 { width: 1.5px; height: 1.5px; top: 45%; right: 15%; animation-delay: 0.3s; }
.star-7 { width: 2px; height: 2px; top: 60%; left: 80%; animation-delay: 1.2s; }
.star-8 { width: 1px; height: 1px; top: 25%; left: 60%; animation-delay: 2.5s; }
@keyframes starTwinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.5); }
}

.shooting-star {
    position: absolute;
    width: 80px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    top: 15%; right: -80px;
    animation: shoot 6s ease-in infinite;
    animation-delay: 2s;
}
.shooting-star-2 {
    position: absolute;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, rgba(0,212,255,0.8), transparent);
    top: 40%; right: -60px;
    animation: shoot 8s ease-in infinite;
    animation-delay: 5s;
}
@keyframes shoot {
    0% { right: -80px; opacity: 0; }
    5% { opacity: 1; }
    20% { right: 110%; opacity: 0; }
    100% { right: 110%; opacity: 0; }
}

/* ===== HEADER CONTENT ===== */
.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    width: 110px; height: 110px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: logoRingSpin 10s linear infinite;
}
.logo-ring-1 {
    width: 100%; height: 100%;
    border-color: rgba(240,180,41,0.5);
}
.logo-ring-2 {
    width: 85%; height: 85%;
    border-color: rgba(0,212,255,0.4);
    animation-direction: reverse;
    animation-duration: 15s;
}
.logo-ring-3 {
    width: 70%; height: 70%;
    border-color: rgba(124,106,239,0.5);
    animation-duration: 20s;
}
.logo-sacred-geometry {
    position: absolute;
    width: 60%; height: 60%;
    border: 1px solid rgba(240,180,41,0.15);
    transform: rotate(45deg);
}
@keyframes logoRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.6));
    z-index: 2;
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(240,180,41,0.6)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(240,180,41,0.8)); }
}

.main-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--light-bright);
    text-shadow: 0 0 40px rgba(124,106,239,0.4);
    line-height: 1.3;
    margin-bottom: 8px;
}
.title-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    letter-spacing: 6px;
}

.tagline {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--cosmic-cyan);
    letter-spacing: 6px;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.subtitle {
    font-size: 0.72rem;
    color: var(--light-dim);
    max-width: 600px;
    margin: 0 auto 12px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}
.sub-icon { color: var(--cosmic-gold); }

.header-symbols {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(240,180,41,0.5);
    margin-bottom: 8px;
}
.header-symbols span {
    animation: symbolFloat 4s ease-in-out infinite;
}
.header-symbols span:nth-child(odd) { animation-delay: -2s; }
@keyframes symbolFloat {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 1; }
}

.sacred-geometry-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(0,212,255,0.3);
    letter-spacing: 2px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ===== GLASS CARDS ===== */
.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    border-color: var(--glass-border-hover);
}

.highlight-card {
    border-color: rgba(240,180,41,0.25) !important;
    box-shadow: var(--shadow-md), var(--shadow-gold);
}
.highlight-card .card-header span.card-icon {
    filter: drop-shadow(0 0 10px rgba(240,180,41,0.5));
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
}
.card-icon {
    font-size: 1.6rem;
    min-width: 30px;
    text-align: center;
}
.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-bright);
    letter-spacing: 0.5px;
}
.card-content {
    padding: 20px;
}

/* ===== SECTION DECORATORS ===== */
.section-header-deco {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 20px 20px 0;
}
.deco-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}
.deco-gold {
    background: linear-gradient(90deg, transparent, var(--cosmic-gold), transparent) !important;
}
.deco-symbol {
    font-size: 1.5rem;
    color: var(--cosmic-gold);
    filter: drop-shadow(0 0 12px rgba(240,180,41,0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    color: var(--light-bright);
    margin-bottom: 12px;
    padding: 0 20px;
    letter-spacing: 1px;
}
.section-desc {
    text-align: center;
    font-size: 1.05rem;
    color: var(--light-dim);
    padding: 0 20px;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ===== FORM ===== */
.oracle-form {
    padding: 0 20px 30px;
}
.form-group {
    margin-bottom: 28px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cosmic-cyan);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.form-group label i {
    color: var(--cosmic-gold);
    font-size: 1.1rem;
}
.form-group input[type="text"] {
    width: 100%;
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124,106,239,0.3);
    background: rgba(3,3,15,0.7);
    color: var(--light-bright);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
    min-height: 70px;
}
.form-group input[type="text"]:focus {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 25px rgba(0,212,255,0.2);
}
.form-group small {
    display: block;
    font-size: 0.85rem;
    color: var(--light-dim);
    margin-top: 6px;
    opacity: 0.8;
}

/* Date inputs */
.date-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.date-field {
    text-align: center;
}
.date-field input {
    width: 110px;
    padding: 22px 14px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124,106,239,0.3);
    background: rgba(3,3,15,0.7);
    color: var(--light-bright);
    font-family: var(--font-tech);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    transition: all 0.3s;
    outline: none;
    min-height: 70px;
}
.date-field input:focus {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 25px rgba(0,212,255,0.2);
}
.date-field small {
    display: block;
    font-size: 0.8rem;
    color: var(--light-dim);
    margin-top: 6px;
    font-weight: 600;
}
.date-separator {
    color: var(--cosmic-gold);
    font-size: 1rem;
    margin-top: -12px;
}

/* Tradition tags */
.traditions-preview {
    margin: 24px 0;
    text-align: center;
}
.label-small {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--cosmic-gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.tradition-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.t-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(124,106,239,0.08);
    border: 1px solid rgba(124,106,239,0.15);
    font-size: 0.68rem;
    color: var(--light-dim);
    font-weight: 500;
    transition: all 0.3s;
}
.t-tag:hover {
    border-color: var(--cosmic-cyan);
    color: var(--cosmic-cyan);
    background: rgba(0,212,255,0.06);
}
.t-emoji { font-size: 0.8rem; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124,106,239,0.3);
    background: linear-gradient(135deg, rgba(124,106,239,0.2), rgba(139,92,246,0.15));
    color: var(--light-bright);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(240,180,41,0.05));
    opacity: 0;
    transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 30px rgba(0,212,255,0.15), 0 0 60px rgba(124,106,239,0.1);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-icon { font-size: 1.8rem; margin-bottom: 4px; }
.btn-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}
.btn-subtext {
    font-size: 0.7rem;
    color: var(--light-dim);
    margin-top: 2px;
}

.btn-gold {
    border-color: rgba(240,180,41,0.4) !important;
    background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(212,160,23,0.08)) !important;
}
.btn-gold:hover {
    border-color: var(--cosmic-gold) !important;
    box-shadow: 0 0 30px rgba(240,180,41,0.2), 0 0 60px rgba(240,180,41,0.1) !important;
}
.btn-gold .btn-text { color: var(--cosmic-gold); }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(157,151,184,0.2);
    background: transparent;
    color: var(--light-dim);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-secondary:hover {
    border-color: var(--light-dim);
    color: var(--light);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(124,106,239,0.1); }
    50% { box-shadow: 0 0 25px rgba(0,212,255,0.15), 0 0 50px rgba(124,106,239,0.1); }
}

/* ===== LOADING ===== */
.loading-container {
    padding: 30px 20px;
    text-align: center;
}
.cosmic-loader {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 24px;
}
.cosmic-loader .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: ringRotate 3s linear infinite;
}
.ring-1 {
    inset: 0;
    border-top-color: var(--cosmic-cyan);
    border-right-color: rgba(0,212,255,0.3);
}
.ring-2 {
    inset: 10px;
    border-bottom-color: var(--cosmic-gold);
    border-left-color: rgba(240,180,41,0.3);
    animation-direction: reverse !important;
    animation-duration: 2s !important;
}
.ring-3 {
    inset: 20px;
    border-top-color: var(--cosmic-purple);
    border-left-color: rgba(124,58,237,0.3);
    animation-duration: 4s !important;
}
.ring-4 {
    inset: 30px;
    border-bottom-color: var(--cosmic-pink);
    animation-direction: reverse !important;
    animation-duration: 2.5s !important;
}
.cosmic-loader .core {
    position: absolute;
    inset: 35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,180,41,0.15), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cosmic-gold);
    animation: corePulse 2s ease-in-out infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes corePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(240,180,41,0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(240,180,41,0.7)); }
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--cosmic-cyan);
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.loading-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
}
.loading-steps .step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.78rem;
    color: var(--light-dim);
    opacity: 0.4;
    transition: all 0.4s;
}
.loading-steps .step i {
    font-size: 0.8rem;
    color: var(--light-dim);
    transition: color 0.3s;
}
.loading-steps .step.active {
    opacity: 1;
    color: var(--cosmic-cyan);
}
.loading-steps .step.active i { color: var(--cosmic-cyan); }
.loading-steps .step.completed {
    opacity: 0.7;
    color: var(--success);
}
.loading-steps .step.completed i { color: var(--success); }

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(124,106,239,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cosmic-cyan), var(--cosmic-gold));
    border-radius: 4px;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.loading-percent {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--cosmic-gold);
    letter-spacing: 2px;
}

/* ===== RESULTS HEADER ===== */
.results-header {
    position: relative;
    padding: 24px 20px;
    text-align: center;
    overflow: hidden;
}
.results-header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(240,180,41,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
}
.avatar-container {
    position: relative;
    width: 60px; height: 60px;
}
.avatar-glow {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0,212,255,0.3), rgba(240,180,41,0.3), rgba(124,106,239,0.3), rgba(0,212,255,0.3));
    animation: ringRotate 8s linear infinite;
    filter: blur(3px);
}
.avatar-sacred-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(240,180,41,0.2);
    animation: ringRotate 15s linear infinite reverse;
}
.avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gradient-egypt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(240,180,41,0.3);
}

.user-details h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--cosmic-gold);
    letter-spacing: 1px;
}
.result-date {
    font-size: 0.8rem;
    color: var(--light-dim);
}

.soul-code-box {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.15);
}
.soul-label {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    color: var(--cosmic-cyan);
    letter-spacing: 4px;
    margin-bottom: 6px;
}
.soul-code {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cosmic-gold);
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(240,180,41,0.4);
    animation: logoPulse 3s ease-in-out infinite;
}
.soul-sublabel {
    font-size: 0.65rem;
    color: var(--light-dim);
    margin-top: 4px;
}

/* ===== NAVIGATION TABS ===== */
.results-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 14px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.results-nav::-webkit-scrollbar { display: none; }

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    border: 1px solid rgba(124,106,239,0.15);
    background: rgba(10,10,34,0.5);
    color: var(--light-dim);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.nav-tab i { font-size: 0.75rem; }
.nav-tab:hover {
    border-color: var(--cosmic-cyan);
    color: var(--cosmic-cyan);
}
.nav-tab.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(124,106,239,0.12));
    border-color: var(--cosmic-cyan);
    color: var(--cosmic-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.1);
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease;
}
.tab-content.active { display: block; }
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== OVERVIEW GRID ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.overview-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.6);
    border: 1px solid rgba(124,106,239,0.12);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.overview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cosmic-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.overview-card:hover::before { opacity: 1; }
.overview-card:hover {
    border-color: rgba(0,212,255,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}
.overview-card .ov-icon,
.overview-card .overview-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 8px rgba(240,180,41,0.3));
}
.overview-card .ov-title,
.overview-card .overview-title {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    color: var(--cosmic-cyan);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.overview-card .ov-value,
.overview-card .overview-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--light-bright);
    margin-bottom: 2px;
}
.overview-card .ov-sub,
.overview-card .overview-sub {
    font-size: 0.7rem;
    color: var(--light-dim);
}

/* ===== CHISPA DE LUZ MESSAGE ===== */
.chispa-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(240,180,41,0.06), rgba(0,212,255,0.04));
    border: 1px solid rgba(240,180,41,0.15);
    border-left: 3px solid var(--cosmic-gold);
}
.chispa-header {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--cosmic-gold);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.chispa-text {
    font-size: 0.92rem;
    color: var(--light);
    line-height: 1.9;
    text-align: justify;
    text-align-last: center;
    font-style: italic;
}

/* ===== NUMBERS ROW ===== */
.numbers-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.num-circle {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(124,106,239,0.08);
    border: 1px solid rgba(124,106,239,0.2);
    transition: all 0.3s;
}
.num-circle:hover {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
.num-circle .num-value {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cosmic-gold);
}
.num-circle .num-label {
    font-size: 0.5rem;
    color: var(--light-dim);
    letter-spacing: 0.5px;
}

/* ===== NUMEROLOGY TABLE ===== */
.numerology-table .num-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(124,106,239,0.06);
}
.numerology-table .num-row:last-child { border-bottom: none; }
.num-row-label {
    font-size: 0.85rem;
    color: var(--light-dim);
}
.num-row-value {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cosmic-gold);
}
.num-description {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(0,212,255,0.03);
    border-left: 3px solid var(--cosmic-cyan);
}
.num-description p {
    font-size: 0.9rem;
    line-height: 1.9;
    text-align: justify;
}

/* ===== PALMISTRY INVITATION ===== */
.palmistry-invitation-card {
    position: relative;
    text-align: center;
    margin-top: 24px;
    overflow: hidden;
    border-color: rgba(240,180,41,0.2) !important;
}
.invitation-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(240,180,41,0.06), transparent 60%);
    pointer-events: none;
}
.invitation-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--cosmic-gold);
    margin-bottom: 12px;
    padding: 0 16px;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(240,180,41,0.3);
}
.invitation-desc {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.8;
    padding: 0 16px;
    margin-bottom: 16px;
}
.gold-text {
    color: var(--cosmic-gold);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}
.invitation-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 16px;
}
.inv-feat {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(240,180,41,0.06);
    border: 1px solid rgba(240,180,41,0.15);
    font-size: 0.72rem;
    color: var(--cosmic-gold);
    font-weight: 600;
}
.inv-feat i { margin-right: 4px; }
.invitation-buttons {
    padding: 0 16px 24px;
}

/* ===== FINAL ORACLE CARD ===== */
.final-oracle-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(240,180,41,0.3) !important;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(240,180,41,0.1), 0 0 80px rgba(0,212,255,0.05) !important;
}
.final-oracle-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(240,180,41,0.08), transparent 50%),
                radial-gradient(ellipse at 50% 100%, rgba(0,212,255,0.04), transparent 50%);
    pointer-events: none;
}
.final-oracle-title {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    color: var(--cosmic-gold) !important;
    letter-spacing: 3px !important;
    text-shadow: 0 0 30px rgba(240,180,41,0.5);
}

/* ===== PALMISTRY STYLES ===== */
.palmistry-intro-pro {
    text-align: center;
    margin-bottom: 20px;
}
.palm-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(240,180,41,0.06));
    border: 1px solid rgba(240,180,41,0.25);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--cosmic-gold);
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.palm-intro-text {
    font-size: 0.88rem;
    color: var(--light-dim);
    line-height: 1.8;
    margin-bottom: 16px;
}
.palm-dual-explain {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
}
.palm-hand-card {
    flex: 1;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.12);
    text-align: center;
}
.palm-left-card { border-color: rgba(0,212,255,0.2); }
.palm-right-card { border-color: rgba(240,180,41,0.2); }
.palm-hand-icon { font-size: 2rem; margin-bottom: 6px; }
.palm-hand-card h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.palm-hand-card p {
    font-size: 0.68rem;
    color: var(--light-dim);
    line-height: 1.6;
}
.palm-hand-divider {
    display: flex;
    align-items: center;
    color: var(--light-dim);
    font-size: 0.8rem;
}

.palm-features-pro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.palm-features-pro span {
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(124,106,239,0.06);
    border: 1px solid rgba(124,106,239,0.1);
    font-size: 0.6rem;
    color: var(--light-dim);
}
.palm-features-pro span i { margin-right: 3px; color: var(--cosmic-cyan); font-size: 0.55rem; }

/* Palm steps */
.palm-step-section { margin-top: 20px; }
.palm-step-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.palm-step-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.palm-step-active {
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--cosmic-cyan);
    color: var(--cosmic-cyan);
}
.palm-step-pending {
    background: rgba(124,106,239,0.05);
    border: 1px solid rgba(124,106,239,0.15);
    color: var(--light-dim);
}
.palm-step-done {
    background: rgba(52,211,153,0.1);
    border: 1px solid var(--success);
    color: var(--success);
}
.palm-step-num {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0,212,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
}

/* Palm upload area */
.palm-upload-area {
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(124,106,239,0.2);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.palm-upload-area:hover {
    border-color: var(--cosmic-cyan);
    background: rgba(0,212,255,0.02);
}
.palm-upload-emoji { font-size: 3rem; margin-bottom: 8px; }
.palm-upload-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.palm-upload-hint {
    font-size: 0.72rem;
    color: var(--light-dim);
    margin-bottom: 14px;
}

.palm-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-upload-palm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124,106,239,0.2);
    background: rgba(10,10,34,0.6);
    color: var(--light);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-camera { border-color: rgba(0,212,255,0.3); }
.btn-camera:hover { background: rgba(0,212,255,0.08); border-color: var(--cosmic-cyan); color: var(--cosmic-cyan); }
.btn-gallery { border-color: rgba(240,180,41,0.3); }
.btn-gallery:hover { background: rgba(240,180,41,0.08); border-color: var(--cosmic-gold); color: var(--cosmic-gold); }

/* Palm preview */
.palm-preview-card {
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.15);
    text-align: center;
    margin-top: 12px;
}
.palm-preview-label {
    font-size: 0.75rem;
    color: var(--cosmic-cyan);
    font-weight: 600;
    margin-bottom: 8px;
}
.palm-image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.btn-change-photo {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(124,106,239,0.2);
    background: transparent;
    color: var(--light-dim);
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.3s;
}
.btn-change-photo:hover { border-color: var(--light-dim); color: var(--light); }

.btn-palm-next {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.06);
    color: var(--cosmic-cyan);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-palm-next:hover { background: rgba(0,212,255,0.12); box-shadow: 0 0 20px rgba(0,212,255,0.1); }

.palm-link-option {
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.1);
}
.palm-link-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--cosmic-gold);
    cursor: pointer;
}
.palm-link-label input[type="checkbox"] { accent-color: var(--cosmic-gold); }

.btn-analyze-palm-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 16px;
    margin-top: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(240,180,41,0.3);
    background: linear-gradient(135deg, rgba(240,180,41,0.1), rgba(212,160,23,0.06));
    color: var(--cosmic-gold);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-analyze-palm-pro:hover { box-shadow: 0 0 25px rgba(240,180,41,0.15); }
.btn-analyze-palm-pro small { font-size: 0.68rem; color: var(--light-dim); font-weight: 400; }

/* Palm progress */
.palm-progress-container {
    padding: 20px;
    text-align: center;
}
.palm-progress-title {
    font-size: 0.9rem;
    color: var(--cosmic-cyan);
    margin-bottom: 14px;
}
.palm-progress-bar {
    width: 100%; height: 4px;
    background: rgba(124,106,239,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.palm-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--cosmic-cyan), var(--cosmic-gold));
    border-radius: 4px;
    transition: width 0.3s;
}
.palm-progress-percent {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--cosmic-gold);
    margin-bottom: 6px;
}
.palm-progress-step {
    font-size: 0.75rem;
    color: var(--light-dim);
}

/* ===== PALMISTRY RESULT STYLES ===== */
.palm-accuracy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-tech);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.palm-accuracy-medium {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    color: var(--warning);
}
.palm-accuracy-high {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--success);
    box-shadow: 0 0 20px rgba(52,211,153,0.1);
}

/* Hand thumbnails side by side */
.palm-hands-thumbs {
    display: flex;
    gap: 14px;
    margin: 18px 0;
}
.palm-thumb-box {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.6);
    text-align: center;
    border: 1px solid rgba(124,106,239,0.12);
    transition: border-color 0.3s;
}
.palm-thumb-box:hover { border-color: rgba(240,180,41,0.3); }
.palm-thumb-box img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.thumb-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 1px;
}
.left-hand { border-color: rgba(0,212,255,0.2); }
.right-hand { border-color: rgba(240,180,41,0.2); }

/* Palm result overview */
.palm-result-overview {
    padding: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124,106,239,0.08);
    margin-top: 14px;
}

/* Palm line cards */
.palm-line-card {
    padding: 18px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.palm-line-card:hover {
    border-color: rgba(240,180,41,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.palm-line-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.palm-line-emoji { font-size: 2rem; }
.palm-line-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--light-bright);
    letter-spacing: 0.5px;
}
.palm-line-names {
    font-size: 0.7rem;
    color: var(--light-dim);
    font-style: italic;
    margin-top: 2px;
}
.palm-line-location {
    font-size: 0.78rem;
    color: var(--cosmic-cyan);
    margin-bottom: 6px;
    padding: 4px 0;
}
.palm-line-location i { margin-right: 4px; font-size: 0.65rem; }

/* Dual hand reading box */
.palm-line-dual-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}
@media (max-width: 600px) {
    .palm-line-dual-box { grid-template-columns: 1fr; }
    .palm-hands-thumbs { flex-direction: column; }
}
.palm-hand-reading {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
}
.left-reading { border-left: 3px solid rgba(0,212,255,0.4); }
.right-reading { border-left: 3px solid rgba(240,180,41,0.4); }
.reading-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.left-reading .reading-label { color: var(--cosmic-cyan); }
.right-reading .reading-label { color: var(--cosmic-gold); }
.reading-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light-bright);
    margin-bottom: 6px;
}
.reading-meaning {
    font-size: 0.82rem;
    color: var(--light);
    line-height: 1.7;
}

/* Line advice */
.palm-line-advice {
    padding: 10px 14px;
    background: rgba(52,211,153,0.05);
    border-left: 3px solid rgba(52,211,153,0.4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
    color: var(--light);
    line-height: 1.7;
    margin-top: 10px;
}
.palm-line-advice i { color: #fbbf24; margin-right: 6px; }

/* Mount grid */
.palm-mount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.palm-mount-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.palm-mount-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240,180,41,0.25);
}
.palm-mount-emoji { font-size: 2rem; margin-bottom: 6px; }
.palm-mount-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.palm-mount-state {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    margin: 6px 0;
}
.palm-mount-state.prominent {
    background: rgba(52,211,153,0.12);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.25);
}
.palm-mount-state.flat {
    background: rgba(251,191,36,0.1);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.25);
}
.palm-mount-state.overdeveloped {
    background: rgba(248,113,113,0.1);
    color: var(--danger);
    border: 1px solid rgba(248,113,113,0.25);
}
.palm-mount-trait {
    font-size: 0.78rem;
    color: var(--light);
    line-height: 1.6;
    margin-top: 6px;
}

/* Finger grid */
.palm-finger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.palm-finger-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.palm-finger-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,212,255,0.25);
}
.palm-finger-emoji { font-size: 2rem; margin-bottom: 6px; }
.palm-finger-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--light-bright);
    margin-bottom: 2px;
}
.palm-finger-ruler {
    font-size: 0.7rem;
    color: var(--cosmic-cyan);
    margin-bottom: 6px;
}
.palm-finger-ruler i { font-size: 0.6rem; margin-right: 3px; }
.palm-finger-prop {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}
.palm-finger-reading {
    font-size: 0.76rem;
    color: var(--light);
    line-height: 1.6;
}

/* Comparison cards */
.palm-compare-item {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.1);
}
.palm-compare-area {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.palm-compare-area i { margin-right: 6px; }
.palm-compare-finding {
    font-size: 0.88rem;
    color: var(--light-bright);
    font-weight: 600;
    margin-bottom: 6px;
}
.palm-compare-interp {
    font-size: 0.82rem;
    color: var(--light);
    line-height: 1.7;
    margin-bottom: 8px;
}
.palm-compare-evo {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
}
.palm-compare-evo i { margin-right: 4px; }

/* Deep insights */
.palm-deep-card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(240,180,41,0.04));
    border: 1px solid rgba(139,92,246,0.15);
}
.palm-deep-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--cosmic-gold);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.palm-deep-title i { margin-right: 6px; color: var(--secondary); }
.palm-deep-content {
    font-size: 0.85rem;
    color: var(--light);
    line-height: 1.8;
}

/* Palm hand map SVG container */
.palm-hand-map-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 20px;
    background: rgba(10,10,34,0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124,106,239,0.08);
}
.palm-hand-map {
    text-align: center;
    max-width: 280px;
    width: 100%;
}
.palm-hand-map svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(240,180,41,0.15));
}
.palm-hand-map-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--cosmic-gold);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Palm summary stats bar */
.palm-stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    margin: 16px 0;
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.12);
    border-radius: var(--radius-md);
}
.palm-stat-item {
    text-align: center;
    min-width: 80px;
}
.palm-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-tech);
    color: var(--cosmic-gold);
}
.palm-stat-label {
    font-size: 0.68rem;
    color: var(--light-dim);
    margin-top: 2px;
}

/* Palm reset button */
.btn-palm-reset {
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

/* ===== SOUL / ALMA ENHANCED STYLES ===== */
.soul-timeline-container {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}
.soul-timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cosmic-gold), var(--primary), var(--cosmic-purple));
    border-radius: 3px;
}
.soul-timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 24px;
}
.soul-timeline-dot {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cosmic-gold);
    border: 3px solid var(--dark-card);
    box-shadow: 0 0 12px rgba(240,180,41,0.5);
    z-index: 1;
}
.soul-timeline-era {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--cosmic-gold);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.soul-timeline-desc {
    font-size: 0.85rem;
    color: var(--light);
    line-height: 1.7;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(240,180,41,0.2);
}

/* Soul traits radar placeholder */
.soul-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.soul-trait-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(139,92,246,0.05);
    border: 1px solid rgba(139,92,246,0.12);
    text-align: center;
    transition: transform 0.3s;
}
.soul-trait-card:hover { transform: translateY(-3px); }
.soul-trait-icon { font-size: 1.8rem; margin-bottom: 6px; }
.soul-trait-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.soul-trait-desc {
    font-size: 0.76rem;
    color: var(--light-dim);
    line-height: 1.5;
}

/* Soul evolution progress ring */
.soul-evolution-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}
.soul-evolution-ring svg { width: 100%; height: 100%; }
.soul-evolution-ring .ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.soul-evolution-ring .ring-value {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cosmic-gold);
}
.soul-evolution-ring .ring-label {
    font-size: 0.65rem;
    color: var(--light-dim);
}

/* ===== ASTRAL CHART ENHANCED ===== */
.astral-wheel-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 20px;
}
.astral-wheel-container svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.15));
}
.astral-planets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 16px 0;
}
.astral-planets-table thead tr {
    background: rgba(240,180,41,0.08);
    border-bottom: 2px solid rgba(240,180,41,0.25);
}
.astral-planets-table th {
    padding: 10px 8px;
    text-align: left;
    color: var(--cosmic-gold);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.astral-planets-table td {
    padding: 10px 8px;
    color: var(--light);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.astral-planets-table tr:hover td {
    background: rgba(240,180,41,0.03);
}
.astral-houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.astral-house {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    text-align: center;
    transition: border-color 0.3s;
}
.astral-house:hover { border-color: rgba(240,180,41,0.2); }
.astral-house-num {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--cosmic-gold);
    margin-bottom: 4px;
}
.astral-house-sign {
    font-size: 0.88rem;
    color: var(--light-bright);
    font-weight: 600;
}
.astral-aspects-list { margin: 0; }
.astral-aspect-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(124,106,239,0.06);
}
.astral-aspect-symbol {
    font-size: 1.5rem;
    min-width: 36px;
    text-align: center;
}
.astral-aspect-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.astral-aspect-desc {
    font-size: 0.82rem;
    color: var(--light);
    line-height: 1.6;
}
.astral-chart-hero {
    text-align: center;
    padding: 20px 0;
}
.astral-chart-hero.astral-unlocked {
    border-bottom: 1px solid rgba(240,180,41,0.15);
    margin-bottom: 16px;
    padding-bottom: 20px;
}
.astral-locked {
    text-align: center;
    padding: 24px 16px;
}
.astral-locked-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.4));
}

/* Astral element bar chart */
.astral-element-bar {
    display: flex;
    align-items: end;
    gap: 8px;
    justify-content: center;
    height: 120px;
    padding: 12px 0;
    margin: 16px 0;
}
.astral-element-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.astral-element-fill {
    width: 36px;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
    min-height: 8px;
}
.astral-element-label {
    font-size: 0.68rem;
    color: var(--light-dim);
    text-align: center;
}
.astral-element-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--light-bright);
}

/* ===== GNOSTIC STYLES ===== */
.gnostic-hero {
    text-align: center;
    padding: 20px 0;
}
.gnostic-aeon-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.5));
}
.gnostic-aeon-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--cosmic-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(240,180,41,0.3);
}
.gnostic-aeon-title {
    font-size: 0.9rem;
    color: var(--cosmic-cyan);
    font-style: italic;
}
.gnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gnostic-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(124,106,239,0.06);
    border: 1px solid rgba(124,106,239,0.1);
    text-align: center;
}
.gnostic-item-label {
    font-size: 0.68rem;
    color: var(--light-dim);
    margin-bottom: 4px;
}
.gnostic-item-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--light-bright);
}

.gnostic-archon-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(248,113,113,0.04);
    border: 1px solid rgba(248,113,113,0.15);
    margin-bottom: 12px;
}
.gnostic-archon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.gnostic-archon-emoji { font-size: 2rem; }
.gnostic-archon-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--danger);
    letter-spacing: 1px;
}
.gnostic-archon-sphere {
    font-size: 0.75rem;
    color: var(--light-dim);
}
.gnostic-archon-desc {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 8px;
}
.gnostic-archon-lesson {
    font-size: 0.85rem;
    color: var(--light);
    line-height: 1.7;
    padding: 8px 12px;
    background: rgba(248,113,113,0.04);
    border-radius: var(--radius-sm);
}

.gnostic-pistis-box {
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(0,212,255,0.04));
    border: 1px solid rgba(139,92,246,0.2);
}
.gnostic-pistis-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.gnostic-pistis-text {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.9;
    font-style: italic;
}

.gnostic-sacrament-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gnostic-sacrament-item {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    text-align: center;
    transition: all 0.3s;
}
.gnostic-sacrament-item:hover {
    border-color: rgba(0,212,255,0.2);
}
.gnostic-sacrament-emoji { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.gnostic-sacrament-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--light-bright);
    margin-bottom: 4px;
}
.gnostic-sacrament-desc {
    font-size: 0.68rem;
    color: var(--light-dim);
    line-height: 1.6;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 20px;
}
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124,106,239,0.2);
    background: rgba(10,10,34,0.6);
    color: var(--light);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-action:hover {
    border-color: var(--cosmic-cyan);
    color: var(--cosmic-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.1);
}
.btn-action i { font-size: 0.85rem; }

.btn-palm-reset {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border-color: rgba(240,180,41,0.2);
}

/* ===== FOOTER ===== */
.main-footer {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(124,106,239,0.08);
    background: rgba(3,3,15,0.8);
}
.footer-symbols {
    font-size: 1rem;
    color: rgba(240,180,41,0.35);
    letter-spacing: 8px;
    margin-bottom: 12px;
}
.disclaimer {
    font-size: 0.7rem;
    color: var(--light-dim);
    opacity: 0.6;
    max-width: 400px;
    margin: 0 auto 8px;
    line-height: 1.6;
}
.copyright {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    color: var(--light-dim);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.traditions-footer {
    font-size: 0.6rem;
    color: rgba(157,151,184,0.4);
    letter-spacing: 0.3px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.95);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--light);
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FADE IN ===== */
.fade-in {
    animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE — TABLET ===== */
@media (min-width: 600px) {
    .main-title { font-size: 2.4rem; }
    .tagline { font-size: 1rem; letter-spacing: 8px; }
    .overview-grid { grid-template-columns: repeat(3, 1fr); }
    .gnostic-grid { grid-template-columns: repeat(4, 1fr); }
    .gnostic-sacrament-grid { grid-template-columns: repeat(3, 1fr); }
    .date-field input { width: 120px; }
}

/* ===== RESPONSIVE — DESKTOP ===== */
@media (min-width: 900px) {
    .main-title { font-size: 2.8rem; }
    .overview-grid { grid-template-columns: repeat(4, 1fr); }
    .main-content { max-width: 820px; }
    .main-header { padding: 80px 20px 50px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
    background: rgba(124,106,239,0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(124,106,239,0.5); }

/* ===== SELECTION ===== */
::selection {
    background: rgba(0,212,255,0.25);
    color: var(--light-bright);
}

/* ===== SAFETY: Ensure long content doesn't overflow ===== */
.card-content { overflow-wrap: break-word; word-wrap: break-word; }
img { max-width: 100%; height: auto; }

/* ===== NUM-BOX (Numerology circles from UI) ===== */
.num-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(124,106,239,0.08);
    border: 1px solid rgba(124,106,239,0.2);
    transition: all 0.3s;
}
.num-box:hover {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
.num-big {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cosmic-gold);
}
.num-box .num-label {
    font-size: 0.5rem;
    color: var(--light-dim);
    letter-spacing: 0.5px;
}

/* ===== NUMEROLOGY TABLE (generated by UI) ===== */
table.numerology-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
table.numerology-table th {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--cosmic-cyan);
    letter-spacing: 1px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(0,212,255,0.15);
    text-align: left;
}
table.numerology-table td {
    font-size: 0.82rem;
    color: var(--light);
    padding: 8px 6px;
    border-bottom: 1px solid rgba(124,106,239,0.06);
}
table.numerology-table .num-cell {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--cosmic-gold);
    text-align: center;
    font-size: 1rem;
}

/* ===== GENERIC UI ELEMENTS ===== */
.pinnacle-card, .challenge-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
    margin-bottom: 10px;
}
.life-triangle-container {
    text-align: center;
    padding: 20px;
}
.tarot-card-display {
    text-align: center;
    padding: 20px;
}
.tarot-card-emoji {
    font-size: 4rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.4));
    margin-bottom: 10px;
}
.tarot-card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--cosmic-gold);
    letter-spacing: 2px;
}

/* ===== GENERIC LIST AND DETAIL STYLES ===== */
.oracle-detail-list {
    list-style: none;
    padding: 0;
}
.oracle-detail-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(124,106,239,0.06);
    font-size: 0.88rem;
    line-height: 1.7;
}
.oracle-detail-list li:last-child { border-bottom: none; }

.oracle-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 14px;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.15);
    font-size: 0.72rem;
    color: var(--cosmic-cyan);
    margin: 2px;
}

/* ===== PROGRESS BARS (used in lineage/soul evolution) ===== */
.progress-bar-container {
    margin-bottom: 12px;
}
.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--light-dim);
    margin-bottom: 4px;
}
.progress-bar {
    height: 6px;
    background: rgba(124,106,239,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cosmic-cyan), var(--cosmic-gold));
    transition: width 0.8s ease;
}

/* ===== MISC RENDERING STYLES ===== */
.card-content p {
    line-height: 1.8;
}
.card-content strong {
    color: var(--cosmic-gold);
}
.card-content h4 {
    font-family: var(--font-heading);
    color: var(--light-bright);
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.card-content ul {
    padding-left: 18px;
}
.card-content ul li {
    margin-bottom: 4px;
    line-height: 1.7;
    font-size: 0.88rem;
}

/* ============================================
   🌌 v3.0 ADDITIONS
   Toolbar · Day Mode · Portal · Centered Text
   Sumerian · Improved Gnostic
   ============================================ */

/* ===== TOOLBAR FIXED (TOP RIGHT) ===== */
.toolbar-fixed {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(124,106,239,0.25);
    background: rgba(10, 10, 34, 0.85);
    color: var(--light);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.toolbar-btn:hover {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 2px 20px rgba(0,212,255,0.2);
    transform: translateY(-1px);
}
.toolbar-btn i {
    font-size: 0.9rem;
}
.theme-toggle-btn .theme-icon-night i { color: #a78bfa; }
.theme-toggle-btn .theme-icon-day i { color: #fbbf24; }
.theme-label {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.toolbar-lang-wrapper {
    position: relative;
}
.lang-current {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 10, 34, 0.96);
    border: 1px solid rgba(124,106,239,0.25);
    border-radius: var(--radius-md);
    padding: 6px 0;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--light-dim);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
}
.lang-option:hover {
    background: rgba(124,106,239,0.1);
    color: var(--light);
}
.lang-option.active {
    color: var(--cosmic-gold);
    font-weight: 700;
}
.lang-flag {
    font-size: 1.1rem;
}

/* ===== PORTAL LOGO (REPLACES GALAXY IMAGE) ===== */
.portal-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}
.portal-logo-container canvas {
    width: 160px;
    height: 160px;
}
@media (min-width: 600px) {
    .portal-logo-container canvas { width: 200px; height: 200px; }
}

/* ===== CENTERED ORACLE TEXT ===== */
.oracle-centered {
    text-align: center;
}
.oracle-centered p,
.oracle-centered .oracle-text {
    text-align: justify;
    text-align-last: center;
    line-height: 1.9;
    font-size: 0.95rem;
}
.oracle-centered h4 {
    text-align: center;
}


/* ===== SUMERIAN STYLES (legacy) ===== */
.sumerian-hero {
    text-align: center;
    padding: 24px 12px;
    margin-bottom: 20px;
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.12);
    border-radius: var(--radius-lg);
}
.sumerian-god-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 16px rgba(240,180,41,0.4));
}
.sumerian-god-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--cosmic-gold);
    letter-spacing: 3px;
    margin-bottom: 4px;
}
.sumerian-god-title {
    font-size: 0.92rem;
    color: var(--light-dim);
    font-style: italic;
}
.sumerian-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.sumerian-info-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.1);
    text-align: center;
}
.sumerian-info-label {
    font-size: 0.72rem;
    color: var(--light-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sumerian-info-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cosmic-gold);
    margin-top: 4px;
}
.sumerian-me-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(139,92,246,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    margin-bottom: 12px;
}
.sumerian-destiny-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(240,180,41,0.03);
    border: 1px solid rgba(240,180,41,0.12);
    text-align: center;
}
.sumerian-tablet {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(240,180,41,0.06), rgba(139,92,246,0.04));
    border: 1px solid rgba(240,180,41,0.2);
    text-align: center;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--light);
}

/* ===== IMPROVED GNOSTIC COSMOGONY ===== */
.cosmogony-path {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(139,92,246,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    margin-bottom: 12px;
    text-align: center;
}
.cosmogony-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}
.cosmogony-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-light);
    letter-spacing: 1px;
}
.cosmogony-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--light);
    margin-top: 8px;
    text-align: justify;
    text-align-last: center;
}

.soul-structure-item {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(240,180,41,0.03);
    border: 1px solid rgba(240,180,41,0.1);
    margin-bottom: 10px;
    text-align: center;
}


/* ============================================
   🌌 V3 STRUCTURAL STYLES — INTEGRATED
   Views, Toolbar, Main Buttons, Oracle Grid,
   Result Cards (Accordion), Palmistry Pro,
   Enlarged Inputs, All Sections
   ============================================ */

/* ===== APP MAIN ===== */
.app-main { position: relative; min-height: 100vh; }
.app-main.hidden { display: none; }

/* ===== WELCOME PORTAL ===== */
.portal-welcome {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, #0d0d2b 0%, #03030f 60%, #000 100%);
    overflow: hidden;
    transition: opacity 0.4s;
}
.portal-welcome.fade-out { opacity: 0; pointer-events: none; }
.portal-welcome.hidden { display: none; }
.portal-welcome canvas { position: absolute; inset: 0; z-index: 0; }

.portal-content {
    position: relative; z-index: 1;
    text-align: center; padding: 2rem;
    max-width: 700px;
    animation: fadeInView 1s ease-out;
}

.portal-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(124, 106, 239, 0.1);
    border: 1px solid rgba(124, 106, 239, 0.25);
    border-radius: 50px; padding: 8px 24px;
    font-size: 0.85rem; color: var(--primary-light);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.badge-icon { font-size: 1.2rem; }

.portal-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--primary-light);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(124, 106, 239, 0.5);
}

.portal-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: #fff;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #c084fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: portalShimmer 3s ease-in-out infinite;
}
@keyframes portalShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.portal-symbols {
    font-size: 1.3rem; letter-spacing: 8px;
    color: var(--primary-light); margin-bottom: 1.5rem;
    opacity: 0.7;
}

.portal-slogan {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    font-style: italic;
}

.btn-portal {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
    padding: 18px 48px; border: none;
    background: var(--gradient-main);
    color: #fff; font-family: var(--font-tech);
    font-size: 1rem; letter-spacing: 2px;
    border-radius: 60px; cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 40px rgba(124, 106, 239, 0.4);
}
.btn-portal:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(124, 106, 239, 0.6); }
.btn-portal:active { transform: scale(0.98); }

.btn-portal-glow {
    position: absolute; inset: -2px;
    background: var(--gradient-main);
    border-radius: 60px; filter: blur(12px);
    opacity: 0.5; z-index: -1;
    animation: portalBtnPulse 2s ease-in-out infinite;
}
@keyframes portalBtnPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.portal-traditions {
    margin-top: 2rem;
    font-size: 0.7rem; color: rgba(255,255,255,0.35);
    letter-spacing: 1px; line-height: 1.8;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    animation: fadeInView 0.3s;
}
.modal-overlay.hidden { display: none !important; }
.modal-card {
    background: var(--dark-card);
    border: 1px solid rgba(124,106,239,0.3);
    border-radius: var(--radius-xl);
    max-width: 520px; width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
}
.modal-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 1.5rem;
}
.modal-icon { font-size: 2rem; }
.modal-header h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--light-bright); }
.modal-body { margin-bottom: 1.5rem; }
.legal-item {
    margin-bottom: 1rem; padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5);
    border: 1px solid rgba(124,106,239,0.1);
}
.legal-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--light-bright); }
.legal-item p { font-size: 0.85rem; color: var(--light-dim); line-height: 1.6; }

/* ===== GENERIC INPUT CLASS ===== */
.input {
    width: 100%; padding: 14px 18px;
    border: 2px solid rgba(124,106,239,0.2);
    border-radius: var(--radius-md);
    background: rgba(3,3,15,0.5);
    color: var(--light-bright);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.input:focus {
    border-color: var(--cosmic-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.15);
}
.input::placeholder { color: var(--light-dim); }

/* ===== BUTTON UTILITIES ===== */
.btn-full { width: 100%; }
.btn-lg { padding: 18px 32px !important; font-size: 1.05rem !important; }

/* ===== TOOLBAR ===== */
.toolbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; height: 56px;
    background: rgba(3,3,15,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124,106,239,0.15);
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-brand { display: flex; align-items: center; gap: 8px; }
.brand-symbol { font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(240,180,41,0.5)); }
.brand-text {
    font-family: var(--font-tech);
    font-size: 0.75rem; letter-spacing: 2px;
    color: var(--cosmic-gold); font-weight: 700;
    text-shadow: 0 0 12px rgba(240,180,41,0.3);
}
.toolbar .btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(124,106,239,0.2); border-radius: 10px;
    background: transparent; color: var(--light);
    cursor: pointer; font-size: 1rem; transition: all 0.2s;
}
.toolbar .btn-icon:hover {
    background: rgba(124,106,239,0.1);
    border-color: var(--primary); color: var(--primary);
}
.select-lang {
    padding: 6px 8px; border-radius: 10px;
    border: 1px solid rgba(124,106,239,0.2);
    background: rgba(3,3,15,0.6); color: var(--light);
    font-size: 0.8rem; cursor: pointer;
    font-family: var(--font-body);
}
.select-lang option { background: var(--dark); color: var(--light); }

/* ===== COSMIC CANVAS (override) ===== */
.cosmic-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.6;
}

/* ===== VIEWS SYSTEM ===== */
.view {
    display: none;
    position: relative; z-index: 1;
    padding: 72px 0 32px;
    min-height: 100vh;
}
.view.active {
    display: block;
    animation: fadeInView 0.4s ease-out;
}
.view-enter {
    animation: slideInUpView 0.5s ease-out !important;
}
@keyframes fadeInView { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUpView { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== CONTAINER ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HOME HERO ===== */
.home-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}
.hero-logo {
    position: relative;
    width: 110px; height: 110px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center; justify-content: center;
}
.hero-ring {
    position: absolute; border-radius: 50%; border: 1px solid;
    animation: heroRingSpin 10s linear infinite;
}
.hero-ring-1 { width: 100%; height: 100%; border-color: rgba(240,180,41,0.5); }
.hero-ring-2 {
    width: 85%; height: 85%;
    border-color: rgba(0,212,255,0.4);
    animation-direction: reverse; animation-duration: 15s;
}
.hero-ring-3 {
    width: 70%; height: 70%;
    border-color: rgba(124,106,239,0.5);
    animation-duration: 20s;
}
@keyframes heroRingSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.6));
    z-index: 2;
    animation: heroEmojiBreathe 3s ease-in-out infinite;
}
@keyframes heroEmojiBreathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(240,180,41,0.6)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(240,180,41,0.8)); }
}

.home-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--light-bright);
    text-shadow: 0 0 40px rgba(124,106,239,0.4);
    line-height: 1.3;
    margin-bottom: 8px;
}
.home-title-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    letter-spacing: 6px;
}
.home-tagline {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--cosmic-cyan);
    letter-spacing: 6px;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
}
.home-subtitle {
    font-size: 0.9rem;
    color: var(--light-dim);
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.6;
}
.home-symbols {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    color: rgba(124,106,239,0.4);
    margin-top: 8px;
}
.home-symbols span {
    animation: symbolFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

/* ===== ENLARGED FORM INPUTS (XL) ===== */
.form-group-xl label {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 700;
    color: var(--cosmic-cyan);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.form-group-xl label i {
    color: var(--cosmic-gold);
    font-size: 1.15rem;
}
.input-xl {
    width: 100%;
    padding: 28px 30px !important;
    border-radius: var(--radius-lg) !important;
    border: 2px solid rgba(124,106,239,0.3) !important;
    background: rgba(3,3,15,0.7) !important;
    color: var(--light-bright) !important;
    font-family: var(--font-body) !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    outline: none !important;
    min-height: 75px !important;
}
.input-xl:focus {
    border-color: var(--cosmic-cyan) !important;
    box-shadow: 0 0 25px rgba(0,212,255,0.2) !important;
}
.input-xl::placeholder {
    color: var(--light-dim) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}
.input-date-xl {
    font-family: var(--font-body) !important;
    font-size: 1.3rem !important;
    text-align: center !important;
    letter-spacing: 2px !important;
}
.input-date-xl::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
    font-size: 1.3rem;
}
.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--light-dim);
    margin-top: 8px;
    opacity: 0.8;
    font-style: italic;
}

/* ===== 7 MAIN BUTTONS ===== */
.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 2rem;
}
.btn-main {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative; overflow: hidden;
}
.btn-main::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; border-radius: 0 4px 4px 0;
    transition: width 0.3s;
}
.btn-gradient-oracle::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.btn-gradient-all::before { background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); }
.btn-gradient-palm::before { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.btn-gradient-egg::before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.btn-gradient-tarot::before { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.btn-gradient-dream::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.btn-gradient-astral::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.btn-main:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}
.btn-main:hover::before { width: 6px; }
.btn-main:active { transform: translateX(2px) scale(0.99); }

.btn-main-icon { font-size: 2rem; min-width: 48px; text-align: center; }
.btn-main-content { flex: 1; }
.btn-main-content h3 {
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 700; margin-bottom: 2px;
    color: var(--light-bright);
}
.btn-main-content p { font-size: 0.78rem; color: var(--light-dim); }
.btn-arrow { color: var(--light-dim); font-size: 0.8rem; transition: all 0.3s; }
.btn-main:hover .btn-arrow { transform: translateX(4px); color: var(--primary); }

/* ===== ORACLE GRID ===== */
.oracle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.oracle-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
}
.oracle-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.oracle-card-num {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(124,106,239,0.12);
    font-size: 0.75rem; font-weight: 700;
    color: var(--primary);
}
.oracle-card-emoji { font-size: 1.6rem; }
.oracle-card-info h4 { font-size: 0.85rem; font-weight: 600; color: var(--light-bright); }
.oracle-card-info p { font-size: 0.7rem; color: var(--light-dim); }

/* ===== RESULT CARDS (Accordion Style) ===== */
.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.result-card:hover { border-color: rgba(124,106,239,0.35); }

.result-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: rgba(124,106,239,0.06);
    transition: background 0.2s;
}
.result-card-header:hover { background: rgba(124,106,239,0.1); }

.result-card-header-left { display: flex; align-items: center; gap: 12px; }
.result-card-header-left .emoji { font-size: 1.4rem; }
.result-card-header-left h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--light-bright);
    font-family: var(--font-body);
}

.toggle-icon { color: var(--light-dim); transition: transform 0.3s; font-size: 0.8rem; }
.toggle-icon.open { transform: rotate(180deg); }

.result-card-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s;
    padding: 0 20px;
}
.result-card-body.open {
    max-height: 5000px;
    padding: 20px;
}

/* ===== INFO TABLE ===== */
.info-table {
    width: 100%; border-collapse: collapse; margin: 8px 0;
}
.info-table tr { border-bottom: 1px solid rgba(124,106,239,0.1); }
.info-table tr:last-child { border-bottom: none; }
.info-table th, .info-table td {
    padding: 10px 12px; font-size: 0.85rem; vertical-align: top;
}
.info-table th {
    text-align: left; white-space: nowrap;
    font-weight: 600; color: var(--primary-light);
    width: 40%;
}
.info-table td { color: var(--light); }
.info-table td strong { color: var(--primary); }

.result-text { font-size: 0.9rem; line-height: 1.7; color: var(--light-dim); }

.result-tag {
    display: inline-block; padding: 4px 12px;
    background: rgba(124,106,239,0.1);
    border: 1px solid rgba(124,106,239,0.2);
    border-radius: 20px; font-size: 0.75rem;
    color: var(--primary-light); margin: 2px 4px 2px 0;
}

.result-actions {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 1.5rem;
}

/* ===== CARD LOCKED ===== */
.card-locked {
    text-align: center;
    border: 2px dashed rgba(124,106,239,0.3) !important;
    background: var(--glass-bg);
}
.locked-content { padding: 2rem; }
.locked-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--light-dim); }
.locked-content h3 { margin-bottom: 0.5rem; color: var(--light-bright); }
.locked-content p { color: var(--light-dim); margin-bottom: 1.5rem; }

/* ===== CARD CONTENT ===== */
.card-content { padding: 20px; }
.card-intro-text {
    color: var(--light-dim);
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== TAROT SPREAD ===== */
.tarot-spread-selector { margin: 20px 0; }
.tarot-spread-selector h4 {
    text-align: center; color: var(--cosmic-gold);
    font-family: var(--font-heading); margin-bottom: 12px;
    font-size: 0.95rem;
}
.spread-options { display: flex; gap: 10px; }
.spread-option {
    flex: 1; padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(124,106,239,0.2);
    background: rgba(10,10,34,0.5);
    color: var(--light);
    cursor: pointer; text-align: center;
    transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center;
}
.spread-option:hover { border-color: var(--primary); }
.spread-option.active {
    border-color: var(--primary);
    background: rgba(124,106,239,0.1);
    box-shadow: 0 0 15px rgba(124,106,239,0.15);
}
.spread-cards { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.spread-name { font-weight: 700; display: block; margin-top: 4px; font-size: 0.9rem; }
.spread-option small { color: var(--light-dim); margin-top: 2px; font-size: 0.75rem; }

/* ===== EGG INSTRUCTIONS ===== */
.egg-instructions {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(124,106,239,0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124,106,239,0.1);
}
.egg-instructions h4 {
    color: var(--cosmic-cyan);
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.egg-instructions ol {
    color: var(--light-dim);
    font-size: 0.88rem;
    line-height: 2;
    padding-left: 20px;
}

/* ===== UPLOAD ZONE ===== */
.upload-preview-container {
    position: relative;
    margin-top: 12px;
}

/* ===== LOADING OVERLAY (V3 compatible) ===== */
.loading-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(3,3,15,0.95);
    backdrop-filter: blur(20px);
}
.loading-overlay.hidden { display: none; }
.loading-content { text-align: center; max-width: 400px; padding: 2rem; }

/* Loading step text */
.loading-step {
    font-size: 0.85rem; color: var(--light-dim);
    margin-bottom: 1rem; min-height: 1.5em;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 3000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 14px 20px;
    background: rgba(10,10,34,0.95);
    border: 1px solid rgba(124,106,239,0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem; color: var(--light);
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease-out;
    max-width: 350px;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }
.toast-exit { animation: toastOut 0.4s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ===== PALMISTRY PROFESSIONAL SECTION ===== */
.palm-intro-card { padding: 24px; }
.palm-intro-pro { text-align: center; }
.palm-intro-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240,180,41,0.1);
    border: 1px solid rgba(240,180,41,0.3);
    border-radius: 50px; padding: 8px 20px;
    font-family: var(--font-tech);
    font-size: 0.7rem; letter-spacing: 2px;
    color: var(--cosmic-gold);
    margin-bottom: 16px;
}
.palm-intro-text {
    color: var(--light-dim); font-size: 0.92rem;
    line-height: 1.7; margin-bottom: 20px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.palm-dual-explain {
    display: flex; align-items: stretch; gap: 12px;
    margin-bottom: 20px;
}
.palm-hand-card {
    flex: 1; padding: 16px; border-radius: var(--radius-md);
    background: rgba(10,10,34,0.5); border: 1px solid rgba(124,106,239,0.15);
    text-align: center;
    transition: all 0.3s;
}
.palm-hand-card:hover { border-color: rgba(124,106,239,0.3); }
.palm-left-card { border-top: 3px solid rgba(0,212,255,0.4); }
.palm-right-card { border-top: 3px solid rgba(240,180,41,0.4); }
.palm-hand-icon { font-size: 2.2rem; margin-bottom: 8px; }
.palm-hand-card h4 {
    font-family: var(--font-heading); font-size: 0.9rem;
    margin-bottom: 6px; color: var(--light-bright);
}
.palm-hand-card p { font-size: 0.75rem; color: var(--light-dim); line-height: 1.5; }
.palm-hand-divider {
    display: flex; align-items: center; justify-content: center;
    color: var(--light-dim); font-size: 1.2rem;
    min-width: 30px;
}
.palm-features-pro {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.palm-features-pro span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 20px;
    background: rgba(124,106,239,0.06);
    border: 1px solid rgba(124,106,239,0.12);
    font-size: 0.72rem; color: var(--light-dim);
}
.palm-features-pro span i { color: var(--primary); font-size: 0.7rem; }

/* Palm Examples */
.palm-example-card { padding: 20px; }
.palm-example-title {
    text-align: center; font-family: var(--font-heading);
    font-size: 0.95rem; color: var(--cosmic-gold);
    margin-bottom: 16px;
}
.palm-example-title i { margin-right: 6px; }
.palm-example-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 16px;
}
.palm-example-item { text-align: center; }
.palm-example-img {
    width: 100%; max-width: 200px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(124,106,239,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.palm-example-img:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 25px rgba(124,106,239,0.3);
    transform: scale(1.02);
}
.palm-example-label {
    font-size: 0.8rem; color: var(--light-dim);
    margin-top: 8px; font-weight: 600;
}
.palm-example-hints {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding: 12px; background: rgba(34,211,238,0.04);
    border-radius: var(--radius-sm); border: 1px solid rgba(34,211,238,0.1);
}
.palm-example-hints span {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.75rem; color: var(--cosmic-cyan);
}
.palm-example-hints span i { color: var(--success); font-size: 0.7rem; }

/* Palm Capture Cards */
.palm-capture-card {
    padding: 20px; position: relative; text-align: center;
}
.palm-step-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--gradient-main);
    color: #fff; font-family: var(--font-tech);
    font-size: 0.65rem; letter-spacing: 2px;
    padding: 4px 12px; border-radius: 20px;
    font-weight: 700;
}
.palm-capture-title {
    font-family: var(--font-heading);
    font-size: 1.1rem; color: var(--light-bright);
    margin-bottom: 6px; margin-top: 10px;
}
.palm-capture-subtitle {
    font-size: 0.8rem; color: var(--light-dim);
    margin-bottom: 16px;
}

/* Camera Zone */
.camera-zone {
    position: relative; width: 100%;
    aspect-ratio: 3/4; max-height: 400px;
    background: rgba(3,3,15,0.5);
    border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 16px;
    border: 2px dashed rgba(124,106,239,0.2);
}
.camera-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.camera-preview {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius-md);
}
.camera-canvas { position: absolute; inset: 0; }
.hand-guide {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.hand-svg { width: 80%; max-width: 220px; opacity: 0.5; }
.guide-text { font-size: 0.72rem; color: var(--light-dim); margin-top: 8px; }

.camera-controls {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.camera-status {
    font-size: 0.8rem; padding: 8px 12px; text-align: center;
    margin-top: 8px; border-radius: var(--radius-sm);
}
.camera-status.success {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--success);
}

.btn-palm-action {
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-md) !important;
}

.btn-analyze-palm {
    margin-top: 16px;
    font-size: 1.1rem !important;
    padding: 20px !important;
}

.btn-icon-danger {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--danger); border-radius: 50%;
    background: transparent; color: var(--danger);
    cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.btn-icon-danger:hover { background: var(--danger); color: #fff; }

/* Palm Upload Area */
.palm-upload-area {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(124,106,239,0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(124,106,239,0.03);
}
.palm-upload-area:hover {
    border-color: var(--primary);
    background: rgba(124,106,239,0.06);
}
.palm-upload-emoji { font-size: 3rem; margin-bottom: 12px; }
.palm-upload-title { color: var(--light-dim); font-size: 0.9rem; }

.palm-image-preview {
    width: 100%; max-height: 400px; object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124,106,239,0.2);
}
.btn-change-photo {
    display: block; margin: 10px auto 0;
    padding: 8px 16px; border-radius: var(--radius-sm);
    border: 1px solid rgba(157,151,184,0.2);
    background: transparent; color: var(--light-dim);
    cursor: pointer; font-size: 0.82rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.btn-change-photo:hover { border-color: var(--light-dim); color: var(--light); }

/* Palm Line Diagram */
.palm-line-diagram {
    text-align: center;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(3,3,15,0.3);
    border-radius: var(--radius-sm);
}

/* ===== TEXTAREA ===== */
.textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-body);
}

/* ===== FOOTER ===== */
.main-footer {
    text-align: center; padding: 32px 16px;
    border-top: 1px solid rgba(124,106,239,0.08);
    position: relative; z-index: 1;
}
.footer-symbols {
    font-size: 1rem; letter-spacing: 6px;
    color: rgba(124,106,239,0.3); margin-bottom: 12px;
}
.disclaimer {
    font-size: 0.72rem; color: var(--light-dim);
    margin-bottom: 6px; opacity: 0.6;
}
.copyright {
    font-size: 0.68rem; color: var(--light-dim);
    letter-spacing: 1px; opacity: 0.5;
}

/* ===== HIGHLIGHT CARD ===== */
.highlight-card {
    border-color: rgba(240,180,41,0.3) !important;
    background: linear-gradient(135deg, rgba(240,180,41,0.04), rgba(124,106,239,0.04)) !important;
}

/* ===== RESPONSIVE V3 ===== */
@media (max-width: 640px) {
    .palm-dual-explain { flex-direction: column; }
    .palm-hand-divider { transform: rotate(90deg); padding: 6px 0; }
    .palm-example-grid { grid-template-columns: 1fr; gap: 20px; }
    .spread-options { flex-direction: column; }
    .oracle-grid { grid-template-columns: 1fr; }
    .toolbar .brand-text { display: none; }
    .btn-main { padding: 14px 16px; gap: 12px; }
    .btn-main-content h3 { font-size: 0.88rem; }
    .input-xl { padding: 22px 20px !important; font-size: 1.25rem !important; min-height: 65px !important; }
    .toast-container { bottom: 12px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .oracle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
    .oracle-grid { grid-template-columns: repeat(3, 1fr); }
    .container { max-width: 820px; }
}


/* ============================================
   🌞 DAY MODE — ULTRA PREMIUM GOLDEN v4.0
   Warm cream · Deep navy · Gold accents
   Professional elegant palette
   ============================================ */

/* === BASE DAY MODE === */
body.day-mode {
    background: linear-gradient(170deg, #fefcf8 0%, #f9f5ee 30%, #f4efe5 60%, #fefcf8 100%) !important;
    color: #1a1a2e !important;
}
body.day-mode .app-container { background: transparent; }
body.day-mode #cosmicCanvas { opacity: 0.08; }

/* === HEADER === */
body.day-mode .main-header {
    background: linear-gradient(180deg, #1a1a2e 0%, #232347 40%, #2d2d5e 70%, #3a3a70 100%);
}
body.day-mode .main-header .cosmic-bg { opacity: 0.15; }
body.day-mode .main-title { color: #f9f5ee; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
body.day-mode .title-accent {
    background: linear-gradient(90deg, #d4a017, #fcd34d, #d4a017);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.day-mode .tagline { color: #fcd34d; text-shadow: 0 0 12px rgba(212,160,23,0.3); }
body.day-mode .subtitle { color: #e8dcc8; font-weight: 500; }
body.day-mode .header-symbols span { color: rgba(252,211,77,0.4); }
body.day-mode .sacred-geometry-bar span { color: rgba(252,211,77,0.3); }

/* === GLASS CARDS === */
body.day-mode .glass-card {
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(180,160,120,0.2) !important;
    box-shadow: 0 4px 20px rgba(50,40,20,0.06), 0 1px 4px rgba(180,160,120,0.08) !important;
    backdrop-filter: blur(12px);
}
body.day-mode .card-header h3 { color: #1a1a2e !important; font-weight: 700; }
body.day-mode .card-content { color: #2a2a40 !important; }
body.day-mode .card-content p,
body.day-mode .card-content div,
body.day-mode .card-content span,
body.day-mode .card-content td,
body.day-mode .card-content li { color: #2a2a40 !important; }
body.day-mode .card-content strong,
body.day-mode .card-content b { color: #8b6914 !important; }
body.day-mode .card-content h4,
body.day-mode .card-content h3 { color: #1a1a2e !important; }
body.day-mode .card-content small { color: #6b6580 !important; }

/* === FORM === */
body.day-mode .section-title { color: #1a1a2e; }
body.day-mode .section-desc { color: #3a3a55; }
body.day-mode .section-desc strong { color: #8b6914; }
body.day-mode .form-group label { color: #1a1a2e; font-weight: 600; }
body.day-mode .form-group input {
    background: #fff;
    border: 2px solid rgba(180,160,120,0.3);
    color: #1a1a2e;
}
body.day-mode .form-group input:focus {
    border-color: #c4a035;
    box-shadow: 0 0 0 3px rgba(196,160,53,0.15);
}
body.day-mode .form-group input::placeholder { color: #a09880; }
body.day-mode .form-group small { color: #7a7060; }
body.day-mode .date-separator { color: #c4a035; font-weight: 700; }
body.day-mode .t-tag {
    background: rgba(180,160,120,0.08);
    border: 1px solid rgba(180,160,120,0.25);
    color: #5a4a20;
}

/* === PRIMARY BUTTON === */
body.day-mode .btn-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 50%, #3a3a70 100%);
    box-shadow: 0 6px 24px rgba(26,26,46,0.3), 0 2px 8px rgba(26,26,46,0.15);
    border: 1px solid rgba(212,160,23,0.3);
}
body.day-mode .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(26,26,46,0.4);
    border-color: rgba(212,160,23,0.5);
}
body.day-mode .btn-primary .btn-text { color: #fcd34d !important; text-shadow: 0 0 15px rgba(252,211,77,0.3) !important; }
body.day-mode .btn-primary .btn-subtext { color: rgba(255,255,255,0.7) !important; }
body.day-mode .btn-primary .btn-icon { color: #fcd34d !important; }

/* === NAVIGATION TABS === */
body.day-mode .results-nav {
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(180,160,120,0.15);
    box-shadow: 0 2px 12px rgba(50,40,20,0.04);
}
body.day-mode .nav-tab { color: #6b6580; font-weight: 500; }
body.day-mode .nav-tab:hover { background: rgba(180,160,120,0.06); color: #3a3a55; }
body.day-mode .nav-tab.active {
    background: linear-gradient(135deg, rgba(26,26,46,0.08), rgba(180,160,120,0.06));
    color: #1a1a2e;
    border-color: #c4a035;
    font-weight: 700;
}

/* === OVERVIEW CARDS === */
body.day-mode .overview-card {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(180,160,120,0.15) !important;
    box-shadow: 0 2px 8px rgba(50,40,20,0.04);
}
body.day-mode .overview-card:hover {
    border-color: rgba(196,160,53,0.4) !important;
    box-shadow: 0 4px 20px rgba(196,160,53,0.1);
    transform: translateY(-2px);
}
body.day-mode .overview-title { color: #7a6a40 !important; font-weight: 600; }
body.day-mode .overview-value { color: #1a1a2e !important; font-weight: 700; }
body.day-mode .overview-sub { color: #8b6914 !important; }

/* === SOUL CODE === */
body.day-mode .soul-code-box {
    background: linear-gradient(135deg, rgba(196,160,53,0.06), rgba(26,26,46,0.04));
    border: 1px solid rgba(196,160,53,0.25);
}
body.day-mode .soul-code { color: #8b6914; text-shadow: none; font-weight: 700; }
body.day-mode .soul-label { color: #5a4a20; font-weight: 600; }

/* === RESULTS HEADER === */
body.day-mode .results-header {
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(180,160,120,0.15);
}
body.day-mode #resultName { color: #1a1a2e; font-weight: 700; }
body.day-mode .result-date { color: #6b6580; }

/* === ACTION BUTTONS === */
body.day-mode .btn-action {
    background: #fff;
    border: 1px solid rgba(180,160,120,0.25);
    color: #3a3a55;
}
body.day-mode .btn-action:hover {
    border-color: #c4a035;
    background: rgba(196,160,53,0.04);
    color: #1a1a2e;
    box-shadow: 0 2px 12px rgba(196,160,53,0.1);
}

/* === TOOLBAR === */
body.day-mode .toolbar-btn {
    background: rgba(26,26,46,0.9);
    border: 1px solid rgba(212,160,23,0.25);
    color: #fcd34d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
body.day-mode .toolbar-btn:hover {
    border-color: rgba(212,160,23,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
body.day-mode .lang-dropdown {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(180,160,120,0.25);
    box-shadow: 0 4px 20px rgba(50,40,20,0.1);
}
body.day-mode .lang-option { color: #3a3a55; }
body.day-mode .lang-option:hover { background: rgba(196,160,53,0.06); }
body.day-mode .lang-option.active { color: #8b6914; font-weight: 600; background: rgba(196,160,53,0.08); }

/* === FOOTER === */
body.day-mode .main-footer {
    background: linear-gradient(180deg, rgba(254,252,248,0), #f0e8d5);
    border-top: 1px solid rgba(180,160,120,0.15);
}
body.day-mode .footer-symbols { color: rgba(139,105,20,0.3); }
body.day-mode .disclaimer { color: #5a4a20; font-weight: 500; }
body.day-mode .copyright { color: #3a3a55; }
body.day-mode .traditions-footer { color: rgba(90,74,32,0.5); }

/* === TOAST === */
body.day-mode .toast {
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(196,160,53,0.25);
    color: #1a1a2e;
    box-shadow: 0 4px 24px rgba(50,40,20,0.12);
}

/* === LOADING === */
body.day-mode .loading-title { color: #1a1a2e !important; font-weight: 600; }
body.day-mode .loading-fill {
    background: linear-gradient(90deg, #c4a035, #d4a017, #e0b82a) !important;
}
body.day-mode .step { color: #3a3a55 !important; }
body.day-mode .step.active { color: #8b6914 !important; font-weight: 600; }
body.day-mode .step.completed { color: #059669 !important; }
body.day-mode .loading-percent { color: #8b6914 !important; font-weight: 700; }

/* === HIGHLIGHT CARDS === */
body.day-mode .highlight-card {
    border-color: rgba(196,160,53,0.3) !important;
    box-shadow: 0 4px 24px rgba(196,160,53,0.08);
}
body.day-mode .chispa-message {
    background: rgba(196,160,53,0.04) !important;
    border: 1px solid rgba(196,160,53,0.2) !important;
}
body.day-mode .chispa-header { color: #8b6914 !important; }
body.day-mode .deco-line { background: linear-gradient(90deg, transparent, #c4a035, transparent); }
body.day-mode .deco-symbol { color: #c4a035; }

/* === NUMEROLOGY === */
body.day-mode .num-box {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(180,160,120,0.25) !important;
}
body.day-mode .num-big { color: #8b6914 !important; }
body.day-mode .num-label { color: #5a4a20 !important; }
body.day-mode .num-cell { color: #8b6914 !important; font-weight: 700; }
body.day-mode .numerology-table { border-color: rgba(180,160,120,0.15) !important; }
body.day-mode .numerology-table th {
    background: rgba(26,26,46,0.05) !important;
    color: #3a3a55 !important;
}
body.day-mode .numerology-table td {
    border-color: rgba(180,160,120,0.1) !important;
    color: #2a2a40 !important;
}
body.day-mode .num-description {
    background: rgba(196,160,53,0.04) !important;
    border-color: rgba(196,160,53,0.2) !important;
    color: #2a2a40 !important;
}
body.day-mode .pinnacle-box {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
}
body.day-mode .pinnacle-num { color: #8b6914 !important; }

/* === ORACLE-SPECIFIC DAY === */
body.day-mode .oracle-block,
body.day-mode .oracle-grid-item,
body.day-mode .astro-item,
body.day-mode .gnostic-item,
body.day-mode .sumerian-info-item {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .oracle-block-accent,
body.day-mode .oracle-block-info {
    background: rgba(196,160,53,0.04) !important;
    border-left-color: #c4a035 !important;
}
body.day-mode .oracle-hero,
body.day-mode .sign-hero,
body.day-mode .sephira-hero,
body.day-mode .maya-hero,
body.day-mode .chinese-hero,
body.day-mode .rune-hero,
body.day-mode .iching-hero,
body.day-mode .gnostic-hero,
body.day-mode .sumerian-hero {
    background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(196,160,53,0.06)) !important;
    border-color: rgba(196,160,53,0.2) !important;
}
body.day-mode .astro-item-value,
body.day-mode .oracle-grid-value,
body.day-mode .gnostic-item-value,
body.day-mode .sumerian-info-value { color: #8b6914 !important; }
body.day-mode .keyword-tag {
    background: rgba(26,26,46,0.05) !important;
    border-color: rgba(180,160,120,0.2) !important;
    color: #3a3a55 !important;
}
body.day-mode .code-number { color: #8b6914 !important; background: rgba(196,160,53,0.06) !important; border-color: rgba(196,160,53,0.2) !important; }
body.day-mode .code-purpose { color: #8b6914 !important; }
body.day-mode .code-item { background: rgba(255,255,255,0.8) !important; border-color: rgba(180,160,120,0.15) !important; }
body.day-mode .gnostic-archon-card,
body.day-mode .gnostic-sacrament-item {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .gnostic-pistis-box {
    background: rgba(196,160,53,0.03) !important;
    border-color: rgba(196,160,53,0.2) !important;
}
body.day-mode .sumerian-god-name { color: #8b6914; }
body.day-mode .sumerian-tablet {
    background: linear-gradient(135deg, rgba(196,160,53,0.05), rgba(26,26,46,0.03));
    border-color: rgba(196,160,53,0.2);
    color: #2a2a40;
}
body.day-mode .karma-box {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
    border-left-color: #c4a035 !important;
}
body.day-mode .karma-box h4 { color: #8b6914 !important; }
body.day-mode .past-life-item,
body.day-mode .lineage-item,
body.day-mode .gift-item,
body.day-mode .bardo-item,
body.day-mode .detailed-life,
body.day-mode .inherited-gift-item,
body.day-mode .karma-pending-item,
body.day-mode .compat-item,
body.day-mode .cosmogony-path,
body.day-mode .soul-structure-item {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .akashic-box,
body.day-mode .delphi-maxim-card {
    background: rgba(196,160,53,0.04) !important;
    border-color: rgba(196,160,53,0.2) !important;
}
body.day-mode .activation-number { color: #8b6914 !important; text-shadow: none !important; }
body.day-mode .soul-age-number { color: #8b6914 !important; }
body.day-mode .soul-stage-badge { background: rgba(196,160,53,0.1) !important; border-color: rgba(196,160,53,0.3) !important; color: #8b6914 !important; }
body.day-mode .palmistry-invitation-card {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(180,160,120,0.2) !important;
}

/* === DAY MODE: COMPREHENSIVE TEXT FIX === */
/* Ensure ALL text is readable on white backgrounds */
body.day-mode,
body.day-mode * {
    --cosmic-gold: #8b6914;
    --light: #2a2a40;
    --light-dim: #4a4a65;
    --accent: #8b6914;
    --accent-soft: rgba(139,105,20,0.12);
}

/* Force all inline-styled text to be dark */
body.day-mode [style*="color:var(--light)"] { color: #2a2a40 !important; }
body.day-mode [style*="color:var(--light-dim)"] { color: #4a4a65 !important; }
body.day-mode [style*="color:var(--accent)"] { color: #8b6914 !important; }
body.day-mode [style*="color:var(--cosmic-gold)"] { color: #8b6914 !important; }
body.day-mode [style*="color: var(--light)"] { color: #2a2a40 !important; }
body.day-mode [style*="color: var(--light-dim)"] { color: #4a4a65 !important; }
body.day-mode [style*="color: var(--accent)"] { color: #8b6914 !important; }

/* All card dynamic content - DEEP fix */
body.day-mode .card-content * { color: #2a2a40; }
body.day-mode .card-content strong { color: #6b4f00 !important; }
body.day-mode .card-content em { color: #4a4a65; }
body.day-mode .card-content h2,
body.day-mode .card-content h3,
body.day-mode .card-content h4,
body.day-mode .card-content h5 { color: #1a1a2e !important; }

/* Tarot hero/cards */
body.day-mode .tarot-hero,
body.day-mode .tarot-card-display { 
    background: linear-gradient(135deg, #f8f4e8, #f0ead8) !important;
    border-color: rgba(196,160,53,0.25) !important;
}
body.day-mode .tarot-card-name { color: #1a1a2e !important; }
body.day-mode .tarot-meaning { color: #2a2a40 !important; }

/* Year tarot cross */
body.day-mode .year-cross-card { 
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
}

/* Compatibility items */
body.day-mode .compat-item { color: #2a2a40 !important; }
body.day-mode .compat-item h4 { color: #1a1a2e !important; }
body.day-mode .compat-item p { color: #4a4a65 !important; }

/* Karma/Dharma */
body.day-mode .karma-box p,
body.day-mode .karma-box div { color: #2a2a40 !important; }
body.day-mode .dharma-item { 
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .dharma-item * { color: #2a2a40 !important; }
body.day-mode .dharma-item strong { color: #6b4f00 !important; }

/* Delphi oracle */
body.day-mode .delphi-hero { 
    background: linear-gradient(135deg, #f8f4e8, #f0ead8) !important;
    border-color: rgba(196,160,53,0.25) !important;
}
body.day-mode .delphi-hero * { color: #2a2a40 !important; }
body.day-mode .delphi-hero strong { color: #6b4f00 !important; }
body.day-mode .delphi-maxim-card * { color: #2a2a40 !important; }

/* Buddha oracle */
body.day-mode .buddha-hero,
body.day-mode .bardo-hero {
    background: linear-gradient(135deg, #f8f4e8, #f0ead8) !important;
    border-color: rgba(196,160,53,0.25) !important;
}
body.day-mode .buddha-hero * { color: #2a2a40 !important; }
body.day-mode .bardo-item * { color: #2a2a40 !important; }
body.day-mode .bardo-item h4 { color: #1a1a2e !important; }

/* Tikun */
body.day-mode .tikun-hero,
body.day-mode .tikun-exercise-item {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .tikun-hero * { color: #2a2a40 !important; }
body.day-mode .tikun-hero strong { color: #6b4f00 !important; }

/* Astral chart */
body.day-mode .astral-chart-hero,
body.day-mode .astral-house-item,
body.day-mode .astral-aspect-item {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .astral-chart-hero * { color: #2a2a40 !important; }
body.day-mode .astral-chart-hero strong { color: #6b4f00 !important; }

/* Progress bars in day mode */
body.day-mode .progress-bar { background: rgba(180,160,120,0.15) !important; }
body.day-mode .progress-fill { background: linear-gradient(90deg, #c4a035, #d4a017) !important; }

/* Invitation card text */
body.day-mode .invitation-title { color: #1a1a2e !important; }
body.day-mode .invitation-desc { color: #2a2a40 !important; }
body.day-mode .invitation-desc strong { color: #6b4f00 !important; }
body.day-mode .inv-feat { color: #4a4a65 !important; }
body.day-mode .gold-text { color: #8b6914 !important; -webkit-text-fill-color: #8b6914 !important; }

/* Fix any dynamically generated styled elements */
body.day-mode div[style*="background:linear-gradient"],
body.day-mode div[style*="background: linear-gradient"] { color: #2a2a40 !important; }
body.day-mode div[style*="border-radius"] p,
body.day-mode div[style*="border-radius"] span,
body.day-mode div[style*="border-radius"] div { color: inherit; }

/* Large emoji/numbers stay visible */
body.day-mode .card-content [style*="font-size:3"],
body.day-mode .card-content [style*="font-size:4"],
body.day-mode .card-content [style*="font-size:5"],
body.day-mode .card-content [style*="font-size: 3"],
body.day-mode .card-content [style*="font-size: 4"],
body.day-mode .card-content [style*="font-size: 5"] { color: #1a1a2e !important; }

/* Badge/tag elements */
body.day-mode .badge,
body.day-mode [class*="badge"] { 
    background: rgba(196,160,53,0.1) !important;
    color: #6b4f00 !important;
    border-color: rgba(196,160,53,0.3) !important;
}

/* Palmistry in day */
body.day-mode .palm-intro-badge {
    background: rgba(196,160,53,0.1) !important;
    color: #6b4f00 !important;
}
body.day-mode .palm-hand-card {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
}
body.day-mode .palm-hand-card * { color: #2a2a40 !important; }

/* Legal modal in day */
body.day-mode .legal-modal-overlay { background: rgba(255,252,248,0.85) !important; }
body.day-mode .legal-modal {
    background: rgba(255,255,255,0.98) !important;
    border-color: rgba(180,160,120,0.2) !important;
    box-shadow: 0 8px 40px rgba(50,40,20,0.15) !important;
}
body.day-mode .legal-modal * { color: #2a2a40 !important; }
body.day-mode .legal-modal h3,
body.day-mode .legal-modal h4 { color: #1a1a2e !important; }
body.day-mode .legal-modal-accept {
    background: linear-gradient(135deg, #1a1a2e, #2d2d5e) !important;
    color: #fcd34d !important;
}

/* Inline background fixes for dynamically generated elements */
body.day-mode [style*="background:rgba(255,255,255,0.05)"],
body.day-mode [style*="background: rgba(255,255,255,0.05)"],
body.day-mode [style*="background:rgba(0,0,0,0.2)"],
body.day-mode [style*="background: rgba(0,0,0,0.2)"],
body.day-mode [style*="background:rgba(255,255,255,0.03)"],
body.day-mode [style*="background:rgba(255,255,255,0.08)"] {
    background: rgba(245,240,230,0.6) !important;
    border-color: rgba(180,160,120,0.15) !important;
}

/* Astrology items in day */
body.day-mode .astro-item-label { color: #6b6580 !important; }

/* Buddha teachings */  
body.day-mode .teaching-card,
body.day-mode .noble-truth-card { 
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .teaching-card *,
body.day-mode .noble-truth-card * { color: #2a2a40 !important; }

/* Timeline/evolution */
body.day-mode .timeline-item,
body.day-mode .evolution-card {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .timeline-item *,
body.day-mode .evolution-card * { color: #2a2a40 !important; }

/* Ensure sub-labels readable */
body.day-mode .soul-sublabel { color: #6b6580 !important; }
body.day-mode .label-small { color: #5a4a20 !important; }
body.day-mode .traditions-preview { color: #5a4a20 !important; }

/* === DAY MODE: V3 STRUCTURAL ELEMENTS === */
body.day-mode .toolbar {
    background: rgba(255,252,248,0.9) !important;
    border-bottom: 1px solid rgba(180,160,120,0.2) !important;
}
body.day-mode .brand-text { color: #8b6914 !important; text-shadow: none !important; }
body.day-mode .brand-symbol { filter: none !important; }
body.day-mode .toolbar .btn-icon {
    background: rgba(26,26,46,0.9) !important;
    border: 1px solid rgba(212,160,23,0.25) !important;
    color: #fcd34d !important;
}
body.day-mode .toolbar .btn-icon:hover {
    border-color: rgba(212,160,23,0.5) !important;
}
body.day-mode .select-lang {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
    color: #2a2a40 !important;
}
body.day-mode .btn-main {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.15) !important;
    box-shadow: 0 2px 8px rgba(50,40,20,0.06) !important;
}
body.day-mode .btn-main:hover {
    border-color: rgba(196,160,53,0.4) !important;
    box-shadow: 0 4px 16px rgba(50,40,20,0.1) !important;
}
body.day-mode .btn-main-content h3 { color: #1a1a2e !important; }
body.day-mode .btn-main-content p { color: #4a4a65 !important; }
body.day-mode .btn-arrow { color: #a09880 !important; }
body.day-mode .btn-main:hover .btn-arrow { color: #8b6914 !important; }

body.day-mode .oracle-card {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .oracle-card:hover {
    border-color: rgba(196,160,53,0.4) !important;
}
body.day-mode .oracle-card-num {
    background: rgba(196,160,53,0.1) !important;
    color: #8b6914 !important;
}
body.day-mode .oracle-card-info h4 { color: #1a1a2e !important; }
body.day-mode .oracle-card-info p { color: #6b6580 !important; }

body.day-mode .result-card {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(180,160,120,0.15) !important;
}
body.day-mode .result-card-header {
    background: rgba(196,160,53,0.05) !important;
}
body.day-mode .result-card-header:hover {
    background: rgba(196,160,53,0.1) !important;
}
body.day-mode .result-card-header-left h3 { color: #1a1a2e !important; }
body.day-mode .toggle-icon { color: #a09880 !important; }

body.day-mode .result-card-body { border-top: 1px solid rgba(180,160,120,0.1); }
body.day-mode .info-table tr { border-bottom: 1px solid rgba(180,160,120,0.1) !important; }
body.day-mode .info-table th { color: #8b6914 !important; }
body.day-mode .info-table td { color: #2a2a40 !important; }
body.day-mode .info-table td strong { color: #6b4f00 !important; }
body.day-mode .result-text { color: #4a4a65 !important; }
body.day-mode .result-tag {
    background: rgba(196,160,53,0.08) !important;
    border-color: rgba(196,160,53,0.2) !important;
    color: #8b6914 !important;
}

body.day-mode .card-locked {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(180,160,120,0.2) !important;
}
body.day-mode .locked-content h3 { color: #1a1a2e !important; }
body.day-mode .locked-content p { color: #4a4a65 !important; }

body.day-mode .input-xl {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.25) !important;
    color: #1a1a2e !important;
}
body.day-mode .input-xl::placeholder { color: #a09880 !important; }
body.day-mode .input-xl:focus { border-color: #c4a035 !important; box-shadow: 0 0 15px rgba(196,160,53,0.15) !important; }
body.day-mode .form-hint { color: #6b6580 !important; }

body.day-mode .home-title { color: #1a1a2e !important; -webkit-text-fill-color: #1a1a2e !important; text-shadow: none !important; }
body.day-mode .home-title-accent {
    background: linear-gradient(90deg, #c4a035, #e0b82a) !important;
    -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
}
body.day-mode .home-tagline { color: #8b6914 !important; text-shadow: none !important; }
body.day-mode .home-subtitle { color: #4a4a65 !important; }
body.day-mode .home-symbols span { color: rgba(196,160,53,0.4) !important; }

body.day-mode .spread-option {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
    color: #2a2a40 !important;
}
body.day-mode .spread-option.active {
    border-color: #c4a035 !important;
    background: rgba(196,160,53,0.08) !important;
}
body.day-mode .spread-option small { color: #6b6580 !important; }

body.day-mode .card-intro-text { color: #4a4a65 !important; }

body.day-mode .palm-example-hints {
    background: rgba(196,160,53,0.04) !important;
    border-color: rgba(196,160,53,0.1) !important;
}
body.day-mode .palm-example-hints span { color: #5a4a20 !important; }
body.day-mode .palm-capture-subtitle { color: #6b6580 !important; }
body.day-mode .palm-capture-title { color: #1a1a2e !important; }

body.day-mode .toast {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(180,160,120,0.2) !important;
    color: #2a2a40 !important;
}
body.day-mode .footer-symbols { color: rgba(196,160,53,0.3) !important; }
body.day-mode .disclaimer { color: #6b6580 !important; }
body.day-mode .copyright { color: #a09880 !important; }

body.day-mode .btn-action {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(180,160,120,0.2) !important;
    color: #2a2a40 !important;
}
body.day-mode .btn-action:hover {
    border-color: rgba(196,160,53,0.4) !important;
}

/* === DAY SCROLLBAR === */
body.day-mode::-webkit-scrollbar-track { background: #faf8f2; }
body.day-mode::-webkit-scrollbar-thumb { background: rgba(196,160,53,0.3); }
body.day-mode::-webkit-scrollbar-thumb:hover { background: rgba(196,160,53,0.5); }

/* === DAY LEGAL === */
body.day-mode .legal-footer-btn { color: #8b6914; border-color: rgba(196,160,53,0.3); }
body.day-mode .legal-footer-btn:hover { background: rgba(196,160,53,0.06); color: #5a4a20; }

/* ============================================
   📜 LEGAL MODAL STYLES
   ============================================ */
.legal-link-footer {
    margin: 12px 0;
}
.legal-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid rgba(240,180,41,0.3);
    border-radius: 30px;
    color: var(--cosmic-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}
.legal-footer-btn:hover {
    background: rgba(240,180,41,0.08);
    border-color: var(--cosmic-gold);
}
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}
.legal-modal-overlay.hidden {
    display: none !important;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.legal-modal {
    background: var(--dark-card, #0a0a22);
    border: 1px solid rgba(240,180,41,0.2);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(240,180,41,0.05);
    animation: slideUpModal 0.4s ease;
}
@keyframes slideUpModal {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
body.day-mode .legal-modal {
    background: rgba(255,255,255,0.98);
    border-color: rgba(180,160,120,0.25);
    box-shadow: 0 20px 60px rgba(50,40,20,0.15);
}
.legal-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--light-dim, #999);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}
.legal-modal-close:hover { color: var(--cosmic-gold); }
body.day-mode .legal-modal-close { color: #a09880; }
body.day-mode .legal-modal-close:hover { color: #8b6914; }
.legal-modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
}
.legal-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(240,180,41,0.03);
    border: 1px solid rgba(240,180,41,0.08);
    border-radius: 10px;
    border-left: 3px solid var(--cosmic-gold);
}
body.day-mode .legal-section {
    background: rgba(196,160,53,0.03);
    border-color: rgba(180,160,120,0.15);
    border-left-color: #c4a035;
}
.legal-section h3 {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1rem;
    color: var(--cosmic-gold);
    margin-bottom: 8px;
}
body.day-mode .legal-section h3 { color: #5a4a20; }
.legal-section p {
    color: var(--light-dim, #bbb);
    margin: 0;
}
body.day-mode .legal-section p { color: #2a2a40; }
.legal-section ul {
    padding-left: 16px;
    margin: 8px 0;
}
.legal-section li {
    color: var(--light-dim, #bbb);
    margin-bottom: 8px;
    line-height: 1.7;
}
body.day-mode .legal-section li { color: #2a2a40; }
.legal-modal-accept {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--cosmic-gold), #d4940a);
    color: #0a0a1a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading, 'Cinzel', serif);
    letter-spacing: 1px;
}
.legal-modal-accept:hover {
    box-shadow: 0 4px 20px rgba(240,180,41,0.4);
    transform: translateY(-1px);
}
body.day-mode .legal-modal-accept {
    background: linear-gradient(135deg, #1a1a2e, #2d2d5e);
    color: #fcd34d;
}

/* ============================================
   🌐 LANGUAGE LABEL STYLES
   ============================================ */
.lang-label-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-right: 2px;
}

/* ============================================
   📱 MOBILE RESPONSIVE — ENHANCED v3.0
   Texto más grande · Mejor alineación · Compacto
   ============================================ */

/* Base font size increase for mobile readability */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    /* Form Section */
    .section-title {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    .section-desc {
        font-size: 1rem !important;
        line-height: 1.7;
    }
    .form-group label {
        font-size: 1rem !important;
    }
    .form-group input {
        font-size: 1rem !important;
        padding: 14px 16px !important;
    }
    .form-group small {
        font-size: 0.85rem !important;
    }
    .btn-primary .btn-text {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
    .btn-primary .btn-subtext {
        font-size: 0.88rem !important;
    }
    
    /* Oracle Content — Bigger text */
    .card-content {
        font-size: 1.08rem !important;
        line-height: 1.9 !important;
    }
    .card-content p,
    .card-content div:not(.num-box):not(.pinnacle-box):not(.overview-card),
    .card-content span,
    .card-content li {
        font-size: 1.08rem !important;
        line-height: 1.9 !important;
    }
    .card-content small {
        font-size: 0.95rem !important;
    }
    .card-content h4 {
        font-size: 1.15rem !important;
    }
    .card-header h3 {
        font-size: 1.2rem !important;
    }
    
    /* Oracle text alignment fix */
    .oracle-centered p,
    .oracle-centered .oracle-text {
        font-size: 1rem !important;
        line-height: 1.85 !important;
        text-align: justify;
        text-align-last: center;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Numerology Table Mobile */
    .numerology-table {
        font-size: 0.92rem !important;
    }
    .numerology-table th,
    .numerology-table td {
        padding: 10px 8px !important;
        font-size: 0.92rem !important;
    }
    .num-description {
        font-size: 0.95rem !important;
        padding: 14px !important;
    }
    .num-big {
        font-size: 2.2rem !important;
    }
    .num-label {
        font-size: 0.85rem !important;
    }
    
    /* Pinnacles Mobile */
    .pinnacle-row {
        gap: 8px;
        flex-wrap: wrap;
    }
    .pinnacle-box {
        min-width: calc(50% - 8px);
        flex: 1 1 calc(50% - 8px);
    }
    .pinnacle-num {
        font-size: 1.5rem !important;
    }
    .pinnacle-label {
        font-size: 0.85rem !important;
    }
    
    /* Overview Grid Mobile */
    .overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .overview-card {
        padding: 14px 10px !important;
    }
    .overview-icon {
        font-size: 1.6rem !important;
    }
    .overview-title {
        font-size: 0.78rem !important;
    }
    .overview-value {
        font-size: 1rem !important;
    }
    .overview-sub {
        font-size: 0.75rem !important;
    }
    
    /* Tabs Mobile */
    .nav-tab {
        font-size: 0.8rem !important;
        padding: 8px 14px !important;
    }
    .nav-tab span {
        font-size: 0.8rem !important;
    }
    
    /* Results Header Mobile */
    #resultName {
        font-size: 1.4rem !important;
    }
    .result-date {
        font-size: 0.9rem !important;
    }
    .soul-code {
        font-size: 1.3rem !important;
    }
    .soul-label {
        font-size: 0.8rem !important;
    }
    
    /* Chispa Message Mobile */
    .chispa-message {
        padding: 16px !important;
    }
    .chispa-header {
        font-size: 0.95rem !important;
    }
    .chispa-text {
        font-size: 0.95rem !important;
        line-height: 1.85 !important;
    }
    
    /* Gnostic/Sumerian Mobile */
    .gnostic-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gnostic-sacrament-grid {
        grid-template-columns: 1fr !important;
    }
    .sumerian-hero {
        padding: 18px 12px !important;
    }
    .sumerian-god-name {
        font-size: 1.2rem !important;
    }
    .sumerian-god-emoji {
        font-size: 2.8rem !important;
    }
    
    /* Palmistry Mobile */
    .palm-upload-area {
        min-height: 150px !important;
    }
    
    /* Footer Mobile */
    .disclaimer {
        font-size: 0.85rem !important;
        line-height: 1.6;
    }
    .legal-footer-btn {
        font-size: 0.82rem !important;
    }
    .traditions-footer {
        font-size: 0.7rem !important;
    }
    
    /* Legal Modal Mobile */
    .legal-modal {
        padding: 24px 18px;
        max-height: 90vh;
    }
    .legal-section {
        padding: 14px;
    }
    .legal-section h3 {
        font-size: 0.95rem;
    }
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .btn-action {
        font-size: 0.82rem !important;
        padding: 10px 14px !important;
    }
    
    /* Toolbar Mobile */
    .toolbar-fixed {
        gap: 6px !important;
    }
    .toolbar-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    .lang-label-text {
        display: none;
    }
    
    /* General spacing for compact layout */
    .glass-card {
        padding: 18px 14px !important;
        margin-bottom: 16px !important;
    }
    .main-content {
        padding: 0 10px !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .overview-card {
        padding: 10px 6px !important;
    }
    .overview-title {
        font-size: 0.72rem !important;
    }
    .overview-value {
        font-size: 0.88rem !important;
    }
    .card-content p,
    .card-content div,
    .card-content span {
        font-size: 0.95rem !important;
    }
    .numerology-table th,
    .numerology-table td {
        padding: 8px 5px !important;
        font-size: 0.85rem !important;
    }
    .gnostic-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   🎯 ALIGNMENT & TEXT STRUCTURE FIXES
   All oracles properly aligned
   ============================================ */

/* Ensure all card content is well-structured */
.card-content {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Oracle info items alignment */
.card-content .info-row,
.card-content .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Ensure tables don't overflow */
.numerology-table {
    width: 100%;
    table-layout: auto;
    word-break: break-word;
}

/* Consistent card spacing */
.tab-content .glass-card {
    margin-bottom: 16px;
}

/* All oracle descriptions - justified with centered last line */
.card-content p {
    text-align: justify;
    text-align-last: center;
    line-height: 1.85;
    margin-bottom: 12px;
}

/* Headers always centered */
.card-content h4,
.card-header h3 {
    text-align: center;
}

/* Lists proper alignment */
.card-content ul,
.card-content ol {
    padding-left: 20px;
    text-align: left;
}
.card-content li {
    text-align: left;
    margin-bottom: 6px;
    line-height: 1.7;
}

/* Fix inline code/keyword tags */
.card-content .keyword-tag,
.card-content .tag {
    display: inline-block;
    margin: 3px 4px;
    text-align: center;
}

/* Fix Sumerian specific alignment */
.sumerian-info-grid {
    display: grid;
    gap: 10px;
}
.sumerian-info-item {
    text-align: center;
}

/* Fix Gnostic specific alignment */
.gnostic-archon-card {
    text-align: center;
}

/* Ensure emojis don't break layout */
.card-content .emoji-large {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    margin: 10px 0;
}

/* ============================================
   🧭 FLOATING NAVIGATION MENU
   ============================================ */
.nav-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-gold), #d4a017);
    border: none;
    color: #0a0a1a;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9990;
    box-shadow: 0 4px 20px rgba(240,180,41,0.4);
    transition: all 0.3s ease;
    display: none;
}
.nav-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(240,180,41,0.6);
}
.nav-floating-btn.visible { display: flex; align-items: center; justify-content: center; }

.nav-floating-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 280px;
    max-height: 70vh;
    background: rgba(10,10,30,0.97);
    border: 1px solid rgba(240,180,41,0.3);
    border-radius: 16px;
    z-index: 9991;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav-floating-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.nav-floating-panel-header {
    padding: 14px 16px 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--cosmic-gold);
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid rgba(240,180,41,0.15);
    position: sticky;
    top: 0;
    background: rgba(10,10,30,0.97);
    z-index: 1;
}
.nav-floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}
.nav-floating-item:hover {
    background: rgba(240,180,41,0.1);
    color: var(--cosmic-gold);
}
.nav-floating-item.active-nav {
    background: rgba(240,180,41,0.15);
    color: var(--cosmic-gold);
    font-weight: 600;
}
.nav-floating-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.nav-floating-divider {
    height: 1px;
    background: rgba(240,180,41,0.1);
    margin: 4px 12px;
}
.nav-floating-lang-section {
    padding: 10px 16px;
    border-top: 1px solid rgba(240,180,41,0.15);
}
.nav-floating-lang-section .nav-lang-title {
    font-size: 0.8rem;
    color: var(--cosmic-cyan);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}
.nav-floating-lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.nav-lang-btn {
    padding: 6px 4px;
    border: 1px solid rgba(124,106,239,0.2);
    border-radius: 8px;
    background: rgba(3,3,15,0.5);
    color: var(--light-dim);
    font-size: 0.72rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.nav-lang-btn:hover, .nav-lang-btn.active-lang {
    border-color: var(--cosmic-gold);
    color: var(--cosmic-gold);
    background: rgba(240,180,41,0.1);
}

/* ============================================
   ↩️ BACK BUTTON IN ORACLES
   ============================================ */
.oracle-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 10px;
    background: rgba(0,212,255,0.06);
    color: var(--cosmic-cyan);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.oracle-back-btn:hover {
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.5);
    transform: translateX(-4px);
}
.oracle-back-btn i { font-size: 0.85rem; }

/* Day mode adjustments for nav menu */
body.day-mode .nav-floating-panel {
    background: rgba(255,255,255,0.97);
    border-color: rgba(200,170,80,0.3);
}
body.day-mode .nav-floating-panel-header {
    background: rgba(255,255,255,0.97);
    color: #8b6914;
}
body.day-mode .nav-floating-item {
    color: #3a3a55;
}
body.day-mode .nav-floating-item:hover,
body.day-mode .nav-floating-item.active-nav {
    background: rgba(200,170,80,0.12);
    color: #8b6914;
}
body.day-mode .nav-lang-btn {
    background: rgba(255,255,255,0.5);
    border-color: rgba(200,170,80,0.2);
    color: #3a3a55;
}
body.day-mode .nav-lang-btn:hover,
body.day-mode .nav-lang-btn.active-lang {
    border-color: #8b6914;
    color: #8b6914;
}
body.day-mode .oracle-back-btn {
    border-color: rgba(30,80,120,0.3);
    background: rgba(30,80,120,0.06);
    color: #1a5078;
}

@media (max-width: 768px) {
    .nav-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .nav-floating-panel {
        bottom: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 65vh;
    }
}

/* Fix long text in small containers */
.card-content strong {
    word-break: break-word;
}

/* Consistent border-left accent for description blocks */
.num-description,
.oracle-description,
.info-block {
    border-left: 3px solid var(--cosmic-gold);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    text-align: justify;
    text-align-last: left;
}

/* ============================================
   🔥 MEGA FIX v4.0 — FONT SIZE + STRUCTURE
   Global font size increase & oracle structure
   ============================================ */

/* === GLOBAL BASE FONT INCREASE === */
body { font-size: 17px !important; line-height: 1.75 !important; }
.card-content { font-size: 1.05rem !important; line-height: 1.9 !important; }
.card-content p { font-size: 1.05rem !important; line-height: 1.9 !important; text-align: justify; text-align-last: center; margin-bottom: 14px; }
.card-content h4 { font-size: 1.15rem !important; font-weight: 700; text-align: center; margin: 18px 0 10px; color: var(--accent); }
.card-header h3 { font-size: 1.2rem !important; text-align: center; }
.card-content small { font-size: 0.92rem !important; }
.card-content strong { color: var(--accent); }
.card-content em { color: var(--primary-light); }

/* === ORACLE STRUCTURED BLOCKS === */
.oracle-block {
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(124,106,239,0.12);
    border-radius: var(--radius-md);
    margin: 14px 0;
}
.oracle-block-accent {
    padding: 18px;
    background: rgba(245,158,11,0.04);
    border-left: 4px solid var(--cosmic-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 14px 0;
}
.oracle-block-info {
    padding: 18px;
    background: rgba(99,102,241,0.06);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 14px 0;
}
.oracle-hero {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(99,102,241,0.06));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.oracle-hero-emoji { font-size: 4rem; display: block; margin-bottom: 10px; }
.oracle-hero-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-glow);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.oracle-hero-sub { font-size: 0.95rem; color: var(--light-dim); margin-top: 4px; }

/* === ORACLE INFO GRID (reusable) === */
.oracle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.oracle-grid-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.1);
    border-radius: 12px;
    text-align: center;
}
.oracle-grid-label {
    font-size: 0.88rem;
    color: var(--light-dim);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.oracle-grid-value {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 700;
}

/* === ORACLE DESC TEXT === */
.oracle-desc {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    text-align: justify;
    text-align-last: center;
    color: var(--light);
    margin: 16px 0;
}

/* === BUTTON TEXT — GOLDEN & BIG === */
.btn-primary .btn-text {
    font-size: 1.15rem !important;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 100%;
    color: var(--cosmic-gold) !important;
    text-shadow: 0 0 20px rgba(240,180,41,0.3);
    font-weight: 700;
}
.btn-primary .btn-icon {
    font-size: 2.2rem;
    color: var(--cosmic-gold);
    text-shadow: 0 0 15px rgba(240,180,41,0.4);
}
.btn-primary .btn-subtext {
    font-size: 0.85rem !important;
    color: var(--light-dim);
}

/* === INLINE STYLE OVERRIDES FOR RENDERERS === */
/* Force all rendered text to be bigger */
.card-content [style*="font-size:0.7"],
.card-content [style*="font-size: 0.7"],
.card-content [style*="font-size:0.6"],
.card-content [style*="font-size: 0.6"] {
    font-size: 0.95rem !important;
}
.card-content [style*="font-size:0.8"],
.card-content [style*="font-size: 0.8"] {
    font-size: 1rem !important;
}
.card-content [style*="font-size:0.9"],
.card-content [style*="font-size: 0.9"] {
    font-size: 1.05rem !important;
}

/* === ASTRO GRID ITEMS (used in many oracles) === */
.astro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.astro-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}
.astro-item:hover {
    border-color: rgba(240,180,41,0.3);
    background: rgba(255,255,255,0.06);
}
.astro-item-label {
    font-size: 0.9rem !important;
    color: var(--light-dim);
    font-weight: 600;
    margin-bottom: 4px;
}
.astro-item-value {
    font-size: 1.05rem !important;
    color: var(--accent);
    font-weight: 700;
}

/* === KEYWORD TAGS === */
.keyword-tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    font-size: 0.92rem !important;
    color: var(--primary-light);
    transition: all 0.3s;
}
.keyword-tag:hover {
    background: rgba(99,102,241,0.2);
    border-color: var(--primary);
}
.tarot-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}

/* === TAROT DISPLAY === */
.tarot-display {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.tarot-card-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(139,92,246,0.08));
    border: 2px solid rgba(245,158,11,0.3);
    border-radius: 16px;
    text-align: center;
}
.tarot-numeral { font-family: var(--font-heading); font-size: 0.95rem; color: var(--accent); letter-spacing: 2px; }
.tarot-emoji-big { font-size: 3.5rem; margin: 10px 0; }
.tarot-card-name { font-family: var(--font-heading); font-size: 0.95rem; color: var(--light); letter-spacing: 1px; }
.tarot-info { flex: 1; }
.tarot-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--accent); margin-bottom: 10px; }

/* === SIGN HERO (Astrology) === */
.sign-hero {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.sign-emoji-big { font-size: 4rem; display: block; margin-bottom: 8px; }
.sign-name-big { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary-light); letter-spacing: 2px; }
.sign-dates { font-size: 0.95rem; color: var(--light-dim); margin-top: 4px; }

/* === SEPHIRA HERO (Kabbalah) === */
.sephira-hero {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(245,158,11,0.06));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.sephira-orb {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(245,158,11,0.15));
    border: 2px solid var(--secondary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-heading); font-size: 0.85rem; color: var(--light);
    box-shadow: 0 0 30px rgba(139,92,246,0.2);
}

/* === MAYA HERO === */
.maya-hero {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(245,158,11,0.06));
    border: 1px solid rgba(20,184,166,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.maya-kin-label { font-size: 0.88rem; color: var(--cosmic-teal); font-weight: 700; letter-spacing: 3px; }
.maya-kin-number { font-family: var(--font-tech); font-size: 2rem; color: var(--cosmic-gold); margin: 6px 0; }
.maya-seal-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--light); }

/* === CHINESE HERO === */
.chinese-hero {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(245,158,11,0.06));
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 18px;
    margin-bottom: 20px;
}
.chinese-animal-emoji { font-size: 4rem; display: block; margin-bottom: 8px; }
.chinese-animal-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent-glow); }
.chinese-element { font-size: 1rem; color: var(--light-dim); margin-top: 6px; }

/* === RUNE HERO === */
.rune-hero {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(20,184,166,0.06));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.rune-symbol { font-size: 4rem; display: block; margin-bottom: 8px; text-shadow: 0 0 30px rgba(99,102,241,0.4); }
.rune-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary-light); }

/* === ICHING HERO === */
.iching-hero {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 18px;
    margin-bottom: 20px;
}
.hexagram-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 16px auto;
    width: 80px;
}
.hex-line {
    height: 6px;
    border-radius: 3px;
    width: 80px;
}
.hex-line.yang { background: var(--accent); }
.hex-line.yin {
    background: transparent;
    position: relative;
}
.hex-line.yin::before,
.hex-line.yin::after {
    content: '';
    position: absolute;
    top: 0;
    height: 6px;
    width: 34px;
    background: var(--primary-light);
    border-radius: 3px;
}
.hex-line.yin::before { left: 0; }
.hex-line.yin::after { right: 0; }

/* === CODES GRID === */
.codes-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.12);
    border-radius: 12px;
    gap: 12px;
}
.code-purpose { font-size: 0.95rem; color: var(--accent); font-weight: 700; }
.code-desc { font-size: 0.9rem; color: var(--light-dim); margin-top: 2px; }
.code-number {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: var(--cosmic-gold);
    background: rgba(240,180,41,0.08);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(240,180,41,0.2);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.code-number:hover {
    background: rgba(240,180,41,0.15);
    box-shadow: 0 0 20px rgba(240,180,41,0.15);
}
.metakinetic-code .code-number {
    color: var(--cosmic-cyan);
    background: rgba(0,212,255,0.08);
    border-color: rgba(0,212,255,0.2);
}
.metakinetic-code .code-number:hover {
    background: rgba(0,212,255,0.15);
}
.activation-display { text-align: center; padding: 24px; }
.activation-number {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    color: var(--cosmic-gold);
    letter-spacing: 4px;
    text-shadow: 0 0 25px rgba(240,180,41,0.3);
    cursor: pointer;
    margin-bottom: 12px;
}
.activation-hint { font-size: 0.95rem; color: var(--light-dim); line-height: 1.7; }
.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-top: 12px;
    background: rgba(240,180,41,0.1);
    border: 1px solid rgba(240,180,41,0.3);
    border-radius: 10px;
    color: var(--cosmic-gold);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-copy-code:hover {
    background: rgba(240,180,41,0.2);
    box-shadow: 0 0 20px rgba(240,180,41,0.15);
}

/* === KARMA GRID === */
.karma-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.karma-box {
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.12);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}
.karma-box h4 { font-size: 1.05rem !important; margin-bottom: 8px; text-align: left !important; color: var(--accent) !important; }
.karma-box p { font-size: 1rem !important; line-height: 1.8; }

/* === COMPAT GRID === */
.compat-grid { margin: 12px 0; }
.compat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.3s;
}
.compat-item:hover { background: rgba(255,255,255,0.06); }
.compat-emoji { font-size: 2rem; }
.compat-name { font-size: 1rem; color: var(--light); font-weight: 600; }
.compat-level { font-size: 0.9rem; color: var(--light-dim); }
.compat-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.compat-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }

/* === PAST LIFE ITEMS === */
.past-life-item {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}
.past-life-era { font-size: 1rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 6px; }

/* === LINEAGE ITEMS === */
.lineage-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 12px;
}
.lineage-icon { font-size: 2rem; flex-shrink: 0; }
.lineage-item h4 { font-size: 1.05rem !important; color: var(--accent) !important; margin-bottom: 4px; text-align: left !important; }
.lineage-item p { font-size: 1rem !important; text-align: left !important; text-align-last: left !important; }

/* === GIFT ITEMS === */
.gifts-list { display: grid; gap: 10px; }
.gift-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}
.gift-icon { font-size: 1.5rem; flex-shrink: 0; }
.gift-text { font-size: 1rem; color: var(--light); }

/* === AKASHIC BOX === */
.akashic-box {
    padding: 24px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(139,92,246,0.06));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    text-align: center;
}
.akashic-text { font-size: 1.1rem !important; line-height: 1.9; font-style: italic; color: var(--light); }
.akashic-signature { font-size: 0.95rem; color: var(--accent); margin-top: 12px; font-style: italic; }

/* === DELPHI MAXIM CARDS === */
.delphi-maxim-card {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 14px;
}

/* === BARDO GRID === */
.bardo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bardo-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}
.bardo-item:hover { border-color: rgba(139,92,246,0.3); }
.bardo-active { border-color: var(--accent) !important; background: rgba(245,158,11,0.06) !important; }
.bardo-emoji { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.bardo-name { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.bardo-teaching { font-size: 0.9rem; color: var(--light-dim); margin-top: 4px; }

/* === ACTIVE PATH TAG === */
.active-path { background: rgba(245,158,11,0.15) !important; border-color: var(--accent) !important; color: var(--accent) !important; font-weight: 700; }

/* === SOUL AGE === */
.soul-age-hero { text-align: center; padding: 20px; }
.soul-age-number { font-family: var(--font-tech); font-size: 3rem; color: var(--cosmic-gold); }
.soul-age-label { font-size: 1rem; color: var(--light-dim); }
.soul-stage-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 20px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    margin: 10px 0;
}
.soul-age-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.soul-age-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }

/* === STELLAR HERO === */
.stellar-hero { text-align: center; padding: 24px; background: rgba(99,102,241,0.06); border-radius: 18px; margin-bottom: 20px; }
.stellar-emoji { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.stellar-name { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary-light); }
.stellar-constellation { font-size: 1rem; color: var(--light-dim); margin-top: 4px; }
.stellar-frequency { font-size: 0.95rem; color: var(--accent); margin-top: 6px; font-style: italic; }

/* === TIMELINE === */
.timeline-container { position: relative; padding-left: 20px; border-left: 2px solid rgba(124,106,239,0.2); }
.timeline-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 20px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
}
.timeline-era { font-size: 0.9rem; color: var(--light-dim); }
.timeline-civ { font-size: 1.05rem; color: var(--accent); font-weight: 700; margin: 4px 0; }
.timeline-role { font-size: 1rem; color: var(--light); }
.significance-alta .timeline-item::before,
.significance-alta::before { background: var(--accent); }
.significance-media .timeline-item::before,
.significance-media::before { background: var(--primary); }

/* === DETAILED LIVES === */
.detailed-life {
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.1);
    border-radius: 14px;
    margin-bottom: 16px;
}
.detailed-life-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.detailed-life-emoji { font-size: 2rem; }
.detailed-life-civ { font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.detailed-life-era { font-size: 0.9rem; color: var(--light-dim); }
.detailed-life-role { font-size: 1rem; color: var(--primary-light); font-weight: 600; margin-bottom: 8px; }
.detailed-life-desc { font-size: 1rem; color: var(--light); line-height: 1.8; margin-bottom: 10px; text-align: justify; }
.detailed-life-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detailed-life-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99,102,241,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* === EVOLUTION BARS === */
.evolution-bar-container { margin-bottom: 14px; }
.evolution-bar-label { display: flex; justify-content: space-between; margin-bottom: 4px; }
.evolution-bar-name { font-size: 1rem; color: var(--light); }
.evolution-bar-level { font-size: 0.95rem; color: var(--accent); font-weight: 700; }
.evolution-bar-track { height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.evolution-bar-fill { height: 100%; border-radius: 5px; transition: width 1s ease; }
.bar-high { background: linear-gradient(90deg, var(--success), #10b981); }
.bar-mid { background: linear-gradient(90deg, var(--accent), #f59e0b); }
.bar-low { background: linear-gradient(90deg, var(--danger), #ef4444); }

/* === INHERITED GIFTS === */
.inherited-gift-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 10px;
}
.inherited-gift-source { font-size: 1.8rem; flex-shrink: 0; }
.inherited-gift-name { font-size: 1rem; color: var(--light); font-weight: 600; }
.inherited-gift-origin { font-size: 0.9rem; color: var(--light-dim); }
.inherited-gift-strength {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}
.strength-fuerte { background: rgba(52,211,153,0.15); color: var(--success); }
.strength-moderado { background: rgba(245,158,11,0.15); color: var(--accent); }
.strength-latente { background: rgba(139,92,246,0.15); color: var(--secondary); }

/* === KARMA PENDING === */
.karma-pending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 10px;
}
.karma-pending-icon { font-size: 1.5rem; flex-shrink: 0; }
.karma-pending-type { font-size: 1rem; color: var(--accent); font-weight: 600; }
.karma-pending-desc { font-size: 0.95rem; color: var(--light); line-height: 1.7; }

/* === PURPOSE === */
.purpose-box { text-align: center; padding: 20px; }
.purpose-main { font-size: 1.1rem !important; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.purpose-synthesis { font-size: 1.05rem !important; font-style: italic; color: var(--light); line-height: 1.8; }

/* === GNOSTIC SPECIFIC === */
.gnostic-hero {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(245,158,11,0.06));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.gnostic-aeon-emoji { font-size: 4rem; display: block; margin-bottom: 8px; }
.gnostic-aeon-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent-glow); }
.gnostic-aeon-title { font-size: 1rem; color: var(--light-dim); margin-top: 4px; }
.gnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.gnostic-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 12px;
    text-align: center;
}
.gnostic-item-label { font-size: 0.9rem; color: var(--light-dim); font-weight: 600; margin-bottom: 4px; }
.gnostic-item-value { font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.gnostic-archon-card {
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 14px;
    margin-bottom: 14px;
    text-align: center;
}
.gnostic-archon-header { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 10px; }
.gnostic-archon-emoji { font-size: 2rem; }
.gnostic-archon-name { font-size: 1.05rem; color: var(--danger); font-weight: 700; }
.gnostic-archon-sphere { font-size: 0.9rem; color: var(--light-dim); }
.gnostic-archon-desc { font-size: 1rem; line-height: 1.8; color: var(--light); margin-bottom: 10px; }
.gnostic-archon-lesson { font-size: 0.95rem; color: var(--light); line-height: 1.7; padding: 10px 14px; background: rgba(255,255,255,0.04); border-radius: 8px; }
.gnostic-pistis-box {
    padding: 24px;
    background: rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 16px;
    text-align: center;
}
.gnostic-pistis-title { font-size: 1.05rem; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.gnostic-pistis-text { font-size: 1.1rem !important; font-style: italic; line-height: 2; color: var(--light); }
.gnostic-sacrament-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gnostic-sacrament-item {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 12px;
    text-align: center;
}
.cosmogony-path {
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(139,92,246,0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.cosmogony-emoji { font-size: 1.5rem; flex-shrink: 0; }
.cosmogony-name { font-size: 1rem; color: var(--accent); font-weight: 700; }
.cosmogony-desc { font-size: 0.95rem; color: var(--light); line-height: 1.7; }
.soul-structure-item {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
}

/* === SUMERIAN SPECIFIC === */
.sumerian-hero {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(99,102,241,0.06));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.sumerian-god-emoji { font-size: 4rem; display: block; margin-bottom: 10px; }
.sumerian-god-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--cosmic-gold); letter-spacing: 1px; }
.sumerian-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.sumerian-info-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(245,158,11,0.12);
    border-radius: 12px;
    text-align: center;
}
.sumerian-info-label { font-size: 0.9rem; color: var(--light-dim); font-weight: 600; margin-bottom: 4px; }
.sumerian-info-value { font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.sumerian-tablet {
    padding: 24px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(139,92,246,0.04));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* === WAVESPELL GRID === */
.wavespell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* === CHISPA MESSAGE — bigger === */
.chispa-message {
    margin-top: 20px;
    padding: 20px;
    background: rgba(245,158,11,0.04);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 14px;
    text-align: center;
}
.chispa-header { font-size: 1.05rem !important; color: var(--accent) !important; font-weight: 700; margin-bottom: 10px; }
.chispa-text { font-size: 1.05rem !important; line-height: 1.9 !important; color: var(--light) !important; text-align: center !important; }

/* === NUMBERS ROW (Numerology) === */
.numbers-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.num-box {
    width: 90px; height: 90px;
}
.num-big { font-size: 1.6rem !important; }
.num-box .num-label { font-size: 0.65rem !important; }

/* === PINNACLE ROW === */
.pinnacle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.pinnacle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,106,239,0.12);
    border-radius: 12px;
    min-width: 80px;
    flex: 1;
}
.pinnacle-num { font-family: var(--font-tech); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.pinnacle-label { font-size: 0.88rem; color: var(--light); text-align: center; margin-top: 4px; }
.challenge-box { border-color: rgba(248,113,113,0.2) !important; }
.challenge-box .pinnacle-num { color: var(--danger); }

/* === TRIANGLE === */
.triangle-container { display: flex; justify-content: center; }

/* === WAVESPELL ITEM === */
.wave-kin-item {
    padding: 8px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}
.wave-kin-item:hover { background: rgba(255,255,255,0.08); }
.wave-kin-current {
    border: 1px solid var(--accent) !important;
    background: rgba(245,158,11,0.08) !important;
}

/* ============================================
   🌌 WELCOME PORTAL PAGE
   Full-screen epic interdimensional portal
   ============================================ */

.welcome-fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(ellipse at center, #0a0a2a 0%, #050515 50%, #000005 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.welcome-fullscreen.hidden { display: none !important; }

#welcomeCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 24px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(240,180,41,0.08);
    border: 1px solid rgba(240,180,41,0.25);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--cosmic-gold, #f0b429);
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
}
.welcome-badge-icon { font-size: 1.2rem; }

.welcome-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: rgba(232,228,245,0.65);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 400;
    width: 100%;
    text-align: center;
}

.welcome-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: #f0b429;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(240,180,41,0.4), 0 0 80px rgba(240,180,41,0.15);
    margin-bottom: 12px;
    margin-top: 0;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #d4a017, #fcd34d, #f0b429, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
    text-align: center;
    display: block;
}

.welcome-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(240,180,41,0.4);
    margin: 12px 0 18px;
}
.welcome-divider span {
    animation: welcomePulse 3s ease-in-out infinite;
}
.welcome-divider span:nth-child(odd) { animation-delay: 0s; }
.welcome-divider span:nth-child(even) { animation-delay: 1.5s; }

@keyframes welcomePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.welcome-slogan {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    color: rgba(232,228,245,0.85);
    line-height: 1.8;
    margin-bottom: 12px;
    font-weight: 500;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-traditions {
    font-size: 0.82rem;
    color: rgba(232,228,245,0.4);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.welcome-cta {
    font-size: 1.05rem;
    color: rgba(240,180,41,0.85);
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 600;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-portal-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 50px;
    background: linear-gradient(135deg, rgba(240,180,41,0.15), rgba(139,92,246,0.12));
    border: 2px solid rgba(240,180,41,0.4);
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: portalBtnGlow 3s ease-in-out infinite;
}
.welcome-portal-btn:hover {
    border-color: rgba(240,180,41,0.7);
    background: linear-gradient(135deg, rgba(240,180,41,0.25), rgba(139,92,246,0.2));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(240,180,41,0.25), 0 0 60px rgba(240,180,41,0.1);
}

@keyframes portalBtnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(240,180,41,0.1), 0 0 40px rgba(139,92,246,0.05); }
    50% { box-shadow: 0 0 30px rgba(240,180,41,0.2), 0 0 60px rgba(139,92,246,0.1); }
}

.welcome-btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 70%);
    animation: btnGlowRotate 6s linear infinite;
}

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

.welcome-btn-text {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #f0b429;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(240,180,41,0.3);
    position: relative;
    z-index: 1;
}
.welcome-btn-sub {
    font-size: 0.85rem;
    color: rgba(232,228,245,0.6);
    margin-top: 6px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.welcome-detecting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.82rem;
    color: rgba(0,212,255,0.5);
    letter-spacing: 1px;
    animation: detectPulse 2s ease-in-out infinite;
}
@keyframes detectPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* === Welcome responsive === */
@media (max-width: 600px) {
    .welcome-title { font-size: 0.6rem; letter-spacing: 2px; font-weight: 300; opacity: 0.65; }
    .welcome-subtitle { font-size: 1.4rem; letter-spacing: 2px; }
    .welcome-slogan { font-size: 0.95rem; }
    .welcome-cta { font-size: 0.95rem; }
    .welcome-portal-btn { padding: 18px 30px; }
    .welcome-btn-text { font-size: 1.05rem; }
    .welcome-traditions { font-size: 0.75rem; }
    .welcome-content { padding: 20px 16px; }
}

/* ============================================
   ⚖️ LEGAL AUTO-MODAL (after welcome)
   ============================================ */
#legalModalOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(3,3,15,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}
#legalModalOverlay.hidden { display: none !important; }

#legalModalOverlay .legal-modal {
    max-width: 560px;
    width: 100%;
    background: linear-gradient(135deg, rgba(15,15,40,0.98), rgba(10,10,30,0.98));
    border: 1px solid rgba(240,180,41,0.25);
    border-radius: 20px;
    padding: 32px 28px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(240,180,41,0.1);
    animation: legalSlideIn 0.5s ease;
}
@keyframes legalSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.legal-modal-header .legal-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
.legal-modal-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--cosmic-gold, #f0b429);
    letter-spacing: 1px;
}

.legal-section {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid rgba(240,180,41,0.3);
}
.legal-section h4 {
    font-size: 1rem;
    color: var(--cosmic-gold, #f0b429);
    margin-bottom: 8px;
    font-weight: 700;
}
.legal-section p {
    font-size: 0.95rem;
    color: var(--light, #e8e4f5);
    line-height: 1.8;
}

#legalModalOverlay .legal-modal-accept {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(240,180,41,0.15), rgba(139,92,246,0.12));
    border: 2px solid rgba(240,180,41,0.4);
    border-radius: 14px;
    color: var(--cosmic-gold, #f0b429);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
#legalModalOverlay .legal-modal-accept:hover {
    background: linear-gradient(135deg, rgba(240,180,41,0.25), rgba(139,92,246,0.2));
    border-color: rgba(240,180,41,0.6);
    box-shadow: 0 0 20px rgba(240,180,41,0.15);
}

/* === Day Mode legal & welcome === */
body.day-mode .welcome-fullscreen {
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a1a 100%);
}
body.day-mode #legalModalOverlay {
    background: rgba(254,252,248,0.95);
}
body.day-mode #legalModalOverlay .legal-modal {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(249,245,238,0.98));
    border-color: rgba(196,160,53,0.3);
    box-shadow: 0 20px 60px rgba(50,40,20,0.15);
}
body.day-mode .legal-modal-header h3 { color: #1a1a2e; }
body.day-mode .legal-section {
    background: rgba(196,160,53,0.04);
    border-left-color: rgba(196,160,53,0.4);
}
body.day-mode .legal-section h4 { color: #8b6914; }
body.day-mode .legal-section p { color: #2a2a40; }
body.day-mode #legalModalOverlay .legal-modal-accept {
    background: linear-gradient(135deg, #1a1a2e, #2d2d5e);
    border-color: rgba(212,160,23,0.4);
    color: #fcd34d;
}

/* ============================================
   🔥 TIKÚN ORACLE TAB
   ============================================ */
.tikun-hero {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.tikun-number-big {
    font-family: var(--font-tech);
    font-size: 3rem;
    color: var(--cosmic-gold);
    text-shadow: 0 0 30px rgba(240,180,41,0.4);
}
.tikun-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.tikun-item {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 12px;
    text-align: center;
}
.tikun-correction-box {
    padding: 20px;
    background: rgba(245,158,11,0.04);
    border-left: 4px solid var(--cosmic-gold);
    border-radius: 0 14px 14px 0;
    margin: 16px 0;
}
.tikun-correction-box h4 {
    color: var(--accent) !important;
    text-align: left !important;
    margin-bottom: 8px;
}
.tikun-correction-box p {
    text-align: left !important;
    text-align-last: left !important;
}
.tikun-exercises {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}
.tikun-exercise {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 12px;
}
.tikun-exercise-icon { font-size: 1.5rem; flex-shrink: 0; }
.tikun-exercise h5 { font-size: 1rem; color: var(--primary-light); margin-bottom: 4px; font-weight: 700; }
.tikun-exercise p { font-size: 0.95rem; text-align: left !important; text-align-last: left !important; }

/* ============================================
   🌟 CARTA ASTRAL TAB
   ============================================ */
.astral-locked {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}
.astral-locked-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.astral-locked-text { font-size: 1.1rem; color: var(--light-dim); margin-bottom: 12px; }
.astral-locked-hint { font-size: 0.95rem; color: var(--accent); }
.astral-unlocked {
    animation: astralUnlockGlow 1s ease;
}
@keyframes astralUnlockGlow {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.astral-chart-hero {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(0,212,255,0.06));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 18px;
    margin-bottom: 20px;
}
.astral-houses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.astral-house {
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 12px;
    text-align: center;
}
.astral-house-num { font-family: var(--font-tech); font-size: 1.3rem; color: var(--primary-light); }
.astral-house-name { font-size: 0.88rem; color: var(--light-dim); margin-top: 4px; }
.astral-house-sign { font-size: 1rem; color: var(--accent); font-weight: 700; margin-top: 4px; }
.astral-aspects-list { display: grid; gap: 8px; }
.astral-aspect-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}
.astral-aspect-symbol { font-size: 1.5rem; }
.astral-aspect-name { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.astral-aspect-desc { font-size: 0.9rem; color: var(--light-dim); }

/* ============================================
   🔧 ADDITIONAL RESPONSIVE FOR NEW ELEMENTS
   ============================================ */
@media (max-width: 768px) {
    .tikun-grid { grid-template-columns: 1fr !important; }
    .astral-houses-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .bardo-grid { grid-template-columns: 1fr !important; }
    .oracle-grid { grid-template-columns: 1fr !important; }
    .astro-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   ✨ HISTORY SECTION IN ORACLES
   ============================================ */
.oracle-history {
    margin-top: 20px;
    padding: 20px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 14px;
}
.oracle-history-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
}
.oracle-history p {
    font-size: 0.95rem !important;
    color: var(--light-dim) !important;
    line-height: 1.85;
    text-align: justify;
    text-align-last: center;
}

/* === Day mode for new elements === */
body.day-mode .oracle-history {
    background: rgba(180,160,120,0.04);
    border-color: rgba(180,160,120,0.15);
}
body.day-mode .oracle-history p { color: #5a5040 !important; }
body.day-mode .oracle-history-title { color: #3a3a55; }

body.day-mode .oracle-hero { background: linear-gradient(135deg, rgba(196,160,53,0.06), rgba(26,26,46,0.04)); border-color: rgba(196,160,53,0.2); }
body.day-mode .oracle-hero-title { color: #8b6914; }
body.day-mode .oracle-grid-item { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); }
body.day-mode .oracle-grid-label { color: #7a6a40; }
body.day-mode .oracle-grid-value { color: #8b6914; }
body.day-mode .oracle-block { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); }
body.day-mode .oracle-block-accent { background: rgba(196,160,53,0.04); border-left-color: rgba(196,160,53,0.4); }

body.day-mode .tikun-hero { background: linear-gradient(135deg, rgba(196,160,53,0.06), rgba(26,26,46,0.04)); border-color: rgba(196,160,53,0.2); }
body.day-mode .tikun-number-big { color: #8b6914; text-shadow: none; }
body.day-mode .tikun-item { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); }
body.day-mode .tikun-correction-box { background: rgba(196,160,53,0.04); border-left-color: rgba(196,160,53,0.4); }

body.day-mode .karma-box { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); border-left-color: rgba(196,160,53,0.4); }
body.day-mode .karma-box h4 { color: #8b6914 !important; }

body.day-mode .past-life-item { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); border-left-color: rgba(196,160,53,0.3); }
body.day-mode .detailed-life { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); }

body.day-mode .astral-chart-hero { background: linear-gradient(135deg, rgba(196,160,53,0.06), rgba(26,26,46,0.04)); border-color: rgba(196,160,53,0.2); }
body.day-mode .astral-house { background: rgba(26,26,46,0.03); border-color: rgba(180,160,120,0.15); }

