[hidden] {
    display: none !important;
}

:root {
    --color-bg-start: #0b3d91;
    --color-bg-mid: #0a2f6b;
    --color-bg-end: #051a3a;

    --color-primary: #2f7df6;
    --color-primary-light: #4da3ff;
    --color-green: #00c853;

    --color-text: #ffffff;
    --color-dark-text: #241224;
    --color-card-text: #2a2430;
    --color-card-muted: #5b5562;
    --color-card-bg: rgba(255, 255, 255, 0.92);
    --color-light-surface: #f7f1f8;

    --header-height: 102px;

    --page-blue-bg:
        radial-gradient(circle at 20% 25%, rgba(0, 150, 255, 0.25) 0, rgba(0, 150, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-bg-start) 0%, var(--color-bg-mid) 55%, var(--color-bg-end) 100%);
}

/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--color-text);
    background: #ffffff;
    padding-top: var(--header-height);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background:
        radial-gradient(circle at 20% 25%, rgba(0, 150, 255, 0.25) 0, rgba(0, 150, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-bg-start) 0%, var(--color-bg-mid) 55%, var(--color-bg-end) 100%);
}

.topbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: auto;
    height: 70px;
}

/* Topbar actions */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--color-primary-light);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

/* Header navigation */

.top-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.top-navigation a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 46px;
    padding: 0 28px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;

    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    background: transparent;
    transition: all 0.25s ease;
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.logout-form {
    margin: 0;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid var(--color-primary-light);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

/* Topbar CTA */

.topbar-actions .cta-button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--color-green);
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 200, 83, 0.25);
    transition: 0.2s ease;
}

.topbar-actions .cta-button.primary:hover {
    background: #00b248;
}

/* Common page wrapper */

.page-content {
    min-height: calc(100vh - var(--header-height));
}

/* Responsive */

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .top-navigation {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 112px;
    }

    body {
        padding-top: var(--header-height);
    }

    .topbar-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .logo-image {
        height: 44px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-left: 0;
    }

    .mobile-menu-toggle,
    .topbar-actions .login-link,
    .topbar-actions .cta-button.primary,
    .outline-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        border: 1px solid rgba(255, 255, 255, 0.6);
        background: transparent;
        color: #ffffff;
    }

    .topbar-actions .login-link {
        color: #ffffff;
    }

    .topbar-actions .cta-button.primary {
        background: var(--color-green);
        color: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 200, 83, 0.25);
    }

    .top-navigation {
        position: fixed;
        top: var(--header-height);
        left: 14px;
        right: 14px;
        z-index: 1001;
        display: none;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        padding: 14px;
        border-radius: 18px;
        background:
            linear-gradient(90deg, var(--color-bg-start) 0%, var(--color-bg-mid) 55%, var(--color-bg-end) 100%);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    }

    .top-navigation.is-open {
        display: flex;
    }

    .top-navigation .menu-button {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 112px;
    }

    .logo-image {
        height: 38px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .mobile-menu-toggle,
    .topbar-actions .login-link,
    .topbar-actions .cta-button.primary,
    .outline-button {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
    }

    .hamburger-icon span {
        width: 16px;
    }
}