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

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

*::-webkit-scrollbar-thumb {
    background: #283048;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #36405c;
}

html,
body {
    background: #0b0f19;
}

body {
    font-family: "Manrope", sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: "Sora", sans-serif;
}

.mono {
    font-family: "JetBrains Mono", monospace;
}

/* page transitions */
.page {
    display: none;
}

.page.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page.active {
    animation: fadeUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger > * {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger > *:nth-child(1) {
    animation-delay: 0.02s;
}

.stagger > *:nth-child(2) {
    animation-delay: 0.06s;
}

.stagger > *:nth-child(3) {
    animation-delay: 0.1s;
}

.stagger > *:nth-child(4) {
    animation-delay: 0.14s;
}

.stagger > *:nth-child(5) {
    animation-delay: 0.18s;
}

.stagger > *:nth-child(6) {
    animation-delay: 0.22s;
}

/* cards */
.card {
    background: #151b28;
    border: 1px solid #1f2738;
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 14px 40px -18px rgba(108, 92, 231, 0.55);
}

/* nav */
.nav-item {
    position: relative;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(
        90deg,
        rgba(108, 92, 231, 0.22),
        rgba(108, 92, 231, 0.04)
    );
    color: #fff;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    height: 72%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #6c5ce7;
    box-shadow: 0 0 12px #6c5ce7;
}

.nav-item.active .nav-ico {
    color: #6c5ce7;
}

/* misc */
.glow-dot {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 208, 132, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
    }
}

.skeleton {
    background: linear-gradient(90deg, #1b2333 25%, #222c40 37%, #1b2333 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.toggle {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #283048;
    position: relative;
    transition: 0.25s;
    cursor: pointer;
    flex: none;
}

.toggle.on {
    background: #6c5ce7;
}

.toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: 0.25s;
}

.toggle.on::after {
    transform: translateX(18px);
}

.grad-text {
    background: linear-gradient(92deg, #fff, #9d92f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

input,
select,
textarea {
    outline: none;
}

.field {
    background: #0f1422;
    border: 1px solid #1f2738;
    border-radius: 10px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.field:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.row-hover {
    transition: background 0.18s;
}

.row-hover:hover {
    background: rgba(255, 255, 255, 0.025);
}

.heat-cell {
    transition: transform 0.12s;
}

.heat-cell:hover {
    transform: scale(1.35);
    outline: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.dropdown {
    transform-origin: top right;
    animation: fadeIn 0.14s ease;
}

.feed-item {
    animation: fadeUp 0.35s ease both;
}

.modal.open {
    display: flex;
}

.modal .modal-bg {
    animation: fadeIn 0.2s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal.open .modal-card {
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-errors {
    border: 1px dashed #f00;
    padding: 10px 30px;
    margin: 10px 0;
    border-radius: 4px;
}
.js-errors li {
    color: #f00;
    font-size: 12px;
    font-weight: 500;
}

.js-success {
    border: 1px dashed #28a745;
    padding: 10px 30px;
    margin: 0 0 10px 0;
    border-radius: 4px;
}
.js-success li {
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
}
