* {
    box-sizing: border-box;
}

body {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

button {
    border: 0;
}

.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    transition: opacity 0.75s ease, visibility 0.75s ease;
    overflow: hidden;
}

.page-preloader.is-complete {
    opacity: 0;
    visibility: hidden;
}

.preloader-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.preloader-brand span {
    display: none;
}

.preloader-brand {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
}

.preloader-mark {
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #d7fff4;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(16, 163, 127, 0.5), rgba(10, 18, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(16, 163, 127, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: preloaderPulse 2.5s ease-in-out infinite;
    position: relative;
}

.preloader-mark::before,
.preloader-mark::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
}

.preloader-mark::before {
    inset: -16px;
    border: 2px solid transparent;
    border-top-color: rgba(52, 211, 153, 0.9);
    border-right-color: rgba(16, 163, 127, 0.4);
    animation: spinRing 3s linear infinite;
}

.preloader-mark::after {
    inset: -28px;
    border: 1px dashed transparent;
    border-bottom-color: rgba(16, 163, 127, 0.8);
    border-left-color: rgba(52, 211, 153, 0.5);
    animation: spinRingReverse 6s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
    to { transform: rotate(-360deg); }
}

.preloader-mark-svg {
    width: 50%;
    height: 50%;
    overflow: visible;
}

.preloader-mark-svg path {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: drawLogoPath 3s ease-in-out infinite alternate;
}

/* Stagger the drawing of each path for a cooler effect */
.preloader-mark-svg path:nth-child(1) { animation-delay: 0.0s; }
.preloader-mark-svg path:nth-child(2) { animation-delay: 0.2s; }
.preloader-mark-svg path:nth-child(3) { animation-delay: 0.4s; }
.preloader-mark-svg path:nth-child(4) { animation-delay: 0.6s; }
.preloader-mark-svg path:nth-child(5) { animation-delay: 0.8s; }
.preloader-mark-svg path:nth-child(6) { animation-delay: 1.0s; }

@keyframes drawLogoPath {
    0% { stroke-dashoffset: 250; opacity: 0.2; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 163, 127, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(16, 163, 127, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.preloader-mark-svg {
    width: 55px;
    height: 55px;
}

.preloader-content {
    display: none;
}

.preloader-status-card {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #a7f3d0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.preloader-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.8);
    animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.preloader-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10a37f, #34d399, #7dd3fc);
    box-shadow: 0 -2px 15px rgba(52, 211, 153, 0.8), 0 -4px 30px rgba(16, 163, 127, 0.5);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-steps {
    display: none;
}

body.preloading .page-shell {
    opacity: 0;
    transform: translateY(8px);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 40px 20px 56px;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 55;
    display: grid;
    gap: 10px;
    width: min(330px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(16, 163, 127, 0.34);
    background:
        linear-gradient(180deg, rgba(18, 35, 39, 0.96), rgba(8, 18, 23, 0.96));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(12px);
    animation: toastIn 0.32s ease forwards;
    overflow: hidden;
    will-change: transform, opacity;
}

.toast.is-leaving {
    animation: toastOut 0.24s ease forwards;
}

.toast-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(16, 163, 127, 0.9), rgba(8, 22, 28, 0.96));
    color: #d7fff4;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 163, 127, 0.18);
}

.toast-title {
    margin: 0 0 3px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
}

.toast-message {
    margin: 0;
    color: #a7f3d0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hold-verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 10, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: overlayFadeIn 0.28s ease;
}

.hold-verify-card {
    position: relative;
    width: min(100%, 430px);
    padding: 26px 24px 22px;
    border-radius: 14px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    background:
        linear-gradient(180deg, rgba(6, 28, 31, 0.96), rgba(5, 13, 18, 0.98)),
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 42%);
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    text-align: center;
    overflow: hidden;
}

.hold-verify-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    pointer-events: none;
}

.hold-verify-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.hold-verify-mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #facc15, #14b8a6);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.32);
}

.hold-verify-shield {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(2, 6, 23, 0.9);
    border-radius: 50%;
    color: #02130f;
    font-size: 1.2rem;
    font-weight: 900;
}

.hold-verify-kicker {
    margin: 0 0 7px;
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hold-verify-card h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.32rem, 5vw, 1.78rem);
    line-height: 1.15;
}

.hold-verify-copy {
    max-width: 330px;
    margin: 10px auto 18px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.55;
}

.hold-verify-button {
    position: relative;
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.36);
    touch-action: none;
    -webkit-touch-action: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.hold-verify-button.is-holding {
    border-color: rgba(45, 212, 191, 0.95);
}

.hold-verify-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.45), rgba(34, 197, 94, 0.72));
    transition: width 0.08s linear;
}

.hold-verify-button-text {
    position: relative;
    z-index: 1;
}

.hold-verify-status {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 650;
}

.hold-verify-status.is-success {
    color: #86efac;
}

.hold-verify-status.is-error {
    color: #fca5a5;
}

.channel-access-card {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(7, 31, 30, 0.96), rgba(6, 15, 20, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.channel-access-icon {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #86efac, #22c55e 58%, #14b8a6);
    color: #052018;
    font-size: 0.92rem;
    font-weight: 950;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.34);
}

.channel-access-kicker,
.guide-pass-kicker {
    margin: 0;
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.channel-access-copy h4,
.guide-pass-card h4 {
    margin: 3px 0 6px;
    color: #f8fafc;
    font-size: 1.15rem;
    line-height: 1.2;
}

.channel-access-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.65;
}

.channel-access-button,
.channel-access-confirm {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.channel-access-button:hover,
.channel-access-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.channel-access-button {
    border: 1px solid rgba(134, 239, 172, 0.5);
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #03130d;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

.channel-access-confirm {
    border: 1px solid rgba(45, 212, 191, 0.42);
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ecfeff;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32);
}

.channel-access-note {
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.08);
    color: #fef3c7;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.6;
    text-align: left;
}

.guide-access-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    animation: fadeIn 0.28s ease;
}

.guide-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guide-pass-status,
.guide-pass-code {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guide-pass-status {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.guide-pass-code {
    background: rgba(34, 211, 238, 0.14);
    color: #a5f3fc;
}

.guide-pass-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 8, 12, 0.9)),
        radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.14), transparent 34%);
    text-align: left;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

.guide-pass-profile {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.guide-pass-avatar {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #5eead4, #2563eb);
    color: #ecfeff;
    font-weight: 950;
}

.guide-pass-profile small,
.guide-pass-grid small {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-pass-profile strong,
.guide-pass-grid strong {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
}

.guide-pass-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.guide-pass-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.34);
}

.guide-pass-alert {
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    background: rgba(20, 184, 166, 0.08);
    color: #ccfbf1;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.6;
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 24px;
    animation: slideInDown 0.4s ease-out;
}

.hero-mark {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d7fff4;
    position: relative;
    animation: logoFloat 10s ease-in-out infinite;
    will-change: transform;
}

.hero-mark::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 163, 127, 0.25), transparent 65%);
    filter: blur(12px);
    z-index: 0;
    animation: logoPulse 8s ease-in-out infinite;
}

.hero-mark-svg {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(16, 163, 127, 0.3));
}

.hero-mark-knot {
    animation: logoSpin 36s linear infinite;
    transform-origin: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #d7fff4, #10a37f 55%, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes logoPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.06);
    }
}

@keyframes logoSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-copy p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.banner,
.panel,
.step-card,
.faq-item {
    box-shadow: var(--shadow-xl);
}

.banner {
    margin: 0 0 32px;
    padding: 16px 20px;
    text-align: center;
    color: #d1fae5;
    border: 1px solid rgba(16, 163, 127, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 24, 31, 0.82), rgba(14, 24, 31, 0.72));
}

.banner p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Glass Card Premium & Super Card */
.glass-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(20, 28, 36, 0.45), rgba(10, 18, 24, 0.65));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.45s ease-out;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.super-card {
    margin-bottom: 32px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 163, 127, 0.4), transparent);
}

.panel-section {
    position: relative;
    z-index: 2;
}

.glass-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 32px 0;
}

.glass-card-alt {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 24, 31, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* Horizontal Stepper */
.horizontal-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 16px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.stepper-index {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #06110d;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(16, 163, 127, 0.3);
}

.stepper-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stepper-desc {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    max-width: 100px;
    line-height: 1.3;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 163, 127, 0.6), rgba(255, 255, 255, 0.1));
    margin: 15px 12px 0;
}

.panel {
    margin-bottom: 30px;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--bg-border);
    background: linear-gradient(180deg, rgba(20, 28, 36, 0.82), rgba(16, 24, 31, 0.72));
    backdrop-filter: blur(8px);
    animation: fadeIn 0.45s ease-out;
}

.panel-heading {
    margin-bottom: 14px;
}

.panel-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 163, 127, 0.12);
    color: #9ff5de;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
    letter-spacing: 0;
}

.panel-intro {
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
}

.panel-note {
    display: block;
    margin-top: 8px;
    color: #86efac;
    font-weight: 600;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.custom-select {
    position: relative;
}

select,
textarea,
input {
    width: 100%;
    padding: 13px 14px;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
    font-family: "Courier New", monospace;
    font-size: 0.88rem;
}

textarea::placeholder,
input::placeholder {
    color: var(--text-dim);
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(16, 163, 127, 0.08);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.panel-region .form-group {
    margin-bottom: 16px;
}

.custom-select-trigger {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(16, 163, 127, 0.45);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 21, 24, 0.92), rgba(10, 29, 32, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.16);
    color: var(--text-main);
    text-align: left;
}

.custom-select-trigger:hover {
    border-color: rgba(25, 195, 125, 0.6);
}

.custom-select.open .custom-select-trigger {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow:
        0 0 0 3px rgba(16, 163, 127, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.custom-select-arrow {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-right: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
    transform: translateY(4px) rotate(-135deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    padding: 10px;
    border: 1px solid rgba(16, 163, 127, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 23, 30, 0.98), rgba(10, 19, 26, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.custom-select.open .custom-select-menu {
    display: grid;
    gap: 8px;
}

.custom-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    text-align: left;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-option.active {
    background: rgba(16, 163, 127, 0.12);
    outline: 1px solid rgba(16, 163, 127, 0.24);
}

.region-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.region-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #04110c;
}

.region-chip-jp {
    background: linear-gradient(135deg, #6ee7b7, #10a37f);
}

.region-chip-vn {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
}

.region-chip-th {
    background: linear-gradient(135deg, #f9a8d4, #c084fc);
}

.region-option-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.region-option-copy strong {
    display: block;
    font-size: 0.96rem;
}

.region-option-copy span {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.region-option-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.helper-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.helper-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    width: 100%;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    margin-top: 20px;
    color: #08110e;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 14px 30px rgba(16, 163, 127, 0.18);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(16, 163, 127, 0.24);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-success {
    background: linear-gradient(135deg, #10a37f, #19c37d) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(16, 163, 127, 0.3) !important;
}

.hidden {
    display: none !important;
}

.info-panel {
    margin-top: 20px;
    padding: 16px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    background: rgba(16, 163, 127, 0.08);
}

.region-highlight {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid rgba(16, 163, 127, 0.18);
    border-left: 3px solid var(--primary);
    background:
        linear-gradient(180deg, rgba(16, 42, 44, 0.5), rgba(14, 24, 31, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.region-highlight::before {
    content: "";
    position: absolute;
    inset: -20% auto auto 58%;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 163, 127, 0.18), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.info-panel p {
    margin: 6px 0;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.account-title,
.region-name {
    color: var(--primary);
    font-weight: 700;
}

.region-name {
    margin-bottom: 10px;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.region-meta {
    font-size: 0.95rem;
}

.region-meta-accent {
    color: #d1fae5;
}

.region-note {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
    font-size: 0.86rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-success {
    color: var(--success);
    background: rgba(34, 197, 94, 0.18);
}

.result-box {
    display: none;
    margin-top: 30px;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.46);
    background:
        radial-gradient(circle at 14% 18%, rgba(34, 197, 94, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(8, 45, 35, 0.88), rgba(7, 18, 24, 0.98));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-box.show {
    display: block;
}

.result-title {
    margin-bottom: 12px;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-region-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d1fae5;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.guide-entry-button {
    width: 100%;
    margin-top: 18px;
}

.engine-panel {
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 22, 30, 0.92), rgba(8, 15, 21, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.engine-panel.is-uplink-stage {
    border-color: rgba(45, 212, 191, 0.24);
    background:
        radial-gradient(circle at 82% 12%, rgba(250, 204, 21, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(7, 23, 31, 0.96), rgba(4, 13, 18, 0.99));
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.engine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.engine-eyebrow {
    margin: 0 0 4px;
    color: #9ff5de;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.engine-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.12rem;
}

.engine-state {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 163, 127, 0.12);
    color: #9ff5de;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.engine-pipeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 14px;
    border: 1px solid rgba(16, 163, 127, 0.14);
    background: linear-gradient(180deg, rgba(8, 16, 23, 0.9), rgba(5, 11, 16, 0.96));
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: stageReveal 0.28s ease both;
}

.pipeline-step {
    display: flex;
    gap: 16px;
    opacity: 0.35;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(4px);
}

.pipeline-step.is-active,
.pipeline-step.is-completed {
    opacity: 1;
    transform: translateY(0);
}

.pipe-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pipe-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    position: relative;
    transition: all 0.3s ease;
}

.pipeline-step.is-active .pipe-icon {
    background: rgba(16, 163, 127, 0.15);
    border-color: rgba(52, 211, 153, 0.6);
    color: #34d399;
    box-shadow: 0 0 16px rgba(16, 163, 127, 0.4);
}

.pipeline-step.is-active .pipe-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: #34d399;
    border-right-color: rgba(52, 211, 153, 0.4);
    animation: spinRing 1s linear infinite;
}

.pipeline-step.is-completed .pipe-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 163, 127, 0.3);
    animation: rippleSuccess 0.5s ease-out;
}

@keyframes rippleSuccess {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.pipe-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.pipeline-step.is-completed .pipe-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #34d399, rgba(52, 211, 153, 0.2));
    animation: flowDown 0.6s ease forwards;
}

@keyframes flowDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.pipe-content {
    flex: 1;
    padding-bottom: 8px;
}

.pipe-content h4 {
    margin: 0 0 4px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.pipe-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pipeline-step.is-active .pipe-content h4 {
    color: #34d399;
}

.pipeline-step.is-active .pipe-content p {
    color: #cbd5e1;
}

.pipeline-step.is-completed .pipe-content h4 {
    color: #f8fafc;
}

.uplink-monitor {
    position: relative;
    margin-top: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(45, 212, 191, 0.16);
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(7, 18, 25, 0.96), rgba(4, 12, 17, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    animation: stageReveal 0.34s ease both;
}

.uplink-monitor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08), transparent);
    opacity: 0;
    transform: translateX(-55%);
    pointer-events: none;
}

.uplink-monitor[data-state="running"]::before {
    animation: uplinkSweep 2.4s ease-in-out infinite;
    opacity: 1;
}

.uplink-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.uplink-kicker {
    margin: 0 0 3px;
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.uplink-head h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.2;
}

.uplink-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #99f6e4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.uplink-monitor[data-state="ready"] .uplink-status {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06);
}

.uplink-map {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    border: 1px solid rgba(45, 212, 191, 0.15);
    background:
        radial-gradient(circle at 82% 20%, rgba(250, 204, 21, 0.12), transparent 26%),
        rgba(2, 8, 12, 0.78);
    overflow: hidden;
}

.uplink-map svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 148px;
}

.uplink-route-shadow,
.uplink-route {
    fill: none;
    stroke-linecap: round;
}

.uplink-route-shadow {
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 14;
}

.uplink-route {
    stroke: url(#uplinkRouteGradient);
    stroke-width: 5;
    stroke-dasharray: 14 10;
    will-change: stroke-dashoffset;
}

.uplink-monitor[data-state="running"] .uplink-route {
    animation: routeDash 1.1s linear infinite;
}

.uplink-monitor[data-state="ready"] .uplink-route {
    stroke-dasharray: 10 8;
}

.uplink-node circle {
    fill: rgba(6, 18, 24, 0.92);
    stroke: #34d399;
    stroke-width: 4;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
}

.uplink-node-target circle {
    stroke: #facc15;
}

.uplink-node text {
    fill: #f8fafc;
    font: 900 15px "Outfit", sans-serif;
    text-anchor: middle;
}

.uplink-packet circle {
    fill: #67e8f9;
    stroke: #ecfeff;
    stroke-width: 3;
    /* Removed drop-shadow to fix massive repaint frame drops during animateMotion */
    will-change: transform;
}

.uplink-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.uplink-meta span {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.44);
    color: #a7f3d0;
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.guide-grid {
    gap: 48px;
}

.guide-heading {
    margin-bottom: 22px;
}

.guide-heading h2 {
    font-size: 1.38rem;
}

.guide-work-block {
    padding-top: 2px;
}

.content-block {
    min-width: 0;
    align-self: start;
}

.content-block h3 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.35;
}

.content-block ol,
.content-block ul {
    margin: 0;
    padding: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    list-style: none;
}

.content-block ol {
    counter-reset: guide-step;
}

.content-block li {
    position: relative;
    display: grid;
    min-width: 0;
    padding-left: 42px;
}

.content-block ol li::before,
.content-block ul li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    color: #94a3b8;
    font-weight: 700;
    text-align: right;
}

.content-block ol li::before {
    counter-increment: guide-step;
    content: counter(guide-step) ".";
}

.content-block ul li::before {
    content: "•";
    font-size: 1.35rem;
    line-height: 1.1;
}

.content-block li + li {
    margin-top: 10px;
}

/* Keep guide list items aligned without breaking inline link buttons */
.content-block li {
    display: block;
}

.content-block ul li::before {
    content: "\2022";
}

.guide-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-info-card {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.guide-info-card h4 {
    margin: 0 0 8px;
    color: #d1fae5;
    font-size: 0.9rem;
    line-height: 1.35;
}

.guide-info-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.7;
}

.text-link {
    display: inline;
    padding: 0;
    background: transparent;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
}

.faq-arrow {
    transition: transform 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    color: var(--text-soft);
    font-size: 0.88rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 320px;
    padding: 0 16px 16px;
}

.site-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer p:first-child {
    color: var(--text-soft);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.site-footer p:last-child {
    color: #4b5563;
    font-size: 0.74rem;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(16, 163, 127, 0.3);
    border-top-color: #08110e;
    border-radius: 999px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stageReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

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

@keyframes loadingSweep {
    0% {
        transform: translateX(-18%);
    }
    50% {
        transform: translateX(115%);
    }
    100% {
        transform: translateX(-18%);
    }
}

@keyframes uplinkSweep {
    0% {
        transform: translateX(-65%);
    }

    50% {
        transform: translateX(55%);
    }

    100% {
        transform: translateX(120%);
    }
}

@keyframes routeDash {
    to {
        stroke-dashoffset: -24;
    }
}

@keyframes preloaderSweep {
    0% {
        transform: translateX(-70%);
    }

    50% {
        transform: translateX(135%);
    }

    100% {
        transform: translateX(280%);
    }
}

@keyframes preloaderPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 12px 26px rgba(16, 163, 127, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    50% {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            0 18px 34px rgba(16, 163, 127, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 24px 16px 48px;
    }

    .toast-stack {
        right: 16px;
        bottom: 16px;
    }

    .preloader-shell {
        gap: 26px;
    }

    .preloader-brand {
        font-size: 0.76rem;
    }

    .preloader-content h1 {
        font-size: 1.8rem;
    }

    .preloader-copy {
        font-size: 0.9rem;
    }

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

    .hero {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .hero-copy p {
        letter-spacing: 0.04em;
    }

    .steps,
    .split-grid,
    .guide-info-grid {
        grid-template-columns: 1fr;
    }

    .feature-pills {
        gap: 8px;
    }

    .panel {
        padding: 24px;
    }

    .engine-header,
    .uplink-head {
        align-items: flex-start;
    }

    .engine-line {
        grid-template-columns: 78px 18px 1fr;
        gap: 10px;
        font-size: 0.78rem;
    }

    .pipeline-step {
        gap: 12px;
    }

    .pipe-icon {
        width: 32px;
        height: 32px;
    }

    .pipe-icon svg {
        width: 14px;
        height: 14px;
    }

    .pipe-content h4 {
        font-size: 0.85rem;
    }

    .pipe-content p {
        font-size: 0.75rem;
    }

    .uplink-meta {
        grid-template-columns: 1fr;
    }

    .uplink-map svg {
        min-height: 132px;
    }
}

/* Smart Widget */
.smart-widget {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 2fr;
    gap: 16px;
    padding: 20px;
    align-items: center;
}

.sw-time {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-clock {
    font-size: 2rem;
    font-weight: 800;
    color: #d1fae5;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.sw-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.sw-weather {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 12px;
}

.sw-w-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sw-w-info {
    display: flex;
    flex-direction: column;
}

.sw-temp {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
}

.sw-city {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.sw-adzan {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-left: 8px;
}

.adzan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.adzan-item.is-next {
    background: rgba(16, 163, 127, 0.15);
    border-color: rgba(16, 163, 127, 0.4);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.2);
}

.adzan-item.is-next .adzan-name,
.adzan-item.is-next .adzan-time {
    color: #34d399;
}

.adzan-name {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.adzan-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .smart-widget {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sw-time, .sw-weather {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 16px;
        align-items: center;
        text-align: center;
    }
    .sw-weather {
        justify-content: center;
    }
    .sw-city {
        max-width: 100%;
    }
    .sw-adzan {
        padding-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Custom Language Dropdown */
.custom-select-lang {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 9999;
    width: max-content;
    max-width: 200px;
    appearance: none;
    background: linear-gradient(180deg, rgba(20, 28, 36, 0.82), rgba(16, 24, 31, 0.72));
    border: 1px solid rgba(16, 163, 127, 0.4);
    border-radius: 999px;
    padding: 8px 36px 8px 16px;
    color: #d1fae5;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d1fae5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

body.preloading .custom-select-lang {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.custom-select-lang:hover {
    border-color: #10a37f;
    box-shadow: 0 0 12px rgba(16, 163, 127, 0.3);
}

.custom-select-lang:focus {
    outline: none;
    border-color: #10a37f;
}

.custom-select-lang option {
    background-color: #141c24;
    color: #d1fae5;
    padding: 8px;
}

@media (max-width: 768px) {
    .custom-select-lang {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 24px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: max-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-mark,
    .preloader-progress-bar,
    .hero,
    .panel,
    .result-box,
    .hero-mark,
    .hero-mark::before,
    .hero-mark-knot,
    .uplink-monitor::before,
    .uplink-route {
        animation: none;
    }

    .step-card,
    .btn,
    .custom-select-trigger,
    .custom-select-arrow,
    .faq-answer {
        transition: none;
    }
}

/* ===================================================
   PERFORMANCE OPTIMIZATION — ALL DEVICE TIERS
   Goal: 60fps on even very low-end Android devices
   =================================================== */

/* Mid-level optimization: disable backdrop-filter on mobile (very GPU expensive) */
@media (max-width: 768px) {
    .glass-card,
    .glass-card-alt,
    .custom-select-lang,
    .custom-select-trigger,
    .custom-select-menu {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Simplify complex box-shadows */
    .glass-card {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* Reduce hero animation intensity */
    .hero-mark {
        animation: logoFloat 14s ease-in-out infinite;
    }

}

/* Low-end optimization: disable all non-essential animations */
@media (max-width: 480px) {
    .hold-verify-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .channel-access-card,
    .guide-pass-card {
        padding: 14px;
    }

    .channel-access-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
    }

    .channel-access-copy p {
        font-size: 0.84rem;
    }

    .channel-access-button,
    .channel-access-confirm {
        min-height: 52px;
        font-size: 0.78rem;
    }

    .guide-pass-grid {
        grid-template-columns: 1fr;
    }

    .hold-verify-card {
        width: 100%;
        padding: 22px 18px 18px;
        border-radius: 14px;
    }

    .hold-verify-card::before {
        display: none;
    }

    .hold-verify-mark {
        width: 56px;
        height: 56px;
        margin-bottom: 13px;
        border-radius: 16px;
    }

    .hold-verify-shield {
        width: 31px;
        height: 31px;
        font-size: 1rem;
    }

    .hold-verify-card h2 {
        font-size: 1.35rem;
    }

    .hold-verify-copy {
        max-width: 290px;
        font-size: 0.82rem;
        margin-bottom: 15px;
    }

    .hold-verify-button {
        min-height: 50px;
        font-size: 0.78rem;
        letter-spacing: 0.05em;
    }

    /* Disable all floating/pulsing animations */
    .hero-mark,
    .hero-mark::before,
    .hero-mark-knot {
        animation: none !important;
        will-change: auto;
    }

    /* Simplify box-shadows to flat */
    .guide-panel,
    .faq-item,
    .step-card,
    .info-panel,
    .engine-panel,
    .engine-screen {
        box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    }

    /* No hover transforms on touch devices */
    .btn-primary:hover:not(:disabled),
    .guide-btn-primary:hover {
        transform: none !important;
    }

    /* Keep transitions fast */
    .btn,
    .guide-btn,
    .custom-select-trigger,
    .faq-answer {
        transition-duration: 0.15s !important;
    }

    /* No progress pulse animation */
    .guide-progress-fill {
        animation: none !important;
    }
}

/* Ultra low-end (very small/old devices): go flat, no animations at all */
@media (max-width: 360px) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .glass-card,
    .glass-card-alt {
        background: rgba(14, 20, 28, 0.95) !important;
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }

    .hero-mark::before {
        display: none;
    }
}

/* Premium Toast Styling */
.toast.premium-toast {
    display: flex;
    padding: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    gap: 16px;
    align-items: flex-start;
}

.toast-avatar {
    position: relative;
    flex-shrink: 0;
}

.toast-icon-bg {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10a37f, #0c8060);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
    position: relative;
    z-index: 2;
}

.toast-icon-text {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.toast-pulse {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: #10a37f;
    z-index: 1;
    animation: toastPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes toastPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Generative Avatar Style */
.toast-avatar.is-user .toast-icon-bg {
    background: linear-gradient(135deg, #1e293b, #10a37f, #0369a1);
    background-size: 200% 200%;
    animation: avatarGradient 5s ease infinite;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.toast-avatar.is-user .toast-pulse {
    border-radius: 50%;
    background: #0369a1;
}

@keyframes avatarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.toast-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.toast-time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.toast-message {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.toast-footer {
    margin-top: 6px;
}

.toast-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 163, 127, 0.15);
    color: #34d399;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(16, 163, 127, 0.2);
}
/* --- Glow Hover Effect --- */
.glass-card, .glass-card-alt, .btn, .panel, .guide-info-card {
    position: relative;
    overflow: hidden;
}

.glass-card::after, .glass-card-alt::after, .btn::after, .panel::after, .guide-info-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(16, 163, 127, 0.4), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: screen;
}

.glass-card:hover::after, .glass-card-alt:hover::after, .btn:hover::after, .panel:hover::after, .guide-info-card:hover::after {
    opacity: 1;
}
/* VPN Recommendation Box */
.vpn-box {
    background: rgba(16, 163, 127, 0.08);
    border: 1px solid rgba(16, 163, 127, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vpn-title {
    font-weight: 700;
    color: #34d399;
    font-size: 1rem;
    margin-bottom: 4px;
}
.vpn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.vpn-row span {
    color: #e2e8f0;
    min-width: 180px;
}
.vpn-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.vpn-links a {
    color: #6ee7b7;
    text-decoration: none;
    background: rgba(16, 163, 127, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(16, 163, 127, 0.2);
}
.vpn-links a:hover {
    background: rgba(16, 163, 127, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.2);
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-panel {
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.testimonial-badge {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.testimonial-badge span {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-badge strong {
    color: var(--primary);
}

/* Auto-Scrolling Marquee */
.testimonial-grid {
    margin-top: 2rem;
}

.testimonial-marquee-container {
    height: 500px;
    overflow: hidden;
    position: relative;
    /* Smooth fade out at top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    padding: 10px 0;
}

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: marquee-scroll 180s linear infinite;
    /* Hardware Acceleration for Smooth Mobile Scrolling */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Pause animation on hover so they can read it! */
.testimonial-marquee-container:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@media (max-width: 768px) {
    .testimonial-track {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 163, 127, 0.3);
}

.tc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #08110e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.tc-meta {
    display: flex;
    flex-direction: column;
}

.tc-meta strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.tc-meta span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tc-stars {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tc-body {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
    font-style: italic;
}

/* --- TRUST BADGES --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.trust-badge:hover {
    opacity: 1;
    color: var(--primary);
}

/* --- FOOTER --- */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-disclaimer {
    margin-top: 0.8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-brand {
        text-align: left;
    }
}

/* --- FOOTER DONATE BUTTON --- */
.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-donate-btn span {
    font-size: 1.2rem;
    animation: bounce-coffee 2s infinite ease-in-out;
}

.footer-donate-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

@keyframes bounce-coffee {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
