:root {
    --bg-core: #030305;
    --glass-surface: rgba(18, 18, 24, 0.75);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --accent: #d946ef;
    --cyan: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --wa-color: #25D366;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-core);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
}

/* --- BACKGROUND FX --- */
.bg-mesh {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
    z-index: -3;
}

.grid-floor {
    position: fixed;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(70deg);
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove { 0% { transform: perspective(500px) rotateX(70deg) translateY(0); } 100% { transform: perspective(500px) rotateX(70deg) translateY(40px); } }

/* --- LAYOUT CONTAINER --- */
.main-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- HUD WIDGETS --- */
.hud-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hud-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hud-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hud-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hud-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex; align-items: center; gap: 8px;
}

.hud-graph {
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}
.hud-bar { height: 100%; background: var(--success); width: 85%; animation: pulseBar 3s infinite; }

@keyframes pulseBar { 0%, 100% { width: 85%; } 50% { width: 60%; } }

/* --- MAIN GLASS PANEL --- */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    position: relative;
}

/* Decorative Corners */
.corner-deco {
    position: absolute; width: 20px; height: 20px;
    border: 2px solid var(--primary);
    transition: 0.3s;
    opacity: 0.5;
}
.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

/* Header */
.header-section { text-align: center; margin-bottom: 30px; position: relative; }

.sys-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.title-glitch {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 40%, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    position: relative;
}

.subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; letter-spacing: 0.5px; }

/* Whatsapp Button */
.dev-channel-box {
    margin-bottom: 25px;
}
.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px;
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.05));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 16px;
    color: var(--wa-color);
    text-decoration: none;
    font-weight: 600; font-size: 0.9rem;
    transition: 0.3s;
    position: relative; overflow: hidden;
}
.btn-whatsapp:hover {
    border-color: var(--wa-color);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    color: #fff; background: var(--wa-color);
}

/* Inputs */
.input-group { margin-bottom: 24px; position: relative; }

.lbl-row {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace; color: var(--text-muted);
}
.lbl-row span:last-child { color: var(--accent); }

.input-box {
    position: relative;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: 0.3s;
    overflow: hidden;
}
.input-box:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.input-box i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1.1rem; transition: 0.3s;
}
.input-box:focus-within i { color: var(--cyan); }

input {
    width: 100%; background: transparent; border: none;
    padding: 16px 16px 16px 50px;
    color: #fff; font-size: 1rem; font-family: 'Outfit', sans-serif;
    outline: none;
}

/* Hint Bar */
.hint-capsule {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 0.7rem; color: var(--text-muted);
}

/* Action Button */
#btnReact {
    width: 100%; height: 60px;
    border: none; outline: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700; font-size: 1rem; letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btnReact:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}
#btnReact::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
#btnReact:hover::before { left: 100%; }

/* Console */
.console-terminal {
    margin-top: 30px;
    background: #050508;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0;
    max-height: 0; opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}
.console-terminal.active { max-height: 200px; padding: 15px; opacity: 1; border-color: rgba(255,255,255,0.1); }

.log-line { display: flex; gap: 10px; border-left: 2px solid var(--glass-border); padding-left: 10px; }
.log-time { color: var(--text-muted); opacity: 0.7; }
.log-text.success { color: var(--success); }
.log-text.error { color: var(--danger); }

/* --- INFO SECTION --- */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s;
}
.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.f-icon { font-size: 1.5rem; margin-bottom: 10px; background: linear-gradient(to bottom, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.f-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; color: #fff; }
.f-desc { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }

/* Loader */
.loading-content { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; }
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Animation blink */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
