:root {
    --bg: #03110f;
    --bg-soft: #071b17;
    --panel: rgba(5, 25, 21, 0.9);
    --panel-light: rgba(9, 38, 31, 0.9);

    --border: rgba(111, 255, 209, 0.14);
    --border-strong: rgba(103, 255, 217, 0.34);

    --text: #f1fff9;
    --text-soft: #b6d5c9;
    --text-muted: #718f84;

    --green: #3df5bd;
    --cyan: #73fff0;
    --blue: #58c9ff;
    --gold: #d8c58d;

    --success: #57e59f;
    --danger: #ff8795;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(40, 219, 169, 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #061712 0%,
            #020b09 100%
        );
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.public-body {
    overflow-x: hidden;
}

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

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

button {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-header {
    z-index: 1000;
}

.authenticated-header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 13, 10, 0.86);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.header-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 12px rgba(90, 255, 218, 0.28)
        );
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: white;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.34em;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    position: relative;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-nav a:hover {
    color: white;
    background: rgba(95, 255, 211, 0.06);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.45);
    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--cyan)
        );
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-button {
    min-height: 43px;
    padding: 5px 12px 5px 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.profile-button:hover {
    border-color: var(--border-strong);
    background: rgba(61, 245, 189, 0.07);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #00110c;
    background:
        linear-gradient(
            145deg,
            var(--cyan),
            var(--green)
        );
    font-size: 13px;
    font-weight: 900;
}

.profile-name {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.public-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(113, 255, 219, 0.1);
    background:
        linear-gradient(
            180deg,
            rgba(0, 9, 7, 0.82),
            rgba(0, 9, 7, 0.18)
        );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.public-header-inner {
    width: min(1500px, calc(100% - 56px));
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.public-brand img {
    width: 165px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(
            0 0 16px rgba(90, 255, 218, 0.32)
        );
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-nav-link,
.public-nav-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.public-nav-link {
    border: 1px solid transparent;
    color: var(--text-soft);
}

.public-nav-link:hover {
    color: white;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.public-nav-button {
    border: 1px solid var(--border-strong);
    color: #00140e;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 12px 32px rgba(61, 245, 189, 0.16);
}

.public-nav-button:hover {
    color: #00140e;
    transform: translateY(-2px);
}

.gateway-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background:
        url("/images/theme/cflix-page-background.png")
        center center / cover no-repeat;
}

.gateway-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(
            90deg,
            rgba(0, 10, 8, 0.34) 0%,
            rgba(0, 12, 9, 0.23) 42%,
            rgba(0, 9, 7, 0.56) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 11, 8, 0.2) 0%,
            rgba(0, 10, 7, 0.06) 50%,
            rgba(0, 8, 6, 0.78) 100%
        );
}

.gateway-stars {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.6;
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(181, 255, 232, 0.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 70% 25%,
            rgba(120, 255, 218, 0.7) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 45% 70%,
            rgba(255, 255, 255, 0.6) 0 1px,
            transparent 1.5px
        );
    background-size:
        170px 170px,
        230px 230px,
        310px 310px;
    animation:
        gatewayDrift 18s linear infinite;
}

.gateway-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    box-shadow:
        inset 0 0 190px rgba(0, 0, 0, 0.82);
    pointer-events: none;
}

.gateway-content {
    width: min(1450px, calc(100% - 70px));
    margin: 115px auto 72px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(390px, 0.55fr);
    gap: 80px;
    align-items: center;
}

.gateway-message {
    max-width: 720px;
    padding-top: 70px;
    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.75);
}

.gateway-eyebrow {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.gateway-message h1 {
    margin: 15px 0 20px;
    max-width: 720px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(62px, 7vw, 112px);
    line-height: 0.88;
    font-weight: 600;
    letter-spacing: -0.065em;
}

.gateway-message h1 span {
    display: block;
    color: var(--cyan);
    text-shadow:
        0 0 35px rgba(73, 255, 220, 0.27),
        0 5px 30px rgba(0, 0, 0, 0.82);
}

.gateway-message p {
    max-width: 620px;
    margin: 0;
    color: #d2e9df;
    font-size: 19px;
    line-height: 1.75;
}

.gateway-detail {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(200, 236, 222, 0.72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gateway-detail-line {
    width: 46px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            var(--green),
            transparent
        );
}

.gateway-auth {
    position: relative;
    overflow: hidden;
    width: min(100%, 465px);
    justify-self: end;
    padding: 34px;
    border: 1px solid rgba(106, 255, 214, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(4, 24, 19, 0.86),
            rgba(1, 12, 10, 0.94)
        );
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.56),
        0 0 60px rgba(41, 245, 184, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.gateway-auth::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(112, 255, 218, 0.09);
    border-radius: 19px;
}

.gateway-auth-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(65, 255, 195, 0.11);
    filter: blur(45px);
    pointer-events: none;
}

.gateway-auth-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gateway-auth-header > span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.gateway-auth-header img {
    width: 300px;
    height: 138px;
    margin-top: 8px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 28px rgba(80, 255, 217, 0.28)
        );
}

.gateway-auth-copy {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    text-align: center;
}

.gateway-auth-copy h2 {
    margin: 0;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.gateway-auth-copy p {
    max-width: 340px;
    margin: 9px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.google-signin-shell {
    position: relative;
    z-index: 1;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-divider,
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gateway-divider {
    margin: 22px 0;
}

.gateway-divider::before,
.gateway-divider::after,
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(109, 255, 218, 0.19),
            transparent
        );
}

.gateway-primary-button,
.gateway-secondary-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        filter 0.2s ease;
}

.gateway-primary-button {
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 36px rgba(61, 245, 189, 0.16);
}

.gateway-primary-button:hover {
    color: #00130d;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.gateway-button-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
}

.gateway-secondary-button {
    margin-top: 12px;
    border: 1px solid rgba(113, 255, 218, 0.22);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
}

.gateway-secondary-button:hover {
    color: white;
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.gateway-private-note {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gateway-private-note span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 12px rgba(61, 245, 189, 0.7);
}

.gateway-bottom-mark {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: min(460px, calc(100% - 40px));
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
    color: rgba(195, 229, 217, 0.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.gateway-bottom-mark span {
    height: 1px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(105, 255, 215, 0.2)
        );
}

.gateway-bottom-mark span:last-child {
    transform: rotate(180deg);
}

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

    to {
        transform: translate3d(-80px, -30px, 0);
    }
}

.auth-realm {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding: 125px 32px 60px;
    background:
        url("/images/theme/cflix-page-background.png")
        center center / cover no-repeat;
}

.auth-realm-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(0, 10, 7, 0.25),
            rgba(0, 10, 7, 0.48)
        ),
        linear-gradient(
            180deg,
            rgba(0, 8, 6, 0.16),
            rgba(0, 8, 6, 0.7)
        );
}

.auth-realm-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    box-shadow:
        inset 0 0 190px rgba(0, 0, 0, 0.86);
}

.auth-realm-layout {
    width: min(1250px, 100%);
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(410px, 500px);
    gap: 90px;
    align-items: center;
}

.auth-realm-message {
    max-width: 650px;
    text-shadow:
        0 6px 32px rgba(0, 0, 0, 0.82);
}

.auth-back-link {
    display: inline-flex;
    margin-bottom: 48px;
    color: rgba(211, 239, 227, 0.76);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.05em;
}

.auth-back-link:hover {
    color: var(--cyan);
}

.auth-realm-eyebrow {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.auth-realm-message h1 {
    margin: 15px 0 20px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(54px, 6vw, 92px);
    line-height: 0.94;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.auth-realm-message h1 span {
    display: block;
    color: var(--cyan);
}

.auth-realm-message p {
    max-width: 530px;
    margin: 0;
    color: #c9e2d8;
    font-size: 18px;
    line-height: 1.7;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 36px;
    border: 1px solid rgba(108, 255, 214, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(4, 25, 20, 0.9),
            rgba(1, 11, 9, 0.96)
        );
    box-shadow:
        0 38px 110px rgba(0, 0, 0, 0.58),
        0 0 55px rgba(61, 245, 189, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.register-panel {
    padding-top: 30px;
    padding-bottom: 30px;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(112, 255, 218, 0.08);
    border-radius: 19px;
}

.auth-panel-glow {
    position: absolute;
    top: -120px;
    right: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(63, 255, 198, 0.11);
    filter: blur(48px);
}

.auth-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.auth-logo-mark {
    justify-content: center;
}

.auth-logo-mark img {
    width: 280px;
    height: 132px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 24px rgba(75, 255, 214, 0.28)
        );
}

.auth-header {
    position: relative;
    z-index: 1;
    margin: 6px 0 25px;
}

.auth-eyebrow {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.25em;
}

.auth-header h2 {
    margin: 9px 0 7px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.auth-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-success,
.auth-error {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    padding: 14px 15px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.auth-success {
    border: 1px solid rgba(87, 229, 159, 0.26);
    background: rgba(87, 229, 159, 0.08);
}

.auth-success strong,
.auth-success span {
    display: block;
}

.auth-success strong {
    margin-bottom: 4px;
    color: #8affc1;
}

.auth-success span {
    color: var(--text-soft);
}

.auth-error {
    border: 1px solid rgba(255, 135, 149, 0.28);
    color: #ffabb4;
    background: rgba(255, 91, 110, 0.08);
}

.auth-divider {
    position: relative;
    z-index: 1;
    margin: 21px 0;
}

.auth-panel form {
    position: relative;
    z-index: 1;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(111, 255, 209, 0.14);
    border-radius: 11px;
    outline: none;
    color: white;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: #536e64;
}

.auth-field input:focus {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 3px rgba(61, 245, 189, 0.08),
        0 0 24px rgba(61, 245, 189, 0.05);
}

.auth-field span,
.auth-validation {
    display: block;
    margin-top: 6px;
    color: #ff9da8;
    font-size: 11px;
}

.auth-validation:empty {
    display: none;
}

.auth-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.remember-row {
    margin: 3px 0 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.remember-row input {
    accent-color: var(--green);
}

.auth-submit {
    width: 100%;
    min-height: 51px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 38px rgba(61, 245, 189, 0.15);
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    font-size: 12px;
}

.auth-footer a {
    margin-left: 5px;
    color: var(--cyan);
    font-weight: 750;
}

.auth-footer a:hover {
    color: white;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(61, 245, 189, 0.09),
            transparent 30%
        );
}

.home-hero-inner,
.services-section,
.status-section {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(430px, 0.75fr);
    gap: 68px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 22px;
    max-width: 780px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(54px, 6vw, 91px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 600;
}

.hero-copy h1 span {
    display: block;
    color: var(--cyan);
}

.hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 33px;
    flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.primary-cta {
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 40px rgba(61, 245, 189, 0.16);
}

.primary-cta:hover {
    color: #00130d;
    transform: translateY(-2px);
}

.secondary-cta {
    border: 1px solid var(--border);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
}

.secondary-cta:hover {
    color: white;
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(61, 245, 189, 0.06);
}

.hero-portal-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.42),
        0 0 55px rgba(61, 245, 189, 0.08);
}

.hero-portal-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-portal-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 11, 8, 0.08),
            rgba(0, 10, 7, 0.84)
        );
}

.hero-portal-content {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
}

.hero-portal-content > span {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.23em;
}

.hero-portal-content > strong {
    margin-top: 7px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 34px;
    font-weight: 600;
}

.hero-portal-content > div {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.services-section {
    padding: 45px 0 82px;
}

.section-heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.7fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading h2,
.status-header h2 {
    margin: 7px 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 95% 0%,
            rgba(61, 245, 189, 0.05),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(8, 31, 25, 0.94),
            rgba(2, 15, 12, 0.96)
        );
    box-shadow: var(--shadow);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -110px;
    right: -80px;
    border-radius: 50%;
    background: rgba(61, 245, 189, 0.08);
    filter: blur(22px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(61, 245, 189, 0.07);
}

.featured-card {
    border-color: rgba(103, 255, 217, 0.3);
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    color: var(--cyan);
    background:
        linear-gradient(
            145deg,
            rgba(61, 245, 189, 0.14),
            rgba(115, 255, 240, 0.03)
        );
    font-size: 22px;
}

.service-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.service-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.2em;
}

.service-card h3 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.service-card p {
    margin: 9px 0 0;
    max-width: 340px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.service-arrow {
    position: absolute;
    z-index: 1;
    top: 22px;
    right: 22px;
    color: var(--text-muted);
    font-size: 20px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.service-card:hover .service-arrow {
    color: var(--cyan);
    transform: translateX(3px);
}

.status-section {
    padding: 10px 0 90px;
}

.status-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 28, 23, 0.94),
            rgba(2, 14, 11, 0.96)
        );
    box-shadow: var(--shadow);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.overall-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.status-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.status-item {
    min-height: 84px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.status-item div {
    display: flex;
    flex-direction: column;
}

.status-item strong {
    font-size: 14px;
}

.status-item span:not(.status-pill) {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.status-pill {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.status-pill.online {
    color: #8affc1;
    border: 1px solid rgba(87, 229, 159, 0.24);
    background: rgba(87, 229, 159, 0.09);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow:
        0 0 12px rgba(87, 229, 159, 0.68);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: rgba(2, 11, 9, 0.88);
}

.footer-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-inner strong {
    margin-right: 12px;
    color: var(--text-soft);
}

.footer-copy {
    color: var(--text-muted);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.container,
.container-fluid {
    color: var(--text);
}

.form-control,
.form-select {
    color: var(--text);
    border-color: var(--border);
    background-color: rgba(255, 255, 255, 0.035);
}

.form-control:focus,
.form-select:focus {
    color: white;
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 0.2rem rgba(61, 245, 189, 0.08);
}

.table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border);
}

.card {
    color: var(--text);
    border-color: var(--border);
    background: var(--panel);
}

.ffxi-download-wrap {
    margin-top: 14px;
}

.ffxi-download-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(105, 255, 215, 0.34);
    border-radius: 11px;
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    font-weight: 850;
    text-decoration: none;
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.ffxi-download-button:hover {
    color: #00130d;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }

    .header-actions {
        justify-self: end;
    }

    .gateway-content {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 60px;
    }

    .gateway-message {
        max-width: 820px;
        padding-top: 20px;
    }

    .gateway-auth {
        justify-self: start;
    }

    .auth-realm-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .auth-realm-message {
        max-width: 760px;
    }

    .auth-back-link {
        margin-bottom: 30px;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 900px;
    }

    .service-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .public-header-inner {
        width: min(100% - 28px, 1500px);
    }

    .gateway-content {
        width: min(100% - 28px, 1450px);
        margin-top: 105px;
        margin-bottom: 70px;
    }

    .gateway-message h1 {
        font-size: clamp(54px, 14vw, 78px);
    }

    .gateway-message p {
        font-size: 16px;
    }

    .auth-realm {
        padding:
            110px
            18px
            45px;
    }

    .auth-realm-message h1 {
        font-size: clamp(50px, 13vw, 74px);
    }

    .home-hero {
        padding-top: 60px;
    }

    .home-hero-inner,
    .services-section,
    .status-section {
        width: min(100% - 24px, 1500px);
    }

    .section-heading,
    .status-header {
        display: block;
    }

    .section-heading p {
        margin-top: 16px;
    }

    .overall-status {
        margin-top: 14px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-header-inner {
        min-height: 72px;
    }

    .public-brand img {
        width: 125px;
        height: 62px;
    }

    .public-nav {
        gap: 5px;
    }

    .public-nav-link,
    .public-nav-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .gateway-content {
        margin-top: 90px;
        gap: 36px;
    }

    .gateway-message {
        padding-top: 0;
    }

    .gateway-message h1 {
        font-size: 52px;
    }

    .gateway-detail {
        font-size: 10px;
    }

    .gateway-auth {
        padding: 27px 22px;
        border-radius: 21px;
    }

    .gateway-auth-header img {
        width: 245px;
        height: 118px;
    }

    .gateway-auth-copy h2 {
        font-size: 29px;
    }

    .gateway-bottom-mark {
        display: none;
    }

    .auth-realm {
        display: block;
    }

    .auth-realm-message {
        margin-bottom: 32px;
    }

    .auth-realm-message h1 {
        font-size: 50px;
    }

    .auth-realm-message p {
        font-size: 15px;
    }

    .auth-panel {
        padding: 28px 22px;
        border-radius: 21px;
    }

    .auth-logo-mark img {
        width: 230px;
        height: 110px;
    }

    .auth-header h2 {
        font-size: 32px;
    }

    .header-inner,
    .footer-inner {
        width: min(100% - 24px, 1500px);
    }

    .header-inner {
        min-height: 68px;
        gap: 14px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 18px;
    }

    .profile-name {
        display: none;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-portal-card {
        min-height: 330px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .status-panel {
        padding: 21px;
    }

    .footer-inner {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copy {
        display: block;
        margin-top: 5px;
    }
}
/* =========================================================
   GLOBAL AUTHENTICATED HEADER FIX
   ========================================================= */

.authenticated-header {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
}

.authenticated-header .header-inner {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
}

.authenticated-header .authenticated-brand,
.authenticated-header .cflix-header-brand {
    width: auto !important;
    height: 52px !important;
    min-width: 0 !important;
    max-width: 180px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.authenticated-header .authenticated-brand img,
.authenticated-header .cflix-header-brand img,
.authenticated-header .cflix-header-logo {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    min-width: 0 !important;
    max-width: 170px !important;
    min-height: 0 !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

@media (max-width: 640px) {
    .authenticated-header {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }

    .authenticated-header .header-inner {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }

    .authenticated-header .authenticated-brand,
    .authenticated-header .cflix-header-brand {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        max-width: 145px !important;
    }

    .authenticated-header .authenticated-brand img,
    .authenticated-header .cflix-header-brand img,
    .authenticated-header .cflix-header-logo {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 140px !important;
    }
}:root {
    --bg: #03110f;
    --bg-soft: #071b17;
    --panel: rgba(5, 25, 21, 0.9);
    --panel-light: rgba(9, 38, 31, 0.9);

    --border: rgba(111, 255, 209, 0.14);
    --border-strong: rgba(103, 255, 217, 0.34);

    --text: #f1fff9;
    --text-soft: #b6d5c9;
    --text-muted: #718f84;

    --green: #3df5bd;
    --cyan: #73fff0;
    --blue: #58c9ff;
    --gold: #d8c58d;

    --success: #57e59f;
    --danger: #ff8795;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(40, 219, 169, 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #061712 0%,
            #020b09 100%
        );
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.public-body {
    overflow-x: hidden;
}

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

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

button {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-header {
    z-index: 1000;
}

.authenticated-header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(88, 231, 210, 0.14);
    background: rgba(5, 7, 8, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.header-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 12px rgba(90, 255, 218, 0.28)
        );
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: white;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.34em;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    position: relative;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-nav a:hover {
    color: white;
    background: rgba(95, 255, 211, 0.06);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.45);
    background:
        linear-gradient(
            90deg,
            var(--green),
            var(--cyan)
        );
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-button {
    min-height: 43px;
    padding: 5px 12px 5px 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.profile-button:hover {
    border-color: var(--border-strong);
    background: rgba(61, 245, 189, 0.07);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #00110c;
    background:
        linear-gradient(
            145deg,
            var(--cyan),
            var(--green)
        );
    font-size: 13px;
    font-weight: 900;
}

.profile-name {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.public-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(113, 255, 219, 0.1);
    background:
        linear-gradient(
            180deg,
            rgba(0, 9, 7, 0.82),
            rgba(0, 9, 7, 0.18)
        );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.public-header-inner {
    width: min(1500px, calc(100% - 56px));
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.public-brand img {
    width: 165px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(
            0 0 16px rgba(90, 255, 218, 0.32)
        );
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-nav-link,
.public-nav-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.public-nav-link {
    border: 1px solid transparent;
    color: var(--text-soft);
}

.public-nav-link:hover {
    color: white;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.public-nav-button {
    border: 1px solid var(--border-strong);
    color: #00140e;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 12px 32px rgba(61, 245, 189, 0.16);
}

.public-nav-button:hover {
    color: #00140e;
    transform: translateY(-2px);
}

.gateway-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background:
        url("/images/theme/cflix-page-background.png")
        center center / cover no-repeat;
}

.gateway-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(
            90deg,
            rgba(0, 10, 8, 0.34) 0%,
            rgba(0, 12, 9, 0.23) 42%,
            rgba(0, 9, 7, 0.56) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 11, 8, 0.2) 0%,
            rgba(0, 10, 7, 0.06) 50%,
            rgba(0, 8, 6, 0.78) 100%
        );
}

.gateway-stars {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.6;
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(181, 255, 232, 0.8) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 70% 25%,
            rgba(120, 255, 218, 0.7) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 45% 70%,
            rgba(255, 255, 255, 0.6) 0 1px,
            transparent 1.5px
        );
    background-size:
        170px 170px,
        230px 230px,
        310px 310px;
    animation:
        gatewayDrift 18s linear infinite;
}

.gateway-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    box-shadow:
        inset 0 0 190px rgba(0, 0, 0, 0.82);
    pointer-events: none;
}

.gateway-content {
    width: min(1450px, calc(100% - 70px));
    margin: 115px auto 72px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(390px, 0.55fr);
    gap: 80px;
    align-items: center;
}

.gateway-message {
    max-width: 720px;
    padding-top: 70px;
    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.75);
}

.gateway-eyebrow {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.gateway-message h1 {
    margin: 15px 0 20px;
    max-width: 720px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(62px, 7vw, 112px);
    line-height: 0.88;
    font-weight: 600;
    letter-spacing: -0.065em;
}

.gateway-message h1 span {
    display: block;
    color: var(--cyan);
    text-shadow:
        0 0 35px rgba(73, 255, 220, 0.27),
        0 5px 30px rgba(0, 0, 0, 0.82);
}

.gateway-message p {
    max-width: 620px;
    margin: 0;
    color: #d2e9df;
    font-size: 19px;
    line-height: 1.75;
}

.gateway-detail {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(200, 236, 222, 0.72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gateway-detail-line {
    width: 46px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            var(--green),
            transparent
        );
}

.gateway-auth {
    position: relative;
    overflow: hidden;
    width: min(100%, 465px);
    justify-self: end;
    padding: 34px;
    border: 1px solid rgba(106, 255, 214, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(4, 24, 19, 0.86),
            rgba(1, 12, 10, 0.94)
        );
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.56),
        0 0 60px rgba(41, 245, 184, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.gateway-auth::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(112, 255, 218, 0.09);
    border-radius: 19px;
}

.gateway-auth-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(65, 255, 195, 0.11);
    filter: blur(45px);
    pointer-events: none;
}

.gateway-auth-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gateway-auth-header > span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.gateway-auth-header img {
    width: 300px;
    height: 138px;
    margin-top: 8px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 28px rgba(80, 255, 217, 0.28)
        );
}

.gateway-auth-copy {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    text-align: center;
}

.gateway-auth-copy h2 {
    margin: 0;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.gateway-auth-copy p {
    max-width: 340px;
    margin: 9px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.google-signin-shell {
    position: relative;
    z-index: 1;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-divider,
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gateway-divider {
    margin: 22px 0;
}

.gateway-divider::before,
.gateway-divider::after,
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(109, 255, 218, 0.19),
            transparent
        );
}

.gateway-primary-button,
.gateway-secondary-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        filter 0.2s ease;
}

.gateway-primary-button {
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 36px rgba(61, 245, 189, 0.16);
}

.gateway-primary-button:hover {
    color: #00130d;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.gateway-button-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
}

.gateway-secondary-button {
    margin-top: 12px;
    border: 1px solid rgba(113, 255, 218, 0.22);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
}

.gateway-secondary-button:hover {
    color: white;
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.gateway-private-note {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gateway-private-note span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 12px rgba(61, 245, 189, 0.7);
}

.gateway-bottom-mark {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: min(460px, calc(100% - 40px));
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
    color: rgba(195, 229, 217, 0.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.gateway-bottom-mark span {
    height: 1px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(105, 255, 215, 0.2)
        );
}

.gateway-bottom-mark span:last-child {
    transform: rotate(180deg);
}

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

    to {
        transform: translate3d(-80px, -30px, 0);
    }
}

.auth-realm {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding: 125px 32px 60px;
    background:
        url("/images/theme/cflix-page-background.png")
        center center / cover no-repeat;
}

.auth-realm-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(0, 10, 7, 0.25),
            rgba(0, 10, 7, 0.48)
        ),
        linear-gradient(
            180deg,
            rgba(0, 8, 6, 0.16),
            rgba(0, 8, 6, 0.7)
        );
}

.auth-realm-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    box-shadow:
        inset 0 0 190px rgba(0, 0, 0, 0.86);
}

.auth-realm-layout {
    width: min(1250px, 100%);
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(410px, 500px);
    gap: 90px;
    align-items: center;
}

.auth-realm-message {
    max-width: 650px;
    text-shadow:
        0 6px 32px rgba(0, 0, 0, 0.82);
}

.auth-back-link {
    display: inline-flex;
    margin-bottom: 48px;
    color: rgba(211, 239, 227, 0.76);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.05em;
}

.auth-back-link:hover {
    color: var(--cyan);
}

.auth-realm-eyebrow {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.3em;
}

.auth-realm-message h1 {
    margin: 15px 0 20px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(54px, 6vw, 92px);
    line-height: 0.94;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.auth-realm-message h1 span {
    display: block;
    color: var(--cyan);
}

.auth-realm-message p {
    max-width: 530px;
    margin: 0;
    color: #c9e2d8;
    font-size: 18px;
    line-height: 1.7;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 36px;
    border: 1px solid rgba(108, 255, 214, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(4, 25, 20, 0.9),
            rgba(1, 11, 9, 0.96)
        );
    box-shadow:
        0 38px 110px rgba(0, 0, 0, 0.58),
        0 0 55px rgba(61, 245, 189, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.register-panel {
    padding-top: 30px;
    padding-bottom: 30px;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(112, 255, 218, 0.08);
    border-radius: 19px;
}

.auth-panel-glow {
    position: absolute;
    top: -120px;
    right: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(63, 255, 198, 0.11);
    filter: blur(48px);
}

.auth-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.auth-logo-mark {
    justify-content: center;
}

.auth-logo-mark img {
    width: 280px;
    height: 132px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 0 24px rgba(75, 255, 214, 0.28)
        );
}

.auth-header {
    position: relative;
    z-index: 1;
    margin: 6px 0 25px;
}

.auth-eyebrow {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.25em;
}

.auth-header h2 {
    margin: 9px 0 7px;
    color: white;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.auth-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-success,
.auth-error {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    padding: 14px 15px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.auth-success {
    border: 1px solid rgba(87, 229, 159, 0.26);
    background: rgba(87, 229, 159, 0.08);
}

.auth-success strong,
.auth-success span {
    display: block;
}

.auth-success strong {
    margin-bottom: 4px;
    color: #8affc1;
}

.auth-success span {
    color: var(--text-soft);
}

.auth-error {
    border: 1px solid rgba(255, 135, 149, 0.28);
    color: #ffabb4;
    background: rgba(255, 91, 110, 0.08);
}

.auth-divider {
    position: relative;
    z-index: 1;
    margin: 21px 0;
}

.auth-panel form {
    position: relative;
    z-index: 1;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(111, 255, 209, 0.14);
    border-radius: 11px;
    outline: none;
    color: white;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: #536e64;
}

.auth-field input:focus {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 3px rgba(61, 245, 189, 0.08),
        0 0 24px rgba(61, 245, 189, 0.05);
}

.auth-field span,
.auth-validation {
    display: block;
    margin-top: 6px;
    color: #ff9da8;
    font-size: 11px;
}

.auth-validation:empty {
    display: none;
}

.auth-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.remember-row {
    margin: 3px 0 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.remember-row input {
    accent-color: var(--green);
}

.auth-submit {
    width: 100%;
    min-height: 51px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 38px rgba(61, 245, 189, 0.15);
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    font-size: 12px;
}

.auth-footer a {
    margin-left: 5px;
    color: var(--cyan);
    font-weight: 750;
}

.auth-footer a:hover {
    color: white;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(61, 245, 189, 0.09),
            transparent 30%
        );
}

.home-hero-inner,
.services-section,
.status-section {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(430px, 0.75fr);
    gap: 68px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 22px;
    max-width: 780px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(54px, 6vw, 91px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 600;
}

.hero-copy h1 span {
    display: block;
    color: var(--cyan);
}

.hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 33px;
    flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.primary-cta {
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    box-shadow:
        0 16px 40px rgba(61, 245, 189, 0.16);
}

.primary-cta:hover {
    color: #00130d;
    transform: translateY(-2px);
}

.secondary-cta {
    border: 1px solid var(--border);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
}

.secondary-cta:hover {
    color: white;
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(61, 245, 189, 0.06);
}

.hero-portal-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.42),
        0 0 55px rgba(61, 245, 189, 0.08);
}

.hero-portal-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-portal-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 11, 8, 0.08),
            rgba(0, 10, 7, 0.84)
        );
}

.hero-portal-content {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
}

.hero-portal-content > span {
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.23em;
}

.hero-portal-content > strong {
    margin-top: 7px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 34px;
    font-weight: 600;
}

.hero-portal-content > div {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.services-section {
    padding: 45px 0 82px;
}

.section-heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.7fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading h2,
.status-header h2 {
    margin: 7px 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 95% 0%,
            rgba(61, 245, 189, 0.05),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(8, 31, 25, 0.94),
            rgba(2, 15, 12, 0.96)
        );
    box-shadow: var(--shadow);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -110px;
    right: -80px;
    border-radius: 50%;
    background: rgba(61, 245, 189, 0.08);
    filter: blur(22px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(61, 245, 189, 0.07);
}

.featured-card {
    border-color: rgba(103, 255, 217, 0.3);
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    color: var(--cyan);
    background:
        linear-gradient(
            145deg,
            rgba(61, 245, 189, 0.14),
            rgba(115, 255, 240, 0.03)
        );
    font-size: 22px;
}

.service-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.service-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.2em;
}

.service-card h3 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.service-card p {
    margin: 9px 0 0;
    max-width: 340px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.service-arrow {
    position: absolute;
    z-index: 1;
    top: 22px;
    right: 22px;
    color: var(--text-muted);
    font-size: 20px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.service-card:hover .service-arrow {
    color: var(--cyan);
    transform: translateX(3px);
}

.status-section {
    padding: 10px 0 90px;
}

.status-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 28, 23, 0.94),
            rgba(2, 14, 11, 0.96)
        );
    box-shadow: var(--shadow);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.overall-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.status-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.status-item {
    min-height: 84px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.022);
}

.status-item div {
    display: flex;
    flex-direction: column;
}

.status-item strong {
    font-size: 14px;
}

.status-item span:not(.status-pill) {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.status-pill {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.status-pill.online {
    color: #8affc1;
    border: 1px solid rgba(87, 229, 159, 0.24);
    background: rgba(87, 229, 159, 0.09);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow:
        0 0 12px rgba(87, 229, 159, 0.68);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(88, 231, 210, 0.14);
    background: rgba(5, 7, 8, 0.98);
}

.footer-inner {
    width: min(1500px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-inner strong {
    margin-right: 12px;
    color: var(--text-soft);
}

.footer-copy {
    color: var(--text-muted);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.container,
.container-fluid {
    color: var(--text);
}

.form-control,
.form-select {
    color: var(--text);
    border-color: var(--border);
    background-color: rgba(255, 255, 255, 0.035);
}

.form-control:focus,
.form-select:focus {
    color: white;
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 0.2rem rgba(61, 245, 189, 0.08);
}

.table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border);
}

.card {
    color: var(--text);
    border-color: var(--border);
    background: var(--panel);
}

.ffxi-download-wrap {
    margin-top: 14px;
}

.ffxi-download-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(105, 255, 215, 0.34);
    border-radius: 11px;
    color: #00130d;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--green)
        );
    font-weight: 850;
    text-decoration: none;
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.ffxi-download-button:hover {
    color: #00130d;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }

    .header-actions {
        justify-self: end;
    }

    .gateway-content {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 60px;
    }

    .gateway-message {
        max-width: 820px;
        padding-top: 20px;
    }

    .gateway-auth {
        justify-self: start;
    }

    .auth-realm-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .auth-realm-message {
        max-width: 760px;
    }

    .auth-back-link {
        margin-bottom: 30px;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 900px;
    }

    .service-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .public-header-inner {
        width: min(100% - 28px, 1500px);
    }

    .gateway-content {
        width: min(100% - 28px, 1450px);
        margin-top: 105px;
        margin-bottom: 70px;
    }

    .gateway-message h1 {
        font-size: clamp(54px, 14vw, 78px);
    }

    .gateway-message p {
        font-size: 16px;
    }

    .auth-realm {
        padding:
            110px
            18px
            45px;
    }

    .auth-realm-message h1 {
        font-size: clamp(50px, 13vw, 74px);
    }

    .home-hero {
        padding-top: 60px;
    }

    .home-hero-inner,
    .services-section,
    .status-section {
        width: min(100% - 24px, 1500px);
    }

    .section-heading,
    .status-header {
        display: block;
    }

    .section-heading p {
        margin-top: 16px;
    }

    .overall-status {
        margin-top: 14px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-header-inner {
        min-height: 72px;
    }

    .public-brand img {
        width: 125px;
        height: 62px;
    }

    .public-nav {
        gap: 5px;
    }

    .public-nav-link,
    .public-nav-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .gateway-content {
        margin-top: 90px;
        gap: 36px;
    }

    .gateway-message {
        padding-top: 0;
    }

    .gateway-message h1 {
        font-size: 52px;
    }

    .gateway-detail {
        font-size: 10px;
    }

    .gateway-auth {
        padding: 27px 22px;
        border-radius: 21px;
    }

    .gateway-auth-header img {
        width: 245px;
        height: 118px;
    }

    .gateway-auth-copy h2 {
        font-size: 29px;
    }

    .gateway-bottom-mark {
        display: none;
    }

    .auth-realm {
        display: block;
    }

    .auth-realm-message {
        margin-bottom: 32px;
    }

    .auth-realm-message h1 {
        font-size: 50px;
    }

    .auth-realm-message p {
        font-size: 15px;
    }

    .auth-panel {
        padding: 28px 22px;
        border-radius: 21px;
    }

    .auth-logo-mark img {
        width: 230px;
        height: 110px;
    }

    .auth-header h2 {
        font-size: 32px;
    }

    .header-inner,
    .footer-inner {
        width: min(100% - 24px, 1500px);
    }

    .header-inner {
        min-height: 68px;
        gap: 14px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 18px;
    }

    .profile-name {
        display: none;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-portal-card {
        min-height: 330px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .status-panel {
        padding: 21px;
    }

    .footer-inner {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-copy {
        display: block;
        margin-top: 5px;
    }
}
/* =========================================================
   GLOBAL AUTHENTICATED HEADER FIX
   ========================================================= */

.authenticated-header {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
}

.authenticated-header .header-inner {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
}

.authenticated-header .authenticated-brand,
.authenticated-header .cflix-header-brand {
    width: auto !important;
    height: 52px !important;
    min-width: 0 !important;
    max-width: 180px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.authenticated-header .authenticated-brand img,
.authenticated-header .cflix-header-brand img,
.authenticated-header .cflix-header-logo {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    min-width: 0 !important;
    max-width: 170px !important;
    min-height: 0 !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

@media (max-width: 640px) {
    .authenticated-header {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }

    .authenticated-header .header-inner {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }

    .authenticated-header .authenticated-brand,
    .authenticated-header .cflix-header-brand {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        max-width: 145px !important;
    }

    .authenticated-header .authenticated-brand img,
    .authenticated-header .cflix-header-brand img,
    .authenticated-header .cflix-header-logo {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 140px !important;
    }
}