:root {

    --bg: #0b0b0c;

    --surface: #111214;
    --surface-2: #18191c;

    --border: rgba(255,255,255,0.08);

    --text: #f5f7fa;
    --text-soft: #a1a8b3;

    --accent: #ffffff;

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;

    --shadow:
        0 10px 40px rgba(0,0,0,0.35);

    --container:
        min(1400px, calc(100vw - 48px));

    --transition:
        220ms cubic-bezier(.2,.8,.2,1);

    --header-height: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {

    background: var(--bg);

    color: var(--text);

    font-family:
        'Inter',
        system-ui,
        sans-serif;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

main {
    width: 100%;
}

::selection {
    background: rgba(255,255,255,0.18);
}

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;

    min-width: 320px;
    max-width: 420px;

    padding: 18px 20px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: rgba(15,15,16,0.94);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 18px 50px rgba(0,0,0,0.35);

    animation:
        toast-enter 0.35s ease forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toast-content i {
    font-size: 1.1rem;
}

.toast-content span {
    line-height: 1.5;
}

.toast-success {
    border-color: rgba(34,197,94,0.22);
}

.toast-success i {
    color: rgb(34,197,94);
}

.toast-error {
    border-color: rgba(239,68,68,0.22);
}

.toast-error i {
    color: rgb(239,68,68);
}

.toast-info {
    border-color: rgba(59,130,246,0.22);
}

.toast-info i {
    color: rgb(59,130,246);
}

.toast-close {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 1rem;
}

.toast-close:hover {
    color: white;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

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

@media (max-width: 640px) {

    .toast {
        left: 16px;
        right: 16px;
        top: 16px;
        min-width: auto;
        max-width: none;
    }
}