* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
    background: #000000;
    color: #FFFFFF;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card {
    background: #0B0B0E;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.card.wide { max-width: 600px; }
.logo {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
}
h1 { text-align: center; font-size: 1.4rem; margin-bottom: 0.25rem; color: #FFFFFF; }
.subtitle { text-align: center; color: #9CA3AF; margin-bottom: 1.5rem; font-size: 0.9rem; }
input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #16161A;
    color: #fff;
}
input:focus {
    outline: none;
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
}
button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #0D6EFD;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s ease;
}
button:hover { background: #3B82F6; }
button.danger { background: #DC2626; color: #fff; }
button.danger:hover { background: #EF4444; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
a { color: #3B82F6; }
.error { color: #EF4444; text-align: center; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-link { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: #9CA3AF; }
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
}
.status-stopped { background: rgba(156,163,175,0.14); color: #9CA3AF; }
.status-starting { background: rgba(251,191,36,0.14); color: #FBBF24; }
.status-connected { background: rgba(34,197,94,0.14); color: #22C55E; }
.qr-box { text-align: center; margin: 1.5rem 0; }
.qr-box img { width: 260px; height: 260px; border-radius: 8px; background: #fff; padding: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; }
th { color: #9CA3AF; font-weight: 600; }
.top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.method-btn {
    flex: 1;
    background: #16161A;
    color: #9CA3AF;
    border: 1px solid rgba(255,255,255,0.12);
}
.method-btn.active {
    background: rgba(13,110,253,0.14);
    color: #FFFFFF;
    border-color: #0D6EFD;
}
.pair-code {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
    text-align: center;
    background: #16161A;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #FFFFFF;
}
