/* CSS Variables */
:root {
    --cosmic-bg-1: #0a0514;
    --cosmic-bg-2: #1c0e35;
    --cosmic-accent: #7a42b1;
    --cosmic-highlight: #d1b8f8;
    --text-primary: #f0e6ff;
    --text-secondary: #a894c2;
    --glass-bg: rgba(28, 14, 53, 0.4);
    --glass-border: rgba(209, 184, 248, 0.15);
    --glow-color: rgba(122, 66, 177, 0.6);
    --font-titles: 'Cinzel', serif;
    --font-ui: 'Inter', sans-serif;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--cosmic-bg-1);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
.mystical-title {
    font-family: var(--font-titles);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mystical-title {
    font-size: 2rem;
    background: linear-gradient(to right, #ffffff, var(--cosmic-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtext-accent {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cosmic-highlight);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.text-faded {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--cosmic-highlight);
}

.text-small {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

.line-tall {
    line-height: 1.6;
}

/* Backgrounds & Canvas */
#ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, var(--cosmic-bg-2), var(--cosmic-bg-1) 70%);
    z-index: -2;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.app-container {
    width: 100%;
    max-width: 500px;
    /* Mobile first max-width */
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all var(--transition-smooth);
}

.screen.active-screen {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    position: relative;
    min-height: 100vh;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--cosmic-accent), #5a2e87);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-ui);
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary {
    background: transparent;
    color: var(--cosmic-highlight);
    border: 1px solid var(--cosmic-highlight);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-ui);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(209, 184, 248, 0.1);
}

.glow-effect {
    box-shadow: 0 0 20px var(--glow-color);
}

.glow-effect:active {
    transform: scale(0.96);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Quiz Structure */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.quiz-step.active-step {
    display: block;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--cosmic-highlight);
    box-shadow: 0 0 10px var(--cosmic-highlight);
    transition: width 0.4s ease;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.options-grid.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-option:active {
    background: var(--cosmic-accent);
    border-color: var(--cosmic-highlight);
}

/* Loading State */
.mystical-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    border-top-color: var(--cosmic-highlight);
    animation: spin 2s linear infinite;
}

.ring-2 {
    border-right-color: var(--cosmic-accent);
    animation: spin 2.5s linear infinite reverse;
    inset: 10px;
}

.ring-3 {
    border-bottom-color: #ffffff;
    animation: spin 3s linear infinite;
    inset: 20px;
}

.loader-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--cosmic-highlight);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cosmic-highlight);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Result Reveal */
.portrait-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3/4;
    margin: 0 auto 2rem;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(209, 184, 248, 0.3), rgba(122, 66, 177, 0.1));
    position: relative;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease;
}

.frame-overlay {
    position: absolute;
    inset: 8px;
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.glow-pulse {
    animation: gentleGlow 3s infinite alternate;
}

/* Dashboard & Cards */
.dashboard-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-bottom: 0;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--cosmic-highlight);
}

.value-bullets {
    list-style: none;
    text-align: left;
}

.value-bullets li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.value-bullets li:last-child {
    margin-bottom: 0;
}

/* WhatsApp Banner */
.whatsapp-banner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #128C7E, #25D366);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.whatsapp-banner:active {
    transform: scale(0.96);
}

.glow-effect-wa {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
    animation: pulseWA 2s infinite alternate;
}

.wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.wa-content h3 {
    font-size: 1.1rem;
    font-family: var(--font-ui);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wa-content p {
    font-size: 0.85rem;
    font-family: var(--font-ui);
    opacity: 0.95;
    line-height: 1.3;
}

@keyframes pulseWA {
    0% {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    }

    100% {
        box-shadow: 0 0 35px rgba(37, 211, 102, 0.7);
    }
}

/* Daily Cards Interaction */
.daily-cards-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.daily-card-back {
    flex: 1;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(122, 66, 177, 0.2), rgba(28, 14, 53, 0.6));
    border: 1px solid var(--cosmic-accent);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.daily-card-back:hover {
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-5px);
}

.daily-card-back:active {
    transform: scale(0.95);
}

.card-symbol {
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes fadeOutAndScale {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
        display: none;
    }
}

.fade-out-scale {
    animation: fadeOutAndScale 0.5s forwards;
    pointer-events: none;
}

.tarot-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.tarot-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cosmic-highlight);
}

.tarot-reading {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.affirmation-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    border-left: 2px solid var(--cosmic-highlight);
}

.affirmation-box .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.affirmation {
    font-style: italic;
    color: var(--text-primary);
}

.readings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 4rem;
}

.reading-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.reading-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.reading-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 5, 20, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

@keyframes gentleGlow {
    from {
        box-shadow: 0 0 15px rgba(122, 66, 177, 0.3);
    }

    to {
        box-shadow: 0 0 25px rgba(209, 184, 248, 0.5);
    }
}

/* Upsell Section */
.dest-unlock {
    position: relative;
    border: 1px solid var(--cosmic-accent);
    box-shadow: 0 8px 32px rgba(122, 66, 177, 0.2), inset 0 0 20px rgba(122, 66, 177, 0.1);
    background: linear-gradient(180deg, rgba(28, 14, 53, 0.6) 0%, rgba(10, 5, 20, 0.8) 100%);
}

.locked-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.locked-card {
    position: relative;
    background: rgba(10, 5, 20, 0.4);
    border: 1px solid rgba(209, 184, 248, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(10,5,20,0.4) 0%, rgba(10,5,20,0.8) 100%);
    z-index: 5;
    pointer-events: none;
}

.lock-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(209, 184, 248, 0.8));
    animation: floatLock 3s infinite ease-in-out;
}

@keyframes floatLock {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.locked-title {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    color: var(--cosmic-highlight);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(209, 184, 248, 0.3);
}

.locked-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.blurred-answer {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    filter: blur(4px);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.blur-line {
    height: 12px;
    background: var(--cosmic-highlight);
    border-radius: 6px;
}

/* Offer & Buttons */
.btn-upsell-secondary {
    background: linear-gradient(180deg, rgba(122, 66, 177, 0.25) 0%, rgba(90, 46, 135, 0.5) 100%);
    border: 1px solid rgba(209, 184, 248, 0.4);
    border-bottom: 5px solid #4a2473;
    color: var(--text-primary);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    font-family: var(--font-ui);
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease-out;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-upsell-secondary:hover {
    background: linear-gradient(180deg, rgba(142, 86, 197, 0.35) 0%, rgba(110, 66, 155, 0.6) 100%);
    transform: translateY(-2px);
    border-bottom: 7px solid #4a2473;
    margin-bottom: -2px;
}

.btn-upsell-secondary:active, .btn-upsell-secondary.pressed {
    transform: translateY(5px) !important;
    border-bottom: 0px solid #4a2473 !important;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.btn-text {
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-price {
    font-weight: 600;
    color: var(--cosmic-highlight);
    background: rgba(122, 66, 177, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.bundle-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bundle-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bundle-sparkle {
    font-size: 1.2rem;
    animation: sparkleSpin 4s linear infinite;
}

@keyframes sparkleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.upsell-main-btn {
    font-size: 1.25rem;
    font-weight: 800;
    padding: 1.2rem 2rem;
    background: linear-gradient(180deg, #a86ce8 0%, #7a42b1 40%, #5a2e87 100%);
    border: 2px solid #e0caff;
    border-bottom: 6px solid #3d1c5d;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(122, 66, 177, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    animation: pulse-intense 2.5s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, border-bottom 0.15s ease, margin-bottom 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.upsell-main-btn:active {
    animation: none;
    transform: translateY(6px) !important;
    border-bottom: 0px solid #3d1c5d !important;
    margin-bottom: 6px !important;
    box-shadow: 0 2px 10px rgba(122, 66, 177, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

@keyframes pulse-intense {
    0% { transform: scale(1); box-shadow: 0 8px 15px rgba(122, 66, 177, 0.6); }
    50% { transform: scale(1.03); box-shadow: 0 12px 30px rgba(209, 184, 248, 0.9), 0 0 20px rgba(122, 66, 177, 0.5); }
    100% { transform: scale(1); box-shadow: 0 8px 15px rgba(122, 66, 177, 0.6); }
}

.urgency-text {
    color: #fca5a5;
    line-height: 1.3;
    opacity: 0.9;
}

/* AI Love Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--cosmic-accent) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--cosmic-accent);
    border-radius: 4px;
}

.message {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    animation: fadeIn 0.3s ease-out;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.chat-avatar {
    font-size: 1.5rem;
    line-height: 1;
}

.msg-bubble {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}

.bot-message .msg-bubble {
    background: rgba(122, 66, 177, 0.2);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.user-message .msg-bubble {
    background: rgba(209, 184, 248, 0.2);
    border: 1px solid var(--glass-border);
    border-bottom-right-radius: 4px;
    color: white;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    color: white;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: var(--cosmic-highlight);
}

.btn-chat-send {
    background: var(--cosmic-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.btn-chat-send:active {
    transform: scale(0.9);
}

/* Utilities */
.hidden {
    display: none !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: rgba(10, 5, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 200;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--cosmic-highlight);
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px var(--cosmic-highlight));
}

.nav-icon {
    font-size: 1.4rem;
    transition: all 0.2s;
    display: block;
}

.nav-label {
    font-size: 0.65rem;
    font-family: var(--font-ui);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════
   FEATURE SCREENS BASE
══════════════════════════════════════════════════════════════ */
.feature-screen {
    justify-content: flex-start;
    padding: 0;
    overflow-y: auto;
    padding-bottom: 90px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 5, 20, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-back:active { transform: scale(0.9); }

.feature-title {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    background: linear-gradient(to right, #ffffff, var(--cosmic-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.feature-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.feature-content {
    padding: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   EXPLORAR — FEATURE GRID
══════════════════════════════════════════════════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: all 0.25s;
    color: var(--text-primary);
}

.feature-card:active {
    transform: scale(0.95);
    background: rgba(122, 66, 177, 0.2);
    border-color: var(--cosmic-accent);
}

.feature-card-icon {
    font-size: 2rem;
    display: block;
}

.feature-card-name {
    font-family: var(--font-titles);
    font-size: 0.9rem;
    color: var(--cosmic-highlight);
}

.feature-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--cosmic-highlight);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--cosmic-highlight);
}

.form-input option {
    background: #1c0e35;
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   TAROT FULL SCREEN
══════════════════════════════════════════════════════════════ */
.tarot-daily-hero {
    padding: 1.5rem;
}

.tarot-flip-container {
    width: 160px;
    height: 240px;
    margin: 0 auto;
    perspective: 800px;
    cursor: pointer;
}

.tarot-flip-container.flipped .tarot-flip-card {
    transform: rotateY(180deg);
}

.tarot-flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tarot-flip-front,
.tarot-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tarot-flip-back {
    transform: rotateY(180deg);
}

.tarot-card-face {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.back-face {
    background: linear-gradient(135deg, rgba(122,66,177,0.4), rgba(10,5,20,0.8));
    border-color: var(--cosmic-accent);
}

.front-face {
    background: linear-gradient(135deg, rgba(28,14,53,0.9), rgba(122,66,177,0.2));
    border-color: var(--cosmic-highlight);
    box-shadow: 0 0 20px rgba(209,184,248,0.2);
}

.tarot-emoji-big {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tarot-card-number {
    font-size: 0.7rem;
    color: var(--cosmic-highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.tarot-card-title {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

.tarot-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tarot-tag {
    background: rgba(122,66,177,0.2);
    border: 1px solid rgba(122,66,177,0.4);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--cosmic-highlight);
}

.tarot-advice-box {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    border-left: 2px solid var(--cosmic-accent);
    text-align: left;
}

.tarot-advice-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cosmic-highlight);
    margin-bottom: 0.4rem;
}

.arcana-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.arcana-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.arcana-card:active {
    transform: scale(0.95);
    border-color: var(--cosmic-accent);
}

.arcana-card.is-today {
    border-color: var(--cosmic-highlight);
    box-shadow: 0 0 12px rgba(209,184,248,0.3);
}

.arcana-emoji { font-size: 1.8rem; display: block; }
.arcana-num { font-size: 0.6rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }
.arcana-name { font-size: 0.7rem; color: var(--cosmic-highlight); font-family: var(--font-titles); margin-top: 0.2rem; line-height: 1.2; }

.arcana-modal-emoji { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.arcana-modal-number { font-size: 0.75rem; color: var(--cosmic-highlight); text-transform: uppercase; letter-spacing: 1px; }

/* ══════════════════════════════════════════════════════════════
   MAPA ASTRAL
══════════════════════════════════════════════════════════════ */
.astral-sign-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(122,66,177,0.1);
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
}

.astral-big-emoji {
    font-size: 3rem;
    flex-shrink: 0;
}

.astral-section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.astral-section-icon { font-size: 1.5rem; }

.compatible-signs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.compatible-sign-card {
    background: rgba(122,66,177,0.1);
    border: 1px solid rgba(122,66,177,0.3);
    border-radius: 14px;
    padding: 0.8rem;
    text-align: center;
}

.compatible-sign-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.compatible-sign-name { font-family: var(--font-titles); font-size: 0.85rem; color: var(--cosmic-highlight); }
.compatible-sign-why { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.3rem; line-height: 1.3; }

/* ══════════════════════════════════════════════════════════════
   RITUALES
══════════════════════════════════════════════════════════════ */
.luna-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
}

.luna-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.luna-emoji {
    font-size: 2.5rem;
}

.luna-name {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--cosmic-highlight);
}

.luna-tip {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.8rem;
}

.ritual-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
}

.ritual-categories::-webkit-scrollbar { display: none; }

.cat-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cat-btn.active {
    background: var(--cosmic-accent);
    border-color: var(--cosmic-accent);
    color: white;
}

.rituales-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ritual-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ritual-card:active {
    transform: scale(0.98);
    border-color: var(--cosmic-accent);
}

.ritual-card-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.ritual-card-body { flex: 1; }

.ritual-card-title {
    font-family: var(--font-titles);
    font-size: 1rem;
    color: var(--cosmic-highlight);
    margin-bottom: 0.3rem;
}

.ritual-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.ritual-card-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ritual-chip {
    background: rgba(122,66,177,0.15);
    border: 1px solid rgba(122,66,177,0.3);
    border-radius: 20px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.cat-badge {
    display: inline-block;
    background: rgba(122,66,177,0.2);
    border: 1px solid var(--cosmic-accent);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--cosmic-highlight);
}

.ritual-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ritual-modal-emoji { font-size: 2.5rem; flex-shrink: 0; }

.ritual-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ritual-info-chip {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ritual-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cosmic-highlight);
    margin-bottom: 0.5rem;
}

.ritual-materials {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ritual-materials li::before {
    content: "• ";
    color: var(--cosmic-highlight);
}

.ritual-materials li {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.ritual-steps {
    list-style: none;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ritual-steps li {
    counter-increment: steps;
    display: flex;
    gap: 0.8rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ritual-steps li::before {
    content: counter(steps);
    background: var(--cosmic-accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.ritual-note {
    background: rgba(122,66,177,0.1);
    border-left: 2px solid var(--cosmic-highlight);
    border-radius: 0 12px 12px 0;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   TEST DE PERSONALIDAD
══════════════════════════════════════════════════════════════ */
.test-progress-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.test-progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.test-question-num {
    font-family: var(--font-titles);
    font-size: 3rem;
    color: rgba(122,66,177,0.3);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.test-question-text {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.test-option-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.test-option-btn:active, .test-option-btn.selected {
    background: rgba(122,66,177,0.25);
    border-color: var(--cosmic-highlight);
    color: var(--cosmic-highlight);
}

.archetype-result {
    padding: 2rem 1.5rem;
}

.archetype-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: gentleFloat 3s ease-in-out infinite;
}

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

.result-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.result-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.result-list li::before {
    content: "✦";
    color: var(--cosmic-highlight);
    flex-shrink: 0;
}

.element-bar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.element-label {
    width: 60px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.element-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.element-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.element-pct {
    width: 36px;
    font-size: 0.75rem;
    color: var(--cosmic-highlight);
    text-align: right;
    flex-shrink: 0;
}

.test-actions {
    margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   DIARIO DE MANIFESTACIÓN
══════════════════════════════════════════════════════════════ */
.affirmation-daily-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(122,66,177,0.2), rgba(28,14,53,0.6));
    border-color: var(--cosmic-accent);
}

.affirmation-daily-text {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0.5rem 0 1rem;
    font-style: italic;
}

.affirmation-refresh {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.affirmation-refresh:active { border-color: var(--cosmic-highlight); color: var(--cosmic-highlight); }

.templates-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
}

.templates-row::-webkit-scrollbar { display: none; }

.template-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.template-btn:active { background: rgba(122,66,177,0.2); border-color: var(--cosmic-accent); color: var(--cosmic-highlight); }

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.editor-title-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--cosmic-highlight);
    font-family: var(--font-titles);
    font-size: 1rem;
    outline: none;
}

.editor-title-input::placeholder { color: rgba(209,184,248,0.3); }

.editor-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.diary-editor {
    width: 100%;
    min-height: 160px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    margin-bottom: 1rem;
}

.diary-editor::placeholder { color: rgba(168,148,194,0.4); }

.editor-actions {
    display: flex;
    gap: 0.8rem;
}

.editor-actions .btn-primary {
    flex: 1;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.editor-actions .btn-secondary {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

.diary-entry-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.diary-entry-item:active { transform: scale(0.98); }

.diary-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.diary-entry-title {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    color: var(--cosmic-highlight);
}

.diary-entry-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.diary-entry-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.diary-entry-delete {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(255,100,100,0.1);
    border: 1px solid rgba(255,100,100,0.2);
    border-radius: 8px;
    color: rgba(255,100,100,0.6);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.diary-entry-item:hover .diary-entry-delete { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   CALENDARIO LUNAR
══════════════════════════════════════════════════════════════ */
.luna-banner {
    padding: 1.5rem;
}

.luna-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.luna-banner-emoji {
    font-size: 3.5rem;
    flex-shrink: 0;
    animation: gentleFloat 4s ease-in-out infinite;
}

.luna-action-box {
    background: rgba(122,66,177,0.1);
    border-radius: 12px;
    padding: 0.8rem;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-nav-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:active { background: rgba(122,66,177,0.2); }

.cal-month-title {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--cosmic-highlight);
    text-align: center;
}

.cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.cal-days-header span {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0.2rem;
    position: relative;
}

.cal-day:active { background: rgba(122,66,177,0.2); }
.cal-day.today { background: rgba(122,66,177,0.2); border: 1px solid var(--cosmic-accent); }
.cal-day.selected { background: rgba(209,184,248,0.15); border: 1px solid var(--cosmic-highlight); }
.cal-day.empty { cursor: default; }
.cal-day.other-month .cal-day-num { opacity: 0.3; }

.cal-day-num {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1;
}

.cal-day-luna {
    font-size: 0.75rem;
    line-height: 1;
}

.cal-detail-luna {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cal-detail-tip {
    background: rgba(122,66,177,0.1);
    border-radius: 12px;
    padding: 0.8rem;
}

.phase-guide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.phase-guide-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
}

.phase-emoji { font-size: 2rem; flex-shrink: 0; }

.phase-guide-card h4 {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    color: var(--cosmic-highlight);
    margin-bottom: 0.3rem;
}

/* ══════════════════════════════════════════════════════════════
   CRISTALES
══════════════════════════════════════════════════════════════ */
.cristales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cristal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cristal-card:active {
    transform: scale(0.95);
    border-color: var(--cosmic-accent);
}

.cristal-card.recommended {
    border-color: rgba(209,184,248,0.4);
    background: rgba(122,66,177,0.1);
}

.cristal-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.cristal-name { font-family: var(--font-titles); font-size: 0.9rem; color: var(--cosmic-highlight); margin-bottom: 0.3rem; }
.cristal-chakra-small { font-size: 0.7rem; color: var(--text-secondary); }
.cristal-rec-badge { display: block; margin-top: 0.4rem; font-size: 0.65rem; color: #5deb98; }

.cristal-modal-emoji { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.chakra-badge {
    display: inline-block;
    background: rgba(122,66,177,0.2);
    border: 1px solid var(--cosmic-accent);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: var(--cosmic-highlight);
    margin-top: 0.4rem;
}

.cristal-info-section { margin-bottom: 0.5rem; }
.cristal-info-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cosmic-highlight);
    margin-bottom: 0.4rem;
}

.cristal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cristal-tag {
    background: rgba(122,66,177,0.15);
    border: 1px solid rgba(122,66,177,0.3);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════
   MEDITACIONES
══════════════════════════════════════════════════════════════ */
.meditations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meditation-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.meditation-card:active {
    transform: scale(0.98);
    border-color: var(--cosmic-accent);
}

.meditation-card-emoji { font-size: 2.5rem; flex-shrink: 0; }
.meditation-card-body { flex: 1; }
.meditation-card-title {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    color: var(--cosmic-highlight);
    margin-bottom: 0.3rem;
}
.meditation-card-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.meditation-card-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}
.meditation-card-arrow { color: var(--text-secondary); font-size: 1.2rem; }

.meditation-big-emoji { font-size: 4rem; display: block; margin-bottom: 0.3rem; }

.btn-back-inline {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    cursor: pointer;
    display: block;
    margin-bottom: 1.5rem;
    padding: 0;
}

.meditation-timer {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 8;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--cosmic-highlight);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px var(--cosmic-highlight));
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-titles);
    font-size: 1.6rem;
    color: var(--text-primary);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.timer-btn {
    background: linear-gradient(135deg, var(--cosmic-accent), #5a2e87);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.timer-btn:active { transform: scale(0.95); }

.meditation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meditation-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.8rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    transition: background 0.3s;
}

.meditation-step.active-step {
    background: rgba(122,66,177,0.15);
    border-left: 2px solid var(--cosmic-highlight);
}

.meditation-step-num {
    width: 28px;
    height: 28px;
    background: var(--cosmic-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.meditation-step-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   NUMEROLOGÍA
══════════════════════════════════════════════════════════════ */
.num-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.num-card {
    text-align: center;
    padding: 1.2rem 0.5rem;
}

.num-big {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    background: linear-gradient(to bottom, #ffffff, var(--cosmic-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.4rem;
}

.num-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.num-compatible-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.num-compat-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--cosmic-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    color: var(--cosmic-highlight);
    background: rgba(122,66,177,0.15);
}

/* ══════════════════════════════════════════════════════════════
   SEÑALES DEL UNIVERSO
══════════════════════════════════════════════════════════════ */
.senal-del-dia {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(122,66,177,0.2), rgba(28,14,53,0.6));
    border-color: var(--cosmic-accent);
}

.senal-dia-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.senal-dia-emoji { font-size: 2.5rem; flex-shrink: 0; }

.search-bar { position: relative; }

.search-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus { border-color: var(--cosmic-highlight); }

.angel-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.angel-number-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.angel-number-card:active {
    transform: scale(0.95);
    border-color: var(--cosmic-accent);
}

.angel-number-num {
    font-family: var(--font-titles);
    font-size: 1.4rem;
    color: var(--cosmic-highlight);
    display: block;
}

.angel-number-title {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    line-height: 1.3;
}

.senales-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.senal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.senal-card:active { transform: scale(0.98); border-color: var(--cosmic-accent); }

.senal-card-emoji { font-size: 1.8rem; flex-shrink: 0; }
.senal-card-body { flex: 1; }
.senal-card-name { font-family: var(--font-titles); font-size: 0.9rem; color: var(--cosmic-highlight); margin-bottom: 0.2rem; }
.senal-card-preview { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.3; }
.senal-card-arrow { color: var(--text-secondary); }

.senal-modal-emoji { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.senal-info-section { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════════
   ANGEL NUMBERS GRID
══════════════════════════════════════════════════════════════ */
.angel-card {
    border-radius: 16px;
    padding: 1rem 0.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.angel-emoji { font-size: 1.6rem; }
.angel-num { font-family: var(--font-titles); font-size: 1.3rem; color: var(--cosmic-highlight); }
.angel-love { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.3; margin-top: 0.3rem; }

/* ══════════════════════════════════════════════════════════════
   DIARY ENTRIES
══════════════════════════════════════════════════════════════ */
.diary-entry-card {
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.diary-entry-card:active { transform: scale(0.98); }
.diary-entry-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.4rem; }
.diary-entry-title { font-family: var(--font-titles); font-size: 0.9rem; color: var(--cosmic-highlight); }
.diary-entry-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.diary-date { font-size: 0.7rem; color: var(--text-secondary); }
.diary-delete-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 2px 4px; }
.diary-preview { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════
   CALENDAR GRID
══════════════════════════════════════════════════════════════ */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0.5rem 0; }
.cal-cell { border-radius: 8px; padding: 4px 2px; text-align: center; cursor: pointer; transition: background 0.2s; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cal-cell:hover { background: rgba(122,66,177,0.2); }
.cal-cell.empty { cursor: default; }
.cal-today { background: rgba(122,66,177,0.35); border: 1px solid var(--cosmic-accent); }
.cal-day-num { font-size: 0.75rem; color: var(--cosmic-highlight); font-weight: 500; }
.cal-day-moon { font-size: 0.85rem; }
.cal-detail-luna { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.cal-detail-tip { background: rgba(122,66,177,0.1); border-radius: 10px; padding: 0.7rem 1rem; margin-top: 0.5rem; }

/* ══════════════════════════════════════════════════════════════
   MEDITATION CARDS
══════════════════════════════════════════════════════════════ */
.med-card-emoji { font-size: 2.5rem; flex-shrink: 0; }
.med-card-body { flex: 1; }
.med-card-title { font-family: var(--font-titles); font-size: 1rem; color: var(--cosmic-highlight); margin-bottom: 0.3rem; }
.med-card-footer { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.med-duration-chip, .med-steps-chip { font-size: 0.7rem; background: rgba(122,66,177,0.2); border-radius: 20px; padding: 2px 8px; color: var(--text-secondary); }

.med-step { display: flex; gap: 1rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 1px solid rgba(122,66,177,0.15); transition: background 0.3s; border-radius: 8px; }
.med-step:last-child { border-bottom: none; }
.active-step-highlight { background: rgba(122,66,177,0.2); padding: 0.8rem; }
.med-step-icon { font-size: 1.4rem; flex-shrink: 0; }
.med-step-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   COMPAT SIGNS
══════════════════════════════════════════════════════════════ */
.compat-sign-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(122,66,177,0.2); border-radius: 12px; padding: 0.6rem 0.5rem; font-size: 0.75rem; color: var(--cosmic-highlight); }
.compat-sign-chip span:first-child { font-size: 1.4rem; }

/* ══════════════════════════════════════════════════════════════
   NUMEROLOGY COMPAT
══════════════════════════════════════════════════════════════ */
.num-compatible-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.num-compat-chip { background: rgba(122,66,177,0.25); border: 1px solid var(--cosmic-accent); border-radius: 12px; padding: 0.5rem 1rem; }
.num-big-small { font-family: var(--font-titles); font-size: 1.5rem; color: var(--cosmic-highlight); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .arcana-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .num-cards-row { gap: 0.5rem; }
    .cristales-grid { gap: 0.7rem; }
    .angel-numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
