:root {
    /* Brand Colors */
    --brand-blue: #0F52BA;
    --blue-light: #3B82F6;
    --bg-dark: #05050A;
    --bg-card: #0F1218;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;

    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Background Blobs */
.ambient-bg .blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--brand-blue), transparent 70%);
    opacity: 0.3;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--blue-light), transparent 70%);
    opacity: 0.15;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

/* Header & Logo */
.logo-premium {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--blue-light);
}

.logo-text {
    color: white;
    letter-spacing: 0.05em;
    margin: 0 4px;
}

.logo-desc {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.25rem;
}


/* Liquid Glass Component */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.3s var(--ease-out);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.9), rgba(59, 130, 246, 0.9));
    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Forms */
input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--blue-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Badges */
.status {
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border-color: rgba(34, 197, 94, 0.2);
}

.status.qr {
    background: rgba(250, 204, 21, 0.1);
    color: #FACC15;
    border-color: rgba(250, 204, 21, 0.2);
}

.status.initializing {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.2);
}

.status.stopped {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        scale: 0.98;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        scale: 1;
    }
}

/* Footer Integration */
.hub-footer {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.social-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.3;
}

/* Mobile Footer */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem 0;
        text-align: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    min-width: 300px;
    transform: translateX(100%);
    animation: slideIn 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
    border-left: 4px solid #22C55E;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.info {
    border-left: 4px solid #3B82F6;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}