:root {
    --p1-color: #ff4757;
    --neon-blue: #00d2ff;
    --gold: #ffd700;
    --bg-dark: #050608;
    --panel-border: rgba(255, 215, 0, 0.3);
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        radial-gradient(circle at center, #1b2735 0%, #050608 100%);
    background-size: 100% 4px, 100% 100%;
    overflow-x: hidden;
}

body::before {
    content: " ";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(18, 16, 16, 0) 100%);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 10;
}

.container {
    width: 100%;
    max-width: 700px;
    z-index: 1;
}

#settings-panel, .card {
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    padding: 35px;
    border: 2px solid var(--panel-border);
    border-radius: 4px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.1), 0 10px 40px rgba(0,0,0,0.8);
}

.panel-label { 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--gold); 
    text-align: left; 
    letter-spacing: 2px; 
    margin-bottom: 35px; 
    border-bottom: 3px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
}

.config-group { margin-bottom: 30px; }
.config-title { 
    font-size: 16px; 
    font-weight: 900; 
    color: var(--neon-blue); 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
}
.config-title::before {
    content: "▶"; margin-right: 8px; font-size: 12px;
}

.config-input { 
    width: 100%; 
    background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(0, 210, 255, 0.3); 
    border-radius: 0; 
    padding: 16px; 
    color: #fff; 
    font-weight: 700; 
    margin-bottom: 15px; 
    font-size: 18px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}
.config-input:focus { border-color: var(--gold); box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }

.stat-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
}

.stat-box { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 15px 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.stat-box label { font-size: 15px; font-weight: 900; color: #aaa; flex: 1; }
.stat-controls { display: flex; align-items: center; gap: 15px; }
.stat-btn {
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 900;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: 0.2s;
}
.stat-btn:hover { background: var(--neon-blue); color: #000; }
.stat-btn:active { transform: scale(0.9); }
.stat-btn:disabled { opacity: 0.2; cursor: not-allowed; }

.stat-box .val { color: var(--gold); font-weight: 900; font-size: 24px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); width: 60px; text-align: center; }

.budget-display {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.budget-label { font-size: 14px; color: var(--gold); font-weight: 900; margin-bottom: 5px; }
.budget-val { font-size: 32px; font-weight: 900; color: #fff; }

.config-textarea { 
    width: 100%; 
    height: 120px; 
    background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(0, 210, 255, 0.3); 
    padding: 16px; 
    color: #fff; 
    font-size: 18px; 
    font-family: inherit; 
    resize: none;
    outline: none;
}

button[onclick="submitForm()"] { 
    width: 100%; 
    padding: 22px; 
    background: var(--gold); 
    color: #000;
    font-size: 22px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transition: 0.3s;
}
button[onclick="submitForm()"]:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4); }

.view-toggle { margin-bottom: 40px; display: flex; gap: 15px; }
.view-toggle button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: none;
    width: auto;
}
.view-toggle button.active { background: var(--neon-blue); color: #000; border-color: var(--neon-blue); }

.divider { height: 2px; background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 10px, transparent 10px, transparent 20px); opacity: 0.2; margin: 35px 0; }
