:root {
    --bg-color: #0b1020;
    --bg-elevated: rgba(10, 15, 30, 0.88);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-strong: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-main: #f7f8fb;
    --text-soft: #dbe3f2;
    --text-muted: #94a3b8;
    --accent-start: #ff5a6b;
    --accent-end: #ff8a3d;
    --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --accent-shadow: 0 18px 40px rgba(255, 98, 91, 0.22);
    --surface-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --layout-width: 1240px;
    --gutter: 16px;
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 90, 107, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(120, 119, 198, 0.14), transparent 22%),
        linear-gradient(180deg, #0b1020 0%, #090d18 100%);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.site-body {
    position: relative;
}

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

a {
    color: inherit;
}

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

.site-shell {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    padding: 20px 0 32px;
    overflow: visible;
}

.site-frame {
    width: min(calc(100% - (var(--gutter) * 2)), var(--layout-width));
    margin-inline: auto;
}

.site-orb {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.18;
}

.site-orb--one {
    width: 280px;
    height: 280px;
    top: -72px;
    left: -48px;
    background: rgba(255, 90, 107, 0.8);
}

.site-orb--two {
    width: 340px;
    height: 340px;
    right: -96px;
    bottom: 12%;
    background: rgba(117, 87, 255, 0.55);
}

.site-header,
.site-footer,
.site-main {
    position: relative;
}

.site-header {
    z-index: 40;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--surface-shadow);
}

.site-logo {
    width: fit-content;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.site-logo__accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.site-link,
.site-auth-link,
.site-user-name {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-link,
.site-auth-link,
.site-pill,
.site-button,
.site-menu-link,
.site-logout-button {
    transition: 180ms ease;
}

.site-link:hover,
.site-auth-link:hover,
.site-logout-button:hover {
    color: #ffffff;
}

.site-pill,
.site-button,
.site-logout-button {
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.site-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    text-decoration: none;
}

.site-pill-button {
    cursor: pointer;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 700;
}

.site-button--primary {
    border-color: transparent;
    background: var(--accent-gradient);
    box-shadow: var(--accent-shadow);
}

.site-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(255, 98, 91, 0.28);
}

.site-dropdown {
    position: relative;
    z-index: 50;
}

.lang-dropdown-wrapper {
    z-index: 200;
}

.site-menu {
    z-index: 300;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(8, 12, 24, 0.96);
    box-shadow: var(--surface-shadow);
}

.site-menu[hidden] {
    display: none;
}

.site-menu-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.site-menu-link:hover,
.site-menu-link.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.site-main {
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-alert {
    width: min(100%, 640px);
    margin-inline: auto;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-alert--success {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.site-alert--error {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.site-footer {
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding: 20px 4px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: 180ms ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

@media (min-width: 900px) {
    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline: 24px;
    }

    .site-header-nav {
        justify-content: flex-end;
    }

    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
