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

:root {
    --bg:        #060e1f;
    --surface:   #0d1b35;
    --surface2:  #112040;
    --border:    #1e3054;
    --text:      #e8f0fe;
    --muted:     #6b8cba;
    --accent:    #4da6ff;
    --accent2:   #1a6fe8;
    --green:     #34d399;
    --yellow:    #fbbf24;
    --red:       #f87171;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* ── NAV ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.nav-logo {
    height: 30px;
    width: auto;
    border-radius: 6px;
}

.nav-links { display: flex; gap: 2px; align-items: center; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: var(--accent); background: rgba(77,166,255,0.1); }
.nav-links a.logout { color: var(--red); margin-left: 12px; }
.nav-links a.logout:hover { background: rgba(248,113,113,0.1); }

/* ── MAIN ── */
main { max-width: 1200px; margin: 0 auto; padding: 40px; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 32px; }
.page-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
}
.page-header .subtitle { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ── SECTION TITLE ── */
.section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 32px 0 14px;
}

/* ── GRID ── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* ── CARD ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.next-steps-card {
    border-left: 3px solid var(--accent);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(26,111,232,0.08) 100%);
}

/* ── STATUS DOTS ── */
.status-items { display: flex; flex-direction: column; gap: 13px; }
.status-item { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); box-shadow: 0 0 7px var(--green); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 7px var(--yellow); }
.dot.red { background: var(--red); box-shadow: 0 0 7px var(--red); }

/* ── STEPS LIST ── */
.steps-list {
    list-style: none;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.steps-list li::before {
    content: counter(steps);
    background: var(--accent2);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── SIMPLE LIST ── */
.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.simple-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.simple-list li:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 16px;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    background: rgba(77,166,255,0.15);
    color: var(--accent);
    border: 1px solid rgba(77,166,255,0.25);
}

.btn-sm:hover { background: rgba(77,166,255,0.25); opacity: 1; }

/* ── LOG ── */
.log-date-label {
    display: inline-block;
    background: rgba(77,166,255,0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.log-card { margin-bottom: 24px; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

code {
    font-family: 'Courier New', monospace;
    background: rgba(77,166,255,0.1);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13px;
}

/* ── BADGE ── */
.badge {
    background: rgba(52,211,153,0.12);
    color: var(--green);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ── MARKDOWN BODY ── */
.markdown-body { color: var(--text); line-height: 1.8; }
.markdown-body h1 { font-size: 26px; font-weight: 700; margin: 28px 0 12px; color: var(--text); letter-spacing: -0.3px; }
.markdown-body h2 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.markdown-body h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; color: var(--accent); }
.markdown-body p { margin-bottom: 14px; font-size: 15px; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin-bottom: 14px; }
.markdown-body li { margin-bottom: 6px; font-size: 15px; }
.markdown-body strong { color: var(--text); font-weight: 600; }
.markdown-body em { color: var(--muted); }
.markdown-body blockquote { border-left: 3px solid var(--accent2); padding-left: 16px; color: var(--muted); margin: 16px 0; }
.markdown-body table { margin: 16px 0; }
.markdown-body code { font-family: 'Courier New', monospace; font-size: 13px; }
.markdown-body pre { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; overflow-x: auto; }
.markdown-body pre code { background: none; padding: 0; color: var(--text); }
.markdown-body a { color: var(--accent); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── COLLAPSIBLE LOGS ── */
.log-details { margin-bottom: 12px; }
.log-details + .log-details { margin-top: 0; }

.log-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}
.log-summary::-webkit-details-marker { display: none; }
.log-summary::before {
    content: '▶';
    font-size: 10px;
    color: var(--muted);
    transition: transform 0.15s;
    flex-shrink: 0;
}
details[open] .log-summary::before { transform: rotate(90deg); }

/* ── MISC ── */
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── LOGIN ── */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #0d1b35 0%, #060e1f 70%);
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo {
    width: 160px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.login-sub { color: var(--muted); margin-bottom: 28px; font-size: 14px; }

.login-box form { display: flex; flex-direction: column; gap: 12px; }

.login-box input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}

.login-box input:focus { border-color: var(--accent2); }

.login-box button {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.login-box button:hover { opacity: 0.9; transform: translateY(-1px); }
.error { color: var(--red); font-size: 13px; display: block; }
