* {
    box-sizing: border-box;
    border-color: var(--border);
    outline-color: var(--ring);
    outline-offset: 2px;
    outline-width: 2px;
}

html,
body {
    background: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Auth layout helpers */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card, #0f0f0f);
    border: 1px solid var(--border);
    border-radius: 12px;
}

    .auth-card .auth-body {
        padding: 32px;
    }

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

    .auth-header .icon-wrap {
        width: 64px;
        height: 64px;
        display: inline-grid;
        place-items: center;
        border-radius: 9999px;
        background: rgba(6,182,212,0.1);
        margin-bottom: 12px;
    }

.auth-title {
    color: var(--foreground);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 4px;
}

.auth-sub {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    margin: 0;
}

.auth-note {
    margin: 12px 0 24px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.2);
    color: #7dd3fc;
    font-size: 12px;
    text-align: center;
}

.auth-form .row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-form label {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.auth-form .input {
    width: 100%;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.auth-muted {
    color: var(--muted-foreground);
    font-size: 12px;
    text-align: center;
    margin-top: 16px;
}

#root {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Custom Overlay Scrollbars - Dark Theme */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

    *::-webkit-scrollbar {
        width: 24px;
        height: 24px;
    }

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

    *::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 8px;
        border: 8px solid transparent;
        background-clip: padding-box;
    }

        *::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
            background-clip: padding-box;
        }

    *::-webkit-scrollbar-corner {
        background: transparent;
    }

.no-underline {
    text-decoration-line: none
}

.d-flex {
    display: flex !important;
}

.gap-10px {
    gap: 10px !important;
}

#goTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #06b6d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .2s;
    z-index: 9999999999;
}

    #goTopBtn.show {
        opacity: 1;
        visibility: visible;
    }

    #goTopBtn:hover {
        transform: translateY(-3px);
        background: #0891b2;
    }