:root {
    --bg: #08091a;
    --panel: rgba(17, 18, 45, 0.78);
    --panel-strong: rgba(24, 24, 58, 0.94);
    --text: #f5f3ff;
    --muted: rgba(229, 236, 245, 0.62);
    --dim: rgba(174, 189, 209, 0.74);
    --border: rgba(142, 160, 184, 0.22);
    --gold: #8b7cff;
    --gold-soft: rgba(139, 124, 255, 0.2);
    --green: #36d783;
    --blue: #5fa8ff;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    width: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    color: var(--text);
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    text-align: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(139, 92, 246, 0.18), transparent 25%),
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.14), transparent 28%),
        linear-gradient(180deg, #0d1029 0%, #070817 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0 auto;
    padding: 14px 0 12px;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: min(100% - 16px, 295px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

.brand-name {
    color: var(--gold);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.brand-divider {
    width: 1px;
    height: 12px;
    background: rgba(229, 236, 245, 0.28);
}

.brand-desc {
    color: rgba(229, 236, 245, 0.8);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.container {
    width: min(100% - 16px, 295px);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-copy {
    margin-bottom: 10px;
}

.gateway-title {
    margin: 0 0 8px;
    color: #f8f7ff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.safe-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.safe-subtext {
    max-width: 270px;
    margin: 0 auto;
    color: rgba(222, 232, 244, 0.72);
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.gateway-visual {
    position: relative;
    height: 102px;
    margin: 0 0 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.map-glow {
    position: absolute;
    inset: 7px 6px 0;
    opacity: 0.86;
    background:
        radial-gradient(circle at 14% 58%, var(--gold) 0 1.5px, transparent 2px),
        radial-gradient(circle at 25% 42%, var(--gold) 0 1.5px, transparent 2px),
        radial-gradient(circle at 39% 50%, var(--gold) 0 1.5px, transparent 2px),
        radial-gradient(circle at 57% 34%, var(--gold) 0 1.5px, transparent 2px),
        radial-gradient(circle at 70% 52%, var(--gold) 0 1.5px, transparent 2px),
        radial-gradient(circle at 85% 39%, var(--gold) 0 1.5px, transparent 2px),
        linear-gradient(17deg, transparent 18%, rgba(96, 165, 250, 0.38) 18.4%, transparent 19% 44%, rgba(139, 92, 246, 0.34) 44.4%, transparent 45%),
        linear-gradient(153deg, transparent 24%, rgba(139, 92, 246, 0.28) 24.4%, transparent 25% 63%, rgba(96, 165, 250, 0.28) 63.4%, transparent 64%),
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2), transparent 62%);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.34));
}

.orbit {
    position: absolute;
    width: 178px;
    height: 52px;
    border: 1px solid rgba(139, 124, 255, 0.34);
    border-radius: 50%;
    transform: rotate(-11deg);
}

.orbit-two {
    width: 138px;
    height: 40px;
    transform: rotate(18deg);
    border-color: rgba(96, 165, 250, 0.24);
}

.shield-card {
    position: relative;
    width: 72px;
    height: 76px;
    display: grid;
    place-items: center;
    isolation: isolate;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}

.shield-card::before {
    content: "";
    position: absolute;
    inset: 0 7px 2px;
    z-index: 1;
    background:
        linear-gradient(145deg, rgba(147, 197, 253, 0.58), rgba(124, 58, 237, 0.46) 42%, rgba(18, 18, 48, 0.88)),
        rgba(16, 18, 44, 0.94);
    clip-path: polygon(50% 0, 90% 14%, 82% 68%, 50% 100%, 18% 68%, 10% 14%);
    box-shadow:
        inset 0 0 0 1px rgba(191, 219, 254, 0.46),
        inset 0 12px 22px rgba(167, 139, 250, 0.16),
        0 0 36px rgba(124, 58, 237, 0.38);
    filter: saturate(1.08);
    opacity: 0.96;
    transform: perspective(90px) rotateX(2deg);
    transform-origin: 50% 40%;
}

.shield-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    z-index: 2;
    width: 14px;
    height: 8px;
    background: transparent;
    border-left: 2.5px solid rgba(26, 30, 32, 0.88);
    border-bottom: 2.5px solid rgba(26, 30, 32, 0.88);
    box-shadow: -1px 1px 0 rgba(191, 219, 254, 0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.progress-bar {
    width: 100%;
    height: 1px;
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.progress {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #5fa8ff, var(--gold), transparent);
    transition: width 0.5s ease;
}

.route-buttons {
    display: grid;
    gap: 7px;
}

.route-btn {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 8px;
    min-height: 53px;
    width: 100%;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 27, 38, 0.9), rgba(14, 20, 29, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.route-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 124, 255, 0.62);
    background: linear-gradient(180deg, rgba(31, 30, 67, 0.96), rgba(17, 20, 43, 0.96));
}

.route-btn:active {
    transform: translateY(0);
}

.route-btn.fastest {
    border-color: rgba(139, 124, 255, 0.82);
    background: linear-gradient(180deg, rgba(39, 35, 83, 0.98), rgba(20, 21, 53, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(96, 165, 250, 0.12),
        0 10px 28px rgba(124, 58, 237, 0.18);
}

.route-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(20, 28, 40, 0.92);
    border: 1px solid rgba(137, 157, 184, 0.22);
}

.route-icon::before {
    content: "";
    width: 21px;
    height: 21px;
    display: block;
    background: rgba(133, 159, 197, 0.9);
    mask: var(--icon) center / contain no-repeat;
}

.route-icon-brand {
    border-color: rgba(139, 124, 255, 0.56);
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.15), rgba(139, 92, 246, 0.18));
}

.route-icon-brand::before {
    content: "A";
    width: auto;
    height: auto;
    color: var(--gold);
    background: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    mask: none;
}

.route-icon-globe {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
}

.route-icon-bolt {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-13h-7l0-7Z'/%3E%3C/svg%3E");
}

.route-icon-shield {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3C/svg%3E");
}

.route-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.route-title {
    color: #f7f5ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

.route-desc {
    overflow: hidden;
    color: var(--dim);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.route-status {
    color: var(--green);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.route-status::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(54, 215, 131, 0.6);
    vertical-align: 1px;
}

.route-badge {
    padding: 3px 6px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(139, 124, 255, 0.14);
}

.route-btn.timeout .route-status::before {
    background: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.route-btn.timeout .route-status {
    color: #ff9a9a;
}

.route-arrow {
    width: 9px;
    height: 9px;
    border-top: 1.5px solid rgba(241, 247, 255, 0.78);
    border-right: 1.5px solid rgba(241, 247, 255, 0.78);
    transform: rotate(45deg);
}

.security-note {
    min-height: 32px;
    margin: 12px 0 0;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(201, 214, 230, 0.74);
    font-size: 9px;
    line-height: 1.35;
    border: 1px solid rgba(74, 97, 123, 0.28);
    border-radius: 6px;
    background: rgba(13, 23, 33, 0.78);
}

.note-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(54, 215, 131, 0.34);
}

.note-icon::before {
    content: "";
    display: block;
    width: 7px;
    height: 4px;
    margin: 4px auto 0;
    border-left: 1.6px solid #052416;
    border-bottom: 1.6px solid #052416;
    transform: rotate(-45deg);
}

/* 语言切换器 */
.language-switcher {
    position: relative;
    z-index: 1000;
    flex: 0 0 auto;
}

.lang-toggle-btn {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: rgba(245, 250, 255, 0.9);
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(142, 160, 184, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-toggle-btn:hover {
    border-color: rgba(139, 124, 255, 0.46);
}

.globe-icon {
    width: 12px;
    height: 12px;
    color: rgba(245, 250, 255, 0.86);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 168px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s ease;
    border: 1px solid rgba(142, 160, 184, 0.22);
    border-radius: 10px;
    background: #111923;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: rgba(236, 243, 252, 0.9);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(139, 124, 255, 0.13);
}

.lang-option.active::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 7px;
    height: 4px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

.lang-option .flag {
    font-size: 15px;
}

/* RTL布局支持 */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: center;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .route-btn,
html[dir="rtl"] .security-note {
    direction: rtl;
}

html[dir="rtl"] .route-btn {
    text-align: right;
    grid-template-columns: 16px auto minmax(0, 1fr) 40px;
}

html[dir="rtl"] .route-icon {
    grid-column: 4;
}

html[dir="rtl"] .route-content {
    grid-column: 3;
}

html[dir="rtl"] .route-meta {
    grid-column: 2;
}

html[dir="rtl"] .route-arrow {
    grid-column: 1;
    transform: rotate(-135deg);
}

html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option.active::after {
    right: auto;
    left: 12px;
}

/* 阿拉伯语字体优化 */
html[lang="ar-SA"] body,
html[lang="ar-SA"] .route-btn,
html[lang="ar-SA"] .safe-text,
html[lang="ar-SA"] .safe-subtext {
    font-family: "Arial", "Tahoma", sans-serif;
}

@media (max-width: 380px) {
    .page-shell {
        padding: 14px 0 12px;
    }

    .topbar {
        margin-bottom: 18px;
    }

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

    .hero-copy {
        margin-bottom: 8px;
    }

    .gateway-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .safe-subtext {
        font-size: 10px;
        line-height: 1.35;
        white-space: nowrap;
    }

    .gateway-visual {
        height: 84px;
        margin: 0 0 8px;
    }

    .shield-card {
        width: 60px;
        height: 70px;
    }

    .orbit {
        width: 164px;
        height: 48px;
    }

    .orbit-two {
        width: 126px;
        height: 38px;
    }

    .progress-bar {
        display: none;
    }

    .route-buttons {
        gap: 8px;
    }

    .route-btn {
        grid-template-columns: 36px minmax(0, 1fr) auto 14px;
        gap: 8px;
        min-height: 51px;
        padding-inline: 9px;
    }

    .route-icon {
        width: 36px;
        height: 36px;
    }

    .security-note {
        min-height: 30px;
        margin-top: 12px;
        padding: 7px 8px;
        font-size: 9px;
    }
}

/* LMAX brand layout refresh */
:root {
    --brand-red: #ce231e;
    --brand-red-dark: #a91512;
    --brand-ink: #141416;
    --brand-muted: #68686f;
    --brand-line: #e9e9ec;
    --brand-surface: #f7f7f8;
}

html {
    background: #ececef;
}

body {
    color: var(--brand-ink);
    text-align: left;
    background:
        radial-gradient(circle at 50% 0%, rgba(206, 35, 30, 0.07), transparent 32%),
        #ececef;
}

body::before {
    opacity: 0;
}

.page-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    padding: 28px 0 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(20, 20, 22, 0.14);
}

.topbar,
.container {
    width: min(100% - 40px, 408px);
}

.topbar {
    margin-bottom: 28px;
}

.brand {
    gap: 9px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.brand-name {
    color: var(--brand-ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.brand-divider {
    height: 18px;
    background: #d9d9dd;
}

.brand-desc {
    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 600;
}

.lang-toggle-btn {
    min-height: 38px;
    padding: 8px 13px;
    color: #303035;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: #ffffff;
}

.lang-toggle-btn:hover {
    border-color: #d5d5d9;
    background: var(--brand-surface);
}

.lang-toggle-btn:focus-visible,
.route-btn:focus-visible {
    outline: 3px solid rgba(206, 35, 30, 0.22);
    outline-offset: 2px;
}

.container {
    gap: 18px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 0;
    border: 1px solid #ededf0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 12%, rgba(206, 35, 30, 0.1), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f8f8f9 100%);
    box-shadow: 0 14px 35px rgba(25, 25, 28, 0.07);
}

.hero-copy {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--brand-red-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(206, 35, 30, 0.1);
}

.gateway-title {
    max-width: 280px;
    margin: 0 0 9px;
    color: var(--brand-ink);
    font-size: clamp(25px, 7vw, 31px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.safe-subtext {
    max-width: 300px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.65;
    white-space: normal;
}

.gateway-visual {
    height: 132px;
    margin: 8px -8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.map-glow {
    background: radial-gradient(circle, rgba(206, 35, 30, 0.16), transparent 68%);
}

.orbit {
    border-color: rgba(206, 35, 30, 0.23);
}

.shield-card {
    filter: drop-shadow(0 12px 18px rgba(206, 35, 30, 0.2));
}

.shield-card::before {
    background: linear-gradient(145deg, #e33b34, #c51f1a 52%, #8d0e0b);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.34),
        inset 0 10px 18px rgba(255, 255, 255, 0.14),
        0 0 0 5px rgba(206, 35, 30, 0.08);
}

.progress-bar {
    height: 3px;
    margin: 0 -24px;
    background: #ededf0;
}

.progress {
    background: linear-gradient(90deg, #99110e, var(--brand-red), #ed6a64);
}

.route-section {
    padding: 4px 0 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.safe-text {
    margin: 0;
    color: #28282d;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
}

.section-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #6d6d73;
    border-radius: 999px;
    background: #f2f2f4;
    font-size: 10px;
    font-weight: 650;
}

.route-buttons {
    gap: 10px;
}

.route-btn {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(25, 25, 28, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(206, 35, 30, 0.28);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(25, 25, 28, 0.09);
}

.route-btn:active {
    transform: translateY(0);
}

.route-btn.fastest {
    border: 1px solid var(--brand-red);
    background: linear-gradient(135deg, #d52a24, #a91512);
    box-shadow: 0 12px 28px rgba(169, 21, 18, 0.22);
}

.route-icon-brand {
    background: var(--brand-ink);
    box-shadow: inset -4px 0 0 var(--brand-red), 0 3px 10px rgba(31, 31, 35, 0.12);
}

.route-badge {
    color: #99110e;
    background: #fff0ef;
}

.route-status {
    color: #347c27;
}

#route-buttons > p {
    width: 100%;
    margin: 0 !important;
    padding: 24px 16px;
    color: #77777e !important;
    border: 1px dashed #d9d9de;
    border-radius: 16px;
    background: #fafafb;
    font-size: 12px;
    text-align: center;
}

.security-note {
    min-height: 44px;
    margin: 0;
    padding: 11px 13px;
    color: #6d6d73;
    border: 1px solid #ececef;
    border-radius: 14px;
    background: #f8f8f9;
    font-size: 10px;
    line-height: 1.55;
}

.note-icon {
    background: #3d9b2e;
}

@media (max-width: 520px) {
    .page-shell {
        width: 100%;
        padding-top: 20px;
        box-shadow: none;
    }

    .topbar,
    .container {
        width: min(100% - 28px, 408px);
    }

    .topbar {
        margin-bottom: 22px;
    }

    .hero-panel {
        padding: 21px 20px 0;
        border-radius: 20px;
    }

    .progress-bar {
        margin: 0 -20px;
    }
}

@media (max-width: 360px) {
    .brand-desc,
    .brand-divider {
        display: none;
    }

    .gateway-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* LMAX light trading theme */
:root {
    --bg: #333333;
    --panel: #f4f4f5;
    --panel-strong: #ffffff;
    --text: #19191d;
    --muted: #8b8b92;
    --dim: #77777f;
    --border: #ededf0;
    --gold: #5426ff;
    --gold-soft: rgba(84, 38, 255, 0.12);
    --green: #9bea31;
    --blue: #6c5cff;
    --radius: 14px;
}

html {
    background: #333333;
}

body {
    color: var(--text);
    background: #333333;
}

body::before {
    display: none;
}

.page-shell {
    width: min(100%, 360px);
    padding: 24px 0 18px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.topbar,
.container {
    width: min(100% - 30px, 330px);
}

.topbar {
    margin-bottom: 34px;
}

.brand {
    gap: 8px;
}

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

.brand-name {
    color: var(--gold);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.brand-divider {
    height: 16px;
    background: #dedee3;
}

.brand-desc {
    color: #6f6f76;
    font-size: 11px;
    font-weight: 600;
}

.hero-copy {
    margin-bottom: 20px;
    text-align: left;
}

.gateway-title {
    margin-bottom: 9px;
    color: #17171b;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.safe-subtext {
    max-width: none;
    margin: 0;
    color: #7f7f86;
    font-size: 11px;
    line-height: 1.45;
}

.gateway-visual {
    height: 112px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #f3f3f4;
}

.map-glow {
    inset: 8px;
    opacity: 0.72;
    background:
        radial-gradient(circle at 14% 58%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 25% 42%, var(--gold) 0 2px, transparent 2.5px),
        radial-gradient(circle at 39% 50%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 57% 34%, var(--gold) 0 2px, transparent 2.5px),
        radial-gradient(circle at 70% 52%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 85% 39%, var(--gold) 0 2px, transparent 2.5px),
        linear-gradient(17deg, transparent 18%, rgba(84, 38, 255, 0.16) 18.4%, transparent 19% 44%, rgba(155, 234, 49, 0.2) 44.4%, transparent 45%),
        linear-gradient(153deg, transparent 24%, rgba(84, 38, 255, 0.12) 24.4%, transparent 25% 63%, rgba(155, 234, 49, 0.18) 63.4%, transparent 64%);
    filter: none;
}

.orbit {
    width: 196px;
    height: 58px;
    border-color: rgba(84, 38, 255, 0.24);
}

.orbit-two {
    width: 150px;
    height: 44px;
    border-color: rgba(155, 234, 49, 0.5);
}

.shield-card {
    width: 76px;
    height: 82px;
    filter: drop-shadow(0 10px 14px rgba(84, 38, 255, 0.2));
}

.shield-card::before {
    background: linear-gradient(145deg, #744dff, #5426ff 48%, #3211bd);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        inset 0 10px 18px rgba(255, 255, 255, 0.14),
        0 0 0 5px rgba(84, 38, 255, 0.08);
}

.shield-card::after {
    border-color: #ffffff;
    box-shadow: none;
}

.progress-bar {
    height: 4px;
    margin-bottom: 13px;
    background: #efeff1;
}

.progress {
    background: linear-gradient(90deg, #5426ff, #7b4dff 72%, #b7ff43);
}

.route-buttons {
    gap: 9px;
}

.route-btn {
    min-height: 62px;
    padding: 10px 12px;
    color: var(--text);
    border: 0;
    border-radius: 14px;
    background: #f3f3f4;
    box-shadow: none;
}

.route-btn:hover {
    border-color: transparent;
    background: #ececef;
    box-shadow: 0 8px 20px rgba(34, 24, 72, 0.08);
}

.route-btn.fastest {
    border: 0;
    background: linear-gradient(135deg, #6337ff, #4b1cff);
    box-shadow: 0 10px 24px rgba(84, 38, 255, 0.22);
}

.route-btn.fastest .route-title,
.route-btn.fastest .route-desc,
.route-btn.fastest .route-status,
.route-btn.fastest .route-arrow {
    color: #ffffff;
    border-color: #ffffff;
}

.route-icon {
    background: #ffffff;
    border: 0;
    box-shadow: 0 2px 8px rgba(31, 31, 37, 0.08);
}

.route-icon::before {
    background: #24242a;
}

.route-icon-brand {
    background: #1e1e24;
    box-shadow: inset -4px 0 0 #5426ff, 0 2px 8px rgba(31, 31, 37, 0.1);
}

.route-icon-brand::before {
    color: #ffffff;
}

.route-title {
    color: #1d1d21;
    font-size: 13px;
}

.route-desc {
    color: #898990;
}

.route-status {
    color: #5e9817;
}

.route-status::before {
    background: var(--green);
    box-shadow: none;
}

.route-badge {
    color: #3f7400;
    background: #baff4d;
}

.route-arrow {
    border-color: #3b3b40;
}

.security-note {
    min-height: 38px;
    margin-top: 14px;
    color: #77777e;
    border: 0;
    border-radius: 12px;
    background: #f3f3f4;
}

.note-icon {
    background: var(--green);
    box-shadow: none;
}

.lang-toggle-btn {
    min-height: 34px;
    padding: 7px 12px;
    color: #25252a;
    border: 0;
    background: #f3f3f4;
    box-shadow: none;
}

.lang-toggle-btn:hover {
    background: #eaeaec;
}

.globe-icon {
    color: #25252a;
}

.lang-dropdown-menu {
    border: 1px solid #ededf0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(25, 25, 29, 0.16);
}

.lang-option {
    color: #25252a;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(84, 38, 255, 0.08);
}

@media (max-width: 380px) {
    .page-shell {
        padding-top: 20px;
    }

    .topbar {
        margin-bottom: 28px;
    }

    .gateway-title {
        font-size: 23px;
    }

    .safe-subtext {
        white-space: normal;
    }

    .gateway-visual {
        height: 102px;
    }

    .progress-bar {
        display: block;
    }
}

/* Final brand overrides: keep after the legacy theme block. */
:root {
    --gold: #ce231e;
    --gold-soft: rgba(206, 35, 30, 0.12);
    --green: #45b82f;
}

html {
    background: #ececef;
}

body {
    color: var(--brand-ink);
    text-align: left;
    background: radial-gradient(circle at 50% 0%, rgba(206, 35, 30, 0.07), transparent 32%), #ececef;
}

.page-shell {
    width: min(100%, 480px);
    padding: 28px 0 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(20, 20, 22, 0.14);
}

.topbar,
.container {
    width: min(100% - 40px, 408px);
}

.topbar {
    margin-bottom: 28px;
}

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

.brand-name {
    color: var(--brand-ink);
    font-size: 21px;
}

.brand-divider {
    height: 18px;
    background: #d9d9dd;
}

.brand-desc {
    color: var(--brand-muted);
    font-size: 11px;
}

.container {
    gap: 18px;
}

.gateway-title {
    max-width: 280px;
    margin: 0 0 9px;
    color: var(--brand-ink);
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.safe-subtext {
    max-width: 300px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.65;
    white-space: normal;
}

.gateway-visual {
    height: 132px;
    margin: 8px -8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.map-glow {
    background:
        radial-gradient(circle at 14% 58%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 25% 42%, var(--brand-red) 0 2px, transparent 2.5px),
        radial-gradient(circle at 39% 50%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 57% 34%, var(--brand-red) 0 2px, transparent 2.5px),
        radial-gradient(circle at 70% 52%, var(--green) 0 2px, transparent 2.5px),
        radial-gradient(circle at 85% 39%, var(--brand-red) 0 2px, transparent 2.5px),
        linear-gradient(17deg, transparent 18%, rgba(206, 35, 30, 0.15) 18.4%, transparent 19% 44%, rgba(69, 184, 47, 0.16) 44.4%, transparent 45%);
}

.orbit,
.orbit-two {
    border-color: rgba(206, 35, 30, 0.24);
}

.shield-card {
    filter: drop-shadow(0 12px 18px rgba(206, 35, 30, 0.2));
}

.shield-card::before {
    background: linear-gradient(145deg, #e33b34, #c51f1a 52%, #8d0e0b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), inset 0 10px 18px rgba(255, 255, 255, 0.14), 0 0 0 5px rgba(206, 35, 30, 0.08);
}

.progress-bar {
    height: 3px;
    margin: 0 -24px;
    background: #ededf0;
}

.progress {
    background: linear-gradient(90deg, #99110e, var(--brand-red), #ed6a64);
}

.safe-text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    border: 0;
    color: #28282d;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
}

.route-btn {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(25, 25, 28, 0.04);
}

.route-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(206, 35, 30, 0.28);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(25, 25, 28, 0.09);
}

.route-btn.fastest {
    border: 1px solid var(--brand-red);
    background: linear-gradient(135deg, #d52a24, #a91512);
    box-shadow: 0 12px 28px rgba(169, 21, 18, 0.22);
}

.security-note {
    min-height: 44px;
    margin: 0;
    padding: 11px 13px;
    color: #6d6d73;
    border: 1px solid #ececef;
    border-radius: 14px;
    background: #f8f8f9;
}

@media (max-width: 520px) {
    .page-shell {
        width: 100%;
        padding-top: 20px;
        box-shadow: none;
    }

    .topbar,
    .container {
        width: min(100% - 28px, 408px);
    }

    .topbar {
        margin-bottom: 22px;
    }

    .progress-bar {
        margin: 0 -20px;
    }
}
