body.auth-locked {
    overflow: hidden !important;
}

.auth-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(4, 16, 30, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-backdrop.is-open {
    display: flex !important;
}

.auth-modal {
    width: min(450px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #fff;
    color: #071728;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 35px 110px rgba(0, 0, 0, .35);
    padding: 20px;
    position: relative;
    animation: authZoom .18s ease;
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

@keyframes authZoom {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

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

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #071728;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 17px;
    z-index: 2;
}

.auth-close:hover {
    background: #ff8a1c;
    color: #fff;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f4f7fb;
    border-radius: 15px;
    padding: 6px;
    margin: 28px 0 16px;
}

.auth-tab {
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #526176;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
}

.auth-tab.active {
    background: #071728;
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 23, 40, .15);
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 13px;
    background: #fff0f0;
    color: #9b1c1c;
    border: 1px solid #ffcaca;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.auth-form p {
    margin: 0 0 16px;
    color: #64748b;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.6;
}

.auth-form label {
    display: block;
    margin: 11px 0 6px;
    color: #071728;
    font-size: 13px;
    font-weight: 900;
}

.auth-form input {
    width: 100%;
    height: 44px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 0 13px;
    outline: 0;
    font-size: 14px;
    font-weight: 600;
    color: #071728;
    background: #fff;
    font-family: inherit;
}

.auth-form input:focus {
    border-color: #ff8a1c;
    box-shadow: 0 0 0 4px rgba(255, 138, 28, .12);
}

.auth-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 13px;
    margin-top: 16px;
    background: linear-gradient(135deg, #ff8a1c, #ff7417);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 138, 28, .25);
    font-family: inherit;
}

.aa-partners-section {
    position: relative;
    margin: 42px 0 0;
    padding: 0 0 38px;
}

.aa-partners-head {
    text-align: center;
    margin-bottom: 18px;
}

.aa-partners-head h2 {
    margin: 0;
    color: #071728;
    font-size: clamp(28px, 2.15vw, 40px);
    line-height: 1.1;
    font-weight: 950;
    text-transform: none;
}

.aa-partners-head p {
    margin: 10px auto 0;
    max-width: 720px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 800;
}

.aa-partners-shell {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.aa-partners-shell::before,
.aa-partners-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(120px, 18%);
    z-index: 3;
    pointer-events: none;
}

.aa-partners-shell::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.aa-partners-shell::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.aa-partners-marquee {
    overflow: hidden;
    padding: 15px 0;
    border-top: 1px solid #e8eef6;
    border-bottom: 1px solid #e8eef6;
    background:
        linear-gradient(90deg, rgba(248, 251, 255, .9), rgba(255, 255, 255, .72) 45%, rgba(248, 251, 255, .9));
}

.aa-partners-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    max-width: none;
    animation: aaPartnersLoop var(--aa-partners-duration, 36s) linear infinite;
    will-change: transform;
}

@keyframes aaPartnersLoop {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aa-partners-track {
        animation: none;
    }
}

.aa-partner-logo-link {
    flex: 0 0 auto;
    min-width: 150px;
    height: 76px;
    margin-right: 14px;
    color: #071728;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    overflow: hidden;
    border-radius: 14px;
    transition: transform .2s ease, background-color .2s ease;
}

.aa-partner-logo-link:hover {
    background: rgba(255, 255, 255, .72);
    transform: translateY(-2px);
}

.aa-partner-logo-link img {
    max-width: 165px;
    max-height: 54px;
    object-fit: contain;
    display: block;
    filter: saturate(.96) contrast(.98);
    opacity: .94;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.aa-partner-logo-link:hover img {
    filter: saturate(1.08) contrast(1.02);
    opacity: 1;
    transform: scale(1.03);
}

.aa-partner-text {
    color: #0b2c49;
    text-align: center;
    line-height: 1.2;
    font-size: 17px;
    font-weight: 900;
}

.site-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 22px 22px;
    background: rgba(4, 16, 30, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-search-backdrop.is-open {
    display: flex;
}

.site-search-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 140px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 24px;
    box-shadow: 0 35px 110px rgba(0, 0, 0, .35);
}

.site-search-head {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #e4ebf4;
}

.site-search-head input {
    height: 48px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 0 16px;
    color: #071728;
    font: 800 15px "Noto Sans", "Segoe UI", Arial, sans-serif;
    outline: 0;
}

.site-search-head input:focus {
    border-color: #ff8a1c;
    box-shadow: 0 0 0 4px rgba(255, 138, 28, .12);
}

.site-search-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #071728;
    cursor: pointer;
}

.site-search-results {
    overflow: auto;
    padding: 10px 16px 16px;
}

.site-search-result {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    color: #071728;
    border-bottom: 1px solid #edf1f6;
}

.site-search-result:last-child {
    border-bottom: 0;
}

.site-search-result i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff4e8;
    color: #ff8a1c;
}

.site-search-result strong {
    display: block;
    font-weight: 900;
}

.site-search-result span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.site-search-result small {
    color: #94a3b8;
    font-weight: 900;
}

.site-search-empty {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-weight: 850;
}

@media (max-width: 700px) {
    .auth-backdrop {
        padding: 12px;
        align-items: flex-end;
    }

    .auth-modal {
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        padding: 18px;
    }

    .auth-two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aa-partners-section {
        margin-top: 28px;
        padding-bottom: 26px;
    }

    .aa-partners-shell::before,
    .aa-partners-shell::after {
        width: 42px;
    }

    .aa-partners-marquee {
        padding: 12px 0;
    }

    .aa-partner-logo-link {
        min-width: 128px;
        height: 64px;
        padding: 8px 12px;
    }

    .aa-partner-logo-link img {
        max-width: 128px;
        max-height: 42px;
    }
}

.aa-home-map-section {
    margin: 34px 0 0;
}

.aa-home-map-card {
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 23, 40, .07);
}

.aa-home-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #e4ebf4;
    background: radial-gradient(circle at 15% 0%, rgba(255, 138, 28, .10), transparent 34%), linear-gradient(180deg, #fff, #f8fbff);
}

.aa-home-map-head div {
    min-width: 0;
}

.aa-home-map-head h2 {
    margin: 0;
    color: #071728;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.5px;
}

.aa-home-map-head p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.aa-home-map-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff4e8;
    color: #ff8a1c;
    font-size: 25px;
}

.aa-home-map-frame {
    width: 100%;
    background: #f8fafc;
}

.aa-home-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(.95) contrast(.98);
}

.auth-google-link {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe4ee;
    border-radius: 13px;
    margin-top: 10px;
    background: #fff;
    color: #071728;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-google-link:hover {
    border-color: #ff8a1c;
    box-shadow: 0 0 0 4px rgba(255, 138, 28, .10);
}

.training-item > button {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.training-item > button:hover {
    background: #ff8a1c;
    border-color: #ff8a1c;
}

.support-box > div > i {
    flex: 0 0 auto;
}

.support-box .btn i {
    font-size: 15px !important;
    color: inherit !important;
}

@media (min-width: 721px) {
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(14px, 1.8vw, 24px) !important;
        width: min(100%, 600px) !important;
        align-items: start !important;
    }

    .hero-stats .stat-item {
        width: auto !important;
        min-width: 0 !important;
        align-items: flex-start !important;
    }

    .hero-stats .stat-item span {
        line-height: 1.18 !important;
        white-space: normal !important;
    }
}

/* Match the live reference header behavior on desktop. */
.site-header .nav-inner,
.header-nav .nav-inner {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    min-width: 0 !important;
}

.site-header .main-nav,
.header-nav .main-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(14px, 1.55vw, 28px) !important;
    white-space: nowrap !important;
}

.site-header .nav-actions,
.header-nav .nav-actions {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 5 !important;
}

.site-header .nav-actions .btn,
.site-header button[data-auth-open],
.site-header .aa-header-register,
.site-header .aa-header-login,
.site-header .aa-header-profile,
.site-header .aa-header-logout,
.site-header .search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.site-header .nav-actions .mobile-menu-btn {
    display: none !important;
}

.site-header .aa-header-register {
    background: #ff8a1c !important;
    border-color: #ff8a1c !important;
    color: #fff !important;
}

.site-header .search-btn,
.site-header .mobile-menu-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 27px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.site-header .search-btn:hover,
.site-header .mobile-menu-btn:hover {
    color: #ff8a1c !important;
}

@media (max-width: 1350px) {
    .site-header .main-nav,
    .header-nav .main-nav {
        gap: 18px !important;
    }

    .site-header .main-nav a,
    .header-nav .main-nav a {
        font-size: 14px !important;
    }
}

@media (max-width: 991px) {
    .site-header .nav-actions .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .site-header .main-nav,
    .header-nav .main-nav {
        display: none !important;
    }

    .site-header .main-nav.open,
    .header-nav .main-nav.open {
        display: flex !important;
    }
}

@media (max-width: 720px) {
    .site-header .header-top-inner {
        gap: 12px !important;
        padding: 14px 0 12px !important;
    }

    .site-header .header-tools {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 9px 10px !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .035) !important;
    }

    .site-header .language-switch {
        flex: 0 0 auto !important;
    }

    .site-header .language-switch {
        height: 30px !important;
        gap: 8px !important;
        font-size: 13px !important;
    }

    .site-header .social-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .site-header .social-links a {
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, .14) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, .075) !important;
        color: #fff !important;
        font-size: 15px !important;
        text-decoration: none !important;
    }

    .site-header .social-links a:hover {
        background: #ff8a1c !important;
        border-color: #ff8a1c !important;
        color: #fff !important;
    }

    .training-item {
        grid-template-columns: 62px minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 16px !important;
        row-gap: 10px !important;
    }

    .training-date {
        grid-row: 1 / span 2 !important;
    }

    .training-info {
        align-self: center !important;
    }

    .training-item > button {
        grid-column: 2 !important;
        justify-self: start !important;
        min-width: 118px !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 16px !important;
        border-radius: 11px !important;
        background: rgba(255, 255, 255, .07) !important;
        border-color: rgba(255, 255, 255, .24) !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .support-box {
        margin: 22px 0 30px !important;
        padding: 20px !important;
        border-radius: 18px !important;
        gap: 16px !important;
        background: linear-gradient(180deg, #fbfdff, #f5f8fc) !important;
    }

    .support-box > div {
        width: 100% !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .support-box > div > i {
        width: 44px !important;
        height: 44px !important;
        display: grid !important;
        place-items: center !important;
        flex: 0 0 44px !important;
        border-radius: 14px !important;
        background: #fff !important;
        border: 1px solid #dbe6f1 !important;
        color: #0b2c49 !important;
        font-size: 25px !important;
    }

    .support-box strong {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .support-box small {
        margin-top: 6px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .support-box .btn {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: center !important;
        border-radius: 13px !important;
        padding: 0 16px !important;
        font-size: 15px !important;
        background: #fff !important;
        box-shadow: 0 10px 22px rgba(7, 23, 40, .045) !important;
    }

    .support-box .btn i {
        font-size: 15px !important;
        margin-left: 2px !important;
    }
}

@media (max-width: 430px) {
    .site-header .header-tools {
        padding: 8px !important;
        gap: 8px !important;
    }

    .site-header .social-links {
        gap: 6px !important;
    }

    .site-header .social-links a {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    .training-item {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }

    .training-item > button {
        min-width: 108px !important;
        min-height: 38px !important;
        padding: 0 14px !important;
    }
}
