:root {
    --bg: #030508;
    --card-bg: rgba(10, 15, 20, 0.7);
    --accent: #00ff41;
    --accent-rgb: 0, 255, 65;
    --blue: #00d2ff;
    --blue-rgb: 0, 210, 255;
    --border: rgba(255, 255, 255, 0.1);
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --font: 'Fira Code', monospace;
    --glass: rgba(15, 23, 42, 0.6);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Cyberpunk Scanline Effect --- */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/* --- Dynamic Background Grid --- */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(var(--blue-rgb), 0.1) 0%, transparent 80%),
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
}

/* --- Typography --- */
h1, h2, h3 { letter-spacing: 2px; text-transform: uppercase; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; box-shadow: 0 0 10px var(--blue); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--blue);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(var(--blue-rgb), 0.5);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--blue);
    filter: drop-shadow(0 0 5px var(--blue));
}

.logo span { letter-spacing: 3px; font-size: 1.1rem; }

.node-status {
    font-size: 0.7rem;
    color: var(--text-dim);
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

#node-id { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* --- Section Titles --- */
.section-title {
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* --- Intro Section --- */
.intro-section {
    margin: 40px auto;
    padding: 25px;
    background: rgba(var(--accent-rgb), 0.03);
    border-left: 2px solid var(--accent);
    border-radius: 0 10px 10px 0;
    box-shadow: -10px 0 20px rgba(var(--accent-rgb), 0.05);
}

.intro-title { font-size: 1.4rem; color: var(--accent); margin-bottom: 8px; font-weight: 700; }
.intro-desc { font-size: 0.85rem; color: var(--text-dim); }

/* --- Terminal UI --- */
.terminal-wrapper { margin-bottom: 40px; }

.terminal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(25px);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0,0,0,0.4);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.dot-red { background: #ff5f56; box-shadow: 0 0 8px #ff5f56; }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 8px #ffbd2e; }
.dot-green { background: #27c93f; box-shadow: 0 0 8px #27c93f; }

.terminal-content { padding: 40px; }

.drop-zone {
    border: 1px dashed var(--border);
    background: rgba(255,255,255,0.02);
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.drop-zone:hover, .drop-zone.active {
    border-color: var(--blue);
    background: rgba(var(--blue-rgb), 0.05);
    box-shadow: inset 0 0 30px rgba(var(--blue-rgb), 0.1);
}

.drop-zone i { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.file-info { font-size: 0.75rem; color: var(--text-dim); margin-top: 15px; letter-spacing: 1px; }

.btn-execute {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 18px;
    width: 100%;
    margin-top: 30px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 6px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

.btn-execute:hover:not(:disabled) {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px var(--accent);
}

.btn-execute:disabled {
    border-color: #333;
    color: #333;
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Progress --- */
.progress-ui { display: none; text-align: center; padding: 20px 0; }
.pct-display { font-size: 4rem; font-weight: 900; color: var(--blue); text-shadow: 0 0 20px var(--blue); }
.progress-track { height: 4px; background: #111; border-radius: 10px; margin: 30px 0; }
.progress-bar { height: 100%; background: var(--blue); box-shadow: 0 0 15px var(--blue); width: 0%; transition: width 0.3s; }

/* --- Results --- */
.result-ui { display: none; text-align: center; }
.success-card { 
    border: 1px solid var(--accent); 
    padding: 25px; 
    border-radius: 10px; 
    background: rgba(var(--accent-rgb), 0.05);
    margin-bottom: 20px;
}
.result-box {
    margin-top: 15px;
    text-align: left;
}
.box-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.result-link {
    background: #000;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--blue);
    cursor: pointer;
    word-break: break-all;
    transition: 0.2s;
}
.result-link:hover {
    border-color: var(--blue);
    background: rgba(var(--blue-rgb), 0.05);
}

/* --- Recent Uplinks Section --- */
.recent-uploads { margin-bottom: 60px; }
.recent-list {
    display: grid;
    gap: 10px;
}
.recent-item {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
}
.recent-item:hover {
    border-color: var(--blue);
    background: rgba(var(--blue-rgb), 0.05);
    transform: translateX(5px);
}
.recent-item .file-name { font-weight: 500; font-size: 0.9rem; flex: 1; word-break: break-all; margin-right: 20px;}
.recent-item .file-meta { font-size: 0.7rem; color: var(--text-dim); text-align: right; }
.recent-item.loading { justify-content: center; opacity: 0.5; font-size: 0.8rem; }

/* --- Tiers Section --- */
.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.tier-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}
.tier-card:hover { border-color: var(--blue); transform: translateY(-8px); }
.tier-card.pro { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.02); }
.tier-header { font-weight: 700; color: var(--blue); font-size: 0.7rem; margin-bottom: 15px; }
.tier-price { font-size: 2.5rem; font-weight: 900; margin-bottom: 30px; }
.tier-features { list-style: none; text-align: left; font-size: 0.85rem; color: var(--text-dim); }
.tier-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tier-features li::before { content: "»"; color: var(--accent); font-weight: bold; }

/* Alerts */
.alert { padding: 15px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 25px; border: 1px solid; display: none; }
.alert-error { background: rgba(255, 95, 86, 0.1); border-color: #ff5f56; color: #ff5f56; }
