@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
    --bg-color: #05070a;
    --accent-primary: #00d2ff;
    --accent-secondary: #ff3d00;
    --glass-bg: rgba(0, 210, 255, 0.03);
    --glass-border: rgba(0, 210, 255, 0.2);
    --text-main: #e0f7ff;
    --text-muted: #70a0b0;
    --hud-glow: 0 0 15px rgba(0, 210, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #0a1018 0%, #05070a 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

#bg-grid {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}



@keyframes global-scan {
    from { transform: translateY(-100px); }
    to { transform: translateY(100vh); }
}

.container { width: 100%; max-width: 900px; position: relative; z-index: 2; }

header { text-align: center; margin-bottom: 1rem; padding: 1rem; }

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}

.version-tag {
    font-size: 1rem; color: var(--accent-secondary); border: 1px solid var(--accent-secondary);
    padding: 0.2rem 0.6rem; border-radius: 4px; letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.3);
}

/* Sections Base */
.report-section {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    position: relative;
}

.report-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: 30px;
    border-top: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.3;
}



.report-section::after {

}




/* Dashboard HUD Rows */
.dashboard-row { margin-bottom: 1.5rem; }
.dashboard-row:last-child { margin-bottom: 0; }

.dashboard-label, .module-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.email-intro {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}
.email-intro::before {
    content: '>>';
    color: var(--accent-primary);
    font-weight: bold;
}


.report-title, .module-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem; color: var(--accent-primary); letter-spacing: 2px;
}

.copy-icon-btn {
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; transition: 0.3s; opacity: 0.6;
}

.copy-icon-btn:hover { color: var(--accent-primary); opacity: 1; filter: drop-shadow(0 0 5px var(--accent-primary)); }
.copy-icon-btn:disabled { opacity: 0.2; cursor: not-allowed; }

.subject-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem; color: var(--text-main);
    background: rgba(0,0,0,0.4); padding: 1rem;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

.numbers-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem; color: var(--accent-primary);
    background: rgba(0,0,0,0.4); padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

textarea.clickable-data, textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem; color: var(--text-main);
    background: rgba(0,0,0,0.4); padding: 1rem;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
    height: 120px;
    resize: none;
    outline: none;
}

.clickable-data:hover {
    background: rgba(0, 210, 255, 0.08) !important;
    box-shadow: inset 0 0 15px rgba(0, 210, 255, 0.15);
    border-color: var(--accent-primary);
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    font-weight: 700;
}

textarea, .dashboard-textarea {
    width: 100%; height: 120px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(0, 210, 255, 0.1);
    color: var(--text-main); padding: 1rem; font-size: 0.9rem;
    resize: none; outline: none; transition: 0.3s;
}

textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 10px rgba(0, 210, 255, 0.1); }

/* Attachment Row */
.attachment-row { border-top: 1px solid rgba(0, 210, 255, 0.1); padding-top: 1.5rem; margin-top: 1.5rem; }
.attachment-controls { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }

.copy-btn {
    background: transparent; border: 1px solid var(--accent-primary);
    color: var(--accent-primary); font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem; padding: 0.5rem 1.2rem; cursor: pointer; transition: 0.3s;
}

.copy-btn:hover { background: rgba(0, 210, 255, 0.1); box-shadow: 0 0 10px var(--accent-primary); }
.copy-btn.secondary { border-color: var(--text-muted); color: var(--text-muted); }

/* SMS Dashboard */
.sms-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; margin-top: 1rem; }
.sms-module { background: rgba(0, 210, 255, 0.02); border: 1px solid rgba(0, 210, 255, 0.1); padding: 1.2rem; }

.module-subtext { font-family: 'Orbitron', sans-serif; font-size: 0.6rem; color: var(--text-muted); margin-top: 0.5rem; letter-spacing: 1px; }

/* Drop Zone */
.drop-zone {
    background: var(--glass-bg); border: 1px dashed var(--glass-border);
    padding: 4rem; text-align: center; cursor: pointer; margin-bottom: 1.5rem;
    transition: 0.3s;
}
.drop-zone:hover, .drop-zone.drag-over {
    background: rgba(0, 210, 255, 0.08);
    border-style: solid;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2), inset 0 0 20px rgba(0, 210, 255, 0.1);
    color: #fff;

}


.drop-zone-text { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; letter-spacing: 2px; color: var(--accent-primary); }

/* Progress & Loader */
.progress-container { width: 100%; height: 2px; background: rgba(0,0,0,0.5); margin-top: 0.5rem; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); transition: width 0.3s; }

.app-loader { position: fixed; inset: 0; background: var(--bg-color); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: 0.5s; }
.app-loader.fade-out { opacity: 0; pointer-events: none; }
.spinner { width: 300px; height: 1px; background: rgba(0, 210, 255, 0.2); position: relative; overflow: hidden; }
.spinner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); animation: scan 1.5s infinite; }
@keyframes scan { from { left: -100%; } to { left: 100%; } }

.hidden { display: none !important; }
.warning-item { background: rgba(255, 61, 0, 0.1); border-left: 2px solid var(--accent-secondary); padding: 0.5rem 1rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--accent-secondary); }

@media (max-width: 768px) {
    .sms-grid, .email-dashboard { grid-template-columns: 1fr !important; }
    h1 { font-size: 2rem; }
}

/* Toast HUD Style */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    padding: 1rem 2.5rem;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    z-index: 2000;
    letter-spacing: 2px;
    animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
    from { bottom: 0; opacity: 0; }
    to { bottom: 2rem; opacity: 1; }
}

/* Tech Build Animation (Panel Construction) */
@keyframes tech-build {
    0% { 
        opacity: 0; 
        transform: scaleX(0.05) scaleY(0.01);
        filter: brightness(2) blur(10px);
    }
    30% {
        opacity: 1;
        transform: scaleX(1) scaleY(0.01);
        filter: brightness(1.5);
    }
    60% {
        transform: scaleX(1) scaleY(1);
        filter: brightness(1.2);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes content-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-section.visible {
    display: block !important;
    animation: tech-build 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    transform-origin: center;
}

.report-section.visible > * {
    opacity: 0;
    animation: content-fade-in 0.4s ease-out forwards;
    animation-delay: 0.5s;
}

/* Hub Menu Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.menu-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    backdrop-filter: blur(10px);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2), inset 0 0 20px rgba(0, 210, 255, 0.1);
}

.menu-item:hover::before {
    transform: translateX(100%);
}

.menu-item h2 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    color: var(--text-main);
}

.menu-item:hover h2 {
    text-shadow: 0 0 10px var(--accent-primary);
    color: #fff;
}

.menu-item .status {
    font-size: 0.6rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.menu-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-item.locked:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: none;
}

.header-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}


/* Back Button Iron Man Style */
.back-nav {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 100;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.back-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    transform: translateX(-5px);
}

.back-btn::before {
    content: '<<';
    font-weight: bold;
}

/* Login Page Styles */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 10rem);
    width: 100%;
    z-index: 10;
    padding: 1rem;
}

.login-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.05);
    position: relative;
    animation: tech-build 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40px; height: 40px;
    border-top: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.5;
}

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

.login-header .status {
    font-size: 0.65rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.login-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    margin-bottom: 0.5rem;
}

.login-header .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.login-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--text-main);
    padding: 1rem 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
    border-radius: 4px;
    letter-spacing: 3px;
    text-align: center;
}

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    background: rgba(0, 210, 255, 0.02);
}

.login-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    cursor: pointer;
    transition: 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.login-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.login-error {
    background: rgba(255, 61, 0, 0.1);
    border-left: 3px solid var(--accent-secondary);
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}
