:root {
    --c1: #3b82f6;
    --c2: #9333ea;
    --c3: #ec4899;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
}
.glass-card {
    background: rgba(15,23,42,0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(51,65,85,0.5);
}
.aurora-background {
    position: fixed;
    top:0;left:0;width:100%;height:100%;overflow:hidden;z-index:-1;opacity:0.4;
}
.aurora-background .aurora {
    position:absolute;border-radius:50%;filter:blur(80px);mix-blend-mode:screen;
}
.aurora.c1 { width:400px;height:400px;background:var(--c1);top:10%;left:15%;animation:move1 15s infinite alternate; }
.aurora.c2 { width:350px;height:350px;background:var(--c2);top:30%;left:60%;animation:move2 18s infinite alternate; }
.aurora.c3 { width:300px;height:300px;background:var(--c3);top:60%;left:30%;animation:move3 20s infinite alternate; }
@keyframes move1 { to { transform: translate(100px,200px); } }
@keyframes move2 { to { transform: translate(-150px,-100px) scale(1.2); } }
@keyframes move3 { to { transform: translate(200px,-150px); } }
.shiny-button { position:relative; overflow:hidden; }
.shiny-button::before { content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(120deg,transparent,rgba(255,255,255,0.4),transparent);transition:left 0.6s ease; }
.shiny-button:hover::before { left:100%; }
.fade-in-up { animation:fadeInUp 0.6s ease-out forwards; opacity:0; }
@keyframes fadeInUp { from { opacity:0;transform:translateY(20px); } to { opacity:1;transform:translateY(0); } }
.status-light { width:8px;height:8px;border-radius:50%;box-shadow:0 0 8px,0 0 12px; }
.status-light.online { background-color:#4ade80;box-shadow:0 0 8px #4ade80,0 0 12px #4ade80; }
.status-light.offline { background-color:#f87171;box-shadow:0 0 8px #f87171,0 0 12px #f87171; }
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 50;
}
.modal {
    background: rgba(15,23,42,0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #e2e8f0;
}
.modal.show { transform: translateY(0); opacity: 1; }
.toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    left: auto;
    transform: translateY(20px);
    color: #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    border-top: 2px solid transparent;
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.toast.success { border-top-color: #22c55e; }
.toast.error { border-top-color: #ef4444; }

/* QR modal */
#qr-modal .modal {
    padding: 2rem;
    border-radius: 1rem;
    max-width: 360px;
}
#qr-image {
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(30,41,59,0.5);
    border-radius: 0.5rem;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}
.quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 9999px;
    background-color: rgba(51,65,85,0.5);
    border: 1px solid rgba(71,85,105,0.7);
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.quick-btn i[data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 1.2;
}
.quick-btn:hover {
    background-color: rgba(71,85,105,0.7);
    transform: translateY(-1px);
}
.quick-btn:active { transform: scale(0.97); }

/* Password strength indicator bar */
#password-strength {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 0.5rem;
    width: 2.5rem;
    background-color: #334155;
    border-radius: 9999px;
}

#password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 9999px;
    transition: width 0.2s ease;
}

/* Manage router loading spinner */
.manage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.manage-btn .spinner {
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
