body.spicy-page {
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    background: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

html:has(body.spicy-page) {
    height: 100%;
}

button,
input,
a.login {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.spicy-lang {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 10040;
}

.spicy-lang-btn {
    border: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spicy-lang-btn i {
    color: #f28132;
}

.spicy-lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    overflow: hidden;
}

.spicy-lang-menu.open {
    display: block;
}

.spicy-lang-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.spicy-lang-menu button:hover,
.spicy-lang-menu button.active {
    background: #fff8f3;
    color: #d65a12;
}

.spicy-foot {
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 0 16px;
    animation: spicy-in 0.7s ease 0.28s both;
}

.spicy-card {
    width: 860px;
    max-width: calc(100vw - 32px);
    min-height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    animation: spicy-in 0.55s ease both;
}

@keyframes spicy-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spicy-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spicy-brand {
    width: 38%;
    min-height: 460px;
    background: #d65a12;
    color: #fff;
    padding: 40px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.spicy-brand::before,
.spicy-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    pointer-events: none;
}

.spicy-brand::before {
    width: 240px;
    height: 240px;
    background: rgba(242, 129, 50, 0.45);
    top: -70px;
    left: -60px;
    animation: spicy-float 14s ease-in-out infinite;
}

.spicy-brand::after {
    width: 200px;
    height: 200px;
    background: rgba(120, 36, 4, 0.55);
    bottom: -50px;
    right: -40px;
    animation: spicy-float 18s ease-in-out infinite reverse;
}

.spicy-brand > * {
    position: relative;
    z-index: 1;
}

.spicy-brand > .spicy-festive {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.spicy-snow {
    position: absolute;
    top: -12%;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    animation-name: spicy-snow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes spicy-snow {
    0% {
        top: -12%;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(var(--drift, 24px)) rotate(calc(var(--spin, 360deg) / 2));
    }
    100% {
        top: 108%;
        transform: translateX(calc(var(--drift, 24px) * -0.35)) rotate(var(--spin, 360deg));
    }
}

.spicy-pump {
    position: absolute;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
    animation-name: spicy-pump;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes spicy-pump {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--r1, -12deg)) scale(var(--s1, 0.95)) scaleX(var(--flip, 1));
    }
    35% {
        transform: translate3d(var(--dx, 24px), var(--dy, -40px), 0) rotate(var(--r2, 14deg)) scale(var(--s2, 1.1)) scaleX(var(--flip, 1));
    }
    70% {
        transform: translate3d(calc(var(--dx, 24px) * -0.7), calc(var(--dy, -40px) * 0.45), 0) rotate(var(--r1, -12deg)) scale(var(--s1, 0.95)) scaleX(var(--flip, 1));
    }
}

.spicy-fw {
    position: absolute;
    width: 2px;
    height: 2px;
}

.spicy-fw i {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 11px;
    border-radius: 40%;
    background: #fff6d8;
    box-shadow: 0 0 8px #fff3b0;
    animation: spicy-burst 2.4s ease-out infinite;
    animation-delay: inherit;
}

.spicy-fw i:nth-child(3n) { background: #ffe566; }
.spicy-fw i:nth-child(4n) { background: #fff; height: 13px; }
.spicy-fw i:nth-child(5n) { background: #ffb347; }

@keyframes spicy-burst {
    0% {
        opacity: 0;
        transform: rotate(var(--a)) translateY(-10px) scale(0.35);
    }
    14% {
        opacity: 1;
        transform: rotate(var(--a)) translateY(-22px) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--a)) translateY(var(--dist, -80px)) scale(0.2);
    }
}

.spicy-brand > .spicy-festive-pick {
    position: absolute;
    z-index: 4;
}

.spicy-festive-pick {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}

.spicy-festive-pick p {
    margin: 0 0 8px;
    color: #d65a12;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spicy-festive-pick button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.spicy-festive-pick button:hover,
.spicy-festive-pick button.active {
    background: #fff8f3;
    color: #d65a12;
}

@keyframes spicy-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, 18px) scale(1.18); }
}

.spicy-brand img {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.spicy-brand h2,
.spicy-brand .spicy-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.spicy-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.5;
}

.spicy-panel {
    width: 62%;
    padding: 40px 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.spicy-panel > * {
    animation: spicy-in 0.4s ease both;
}

.spicy-panel > *:nth-child(2) { animation-delay: 0.05s; }
.spicy-panel > *:nth-child(3) { animation-delay: 0.1s; }
.spicy-panel > *:nth-child(4) { animation-delay: 0.15s; }
.spicy-panel > *:nth-child(5) { animation-delay: 0.2s; }
.spicy-panel > *:nth-child(6) { animation-delay: 0.25s; }
.spicy-panel > *:nth-child(7) { animation-delay: 0.3s; }

body.spicy-ready .spicy-card,
body.spicy-ready .spicy-foot,
body.spicy-ready .spicy-panel > * {
    animation: none;
}

.spicy-panel h1,
.spicy-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}

.spicy-panel .sub,
.twofa-sub {
    margin: 0 0 22px;
    color: #888;
    font-size: 14px;
}

.spicy-panel .sub a {
    color: #f28132;
}

.twofa-last {
    margin: -8px 0 22px;
    color: #666;
    font-size: 14px;
}

.twofa-last p {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twofa-last p:last-child {
    margin-bottom: 0;
}

.twofa-last i {
    color: #f28132;
    width: 16px;
    text-align: center;
}

.twofa-last-bits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.twofa-last-bits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.g-recaptcha {
    margin: 0 0 14px;
    max-width: 100%;
    overflow: hidden;
}

.recaptcha-wrap {
    position: relative;
    width: 304px;
    max-width: 100%;
    min-height: 78px;
    margin: 0 0 14px;
}

.recaptcha-wrap .g-recaptcha {
    margin: 0;
    min-height: 78px;
}

.recaptcha-wait {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 304px;
    max-width: 100%;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-sizing: border-box;
}

.recaptcha-wrap.is-ready .recaptcha-wait {
    display: none;
}

.spicy-panel input,
.twofa-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 16px;
    font-family: inherit;
}

.spicy-field {
    position: relative;
    margin-bottom: 12px;
}

.spicy-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #f28132;
    font-size: 15px;
    pointer-events: none;
}

.spicy-field input {
    padding-left: 42px;
    margin-bottom: 0;
}

button.login.secondary,
a.login.secondary {
    background: #f3f3f3;
    color: #333;
    margin-top: 10px;
}

.spicy-btn,
.twofa-btn,
button.login,
a.login {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 12px 14px;
    background: #f28132;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button.is-busy,
a.is-busy,
.twofa-method.is-busy,
.twofa-sms-pick.is-busy {
    pointer-events: none;
    color: transparent !important;
}

button.is-busy > *,
a.is-busy > *,
.twofa-method.is-busy > *,
.twofa-sms-pick.is-busy > * {
    visibility: hidden;
}

button.is-busy::after,
a.is-busy::after,
.twofa-method.is-busy::after,
.twofa-sms-pick.is-busy::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: twofa-spin 0.7s linear infinite;
}

button.login.secondary.is-busy::after,
.spicy-btn.secondary.is-busy::after,
.twofa-btn.secondary.is-busy::after,
.twofa-method.is-busy::after,
.twofa-sms-pick.is-busy::after {
    border-color: rgba(242, 129, 50, 0.25);
    border-top-color: #f28132;
}

button.is-busy:hover,
a.is-busy:hover,
.twofa-method.is-busy:hover {
    transform: none;
    box-shadow: none;
}

.spicy-btn:hover,
.twofa-btn:hover,
button.login:hover,
a.login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 129, 50, 0.28);
}

a.login {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.spicy-btn.secondary,
.twofa-btn.secondary {
    background: #f3f3f3;
    color: #333;
    margin-top: 10px;
}

button.login.secondary:hover,
a.login.secondary:hover,
.spicy-btn.secondary:hover,
.twofa-btn.secondary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.msg {
    min-height: 20px;
    font-size: 13px;
    color: #c0392b;
    margin: 10px 0 0;
}

.ok { color: #1b7a3a; }

.twofa-remind {
    background: #fff8f3;
    border: 1px solid #f3ddd0;
    border-radius: 10px;
    padding: 14px 14px 12px;
    margin: 0 0 16px;
}

.twofa-remind strong {
    display: block;
    margin: 0 0 6px;
    color: #d65a12;
    font-size: 15px;
}

.twofa-remind span {
    display: block;
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.twofa-remind .login {
    margin: 0;
}

.twofa-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    text-align: left;
}

.twofa-check input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.twofa-check input:checked {
    background: #f28132;
    border-color: #f28132;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.twofa-check input:focus {
    outline: none;
    border-color: #f28132;
    box-shadow: 0 0 0 3px rgba(242, 129, 50, 0.2);
}

.forgot-link {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #f28132;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.forgot-link:hover {
    text-decoration: underline;
}

.twofa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10060;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    animation: spicy-fade 0.22s ease both;
}

.twofa-alert {
    z-index: 10070;
}

.twofa-alert-card {
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    padding: 28px 24px 24px;
    text-align: center;
    animation: spicy-in 0.32s ease both;
}

.twofa-alert-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #c0392b;
}

.twofa-alert-text {
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.twofa-alert-card.ask h2 {
    color: #222;
}

.twofa-alert-actions {
    display: flex;
    gap: 10px;
}

.twofa-alert-actions .twofa-btn {
    margin-top: 0;
}

.twofa-overlay.twofa-page {
    background: #f4f4f4;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px 16px;
}

.twofa-page-inner {
    width: 560px;
    max-width: calc(100vw - 48px);
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 36px 28px;
    position: relative;
    animation: spicy-in 0.4s ease both;
}

.twofa-page .twofa-body h2 {
    margin: 0 36px 6px 0;
    font-size: 28px;
    font-weight: 700;
}

.twofa-card {
    width: 860px;
    max-width: calc(100vw - 32px);
}

.twofa-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.twofa-page .twofa-close {
    position: absolute;
    top: 16px;
    right: 18px;
}

.twofa-methods {
    display: grid;
    gap: 10px;
}

.twofa-spin {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #f3d4bf;
    border-top-color: #f28132;
    border-radius: 50%;
    animation: twofa-spin 0.7s linear infinite;
}

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

.twofa-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px 16px;
}

.twofa-method {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
}

.twofa-method:hover {
    border-color: #f28132;
    background: #fff8f3;
}

.twofa-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff4ec;
    color: #f28132;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.twofa-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.twofa-passkey-ex {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.twofa-passkey-ex li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #f3ddd0;
    border-radius: 999px;
    background: #fff8f3;
    color: #c45a12;
    font-size: 12px;
}

.twofa-passkey-ex svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.twofa-passkey-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
}

.twofa-passkey-head h1,
.twofa-passkey-head h2 {
    margin: 0;
}

.twofa-method strong {
    display: block;
    font-size: 15px;
}

.twofa-method small,
.twofa-row span {
    color: #888;
    font-size: 12px;
}

.twofa-sms {
    border: 1px solid #f3ddd0;
    border-radius: 12px;
    margin: 8px 0 14px;
    background: #fff8f3;
    overflow: hidden;
}

.twofa-sms-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
}

.twofa-sms-head strong {
    display: block;
    font-size: 15px;
}

.twofa-sms-head span {
    color: #a06a4a;
    font-size: 12px;
}

.twofa-sms-head em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f28132;
    background: #fff;
    border-radius: 999px;
    padding: 4px 8px;
}

.twofa-sms-list {
    margin: 0 10px 10px;
    background: #fff;
    border: 1px solid #f0e4dc;
    border-radius: 10px;
    overflow: hidden;
}

.twofa-sms-num {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-bottom: 1px solid #f6eee8;
}

.twofa-sms-num:last-child {
    border-bottom: 0;
}

.twofa-sms-num.selected {
    background: #fff4ec;
}

.twofa-sms-pick {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #333;
    position: relative;
}

.twofa-sms-pick strong {
    font-size: 15px;
    letter-spacing: 0.02em;
}

.twofa-sms-on {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #f28132;
    border-radius: 999px;
    padding: 3px 8px;
}

.twofa-sms-num.selected .twofa-radio {
    border-color: #f28132;
    box-shadow: inset 0 0 0 4px #f28132;
}

.twofa-sms-add {
    width: calc(100% - 20px);
    margin: 0 10px 12px;
    border: 0;
    background: transparent;
    color: #f28132;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 4px 2px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.twofa-sms-add:hover {
    color: #d65a12;
}

.twofa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.twofa-row .twofa-method {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}

.twofa-row .twofa-method:hover {
    background: transparent;
}

.twofa-row .twofa-pick {
    cursor: pointer;
}

.twofa-row.selected .twofa-method span {
    color: #f28132;
}

.twofa-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.twofa-row.selected .twofa-radio {
    border-color: #f28132;
    box-shadow: inset 0 0 0 4px #f28132;
}

.twofa-sms-num button[data-remove],
.twofa-row button[data-remove] {
    width: auto;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff1f0;
    color: #c0392b;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.twofa-empty {
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 16px;
}

.twofa-error {
    color: #c0392b;
    font-size: 13px;
    min-height: 18px;
    margin: 10px 0 0;
}

.twofa-hint {
    color: #888;
    font-size: 13px;
    margin: 0 0 12px;
}

.twofa-timer {
    margin: 4px 0 14px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.twofa-timer.warn {
    color: #c0392b;
    font-weight: 600;
}

.twofa-stores {
    display: flex;
    gap: 10px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.twofa-stores a {
    flex: 1;
    min-width: 140px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    background: #fafafa;
}

.twofa-stores a:hover {
    border-color: #f28132;
    color: #d65a12;
}

.twofa-stores small {
    display: block;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

.twofa-qr {
    text-align: center;
    margin: 0 0 14px;
}

.twofa-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.twofa-label {
    margin: 18px 0 10px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.twofa-otp {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px;
}

.twofa-otp + .twofa-label {
    margin-top: 14px;
}

.twofa-otp input {
    width: 42px;
    height: 48px;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.twofa-otp input:focus {
    outline: none;
    border-color: #f28132;
}

.twofa-phone {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.twofa-phone-local {
    flex: 1;
    margin-bottom: 0 !important;
}

.twofa-cc {
    position: relative;
    flex-shrink: 0;
}

.twofa-cc-btn {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 0 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    white-space: nowrap;
}

.twofa-cc-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 50px;
    width: 280px;
    max-height: 220px;
    overflow: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.twofa-cc-menu.open { display: block; }

.twofa-cc-menu input {
    margin: 8px;
    width: calc(100% - 16px);
    font-size: 16px;
}

.twofa-cc-item {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.twofa-cc-item:hover { background: #fff8f3; }

@media (max-width: 800px) {
    body.spicy-page {
        justify-content: center;
        padding: 24px 20px;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .spicy-card,
    .twofa-card {
        width: 100%;
        max-width: 560px;
        flex-direction: column;
        min-height: 0;
    }

    .spicy-brand,
    .spicy-panel {
        width: 100%;
        min-height: 0;
    }

    .spicy-brand {
        padding: 22px 24px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .spicy-brand img {
        display: block;
        width: 160px;
        margin: 0 auto;
    }

    .spicy-panel {
        padding: 28px 24px 32px;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body.spicy-page {
        justify-content: center;
        padding: 24px 22px;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        gap: 12px;
    }

    .spicy-lang {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }

    body:has(.twofa-overlay) .spicy-lang {
        display: none;
    }

    .spicy-lang-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .spicy-card,
    .twofa-card {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .spicy-brand {
        padding: 24px 20px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .spicy-brand img {
        display: block;
        width: 172px;
        margin: 0 auto;
    }

    .spicy-panel {
        padding: 22px 18px 24px;
    }

    .spicy-panel h1,
    .spicy-panel h2,
    .twofa-page .twofa-body h2 {
        font-size: 24px;
    }

    .spicy-panel .sub,
    .twofa-sub {
        margin-bottom: 16px;
    }

    .spicy-foot {
        font-size: 12px;
    }

    .spicy-btn,
    .twofa-btn,
    button.login,
    a.login {
        min-height: 46px;
        padding: 13px 14px;
    }

    .twofa-method {
        padding: 14px 12px;
        gap: 12px;
    }

    .twofa-overlay.twofa-page {
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .twofa-page-inner {
        width: 100%;
        max-width: 100%;
        padding: 28px 16px 20px;
        margin: 0;
    }

    .twofa-page .twofa-body h2 {
        margin-right: 28px;
    }

    .twofa-alert-card {
        padding: 22px 18px 18px;
    }

    .twofa-alert-actions {
        flex-direction: column;
    }

    .twofa-otp {
        justify-content: center;
        gap: 6px;
    }

    .twofa-otp input {
        flex: 0 0 42px;
        width: 42px;
        height: 48px;
        font-size: 18px;
    }

    .twofa-otp:has(input:nth-child(6)) {
        gap: 5px;
    }

    .twofa-otp:has(input:nth-child(6)) input {
        flex: 0 0 36px;
        width: 36px;
    }

    .twofa-phone {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .twofa-cc {
        width: auto;
    }

    .twofa-cc-btn {
        width: auto;
        height: 46px;
        font-size: 16px;
    }

    .twofa-cc-menu {
        width: min(280px, calc(100vw - 64px));
        max-height: 240px;
    }

    .twofa-phone-local {
        flex: 0 1 160px;
        width: auto;
        min-width: 0;
    }

    .twofa-sms-head {
        flex-wrap: wrap;
    }

    .twofa-sms-head em {
        margin-left: 0;
    }

    .twofa-sms-pick {
        min-width: 0;
    }

    .twofa-sms-pick strong {
        word-break: break-all;
    }

    .twofa-row {
        flex-wrap: wrap;
    }

    .twofa-stores {
        flex-direction: column;
    }

    .twofa-stores a {
        min-width: 0;
    }

    .twofa-qr img {
        width: 160px;
        height: 160px;
    }

    .twofa-passkey-ex {
        margin-bottom: 16px;
    }
}

@media (max-width: 400px) {
    .recaptcha-wrap {
        height: 68px;
        min-height: 68px;
    }

    .g-recaptcha {
        transform: scale(0.86);
        transform-origin: left top;
        height: 68px;
    }

    .twofa-otp input {
        flex: 0 0 38px;
        width: 38px;
        height: 44px;
        font-size: 17px;
    }

    .twofa-otp:has(input:nth-child(6)) input {
        flex: 0 0 32px;
        width: 32px;
        height: 42px;
        font-size: 16px;
    }
}

@media (hover: none) {
    .spicy-btn:hover,
    .twofa-btn:hover,
    button.login:hover,
    a.login:hover,
    .spicy-btn.secondary:hover,
    .twofa-btn.secondary:hover,
    button.login.secondary:hover,
    a.login.secondary:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spicy-card,
    .spicy-foot,
    .spicy-panel > *,
    .twofa-page-inner,
    .twofa-overlay,
    .twofa-alert-card,
    .spicy-brand::before,
    .spicy-brand::after,
    .spicy-snow,
    .spicy-pump,
    .spicy-fw i {
        animation: none;
    }

    .spicy-btn:hover,
    .twofa-btn:hover,
    button.login:hover,
    a.login:hover {
        transform: none;
        box-shadow: none;
    }
}
