/* ============================================================
   🌌 SUPRA ORÁCULO — ORACLE COMPLETION & UNLOCK CSS v2.0
   Professional styling, lock overlays, unlock animations,
   dream privacy notice with checkbox
   ============================================================ */

/* ===== ORACLE CHECK WRAP (button + label) ===== */
.oracle-check-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}
.oracle-check-label {
    font-size: 0.65rem;
    color: rgba(240,180,41,0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s;
}
.oracle-check-wrap:hover .oracle-check-label {
    color: rgba(240,180,41,0.8);
}

/* ===== ORACLE CHECK BUTTON ===== */
.oracle-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.25);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.oracle-check-btn:hover {
    border-color: rgba(240,180,41,0.5);
    color: rgba(240,180,41,0.7);
    background: rgba(240,180,41,0.05);
    transform: scale(1.1);
}
.oracle-check-btn.checked {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    box-shadow: 0 0 10px rgba(34,197,94,0.15);
}
.oracle-check-btn.checked i {
    animation: checkPop 0.3s ease;
}
@keyframes checkPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== ORACLE CONFIRMATION POPUP ===== */
.oracle-confirm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99997;
    animation: confirmFadeIn 0.3s ease;
}
@keyframes confirmFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.oracle-confirm-content {
    background: linear-gradient(145deg, #1a1a35, #12122a);
    border: 1px solid rgba(240,180,41,0.25);
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(240,180,41,0.08);
}
.oracle-confirm-content p {
    font-size: 0.9rem;
    color: rgba(232,228,245,0.85);
    line-height: 1.6;
    margin-bottom: 18px;
}
.oracle-confirm-content p i {
    color: #f0b429;
    margin-right: 6px;
}
.oracle-confirm-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.oracle-confirm-yes {
    padding: 10px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.oracle-confirm-yes:hover { transform: translateY(-2px); }
.oracle-confirm-no {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
}
.oracle-confirm-no:hover { border-color: rgba(255,255,255,0.3); }

/* ===== ORACLE COMPLETION COUNTER BAR ===== */
.oracle-completion-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin: 16px 0;
    background: rgba(240,180,41,0.04);
    border: 1px solid rgba(240,180,41,0.12);
    border-radius: 14px;
    font-size: 0.9rem;
    color: var(--cosmic-gold, #f0b429);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.oracle-counter-icon { font-size: 1.2rem; }

/* ===== LOCKED ORACLE OVERLAY — FULLSCREEN Professional ===== */
.oracle-locked {
    position: relative !important;
    overflow: hidden;
}
.lock-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(15,10,40,0.97) 0%, rgba(5,3,15,0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99990;
    gap: 12px;
    padding: 40px 30px;
    animation: lockOverlayFadeIn 0.6s ease;
}
@keyframes lockOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lock-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" opacity="0.03"><circle cx="50" cy="50" r="1" fill="white"/><circle cx="150" cy="30" r="0.5" fill="white"/><circle cx="100" cy="120" r="0.8" fill="white"/><circle cx="30" cy="170" r="0.6" fill="white"/><circle cx="170" cy="160" r="1.2" fill="white"/></svg>');
    pointer-events: none;
    animation: lockStarsBG 60s linear infinite;
}
@keyframes lockStarsBG {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}
.lock-overlay .lock-icon {
    font-size: 4rem;
    color: rgba(240,180,41,0.7);
    animation: lockPulse 2.5s ease infinite;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(240,180,41,0.3));
}
@keyframes lockPulse {
    0%,100% { opacity: 0.6; transform: scale(1); filter: drop-shadow(0 0 20px rgba(240,180,41,0.2)); }
    50% { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(240,180,41,0.5)); }
}
.lock-overlay .lock-title-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0b429;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 30px rgba(240,180,41,0.3);
}
.lock-overlay .lock-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    max-width: 500px;
    line-height: 1.7;
    margin: 8px 0;
}
.lock-overlay .lock-text strong {
    color: #f0b429;
}
.lock-overlay .lock-progress-bar {
    width: 280px;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.lock-overlay .lock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c6aef, #9333ea, #c084fc);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 0 12px rgba(124,106,239,0.4);
}
.lock-overlay .lock-progress {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cosmic-gold, #f0b429);
    margin: 8px 0 0;
    letter-spacing: 2px;
}
/* Regresar button inside lock overlay */
.lock-overlay .lock-back-btn {
    margin-top: 24px;
    padding: 16px 48px;
    font-size: 1.15rem;
    font-weight: 700;
    border: 2px solid rgba(240,180,41,0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(240,180,41,0.04));
    color: #f0b429;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lock-overlay .lock-back-btn:hover {
    background: linear-gradient(135deg, rgba(240,180,41,0.25), rgba(240,180,41,0.1));
    border-color: #f0b429;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240,180,41,0.2);
}

/* ===== UNLOCK EXPLOSION ANIMATION — PREMIUM ===== */
.unlock-explosion-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(10,5,30,0.95) 0%, rgba(2,1,10,0.99) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: unlockFadeIn 0.8s ease;
    overflow: hidden;
}
@keyframes unlockFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.unlock-explosion-content {
    text-align: center;
    position: relative;
    padding: 40px;
}
/* Cosmic rings behind icon */
.unlock-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(240,180,41,0.15);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.unlock-ring-1 { width: 200px; height: 200px; animation: ringExpand 2s ease-out 0.2s both; }
.unlock-ring-2 { width: 350px; height: 350px; animation: ringExpand 2s ease-out 0.5s both; border-color: rgba(124,106,239,0.12); }
.unlock-ring-3 { width: 500px; height: 500px; animation: ringExpand 2s ease-out 0.8s both; border-color: rgba(147,51,234,0.08); }
@keyframes ringExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.unlock-stars-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    pointer-events: none;
}
.unlock-star {
    position: absolute;
    top: 0; left: 0;
    animation: starExplode 2s ease-out forwards;
    opacity: 0;
}
@keyframes starExplode {
    0% { transform: translate(0,0) scale(0); opacity: 1; }
    20% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}
/* Particle trail effect */
.unlock-particle {
    position: absolute;
    width: var(--psize, 3px);
    height: var(--psize, 3px);
    border-radius: 50%;
    background: var(--pcolor, #f0b429);
    animation: particleFloat var(--pdur, 3s) ease-out var(--pdelay, 0s) both;
    opacity: 0;
}
@keyframes particleFloat {
    0% { transform: translate(0,0) scale(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(var(--ptx), var(--pty)) scale(0.3); opacity: 0; }
}
.unlock-icon-big {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: unlockBounce 1s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
    filter: drop-shadow(0 0 40px rgba(240,180,41,0.4));
    position: relative;
    z-index: 2;
}
@keyframes unlockBounce {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.3) rotate(10deg); opacity: 1; filter: drop-shadow(0 0 60px rgba(240,180,41,0.6)); }
    100% { transform: scale(1) rotate(0); opacity: 1; filter: drop-shadow(0 0 30px rgba(240,180,41,0.3)); }
}
.unlock-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #f0b429;
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(240,180,41,0.5), 0 0 80px rgba(240,180,41,0.2);
    animation: unlockTextReveal 1s ease 0.5s both;
    position: relative;
    z-index: 2;
}
@keyframes unlockTextReveal {
    0% { opacity: 0; transform: translateY(20px); letter-spacing: 8px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 3px; }
}
.unlock-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(124,106,239,0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: unlockTextReveal 1s ease 0.7s both;
    position: relative;
    z-index: 2;
}
.unlock-msg {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: unlockTextReveal 1s ease 0.9s both;
    position: relative;
    z-index: 2;
}
.unlock-continue-btn {
    padding: 18px 48px;
    background: linear-gradient(135deg, #7c6aef, #9333ea);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: unlockTextReveal 1s ease 1.1s both;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}
.unlock-continue-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(124,106,239,0.5);
}
/* Sacred geometry background for unlock */
.unlock-sacred-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    opacity: 0.04;
    animation: sacredRotate 30s linear infinite;
    pointer-events: none;
}
@keyframes sacredRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== DREAM PRIVACY NOTICE — Professional Redesign ===== */
.dream-privacy-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,5,20,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: unlockFadeIn 0.4s ease;
}
.dream-privacy-box {
    background: linear-gradient(145deg, #14142e, #1c1c3e);
    border: 1px solid rgba(124,106,239,0.2);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 0;
    text-align: left;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(124,106,239,0.08);
}
.dream-privacy-header {
    text-align: center;
    padding: 28px 28px 16px;
}
.dream-privacy-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}
.dream-privacy-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #f0b429;
    margin: 0 0 4px;
    line-height: 1.4;
}
.dream-privacy-subtitle {
    font-size: 0.82rem;
    color: rgba(232,228,245,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}
.dream-privacy-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,106,239,0.2), transparent);
    margin: 0;
}
.dream-privacy-text {
    padding: 20px 28px;
    font-size: 0.85rem;
    color: rgba(232,228,245,0.8);
    line-height: 1.7;
}
.dream-privacy-text p { margin: 0 0 14px; }
.dream-privacy-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.dream-privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}
.dream-privacy-item i {
    color: #7c6aef;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.dream-privacy-item span {
    font-size: 0.82rem;
    line-height: 1.5;
}
.dream-privacy-item strong {
    color: #f0b429;
}
.dream-privacy-disclaimer {
    padding: 14px 16px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 10px;
    font-size: 0.8rem;
    color: rgba(239,68,68,0.85);
    line-height: 1.5;
}
.dream-privacy-disclaimer i {
    color: #ef4444;
    margin-right: 4px;
}
.dream-privacy-disclaimer strong {
    color: #ef4444;
}

/* ===== CHECKBOX ACCEPTANCE SECTION ===== */
.dream-privacy-accept-section {
    padding: 16px 28px;
}
.dream-privacy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(232,228,245,0.75);
    line-height: 1.4;
    padding: 12px 16px;
    background: rgba(240,180,41,0.03);
    border: 1px solid rgba(240,180,41,0.1);
    border-radius: 12px;
    transition: all 0.3s;
}
.dream-privacy-checkbox-label:hover {
    border-color: rgba(240,180,41,0.25);
    background: rgba(240,180,41,0.06);
}
.dream-privacy-checkbox {
    display: none;
}
.dream-privacy-checkmark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    font-size: 0;
    color: transparent;
}
.dream-privacy-checkbox:checked + .dream-privacy-checkmark {
    border-color: #22c55e;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    font-size: 0.7rem;
}

/* ===== PRIVACY ACTION BUTTONS ===== */
.dream-privacy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 28px 28px;
}
.dream-privacy-accept {
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c6aef, #9333ea);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.dream-privacy-accept:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,106,239,0.35);
}
.dream-privacy-accept.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}
.dream-privacy-decline {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.dream-privacy-decline:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.6); }

/* ===== OVERVIEW LOCKED CARDS ===== */
.overview-card.locked-card {
    position: relative;
    opacity: 0.7;
    cursor: default;
    overflow: hidden;
}
.overview-card.locked-card::after {
    content: '🔒';
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.9rem;
    filter: grayscale(0.3);
}
.overview-card.locked-card .overview-value {
    filter: blur(2px);
}
.overview-card.locked-card:hover {
    transform: none;
    box-shadow: none;
}
.overview-card.unlocked-card {
    border-color: rgba(34,197,94,0.4) !important;
    box-shadow: 0 0 15px rgba(34,197,94,0.1);
}
.overview-card.unlocked-card::after {
    content: '✨';
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .unlock-title { font-size: 1.5rem; }
    .unlock-msg { font-size: 0.95rem; }
    .unlock-icon-big { font-size: 4rem; }
    .lock-overlay .lock-title-text { font-size: 1.2rem; }
    .lock-overlay .lock-text { font-size: 0.9rem; }
    .lock-overlay .lock-back-btn { padding: 14px 36px; font-size: 1rem; }
    .lock-overlay .lock-progress-bar { width: 220px; }
    .dream-privacy-box { border-radius: 18px; }
    .dream-privacy-header { padding: 20px 20px 12px; }
    .dream-privacy-box h3 { font-size: 1rem; }
    .dream-privacy-text { padding: 16px 20px; }
    .dream-privacy-accept-section { padding: 12px 20px; }
    .dream-privacy-actions { padding: 0 20px 20px; }
    .oracle-check-label { font-size: 0.58rem; }
    .oracle-confirm-content { padding: 18px 20px; max-width: 300px; }
}
