/**
 * NETRAA — Face Reading Module Stylesheet
 */
.bg-light-purple { background-color: rgba(74, 20, 140, 0.03); }
.btn-warning { background-color: var(--accent-gold); border-color: var(--accent-gold); }
.btn-warning:hover { background-color: var(--accent-saffron); }
.btn-purple { background-color: var(--primary-purple); border-color: var(--primary-purple); }
.btn-purple:hover { background-color: var(--primary-dark); }
.btn-outline-purple { color: var(--primary-purple); border-color: var(--primary-purple); }
.btn-outline-purple:hover { background-color: var(--primary-purple); color: #fff; }

/* ═══ FULLSCREEN CAMERA — Face Reading ═══ */
.camera-fullscreen { position: fixed; inset: 0; z-index: 9999; background: #000; display: block; }
.camera-video-wrapper { position: absolute; inset: 0; overflow: hidden; background: #000; }
.camera-video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }

.camera-overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; z-index: 5; }
#face-circle {
    width: min(75vw, 420px); height: min(88vh, 560px); border-radius: 50% / 45%;
    border: 3px dashed rgba(255,255,255,0.75); box-shadow: 0 0 0 9999px rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; background: transparent;
}
#face-circle.scanning { border-color: #2ecc71; border-style: solid; animation: scannerGlow 1.5s infinite alternate; }

@keyframes scannerGlow {
    0% { box-shadow: 0 0 10px rgba(46,204,113,0.4), 0 0 0 9999px rgba(0,0,0,0.65); }
    100% { box-shadow: 0 0 25px rgba(46,204,113,0.8), 0 0 0 9999px rgba(0,0,0,0.65); }
}

.camera-status-bar { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 10; }
.camera-bottom-bar { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; }
.camera-close-btn { position: absolute; top: 25px; right: 25px; width: 50px; height: 50px; z-index: 12; display: flex; align-items: center; justify-content: center; }
.camera-capture-btn { width: 80px; height: 80px; border: 5px solid rgba(255,255,255,0.3); box-shadow: 0 4px 15px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.camera-capture-btn:hover { transform: scale(1.05); }

/* Premium Lock Card */
.premium-lock-card { background: linear-gradient(135deg, #120921 0%, #210c3d 100%); border: 2px solid #ff9800 !important; border-radius: 24px !important; color: #fff; overflow: hidden; }
.premium-lock-header { background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 24px; }
.lock-crown-icon { font-size: 3rem; color: #ff9800; filter: drop-shadow(0 0 10px rgba(255,152,0,0.5)); animation: crownPulse 2s infinite alternate; }
@keyframes crownPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,152,0,0.3)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255,152,0,0.7)); }
}
.wallet-balance-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.wallet-amount { font-size: 1.5rem; font-weight: 700; color: #2ecc71; }
.unlock-price { font-size: 2.2rem; font-weight: 800; color: #ff9800; }
.alert-danger-custom { background-color: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.3); color: #e74c3c; border-radius: 10px; }
.premium-feature-card { border-radius: 24px !important; border: 1px solid rgba(74, 20, 140, 0.08) !important; }
.feature-bullet-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* AD WIDGET */
.premium-ad-widget { background: linear-gradient(135deg, rgba(74,20,140,0.06), rgba(255,152,0,0.06)); border: 1px solid rgba(255,152,0,0.15); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.premium-ad-widget::after { content: "AD"; position: absolute; top: 0; right: 0; background: #ff9800; color: #120921; font-size: 0.6rem; font-weight: 800; padding: 2px 8px; border-bottom-left-radius: 8px; letter-spacing: 0.5px; }
.text-purple-dark { color: #311b92; }
.face-heading-divider { width: 40px; height: 3px; background: linear-gradient(90deg, var(--accent-gold, #ff9800), transparent); border-radius: 2px; margin: 4px 0 6px 0; }
.face-form-card { border-radius: 16px !important; }
.face-form-card > .row { align-items: stretch; min-height: 0; }
.face-form-card .col-md-7, .face-form-card .col-md-5 { display: flex; flex-direction: column; }
@media (min-width: 768px) { .border-end-md { border-right: 1px solid rgba(0,0,0,0.08); } }

/* RIGHT PANEL: Scan Visual */
.face-scan-visual-panel { background: linear-gradient(145deg, #120921 0%, #210c3d 100%); border-radius: 0 16px 16px 0; padding: 0; position: relative; overflow: hidden; flex: 1; }
.face-scan-visual-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 14px 14px; }
.face-scan-wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 6px 4px; gap: 4px; }
.face-scan-ring-outer { width: 150px; height: 184px; border-radius: 50% / 45%; border: 2px dashed rgba(255,152,0,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: outerRingPulse 3s ease-in-out infinite; }
@keyframes outerRingPulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.04); opacity: 1; } }
.face-scan-ring-inner { width: 126px; height: 158px; border-radius: 50% / 45%; border: 1.5px solid rgba(255,152,0,0.6); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 0 18px rgba(255,152,0,0.18); }
.face-svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.face-scan-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #ff9800, transparent); animation: scanLine 2s linear infinite; z-index: 2; box-shadow: 0 0 8px rgba(255,152,0,0.8); }
@keyframes scanLine { 0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.face-scan-bottom { width: 100%; padding-top: 6px; }
.face-scan-caption { color: rgba(255,255,255,0.9); font-size: 0.65rem; font-family: 'Cinzel', serif; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 3px; }
.face-scan-tags .badge.bg-purple-soft { background: rgba(255,255,255,0.12) !important; color: #fff !important; font-size: 0.5rem; border: 1px solid rgba(255,255,255,0.22); padding: 1px 3px; }
.face-retake-btn { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.65); color: #fff; font-size: 0.6rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); white-space: nowrap; z-index: 4; cursor: pointer; transition: background 0.2s; }
.face-retake-btn:hover { background: rgba(220,53,69,0.8); }
#snapshot-container { border-radius: 8px; overflow: hidden; }
.face-tab-btn { font-size: 0.75rem !important; }
.autocomplete-results { position: absolute; top: 100%; left: 15px; right: 15px; z-index: 1000; background: #ffffff; border: 1px solid #cbd5e0; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); max-height: 200px; overflow-y: auto; display: none; }
.autocomplete-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #edf2f7; font-size: 0.82rem; color: #2d3748; transition: all 0.2s ease; text-align: left; }
.autocomplete-item:hover { background: #f7fafc; color: #ea580c; }

/* ═══ RESULTS TEMPLATE ENTERPRISE UI ═══ */
.results-card {
    border-radius: 24px;
    border: 1px solid rgba(74, 20, 140, 0.05) !important;
    background: #fff;
}
.results-header {
    background: linear-gradient(135deg, #1c1236 0%, #4a148c 100%);
    overflow: hidden;
}
.header-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
}
.results-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.image-frame-container {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    padding: 6px;
    background: linear-gradient(135deg, #ff9800 0%, #4a148c 100%);
    box-shadow: 0 10px 30px rgba(74, 20, 140, 0.12);
}
.results-img {
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    display: block;
}
.scanner-laser-line-static {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff9800;
    box-shadow: 0 0 8px #ff9800;
    opacity: 0.7;
}
.verdict-banner {
    background: linear-gradient(135deg, #120921 0%, #2e0854 100%);
    border-left: 5px solid #ff9800;
}
.verdict-bg-gradient {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,152,0,0.1) 0%, transparent 50%);
}
.verdict-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}
.metric-card {
    background: rgba(74, 20, 140, 0.01);
    border: 1px solid rgba(74, 20, 140, 0.05);
    border-radius: 20px;
    transition: transform 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 20, 140, 0.1);
}
.bg-purple-light { background-color: rgba(74, 20, 140, 0.06); }
.bg-info-light { background-color: rgba(23, 162, 184, 0.06); }
.bg-success-light { background-color: rgba(40, 167, 69, 0.06); }
.bg-warning-light { background-color: rgba(255, 152, 0, 0.06); }
.bg-info-gradient {
    background: linear-gradient(90deg, #17a2b8 0%, #00bcbc 100%);
}
.text-warning-dark { color: #e67e22; }
.constitution-icon-box {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.radial-progress-container {
    position: relative;
    width: 76px; height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radial-ring {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 5.5;
}
.ring-active {
    fill: none;
    stroke: var(--primary-purple);
    stroke-width: 5.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}
.radial-label {
    position: absolute;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}
.trilok-row {
    background: rgba(74, 20, 140, 0.02);
    border-left: 4px solid var(--primary-purple);
    border-top: 1px solid rgba(0,0,0,0.01);
    border-bottom: 1px solid rgba(0,0,0,0.01);
    border-right: 1px solid rgba(0,0,0,0.01);
    transition: all 0.2s ease;
}
.trilok-row:hover {
    transform: translateX(4px);
    background: rgba(74, 20, 140, 0.03);
}
.bg-pink { background-color: #e91e63 !important; }
.bg-cyan { background-color: #00bcd4 !important; }
.text-pink { color: #e91e63 !important; }
.text-cyan { color: #00bcd4 !important; }
.trait-tag {
    background: #f3e5f5;
    color: #4a148c;
    font-size: 0.85rem;
    border-radius: 30px;
    transition: all 0.2s ease;
}
.trait-tag:hover {
    transform: scale(1.05);
    background: #e1bee7;
}
.btn-premium-cta {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ff6d00 100%);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.3);
    transition: all 0.25s ease;
}
.btn-premium-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.4);
    background: linear-gradient(135deg, #ff6d00 0%, var(--accent-gold) 100%);
}
.samudrik-panel {
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}
.samudrik-panel:hover {
    transform: translateY(-2px);
}
.mukha-icon-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e5f5, #ede7f6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 12px rgba(74,20,140,0.12);
}
.face-width-bar {
    width: 100%;
    max-height: 80px;
    min-height: 20px;
    border-radius: 6px 6px 0 0;
    display: block;
    margin: 0 auto;
    transition: height 0.4s ease;
}
.aspect-badge {
    background: linear-gradient(135deg,#4a148c,#7b1fa2);
    color: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    display: inline-block;
    min-width: 100px;
}
.netra-icon-box {
    width: 68px;
    text-align: center;
}
.netra-stat-chip {
    background: rgba(123,31,162,0.07);
    color: #4a148c;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    border: 1px solid rgba(123,31,162,0.1);
}
.rekha-count-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
    margin: 0 auto;
}
.rekha-count-circle.auspicious {
    background: linear-gradient(135deg,#e8f5e9,#c8e6c9);
    color: #2e7d32;
    border: 3px solid #4caf50;
}
.rekha-count-circle.caution {
    background: linear-gradient(135deg,#fff8e1,#fff3e0);
    color: #e65100;
    border: 3px solid #ff9800;
}
.til-row {
    background: rgba(46,125,50,0.04);
    border: 1px solid rgba(46,125,50,0.08);
}
.til-dot {
    color: #2e7d32;
    font-size: 1.2rem;
    line-height: 1.4;
}
