:root {
    --bg-color: #070707;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-blue: #0ea5e9;
    --accent-blue-glow: rgba(14, 165, 233, 0.4);
    --accent-lime: #a3e635;
    --accent-lime-glow: rgba(163, 230, 53, 0.5);
    --card-bg: rgba(10, 10, 10, 0.8);
    --card-border: rgba(255, 255, 255, 0.03);
    --card-hover-border: rgba(14, 165, 233, 0.3);
    --card-hover-border-lime: rgba(163, 230, 53, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, #0a1a2e 0%, transparent 60%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: -2;
    pointer-events: none;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.main-logo-icon {
    height: 65px;
    width: 65px;
}

.logo-text {
    font-size: 2.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.veltra-text {
    color: #00f2ff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.ai-text {
    color: #7cfc00;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(124, 252, 0, 0.3);
}

.cyber-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-content {
    width: 100%;
    max-width: 650px;
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {  
    /* Glow brilhando azul eletrico e verde neon sutilmente */
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(163, 230, 53, 0.1), 0 0 15px rgba(14, 165, 233, 0.15);
}

.card.hidden { display: none; }

.hero-title {
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
    margin-bottom: 2.5rem;
}

.upload-area.active, .upload-area:hover {
    border-color: var(--accent-blue);
    background: rgba(14, 165, 233, 0.05);
}

.upload-icon {
    color: #ffffff;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.sub-prompt { color: var(--text-muted); font-size: 0.95rem; }
.highlight { color: var(--accent-blue); }
#file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.security-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.security-badge { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px; font-size: 0.85rem; color: #cbd5e1; background: rgba(255, 255, 255, 0.03); padding: 0.6rem 1.4rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); }

/* Micro Logo in Badges */
.micro-logo { flex-shrink: 0; width: 16px; height: 16px; }
.micro-logo-blue { filter: drop-shadow(0 0 5px #00f2ff); }
.micro-logo-green { filter: drop-shadow(0 0 5px #7cfc00); }

.error-message { margin-top: 1.5rem; padding: 1rem; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #FCA5A5; border-radius: 8px; font-size: 0.95rem; }
.error-message.hidden { display: none; }

/* Loading State */
.spinner-container { margin: 2rem 0; position: relative; height: 80px; }
.spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border: 3px solid rgba(14, 165, 233, 0.1); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.loading-text { color: var(--accent-blue); font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }

/* Data Scanning Effect inside Result Card */
#result-section::after {
    content: "";
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue-glow);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    animation: scannerSweep 5s ease-in-out infinite;
}

@keyframes scannerSweep {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(800px); opacity: 0; }
}

/* Results State */
.result-header h2 { font-size: 2rem; color: #ffffff; }
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-card h3 { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px;}
.metric-card .value { font-size: 3.2rem; font-weight: 800; color: #ffffff; line-height: 1; letter-spacing: -1.5px; margin-bottom: 0.8rem; text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.metric-card .period { color: var(--text-muted); opacity: 0.8; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    border: 4px solid var(--text-muted);
    color: #ffffff;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.score-good { border-color: #7cfc00; color: #7cfc00; box-shadow: 0 0 15px rgba(124, 252, 0, 0.3); }
.score-warning { border-color: #facc15; color: #facc15; box-shadow: 0 0 15px rgba(250, 204, 21, 0.3); }
.score-critical { border-color: #ff3333; color: #ff3333; box-shadow: 0 0 15px rgba(255, 51, 51, 0.3); }

.neon-green { color: #7cfc00 !important; text-shadow: 0 0 15px rgba(124, 252, 0, 0.4) !important; }
.neon-red-text { color: #ff3333 !important; text-shadow: 0 0 10px rgba(255, 51, 51, 0.5) !important; font-weight: 800; }
.neon-blue-text { color: #00f2ff !important; text-shadow: 0 0 10px rgba(0, 242, 255, 0.5) !important; font-weight: 800; }
.money-on-table { color: #7cfc00; font-size: 0.8rem; font-weight: 600; line-height: 1.4; margin-top: 0.5rem; }

/* Secondary Insights Grid */
.insights-bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.bento-card { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 1.5rem; text-align: left; }
.bento-icon-wrapper { flex-shrink: 0; background: rgba(0, 0, 0, 0.4); border-radius: 8px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.05); }
.bento-text-content h4 { color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.bento-text-content p { color: #ffffff; font-size: 0.95rem; line-height: 1.4; }

.urgency-text { font-weight: 700; color: #050505; margin-top: 0.5rem; padding: 0.8rem 1.5rem; background: var(--accent-blue); box-shadow: 0 0 15px var(--accent-blue-glow); border-radius: 8px; display: inline-block; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; }

.insight-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; text-align: left; margin: 2rem 0; padding: 1.5rem; background: rgba(0, 0, 0, 0.4); border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); }
.insight-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--text-main); line-height: 1.5; }

/* Paywall / Locked Area */
.locked-preview { position: relative; margin-top: 1rem; text-align: left; border: 1px solid var(--card-border); border-radius: 16px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.locked-content { padding: 2.5rem; filter: blur(6px) opacity(0.5); pointer-events: none; user-select: none; }
.locked-content h3 { font-size: 1.3rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }

/* Bento Plan & Terminal */
.recovery-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.recovery-header-row h3 { margin-bottom: 0; }
.fix-time-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(124, 252, 0, 0.05); border: 1px solid rgba(124, 252, 0, 0.3); padding: 0.4rem 0.8rem; border-radius: 8px; color: #7cfc00; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.recovery-payload { margin-top: 2rem; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 2rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.bento-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 1.2rem; border-radius: 12px; display: flex; flex-direction: column; gap: 0.8rem; }
.step-num { width: 28px; height: 28px; background: var(--accent-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.9rem; }
.bento-item p { font-size: 0.95rem; color: #cbd5e1; line-height: 1.4; }

.email-terminal { background: #0f172a; border-radius: 12px; border: 1px solid #1e293b; overflow: hidden; }
.terminal-header { background: #1e293b; padding: 0.8rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.term-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { color: #94a3b8; font-family: monospace; font-size: 0.85rem; }
.copy-btn { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.3); color: var(--accent-blue); cursor: pointer; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.copy-btn:active { background: rgba(14, 165, 233, 0.3); }
.terminal-body { padding: 1.5rem; font-family: monospace; font-size: 0.9rem; color: #a5b4fc; white-space: pre-wrap; line-height: 1.6; }

.blurred-lines { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.blur-line { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.02); padding: 1rem; border-radius: 8px; font-family: monospace; font-size: 0.95rem; }
.star-svg { width: 14px; height: 14px; fill: var(--text-muted); flex-shrink: 0; }
.blur-email { color: var(--text-muted); flex: 1; }
.blur-reason { color: var(--accent-blue); width: 100px; text-align: right; }
.blur-amt { color: #ffffff; font-weight: bold; width: 80px; text-align: right; }

.fake-charts { display: flex; align-items: flex-end; justify-content: center; gap: 15px; height: 120px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,0.1); }
.fake-chart-bar { width: 40px; background: rgba(255,255,255,0.1); border-radius: 4px 4px 0 0; }

.paywall-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.9) 60%, rgba(5,5,5,1) 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 3rem; text-align: center; z-index: 100; }
.paywall-overlay h3 { font-size: 1.8rem; margin-bottom: 1rem; color: white; text-shadow: 0 0 20px rgba(255,255,255,0.4); font-weight: 800; }
.paywall-overlay p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 90%; line-height: 1.6; }

/* ROI Banner Overlay */
.roi-banner { background: rgba(10, 20, 10, 0.6); border: 1px solid rgba(124, 252, 0, 0.2); padding: 1rem 2rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: 1.3rem; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; backdrop-filter: blur(10px); box-shadow: 0 0 25px rgba(124, 252, 0, 0.1); }
.roi-cost { color: #94a3b8; text-decoration: line-through; }
.roi-arrow { color: #ffffff; margin: 0 0.5rem; }
.roi-return { color: #7cfc00; font-size: 2rem; text-shadow: 0 0 15px rgba(124, 252, 0, 0.5); vertical-align: middle; }

/* Live Loss Tracker Bento */
.live-loss-box { background: rgba(255, 75, 43, 0.05); border: 1px solid rgba(255, 75, 43, 0.3); box-shadow: 0 0 20px rgba(255, 75, 43, 0.1); border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; backdrop-filter: blur(8px); display: inline-block; }
.loss-title { font-size: 1.25rem; font-weight: 700; color: #ffffff; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.live-loss-amount { color: #ff4b2b; font-family: monospace; font-size: 1.8rem; text-shadow: 0 0 10px rgba(255, 75, 43, 0.5); }
.loss-subtitle { color: #94a3b8 !important; font-size: 0.85rem !important; letter-spacing: 0.5px; margin-bottom: 0 !important; font-weight: 400; text-transform: none; }

/* VIP Recovery Report Button - 'Metal Gun' gradient and heartbeat glow */
.cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; background: linear-gradient(90deg, #64748b, #0f172a); color: #ffffff; text-decoration: none; font-weight: 800; font-size: 1.25rem; padding: 1.2rem 3.5rem; border-radius: 12px; box-shadow: 0 0 20px rgba(15, 23, 42, 0.8), inset 0 0 10px rgba(255,255,255,0.1); transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.1); }
.cta-button:hover { transform: translateY(-3px) scale(1.02); }

/* Payback Timer / Friction Eraser */
.payback-wrapper { margin-top: 1.2rem; text-align: center; }
.payback-timer { color: #ffffff; font-size: 0.95rem; font-weight: 600; text-shadow: 0 0 10px rgba(255,255,255,0.3); margin-bottom: 0.3rem !important; display: block; letter-spacing: 0.5px; }
.payback-subtext { color: #94a3b8 !important; font-size: 0.8rem !important; font-weight: 400; letter-spacing: 0.3px; margin: 0 !important; }
.heartbeat-btn { animation: heartbeatBtn 2s infinite; }
@keyframes heartbeatBtn { 
    0% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4), inset 0 0 10px rgba(255,255,255,0.1); } 
    14% { box-shadow: 0 0 0 10px rgba(100, 116, 139, 0), 0 0 30px rgba(15, 23, 42, 0.8), inset 0 0 10px rgba(255,255,255,0.1); } 
    28% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0), inset 0 0 10px rgba(255,255,255,0.1); } 
    42% { box-shadow: 0 0 0 10px rgba(100, 116, 139, 0), 0 0 30px rgba(15, 23, 42, 0.8), inset 0 0 10px rgba(255,255,255,0.1); } 
    70% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0), inset 0 0 10px rgba(255,255,255,0.1); } 
    100% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0), inset 0 0 10px rgba(255,255,255,0.1); }
}

.reset-button { margin-top: 2.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; text-decoration: underline; transition: color 0.3s; position: relative; z-index: 10; font-weight: 500; }
.reset-button:hover { color: var(--text-main); }
.footer { margin-top: auto; text-align: center; padding: 2rem; color: #475569; font-size: 0.85rem; }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Failsafe Icon Overrides */
.security-badge i, .security-badge svg:not(.veltra-icon) {
    display: none !important;
}
.veltra-icon {
    display: inline-block !important;
    vertical-align: middle;
}
