:root {
    --ink: #102033;
    --muted: #607084;
    --paper: #f6fbff;
    --line: rgba(18, 38, 62, .12);
    --blue: #2878ff;
    --cyan: #18c7e8;
    --gold: #f7b733;
    --green: #28c66f;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    letter-spacing: 0;
}

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

.spow-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.spow-hero {
    position: relative;
    min-height: 760px;
    isolation: isolate;
    overflow: hidden;
    background: #0f2742;
}

.spow-hero__media,
.spow-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.spow-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.spow-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(244, 251, 255, .96) 0%, rgba(244, 251, 255, .82) 36%, rgba(244, 251, 255, .34) 62%, rgba(8, 24, 44, .12) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(246, 251, 255, .96) 92%);
}

.spow-nav {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spow-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.spow-brand__mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 2px solid rgba(255, 255, 255, .82);
    box-shadow: 0 10px 26px rgba(40, 120, 255, .28);
}

.spow-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.spow-brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.spow-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(35, 58, 83, .14);
}

.spow-nav__links a {
    padding: 10px 13px;
    border-radius: 7px;
    color: #26384c;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.spow-nav__links a:hover {
    background: #fff;
    color: var(--blue);
}

.spow-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.spow-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(35, 58, 83, .16);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.spow-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #0b2b4f;
    transition: transform .18s ease, opacity .18s ease;
}

.spow-hero__content {
    width: min(1180px, calc(100% - 40px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
    align-items: center;
    padding: 34px 0 86px;
}

.spow-copy {
    max-width: 620px;
}

.spow-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(40, 120, 255, .18);
    background: rgba(255, 255, 255, .76);
    color: #1f66d2;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

.spow-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(66px, 9vw, 124px);
    line-height: .86;
    font-weight: 950;
    color: #0b2340;
    text-shadow: 0 12px 35px rgba(0, 0, 0, .09);
}

.spow-lead {
    margin: 0;
    max-width: 560px;
    color: #425268;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 650;
}

.spow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.spow-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(20, 55, 92, .16);
}

.spow-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.spow-btn--glass {
    color: #12304f;
    border: 1px solid rgba(18, 48, 79, .13);
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(16px);
}

.spow-stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 132px));
    gap: 12px;
}

.spow-stats div {
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 16px 38px rgba(20, 55, 92, .11);
}

.spow-stats strong {
    display: block;
    color: #0a2f5a;
    font-size: 22px;
    line-height: 1;
}

.spow-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.spow-panel {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px);
    box-shadow: 0 22px 70px rgba(15, 42, 72, .2);
    padding: 22px;
}

.spow-panel__top {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.spow-appicon {
    width: 76px;
    height: 76px;
    border-radius: var(--radius);
    box-shadow: 0 16px 28px rgba(38, 81, 130, .18);
}

.spow-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.spow-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 650;
}

.spow-downloads,
.spow-quick {
    display: grid;
    gap: 10px;
}

.spow-downloads {
    margin-top: 18px;
}

.spow-downloads a,
.spow-quick a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 900;
}

.spow-downloads a {
    color: #fff;
    background: linear-gradient(135deg, #0c3260, #2878ff);
}

.spow-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.spow-quick a {
    color: #18324e;
    border: 1px solid var(--line);
    background: #fff;
}

.spow-section {
    width: min(1180px, calc(100% - 40px));
    margin: -58px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 0 70px;
}

.spow-section__head {
    margin-bottom: 18px;
}

.spow-section__head span {
    color: #1f66d2;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 13px;
}

.spow-section__head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
}

.spow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.spow-card {
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 22px 54px rgba(23, 48, 78, .09);
}

.spow-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    font-weight: 950;
    font-size: 13px;
}

.spow-card h3 {
    margin: 18px 0 8px;
    font-size: 22px;
}

.spow-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 650;
}

.spow-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(15, 36, 60, .18);
}

.spow-floating a {
    min-width: 60px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff;
    background: #14365e;
    font-weight: 900;
    font-size: 13px;
}

.spow-nav__links a.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 8px 20px rgba(40, 120, 255, .14);
}

.spow-inner-page {
    background: var(--paper);
}

.spow-subhero {
    position: relative;
    min-height: 390px;
    isolation: isolate;
    overflow: hidden;
    background: #0f2742;
}

.spow-subhero__content,
.spow-content {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
}

.spow-subhero__content {
    padding: 44px 0 84px;
}

.spow-subhero .spow-copy h1 {
    font-size: clamp(46px, 8vw, 86px);
}

.spow-content {
    position: relative;
    z-index: 3;
    margin-top: -56px;
    padding-bottom: 88px;
}

.spow-shell {
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(15, 42, 72, .16);
    padding: 24px;
}

.spow-shell + .spow-shell {
    margin-top: 16px;
}

.spow-shell h2,
.spow-shell h3 {
    margin: 0 0 14px;
    color: #0b2340;
}

.spow-form {
    display: grid;
    gap: 14px;
}

.spow-form label,
.spow-form .form-lead {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #20354d;
    font-size: 14px;
    font-weight: 900;
}

.spow-form input,
.spow-form select,
.spow-form textarea,
.spow-form .form-input,
.spow-form .form-option,
.spow-shell .form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(18, 38, 62, .14);
    border-radius: var(--radius);
    background: #fff;
    color: #12243a;
    font: inherit;
    padding: 0 14px;
    box-shadow: 0 10px 24px rgba(15, 42, 72, .06);
}

.spow-form button,
.spow-form input[type="submit"],
.spow-shell .btn,
.spow-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 950;
    cursor: pointer;
    padding: 0 18px;
    box-shadow: 0 16px 34px rgba(40, 120, 255, .18);
}

.spow-action--light {
    color: #18324e;
    border: 1px solid var(--line);
    background: #fff;
}

.spow-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.spow-admin-page {
    background: var(--paper);
}

.spow-admin-hero {
    min-height: 360px;
}

.spow-admin-content {
    width: min(100% - 40px, 980px);
}

.spow-admin-shell {
    padding: 26px;
}

.spow-admin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.spow-admin-top h2 {
    margin: 12px 0 0;
    font-size: 28px;
}

.spow-admin-home {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #18324e;
    font-weight: 900;
    white-space: nowrap;
}

.spow-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.spow-admin-field,
.spow-admin-panel {
    min-width: 0;
}

.spow-admin-field {
    display: grid;
    gap: 8px;
}

.spow-admin-field-wide,
.spow-admin-panel {
    grid-column: 1 / -1;
}

.spow-admin-field label {
    margin: 0;
    color: #20354d;
    font-size: 13px;
    font-weight: 950;
}

.spow-admin-field input,
.spow-admin-field select,
.spow-admin-field .bootstrap-select > .dropdown-toggle {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(18, 38, 62, .14);
    border-radius: var(--radius);
    background: #fff;
    color: #12243a;
    font: inherit;
    padding: 0 14px;
    box-shadow: 0 10px 24px rgba(15, 42, 72, .06);
}

.spow-admin-field .bootstrap-select {
    width: 100% !important;
}

.spow-admin-field .bootstrap-select > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spow-admin-field .bootstrap-select .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 48px rgba(15, 42, 72, .18);
}

.spow-admin-panel {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 42, 72, .08);
}

.spow-admin-panel h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.spow-admin-panel p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.45;
}

.spow-admin-panel .spow-btn {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.spow-admin-denied {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(180, 35, 24, .22);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 42, 72, .08);
}

.spow-admin-denied strong {
    color: #b42318;
    font-size: 20px;
}

.spow-admin-denied span {
    color: #0b2340;
    font-weight: 900;
}

.spow-admin-denied p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.spow-account-grid,
.spow-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.spow-info {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.spow-info strong {
    display: block;
    margin-bottom: 6px;
    color: #0b2340;
}

.spow-info span,
.spow-muted {
    color: var(--muted);
    font-weight: 650;
}

.spow-warning {
    color: #b42318;
    font-weight: 900;
}

.security_code img {
    max-width: 100%;
    vertical-align: middle;
}

#ketquaPopup {
    max-width: 520px;
    margin: 0 auto 18px;
}

@media (max-width: 900px) {
    .spow-hero {
        min-height: auto;
    }

    .spow-hero__image {
        object-position: 58% top;
    }

    .spow-hero__shade {
        background:
            linear-gradient(180deg, rgba(247, 252, 255, .91) 0%, rgba(247, 252, 255, .78) 42%, rgba(247, 252, 255, .94) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .18));
    }

    .spow-nav {
        width: min(100% - 28px, 720px);
        align-items: center;
        padding-top: 14px;
        position: relative;
    }

    .spow-menu-button {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .spow-nav__links {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        max-width: none;
        width: min(260px, calc(100vw - 28px));
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 20;
    }

    .spow-menu-toggle:checked ~ .spow-nav__links {
        display: grid;
    }

    .spow-menu-toggle:checked + .spow-menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .spow-menu-toggle:checked + .spow-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .spow-menu-toggle:checked + .spow-menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .spow-nav__links a {
        min-height: 36px;
        padding: 8px 10px;
        text-align: center;
        font-size: 12px;
    }

    .spow-brand__mark {
        width: 40px;
        height: 40px;
    }

    .spow-brand small {
        display: none;
    }

    .spow-hero__content {
        width: min(100% - 28px, 720px);
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding: 22px 0 86px;
    }

    .spow-copy {
        max-width: none;
    }

    .spow-copy h1 {
        font-size: clamp(54px, 18vw, 86px);
        margin-top: 14px;
    }

    .spow-lead {
        max-width: 460px;
        font-size: 16px;
    }

    .spow-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
    }

    .spow-btn {
        min-height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    .spow-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .spow-stats div {
        padding: 12px 10px;
    }

    .spow-stats strong {
        font-size: 18px;
    }

    .spow-stats span {
        font-size: 11px;
    }

    .spow-panel {
        padding: 16px;
    }

    .spow-panel__top {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .spow-appicon {
        width: 56px;
        height: 56px;
    }

    .spow-panel h2 {
        font-size: 18px;
    }

    .spow-section {
        width: min(100% - 28px, 720px);
        margin-top: -40px;
        padding-bottom: 86px;
    }

    .spow-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spow-card {
        min-height: auto;
        padding: 18px;
    }

    .spow-floating {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: space-between;
    }

    .spow-floating a {
        flex: 1;
    }

    .spow-subhero__content,
    .spow-content {
        width: min(100% - 28px, 720px);
    }

    .spow-subhero__content {
        padding: 24px 0 76px;
    }

    .spow-content {
        margin-top: -44px;
        padding-bottom: 90px;
    }

    .spow-shell {
        padding: 16px;
    }

    .spow-actions-grid,
    .spow-account-grid,
    .spow-payment-grid {
        grid-template-columns: 1fr;
    }

    .spow-admin-content {
        width: min(100% - 28px, 720px);
    }

    .spow-admin-shell {
        padding: 16px;
    }

    .spow-admin-top,
    .spow-admin-panel {
        grid-template-columns: 1fr;
    }

    .spow-admin-top {
        display: grid;
    }

    .spow-admin-form {
        grid-template-columns: 1fr;
    }

    .spow-admin-home,
    .spow-admin-panel .spow-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .spow-nav {
        gap: 10px;
    }

    .spow-brand strong {
        font-size: 18px;
    }

    .spow-nav__links {
        width: min(240px, calc(100vw - 28px));
    }

    .spow-kicker {
        font-size: 11px;
        padding: 7px 10px;
    }
}
