.theme-router {
    --router-bg: #1a1a1a;
    --router-panel: #262626;
    --router-panel-2: #303030;
    --router-panel-3: #3a3a3a;
    --router-line: #333333;
    --router-line-soft: rgba(255, 255, 255, .08);
    --router-text: #ededed;
    --router-muted: #9ca3af;
    --router-accent: #e56a4a;
    --router-accent-2: #cc5236;
    --router-green: #2bd889;
    background:
        radial-gradient(circle at 50% -10%, rgba(229, 106, 74, .18), transparent 30rem),
        linear-gradient(180deg, #1f1f1e 0%, var(--router-bg) 62%, #171717 100%);
    color: var(--router-text);
}

.theme-router::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
}

.theme-router::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 25%, rgba(229, 106, 74, .12), transparent 18rem),
        radial-gradient(circle at 78% 68%, rgba(43, 216, 137, .08), transparent 19rem);
}

.theme-router .public-shell {
    padding: 24px;
}

.theme-router .link-panel {
    position: relative;
    width: min(100%, 468px);
    border: 1px solid var(--router-line);
    border-radius: 16px;
    background: rgba(38, 38, 38, .94);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .34),
        0 2px 12px -2px rgba(229, 106, 74, .18);
    padding: 58px 24px 24px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.theme-router .link-panel::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 20px 0 #febc2e, 40px 0 #28c840;
}

.theme-router .link-panel::after {
    content: "Private access";
    position: absolute;
    right: 20px;
    top: 14px;
    color: var(--router-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-router .brand-lockup {
    margin-bottom: 22px;
}

.theme-router .brand-lockup img {
    width: 58px;
    height: 58px;
    border: 1px solid var(--router-line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(229, 106, 74, .2), rgba(43, 216, 137, .12)),
        #181818;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.theme-router .eyebrow {
    color: var(--router-accent);
    font-size: 12px;
    letter-spacing: .04em;
}

.theme-router .brand-lockup h1 {
    color: var(--router-text);
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.theme-router .notice.error {
    border-color: rgba(229, 106, 74, .38);
    background: rgba(229, 106, 74, .11);
    color: #ffd6cc;
}

.theme-router .notice.success {
    margin-bottom: 20px;
    border-color: rgba(43, 216, 137, .36);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(43, 216, 137, .2), rgba(43, 216, 137, .08)),
        var(--router-panel-2);
    color: #d7ffed;
    padding: 18px;
}

.theme-router .notice.success strong {
    color: #ffffff;
}

.theme-router .notice.success span {
    color: #c7d2ce;
    line-height: 1.45;
}

.theme-router .access-box {
    position: relative;
    gap: 14px;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid var(--router-line-soft);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
        var(--router-panel-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.theme-router .access-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--router-accent), rgba(229, 106, 74, 0));
}

.theme-router .access-box h2 {
    color: #ffffff;
    font-size: 22px;
    letter-spacing: -.01em;
}

.theme-router .access-box p {
    color: #b7b7b7;
    line-height: 1.45;
}

.theme-router input {
    min-height: 48px;
    border: 1px solid var(--router-line);
    border-radius: 10px;
    background: #1f1f1e;
    color: var(--router-text);
    padding: 12px 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.theme-router input:focus {
    border-color: rgba(229, 106, 74, .72);
    background: #222220;
    box-shadow: 0 0 0 3px rgba(229, 106, 74, .18);
    outline: 0;
}

.theme-router .email-form button {
    min-height: 48px;
    border: 1px solid #f08a70;
    border-bottom-color: #9f3f2b;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--router-accent), var(--router-accent-2));
    color: #ffffff;
    box-shadow:
        0 12px 26px rgba(229, 106, 74, .22),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.theme-router .email-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(229, 106, 74, .28),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.theme-router .email-form button:active {
    transform: translateY(0);
}

.theme-router .form-message {
    text-align: center;
}

.theme-router .form-message.processing {
    color: #c8c8c8;
}

.theme-router .form-message.processing::before {
    background: var(--router-accent);
    box-shadow: 0 0 20px rgba(229, 106, 74, .34);
}

.theme-router .email-form.is-processing button {
    filter: saturate(.92);
}

.theme-router .email-form.is-processing button::after {
    border-color: rgba(255, 255, 255, .34);
    border-top-color: #ffffff;
}

.theme-router .trust-note {
    color: #aaa;
}

.theme-router .shield-icon {
    background: var(--router-green);
}

.theme-router .links-stack {
    gap: 10px;
}

.theme-router .section-label {
    color: var(--router-muted);
    letter-spacing: .05em;
}

.theme-router .channel-link {
    min-height: 56px;
    border-color: var(--router-line);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
        #222222;
    color: var(--router-text);
    padding: 8px 12px 8px 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.theme-router .channel-link:hover {
    border-color: rgba(229, 106, 74, .55);
    background: var(--router-panel-2);
    transform: translateY(-1px);
}

.theme-router .channel-icon {
    border: 1px solid var(--router-line);
    border-radius: 10px;
    background: #181818;
    color: var(--router-accent);
}

.theme-router .channel-icon::before {
    width: 23px;
    height: 23px;
}

.theme-router .channel-arrow {
    border: 1px solid var(--router-line);
    border-radius: 999px;
    color: #cfcfcf;
    background: rgba(255, 255, 255, .035);
    padding: 6px 10px;
    font-size: 11px;
}

@media (max-width: 640px) {
    .theme-router .public-shell {
        padding: 18px;
    }

    .theme-router .link-panel {
        width: min(100%, 430px);
        padding: 54px 18px 18px;
        border-radius: 14px;
    }

    .theme-router .link-panel::after {
        content: "Access";
    }

    .theme-router .brand-lockup {
        gap: 12px;
    }

    .theme-router .brand-lockup img {
        width: 52px;
        height: 52px;
    }

    .theme-router .brand-lockup h1 {
        font-size: 27px;
    }

    .theme-router .access-box {
        padding: 18px;
    }

    .theme-router .access-box h2 {
        font-size: 20px;
    }

    .theme-router .channel-arrow {
        padding: 5px 8px;
    }
}
