@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-body: #050505;
    --bg-card: #0a0a0a;
    --bg-border: #1a1a1a;
    --accent: #D00000;
    --accent-dim: #5c0000;
    --text-main: #e5e5e5;
    --text-sec: #737373;
    --success: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; outline: none; }
body { background-color: var(--bg-body); color: var(--text-main); height: 100vh; overflow: hidden; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; }

.hidden { display: none !important; }


.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #ff0000; box-shadow: 0 0 15px rgba(208, 0, 0, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--bg-border); color: var(--text-sec); }
.btn-outline:hover { border-color: white; color: white; }


.landing { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at center, #110000 0%, #000 70%); }
.brand-lg { font-size: 4rem; font-weight: 700; letter-spacing: -2px; margin-bottom: 10px; }
.brand-lg span { color: var(--accent); }


.layout { display: flex; height: 100vh; }
.sidebar { width: 260px; background: var(--bg-card); border-right: 1px solid var(--bg-border); padding: 25px; display: flex; flex-direction: column; }
.logo { font-size: 1.1rem; font-weight: 700; margin-bottom: 40px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.logo-sq { width: 12px; height: 12px; background: var(--accent); }

.nav-link { padding: 10px; color: var(--text-sec); font-size: 0.9rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::before { content: ""; width: 2px; height: 14px; background: var(--accent); }

.main { flex: 1; padding: 40px; overflow-y: auto; }
.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.title { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.5px; }


.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.card { background: var(--bg-card); border: 1px solid var(--bg-border); padding: 20px; border-radius: 6px; }
.card-lbl { font-size: 0.75rem; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.card-val { font-size: 1.8rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; }


.list { display: flex; flex-direction: column; gap: 8px; }
.row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); border: 1px solid var(--bg-border);
    padding: 16px 24px; border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.row:hover { border-color: #444; transform: translateX(4px); }
.row-left { display: flex; flex-direction: column; gap: 4px; }
.row-name { font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.row-url { font-size: 0.75rem; color: var(--text-sec); font-family: 'JetBrains Mono'; }
.status { width: 6px; height: 6px; border-radius: 50%; }
.status.up { background: var(--success); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.status.down { background: var(--accent); box-shadow: 0 0 8px rgba(208, 0, 0, 0.4); }
.row-right { text-align: right; }
.latency { font-family: 'JetBrains Mono'; font-size: 0.85rem; color: var(--text-sec); }
.duration { font-size: 0.7rem; color: #444; margin-top: 4px; }


.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 100; display: flex; justify-content: center; align-items: center; }
.term { width: 750px; height: 500px; background: #080808; border: 1px solid #333; display: flex; flex-direction: column; box-shadow: 0 0 50px rgba(0,0,0,0.8); }

.term-bar {
    height: 36px; background: #111; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; padding-left: 15px;
}
.term-title { font-family: 'JetBrains Mono'; font-size: 0.8rem; color: #666; }


.win-close {
    width: 46px; height: 35px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; color: #fff; transition: 0.2s;
}
.win-close:hover { background: var(--accent); }
.win-close i { font-size: 0.9rem; }

.term-content { flex: 1; padding: 20px; font-family: 'JetBrains Mono'; font-size: 0.9rem; color: #ccc; overflow-y: auto; line-height: 1.5; }
.term-input-area { display: flex; background: #111; padding: 10px; border-top: 1px solid #222; }
.term-prompt { color: var(--accent); font-family: 'JetBrains Mono'; margin-right: 10px; font-size: 0.9rem; }
.term-input { background: transparent; border: none; color: white; flex: 1; font-family: 'JetBrains Mono'; font-size: 0.9rem; }


.form { background: var(--bg-card); padding: 30px; border: 1px solid var(--bg-border); width: 380px; border-radius: 4px; }
.inp-grp { margin-bottom: 20px; }
.label { display: block; font-size: 0.75rem; color: var(--text-sec); margin-bottom: 8px; text-transform: uppercase; }
.inp { width: 100%; background: #050505; border: 1px solid #222; color: white; padding: 10px; border-radius: 4px; font-family: 'JetBrains Mono'; font-size: 0.85rem; }
.inp:focus { border-color: var(--accent); }

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.info-card {
    background: #1e1f22; 
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.info-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #949BA4;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-body {
    font-size: 0.75rem;
    color: #DBDEE1;
    line-height: 1.5;
    font-weight: 400;
}

.code-badge {
    background: #2B2D31;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e5e5e5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}


.support-card {
    background: linear-gradient(145deg, #0a0a0a, #111);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px;
}

.support-header {
    font-size: 0.65rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.support-actions {
    display: flex;
    gap: 10px;
}

.sup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.2s;
}

.sup-btn.discord {
    background: #5865F2; 
    color: white;
}
.sup-btn.discord:hover { background: #4752C4; }

.sup-btn.dev {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
}
.sup-btn.dev:hover {
    border-color: #fff;
    color: #fff;
    background: #111;
}


.logout-item {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 10px;
    color: #666;
}
.logout-item:hover { color: var(--accent); }



.top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 3; 
    margin-bottom: 0 !important; 
}


.info-card {
    flex: 1;
    background: #1e1f22;
    border: 1px solid var(--bg-border);
    border-left: 3px solid #5865F2; 
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #949BA4;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-body {
    font-size: 0.8rem;
    color: #DBDEE1;
    line-height: 1.6;
}

.code-badge {
    background: #2B2D31;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    border: 1px solid #333;
    margin-right: 5px;
}


.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.support-card {
    background: linear-gradient(145deg, #0a0a0a, #111);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px;
}

.support-header {
    font-size: 0.65rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.support-actions {
    display: flex;
    gap: 10px;
}

.sup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.2s;
}

.sup-btn.discord { background: #5865F2; color: white; }
.sup-btn.discord:hover { background: #4752C4; }

.sup-btn.dev { background: transparent; border: 1px solid #333; color: #ccc; }
.sup-btn.dev:hover { border-color: #fff; color: #fff; background: #111; }


.logout-item {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 10px;
    color: #666;
}
.logout-item:hover { color: var(--accent); }