:root{
    --bg: #0b1020;
    --card: rgba(255,255,255,0.06);
    --card2: rgba(255,255,255,0.08);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.70);
    --line: rgba(255,255,255,0.12);
    --accent: #00c2a8;
    --danger: #ff4d4d;
    --shadow: 0 18px 60px rgba(0,0,0,0.35);
    --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background: radial-gradient(1000px 700px at 20% 10%, rgba(0,194,168,0.20), transparent 60%),
                radial-gradient(900px 650px at 80% 20%, rgba(0,160,255,0.18), transparent 55%),
                var(--bg);
    color: var(--text);
}

.page{
    min-height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 28px 14px;
}

.card{
    width: min(780px, 96vw);
    background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.03));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.brand{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom: 14px;
}
.logo{
    width:48px; height:48px;
    display:grid; place-items:center;
    border-radius: 14px;
    background: rgba(0,194,168,0.12);
    border: 1px solid rgba(0,194,168,0.25);
    font-size: 22px;
}
.title{ font-size: 22px; font-weight: 800; letter-spacing:0.2px; }
.subtitle{ color: var(--muted); font-size: 13px; margin-top:2px; }

.alert{
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin: 10px 0 14px;
    font-size: 14px;
}
.alert-danger{
    background: rgba(255,77,77,0.10);
    border-color: rgba(255,77,77,0.25);
}
.alert-success{
    background: rgba(0,194,168,0.10);
    border-color: rgba(0,194,168,0.25);
}

.form label{
    display:block;
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 6px;
}
input{
    width:100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.20);
    color: var(--text);
    outline: none;
}
input:focus{
    border-color: rgba(0,194,168,0.45);
    box-shadow: 0 0 0 3px rgba(0,194,168,0.10);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    text-decoration:none;
    cursor:pointer;
    font-weight: 700;
    font-size: 14px;
}
.btn:hover{ background: rgba(255,255,255,0.09); }
.btn.primary{
    background: rgba(0,194,168,0.16);
    border-color: rgba(0,194,168,0.35);
}
.btn.primary:hover{ background: rgba(0,194,168,0.22); }
.btn.ghost{
    background: transparent;
}
.btn.danger{
    background: rgba(255,77,77,0.14);
    border-color: rgba(255,77,77,0.30);
}
.btn.danger:hover{
    background: rgba(255,77,77,0.22);
}
.form .btn.primary{
    margin-top: 14px;
    width:100%;
}

.hint{
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}
code{
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 10px;
}

.welcome{
    margin-top: 8px;
}
.welcome-line{ font-size: 15px; }
.welcome-meta{ margin-top: 6px; color: var(--muted); font-size: 13px; }
.actions{
    margin-top: 14px;
    display:flex;
    gap:10px;
    flex-wrap: wrap;
}
.timerbox{
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
.pill{
    display:inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.18);
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sep{
    border:0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.section-title{
    font-weight: 800;
    margin-bottom: 10px;
}

.grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 720px){
    .grid{ grid-template-columns: 1fr; }
}

.tablewrap{
    overflow:auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.14);
}
.table{
    width:100%;
    border-collapse: collapse;
    min-width: 640px;
}
.table th, .table td{
    text-align:left;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}
.table th{
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 18px;
    z-index: 9999;
}
.modal{
    width: min(520px, 96vw);
    background: rgba(20,24,38,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.modal-title{
    font-size: 18px;
    font-weight: 900;
}
.modal-text{
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.modal-actions{
    margin-top: 14px;
    display:flex;
    justify-content:flex-end;
}
body.modal-open{
    overflow:hidden;
}
