/* ╔══════════════════════════════════════════════════════════╗
   ║  YUGANTAR CYBERNETICS — PROJECT DISCOVERY ENGINE        ║
   ║  World-Class Cinematic Glassmorphism Experience          ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── KILL the white triangle from global page-header::after ── */
.discovery-hero.page-header::after {
    display: none !important;
}

/* AI Intel Bubble Premium Styling */
.ai-intel-bubble {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ai-intel-bubble.active {
    display: block;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.1);
}

.pulse-ring {
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.pulse-ring i {
    font-size: 1.25rem;
    z-index: 2;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #D4AF37; /* Use hex since var might be missing */
    border-radius: 50%;
    animation: ripple 2s infinite;
}

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

.ai-intel-bubble strong {
    color: #D4AF37;
    font-weight: 700;
}

.discovery-hero.page-header::before {
    background: none !important;
}

.discovery-hero.page-header {
    border-bottom: none !important;
    padding-bottom: 30px !important;
}

/* ── Section Wrapper: Cinematic Deep Space ── */
.discovery-wrapper {
    background: #020617;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.12) 0px, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.04) 0px, transparent 60%);
    min-height: 85vh;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.discovery-wrapper::before {
    display: none !important;
}

/* ── Background Tech Grid ── */
.wizard-tech-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(212, 175, 55, 0.06) 1px, transparent 0);
    background-size: 48px 48px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none !important;
}

/* ── Command Center Card: Ultra Glassmorphism ── */
.wizard-card {
    background: rgba(10, 18, 38, 0.75);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);
    border-radius: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 
        0 50px 120px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 80px rgba(212, 175, 55, 0.03);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.wizard-header {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.6) 0%, rgba(2, 6, 23, 0.3) 100%);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: center;
}

/* ── Progress Bar: Liquid Gold ── */
.wizard-progress-container {
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-top: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #F59E0B, #D4AF37);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: shimmerBar 2s linear infinite;
}

@keyframes shimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wizard-body {
    padding: 2rem;
    color: #f1f5f9;
    position: relative;
    z-index: 10;
}

/* ══════════════════════════════════════════
   ENTRY MODE CARDS — Premium Hover-Lift
   ══════════════════════════════════════════ */
.entry-option-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 200px;
    justify-content: center;
    position: relative;
    z-index: 10;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    width: 100%;
    pointer-events: auto !important;
    overflow: hidden;
}

/* Ambient glow behind card on hover */
.entry-option-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(245, 158, 11, 0.1), rgba(212, 175, 55, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.entry-option-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.entry-option-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4), 
        0 0 40px rgba(212, 175, 55, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.3) inset;
}

.entry-option-card:hover::before {
    opacity: 1;
}

.entry-option-card:hover::after {
    opacity: 1;
}

.entry-option-card:active {
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid #D4AF37 !important;
    transform: scale(0.98);
}

.entry-option-card i {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    color: #D4AF37;
    margin-bottom: 1rem;
    transition: all 0.5s;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}

.entry-option-card:hover i {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.4));
}

.entry-option-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.entry-option-card p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.82rem;
    max-width: 220px;
    margin: 0 auto;
}

.entry-option-card:hover p {
    color: #94a3b8;
}

/* ══════════════════════════════════════════
   VOICE INPUT — Pulse Ring
   ══════════════════════════════════════════ */
.voice-record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.06);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s;
    position: relative;
}

.voice-record-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.voice-record-btn.recording {
    background: #D4AF37;
    color: #020617;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    animation: voiceBreath 1.5s infinite alternate;
}

.voice-record-btn.recording::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    opacity: 0.5;
    animation: voiceRipple 1.5s infinite;
}

@keyframes voiceBreath {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes voiceRipple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ══════════════════════════════════════════
   UPLOAD ZONE — Dashed Glow
   ══════════════════════════════════════════ */
.upload-zone {
    background: rgba(15, 23, 42, 0.3) !important;
    border: 2px dashed rgba(212, 175, 55, 0.15) !important;
    border-radius: 1.25rem !important;
    transition: all 0.4s;
}

.upload-zone:hover {
    background: rgba(212, 175, 55, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}

/* ══════════════════════════════════════════
   SELECTION BUTTONS — Liquid Gold Highlight
   ══════════════════════════════════════════ */
.selection-btn {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 1.25rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.selection-btn:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.selection-btn.selected {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: #D4AF37;
    color: #D4AF37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.3) inset;
}

.selection-btn.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #D4AF37, #F59E0B);
    border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════
   AI ANALYSIS OVERLAY — Full Screen Terminal
   ══════════════════════════════════════════ */
#analysis-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.terminal-text {
    font-family: 'Inter', 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 2rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.terminal-scanner {
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.terminal-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: scannerMove 1.5s infinite;
}

@keyframes scannerMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ══════════════════════════════════════════
   AI SUMMARY CARD — Institutional Readout
   ══════════════════════════════════════════ */
.institutional-seal-silver {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    border: 1.5px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.5;
    animation: sealGlow 3s infinite alternate;
}

@keyframes sealGlow {
    from { box-shadow: 0 0 8px rgba(212, 175, 55, 0.05); }
    to { box-shadow: 0 0 25px rgba(212, 175, 55, 0.12); }
}

.institutional-seal-silver::after {
    content: 'YUG';
    font-size: 9px;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.4);
    letter-spacing: 2px;
}

.ai-summary-card {
    background: rgba(10, 18, 38, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.ai-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.ai-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.75rem;
}

.ai-recommendation-box {
    background: rgba(2, 6, 23, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.06);
}

/* ══════════════════════════════════════════
   PREMIUM BUTTONS
   ══════════════════════════════════════════ */
.btn-premium, .btn-premium-gold {
    position: relative;
    z-index: 2500 !important;
    pointer-events: auto !important;
}

.btn-premium {
    background: #ffffff;
    color: #020617;
    border: none;
    border-radius: 0.875rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.btn-premium:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.btn-premium-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #020617;
    border: none;
    border-radius: 0.875rem;
    padding: 1rem 2rem;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.35s;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.btn-premium-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

/* ══════════════════════════════════════════
   WIZARD STEP TRANSITIONS
   ══════════════════════════════════════════ */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: stepReveal 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes stepReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes meshFlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ════════════════════════════════════════
   TRANSCRIPT & FORM OVERRIDES (DARK BG)
   ════════════════════════════════════════ */
.transcript-box {
    background: rgba(2, 6, 23, 0.4);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    color: #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem;
}

.wizard-body .text-muted,
.discovery-wrapper .text-muted {
    color: #94a3b8 !important;
}

.wizard-body .sys-text-navy,
.discovery-wrapper .sys-text-navy {
    color: #e2e8f0 !important;
}

.wizard-body .form-label {
    color: #cbd5e1 !important;
    font-size: 0.875rem;
}

.wizard-body .form-control,
.wizard-body .form-select {
    background: rgba(15, 23, 42, 0.6);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.wizard-body .form-control:focus,
.wizard-body .form-select:focus {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(212, 175, 55, 0.4);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), 0 0 20px rgba(212, 175, 55, 0.06);
}

.wizard-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.wizard-body .form-check-label {
    color: #94a3b8 !important;
}

.wizard-body .upload-zone h5 { color: #e2e8f0; }
.wizard-body .upload-zone p { color: #94a3b8 !important; }
.wizard-body .upload-block .form-label { color: #e2e8f0 !important; }

#view-summary .text-muted { color: #94a3b8 !important; }

/* Border top for wizard nav */
.wizard-body .border-top {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Data consent box */
.border-gold-soft {
    border-color: rgba(212, 175, 55, 0.15) !important;
    background: rgba(15, 23, 42, 0.3) !important;
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE REFINEMENTS
   ════════════════════════════════════════ */
@media (max-width: 767px) {
    .wizard-card {
        border-radius: 1.25rem;
        margin: 0 -8px;
    }
    
    .wizard-body {
        padding: 1.25rem;
    }
    
    .entry-option-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .entry-option-card i {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
        border-radius: 12px;
    }
    
    .entry-option-title {
        font-size: 0.95rem;
    }
    
    .entry-option-card p {
        font-size: 0.75rem;
    }
    
    .selection-btn {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .ai-summary-card {
        padding: 1.5rem;
    }
    
    .btn-premium, .btn-premium-gold {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Validation shake animation */
@keyframes shakeStep {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}