/* ============================================================
   TVB NETWORK — Sign In Page Dedicated Stylesheet
   /assets/css/signin.css  ·  v2.0.0
   © Tvb Network (Pty) Ltd. All rights reserved 2026.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Page Shell ─────────────────────────────────────────── */
.si-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    padding-top: 68px; /* navbar height */
}

/* ── LEFT PANEL ─────────────────────────────────────────── */
.si-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    background:
        radial-gradient(ellipse 110% 80% at 8% 10%,  hsl(213 100% 94%) 0%, transparent 58%),
        radial-gradient(ellipse 80%  70% at 90% 20%,  hsl(221 90%  93%) 0%, transparent 52%),
        radial-gradient(ellipse 70%  65% at 15% 90%,  hsl(205 85%  94%) 0%, transparent 55%),
        radial-gradient(ellipse 60%  55% at 85% 88%,  hsl(217 80%  95%) 0%, transparent 50%),
        hsl(0 0% 100%);
    overflow: hidden;
    border-right: 1px solid hsl(220 20% 91%);
}

/* Decorative rings */
.si-left-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.si-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid hsl(213 80% 55% / 0.12);
}
.si-deco-ring:nth-child(1) {
    width: 440px; height: 440px;
    top: -120px; right: -100px;
    animation: siRingPulse 9s ease-in-out infinite;
}
.si-deco-ring:nth-child(2) {
    width: 290px; height: 290px;
    top: -40px; right: -20px;
    border-color: hsl(213 70% 55% / 0.10);
    animation: siRingPulse 9s ease-in-out infinite 1.8s;
}
.si-deco-ring:nth-child(3) {
    width: 240px; height: 240px;
    bottom: 60px; left: -60px;
    border-color: hsl(205 65% 50% / 0.10);
    animation: siRingPulse 11s ease-in-out infinite 3.5s;
}
.si-deco-dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}
.si-deco-dot:nth-child(4) {
    width: 360px; height: 360px;
    background: linear-gradient(135deg, hsl(213 100% 88%), hsl(221 90% 90%));
    top: -90px; right: -70px;
}
.si-deco-dot:nth-child(5) {
    width: 320px; height: 320px;
    background: linear-gradient(135deg, hsl(205 90% 88%), hsl(213 100% 92%));
    bottom: 40px; left: -60px;
}
@keyframes siRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.05); opacity: 1; }
}

/* Grid mesh overlay */
.si-left-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsl(213 80% 48% / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, hsl(213 80% 48% / 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Left panel content z-index */
.si-left-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

/* Brand mark on left */
.si-left-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    display:none;
}
.si-left-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: hsl(0 0% 100%);
    border: 1.5px solid hsl(220 20% 88%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px hsl(220 30% 20% / 0.06);
    overflow: hidden;
    flex-shrink: 0;
}
.si-left-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.si-left-name {
    font-size: 0.98rem;
    font-weight: 850;
    letter-spacing: -0.015em;
    color: hsl(222 47% 11%);
}
.si-left-name span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(215 25% 45%);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* App Continuation Badge Pill */
.si-app-continuation-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: hsl(0 0% 100% / 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid hsl(220 20% 86%);
    border-radius: 30px;
    padding: 6px 14px;
    margin-bottom: 22px;
    font-size: 0.78rem;
    font-weight: 750;
    color: hsl(222 47% 15%);
    box-shadow: 0 2px 10px hsl(220 30% 20% / 0.04);
}
.si-app-continuation-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: siDotPulse 2s ease-in-out infinite;
}

/* Hero headline */
.si-left-headline {
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: hsl(222 47% 11%);
    margin-bottom: 18px;
}
.si-left-headline em {
    font-style: normal;
    background: linear-gradient(135deg, hsl(213 90% 42%), hsl(221 80% 52%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtext */
.si-left-sub {
    font-size: 1.02rem;
    color: hsl(215 22% 38%);
    line-height: 1.65;
    margin-bottom: 38px;
    font-weight: 450;
    max-width: 440px;
}

/* Feature list */
.si-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}
.si-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: hsl(0 0% 100% / 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsl(220 25% 90% / 0.95);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 4px 18px hsl(220 30% 20% / 0.03), 0 1px 3px hsl(220 30% 20% / 0.02);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s, border-color 0.22s;
}
.si-feature:hover {
    transform: translateY(-2px);
    border-color: hsl(215 80% 60% / 0.4);
    box-shadow: 0 8px 24px hsl(215 80% 50% / 0.08);
}
.si-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: hsl(215 90% 96%);
    border: 1px solid hsl(215 80% 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px hsl(215 80% 50% / 0.06);
}
.si-feature-icon svg { display: block; }
.si-feature-title {
    font-size: 0.88rem;
    font-weight: 750;
    color: hsl(222 47% 12%);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.si-feature-desc {
    font-size: 0.81rem;
    color: hsl(215 20% 42%);
    line-height: 1.5;
}

/* Trust / platform strip */
.si-trust {
    padding-top: 24px;
    border-top: 1px solid hsl(220 20% 90% / 0.8);
    display: none;
}
.si-trust-label {
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(215 20% 48%);
    margin-bottom: 12px;
}
.si-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.si-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: hsl(0 0% 100% / 0.95);
    border: 1px solid hsl(220 20% 88%);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.73rem;
    font-weight: 650;
    color: hsl(222 35% 25%);
    white-space: nowrap;
    box-shadow: 0 1px 3px hsl(220 20% 20% / 0.03);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.si-trust-pill:hover,
.si-trust-pill.active-target {
    background: hsl(215 100% 97%);
    border-color: hsl(215 80% 60% / 0.4);
    color: hsl(215 90% 40%);
    transform: translateY(-1px);
}
.si-trust-pill svg,
.si-trust-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}
/* Dark Mode Left Panel */
[data-theme="dark"] .si-left {
    background:
        radial-gradient(ellipse 110% 80% at 8% 10%,  hsl(215 60% 16% / 0.7) 0%, transparent 58%),
        radial-gradient(ellipse 80%  70% at 90% 20%,  hsl(221 50% 14% / 0.6) 0%, transparent 52%),
        radial-gradient(ellipse 70%  65% at 15% 90%,  hsl(205 60% 15% / 0.6) 0%, transparent 55%),
        hsl(222 26% 8%);
    border-right-color: hsl(220 22% 16%);
}
[data-theme="dark"] .si-left-grid {
    background-image:
        linear-gradient(hsl(213 80% 60% / 0.05) 1px, transparent 1px),
        linear-gradient(90deg, hsl(213 80% 60% / 0.05) 1px, transparent 1px);
}
[data-theme="dark"] .si-deco-ring {
    border-color: hsl(213 80% 60% / 0.08);
}
[data-theme="dark"] .si-deco-dot:nth-child(4) {
    background: linear-gradient(135deg, hsl(215 60% 25%), hsl(221 60% 20%));
    opacity: 0.35;
}
[data-theme="dark"] .si-deco-dot:nth-child(5) {
    background: linear-gradient(135deg, hsl(205 60% 22%), hsl(215 70% 25%));
    opacity: 0.35;
}
[data-theme="dark"] .si-left-logo {
    background: hsl(222 26% 12%);
    border-color: hsl(220 22% 20%);
    box-shadow: 0 4px 18px hsl(0 0% 0% / 0.3);
}
[data-theme="dark"] .si-left-name {
    color: hsl(215 20% 95%);
}
[data-theme="dark"] .si-left-name span {
    color: hsl(215 20% 60%);
}
[data-theme="dark"] .si-app-continuation-pill {
    background: hsl(222 26% 12% / 0.9);
    border-color: hsl(220 22% 20%);
    color: hsl(215 20% 90%);
}
[data-theme="dark"] .si-left-headline {
    color: hsl(215 20% 96%);
}
[data-theme="dark"] .si-left-sub {
    color: hsl(215 15% 65%);
}
[data-theme="dark"] .si-feature {
    background: hsl(222 26% 11% / 0.9);
    border-color: hsl(220 22% 17%);
    box-shadow: 0 4px 18px hsl(0 0% 0% / 0.25);
}
[data-theme="dark"] .si-feature:hover {
    border-color: hsl(213 80% 60% / 0.4);
    box-shadow: 0 8px 24px hsl(213 80% 60% / 0.1);
}
[data-theme="dark"] .si-feature-icon {
    background: hsl(215 40% 15%);
    border-color: hsl(215 40% 22%);
}
[data-theme="dark"] .si-feature-title {
    color: hsl(215 20% 95%);
}
[data-theme="dark"] .si-feature-desc {
    color: hsl(215 15% 65%);
}
[data-theme="dark"] .si-trust {
    border-top-color: hsl(220 22% 16%);
}
[data-theme="dark"] .si-trust-label {
    color: hsl(215 15% 55%);
}
[data-theme="dark"] .si-trust-pill {
    background: hsl(222 26% 12%);
    border-color: hsl(220 22% 18%);
    color: hsl(215 20% 80%);
}
[data-theme="dark"] .si-trust-pill:hover,
[data-theme="dark"] .si-trust-pill.active-target {
    background: hsl(215 50% 18%);
    border-color: hsl(215 70% 50% / 0.5);
    color: hsl(215 90% 75%);
}

/* ── MOBILE HERO ("One Account. All Platforms.") ─────────── */
.si-mobile-hero {
    display: none;
    text-align: center;
    margin-bottom: 22px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.si-mobile-continuation-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: hsl(0 0% 100% / 0.9);
    border: 1px solid hsl(220 20% 86%);
    border-radius: 30px;
    padding: 5px 13px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text);
}
[data-theme="dark"] .si-mobile-continuation-pill {
    background: hsl(222 26% 12% / 0.9);
    border-color: hsl(220 22% 20%);
    color: hsl(215 20% 90%);
}
.si-mobile-headline {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0 0 8px;
}
.si-mobile-headline em {
    font-style: normal;
    background: linear-gradient(135deg, hsl(213 90% 45%), hsl(221 80% 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .si-mobile-headline em {
    background: linear-gradient(135deg, hsl(213 90% 60%), hsl(221 80% 70%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.si-mobile-sub {
    font-size: 0.86rem;
    color: var(--text3);
    line-height: 1.5;
    margin: 0;
    font-weight: 450;
}

/* ── RIGHT PANEL ────────────────────────────────────────── */
.si-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: hsl(220 20% 97%);
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}
[data-theme="dark"] .si-right {
    background: hsl(222 26% 10%);
}

/* subtle right-panel texture */
.si-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, hsl(213 80% 60% / 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 90%, hsl(213 70% 55% / 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── BINDING SPACE ANIMATED BACKGROUND (si-right) ────────── */
.si-binding-space {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    user-select: none;
    perspective: 1200px;
}

/* Ambient color glow blooms (matching left side background gradient) */
.si-space-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    opacity: 0.55;
    will-change: transform, opacity;
}
.si-space-glow-1 {
    width: 520px;
    height: 520px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, hsl(213 95% 62% / 0.22) 0%, hsl(205 90% 55% / 0.12) 50%, transparent 70%);
    animation: siSpaceGlowFloat 20s ease-in-out infinite alternate;
}
.si-space-glow-2 {
    width: 460px;
    height: 460px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, hsl(202 95% 58% / 0.20) 0%, hsl(218 85% 62% / 0.10) 50%, transparent 70%);
    animation: siSpaceGlowFloat 24s ease-in-out infinite alternate-reverse;
}
.si-space-glow-3 {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, hsl(225 85% 65% / 0.15) 0%, hsl(213 90% 58% / 0.08) 50%, transparent 70%);
    animation: siSpaceGlowBreathe 15s ease-in-out infinite alternate;
}

[data-theme="dark"] .si-space-glow-1 {
    background: radial-gradient(circle, hsl(213 95% 62% / 0.28) 0%, hsl(205 90% 55% / 0.16) 50%, transparent 70%);
    opacity: 0.75;
}
[data-theme="dark"] .si-space-glow-2 {
    background: radial-gradient(circle, hsl(202 95% 58% / 0.26) 0%, hsl(218 85% 62% / 0.14) 50%, transparent 70%);
    opacity: 0.75;
}
[data-theme="dark"] .si-space-glow-3 {
    background: radial-gradient(circle, hsl(225 85% 65% / 0.22) 0%, hsl(213 90% 58% / 0.12) 50%, transparent 70%);
    opacity: 0.7;
}

/* 3D Orbital Binding Space Rings */
.si-space-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    pointer-events: none;
}
.si-space-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center center;
    pointer-events: none;
    box-sizing: border-box;
    will-change: transform;
}
.si-space-ring-1 {
    width: 720px;
    height: 720px;
    margin-left: -360px;
    margin-top: -360px;
    border: 1.2px solid hsl(213 85% 60% / 0.28);
    transform: rotateX(66deg) rotateY(16deg) rotateZ(0deg);
    animation: siOrbitSpin 34s linear infinite;
    box-shadow: 0 0 24px hsl(213 85% 60% / 0.08);
}
.si-space-ring-2 {
    width: 540px;
    height: 540px;
    margin-left: -270px;
    margin-top: -270px;
    border: 1px solid hsl(225 80% 65% / 0.24);
    transform: rotateX(58deg) rotateY(-22deg) rotateZ(0deg);
    animation: siOrbitSpinReverse 26s linear infinite;
    box-shadow: 0 0 18px hsl(225 80% 65% / 0.06);
}
.si-space-ring-3 {
    width: 900px;
    height: 900px;
    margin-left: -450px;
    margin-top: -450px;
    border: 0.8px dashed hsl(213 80% 55% / 0.18);
    transform: rotateX(72deg) rotateY(8deg) rotateZ(0deg);
    animation: siOrbitSpin 50s linear infinite;
}
.si-space-ring-4 {
    width: 380px;
    height: 380px;
    margin-left: -190px;
    margin-top: -190px;
    border: 1.2px solid hsl(202 95% 55% / 0.30);
    transform: rotateX(60deg) rotateY(-12deg) rotateZ(0deg);
    animation: siOrbitSpinReverse 20s linear infinite;
    box-shadow: 0 0 16px hsl(202 95% 55% / 0.10);
}

[data-theme="dark"] .si-space-ring-1 {
    border-color: hsl(213 85% 60% / 0.38);
    box-shadow: 0 0 34px hsl(213 85% 60% / 0.20);
}
[data-theme="dark"] .si-space-ring-2 {
    border-color: hsl(225 80% 65% / 0.35);
    box-shadow: 0 0 28px hsl(225 80% 65% / 0.16);
}
[data-theme="dark"] .si-space-ring-3 {
    border-color: hsl(213 80% 55% / 0.25);
}
[data-theme="dark"] .si-space-ring-4 {
    border-color: hsl(202 95% 55% / 0.42);
    box-shadow: 0 0 24px hsl(202 95% 55% / 0.22);
}

/* Vector SVG Lines (Fine Weight Hairline Moving Curves) */
.si-space-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.si-space-line {
    fill: none;
    stroke-linecap: round;
    will-change: stroke-dashoffset, transform;
}
.si-line-flow-1 {
    stroke-width: 1.2px;
    stroke-dasharray: 280 220;
    animation: siDashFlow 26s linear infinite;
}
.si-line-flow-1-sub {
    stroke-width: 0.75px;
    animation: siDashFlowReverse 32s linear infinite;
}
.si-line-flow-2 {
    stroke-width: 1.2px;
    stroke-dasharray: 240 200;
    animation: siDashFlowReverse 22s linear infinite;
}
.si-line-flow-2-sub {
    stroke-width: 0.75px;
    animation: siDashFlow 28s linear infinite;
}
.si-line-flow-3 {
    stroke-width: 1.0px;
    stroke-dasharray: 340 260;
    animation: siDashFlow 36s linear infinite;
}
.si-line-flow-4 {
    stroke-width: 0.9px;
    animation: siDashFlowReverse 42s linear infinite;
}

/* Dynamic group drifts */
.si-space-group-1 {
    animation: siGroupDrift1 22s ease-in-out infinite alternate;
    transform-origin: 40% 40%;
}
.si-space-group-2 {
    animation: siGroupDrift2 26s ease-in-out infinite alternate;
    transform-origin: 60% 60%;
}
.si-space-group-3 {
    animation: siGroupDrift3 30s ease-in-out infinite alternate;
    transform-origin: 50% 30%;
}
.si-space-group-4 {
    animation: siGroupDrift4 25s ease-in-out infinite alternate;
    transform-origin: 30% 70%;
}

/* Keyframe animations for infinite space motion */
@keyframes siOrbitSpin {
    from { transform: rotateX(66deg) rotateY(16deg) rotateZ(0deg); }
    to   { transform: rotateX(66deg) rotateY(16deg) rotateZ(360deg); }
}
@keyframes siOrbitSpinReverse {
    from { transform: rotateX(58deg) rotateY(-22deg) rotateZ(360deg); }
    to   { transform: rotateX(58deg) rotateY(-22deg) rotateZ(0deg); }
}
@keyframes siDashFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 1000; }
}
@keyframes siDashFlowReverse {
    from { stroke-dashoffset: 1000; }
    to   { stroke-dashoffset: 0; }
}
@keyframes siSpaceGlowFloat {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%  { transform: translate(40px, 30px) scale(1.10); opacity: 0.72; }
    100% { transform: translate(-25px, 45px) scale(0.95); opacity: 0.50; }
}
@keyframes siSpaceGlowBreathe {
    0%   { transform: translate(-50%, -50%) scale(0.90); opacity: 0.45; }
    50%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0.68; }
    100% { transform: translate(-50%, -50%) scale(0.90); opacity: 0.45; }
}
@keyframes siGroupDrift1 {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate(22px, -18px) rotate(1.4deg) scale(1.02); }
    100% { transform: translate(-18px, 15px) rotate(-1.2deg) scale(0.99); }
}
@keyframes siGroupDrift2 {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate(-26px, 20px) rotate(-1.6deg) scale(1.03); }
    100% { transform: translate(18px, -20px) rotate(1.3deg) scale(0.98); }
}
@keyframes siGroupDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(18px, 24px) scale(1.03); }
    100% { transform: translate(-20px, -15px) scale(0.98); }
}
@keyframes siGroupDrift4 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-20px, -18px) rotate(1.8deg); }
    100% { transform: translate(24px, 12px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .si-space-ring,
    .si-space-group-1,
    .si-space-group-2,
    .si-space-group-3,
    .si-space-group-4,
    .si-space-glow,
    .si-line-flow-1,
    .si-line-flow-2,
    .si-line-flow-3,
    .si-line-flow-4 {
        animation: none !important;
    }
    .si-space-pulse {
        display: none !important;
    }
}

/* ── AUTH CARD ─────────────────────────────────────────── */
/* ── AUTH CARD (TVB Network Signature Style) ─────────────── */
.si-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 24px);
    padding: 36px 32px 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    animation: siCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
[data-theme="dark"] .si-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    color: var(--text);
}
@keyframes siCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── CARD BRAND BAR ─────────────────────────────────────── */
.si-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.si-card-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .si-card-logo {
    background: var(--surface2);
    border-color: var(--border);
}
.si-card-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.si-card-title { flex: 1; }
.si-card-title h2 {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}
.si-card-title p {
    font-size: 0.74rem;
    color: var(--text3);
    font-weight: 500;
    margin: 2px 0 0;
    letter-spacing: 0;
}
.si-sso-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 8px;
    border-radius: 99px;
    flex-shrink: 0;
}
[data-theme="dark"] .si-sso-badge {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.28);
    color: #34d399;
}
.si-sso-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: siDotPulse 2.5s ease-in-out infinite;
}
@keyframes siDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(0.85); }
}

/* ── STEP PANELS ────────────────────────────────────────── */
.si-steps { position: relative; z-index: 1; }
.si-step { display: none; }
.si-step.active { display: block; animation: siFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes siFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── STEP HEADLINE (TVB Network Style) ─────────────────── */
.si-step-head { margin-bottom: 20px; }
.si-step-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.25;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.si-step-head p {
    font-size: 0.88rem;
    font-weight: 450;
    color: var(--text2);
    margin: 0;
    line-height: 1.5;
}

/* ── SECURITY BADGES (hidden — clean minimal form) ─────── */
.si-badges {
    display: none;
}
.si-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text3);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 4px 9px 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.01em;
}
.si-badge svg { flex-shrink: 0; }

/* ── TARGET APP BANNER ──────────────────────────────────── */
.si-target-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, rgba(226, 232, 240, 0.9));
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    animation: siFadeUp 0.3s ease both;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.si-target-banner::before {
    display: none;
}
[data-theme="dark"] .si-target-banner {
    background: var(--surface2, rgba(255, 255, 255, 0.03));
    border-color: var(--border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .si-target-banner::before {
    display: none;
}

/* Header row: Identity on the left, SSO badge on the right */
.si-target-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.si-target-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}

.si-target-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface2, #f8fafc);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .si-target-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.si-target-icon img,
.si-target-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.si-target-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.si-target-name {
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--text, #0f172a);
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="dark"] .si-target-name {
    color: var(--text, #f8fafc);
}

.si-target-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text3, #64748b);
    letter-spacing: 0;
    line-height: 1.3;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-theme="dark"] .si-target-tag {
    background: none;
    border: none;
    color: var(--text3, #94a3b8);
}

.si-target-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 650;
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 4px 9px;
    border-radius: 99px;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .si-target-badge {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}
.si-target-badge-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.si-target-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: siDotPulse 2.5s ease-in-out infinite;
}

/* Body row: full-width description with divider */
.si-target-body {
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid var(--border-light, rgba(226, 232, 240, 0.7));
}
[data-theme="dark"] .si-target-body {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.si-target-sub {
    font-size: 0.79rem;
    color: var(--text3, #64748b);
    margin: 0;
    line-height: 1.42;
}
[data-theme="dark"] .si-target-sub {
    color: var(--text3, #94a3b8);
}

/* Legacy layout fallback compatibility */
.si-target-text {
    flex: 1;
    min-width: 0;
}
.si-target-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .si-target-banner { 
        padding: 11px 12px; 
        gap: 7px; 
        margin-bottom: 16px;
    }
    .si-target-head {
        gap: 8px;
    }
    .si-target-identity {
        gap: 9px;
    }
    .si-target-icon { 
        width: 36px; 
        height: 36px; 
        border-radius: 9px; 
    }
    .si-target-icon img, 
    .si-target-icon svg { 
        width: 28px; 
        height: 28px; 
    }
    .si-target-name {
        font-size: 0.92rem;
    }
    .si-target-badge { 
        padding: 3px 8px;
        font-size: 0.64rem;
    }
    .si-target-sub {
        font-size: 0.76rem;
    }
}

/* ── ALREADY LOGGED IN APP TRANSITION HERO ───────────────── */
.si-auth-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 4px auto 22px;
    padding: 8px 0;
    display: none;
}
.si-bridge-avatar-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.si-bridge-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface2, #f1f5f9);
    border: 2px solid var(--border, #e2e8f0);
    color: var(--accent2, #0066FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .si-bridge-user-avatar {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    color: #60a5fa;
}
.si-bridge-user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10B981;
    border: 2.5px solid var(--surface, #ffffff);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .si-bridge-user-status {
    border-color: #0f172a;
}
.si-bridge-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 64px;
}
.si-bridge-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent2, #0066FF), var(--border));
    border-radius: 2px;
    overflow: hidden;
}
.si-bridge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: #10B981;
    border-radius: 2px;
    animation: siBridgePulse 2s ease-in-out infinite;
}
@keyframes siBridgePulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
.si-bridge-sso-chip {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.si-bridge-app-node {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}
.si-bridge-app-node:hover {
    transform: scale(1.06);
}
.si-bridge-app-icon img {
    width: 28px;
    height: 28px;
    display: block;
}
.si-auth-state-header {
    text-align: center;
    margin-bottom: 20px;
}
.si-auth-state-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.2;
}
.si-auth-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text3);
    background: var(--surface2, rgba(0,0,0,0.03));
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 20px;
}
[data-theme="dark"] .si-auth-user-pill {
    background: rgba(255, 255, 255, 0.04);
}
.si-auth-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}
.si-auth-target-card {
    background: var(--surface2, rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .si-auth-target-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.si-auth-target-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.si-auth-target-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.si-auth-target-icon-wrap img {
    width: 24px;
    height: 24px;
    display: block;
}
.si-auth-target-info {
    flex: 1;
    min-width: 0;
}
.si-auth-target-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.si-auth-target-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}
.si-auth-ready-pill {
    font-size: 0.65rem;
    font-weight: 750;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.si-auth-target-tagline {
    font-size: 0.76rem;
    color: var(--text3);
    margin: 3px 0 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.si-auth-target-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}
.si-auth-target-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
}
.si-auth-target-badge-item img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.si-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.si-btn-app-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 750;
    border: none;
    box-shadow: 0 4px 18px rgba(0, 102, 255, 0.28);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}
.si-btn-app-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.38);
    filter: brightness(1.05);
}
.si-btn-switch-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text3) !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.si-btn-switch-account:hover {
    background: var(--surface2);
    color: var(--text) !important;
    border-color: var(--border2);
}

/* ── WELCOME BACK STRIP ─────────────────────────────────── */
.si-wb-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: hsl(213 80% 96%);
    border: 1px solid hsl(213 60% 87%);
    border-radius: 13px;
    margin-bottom: 18px;
    animation: siStripIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-theme="dark"] .si-wb-strip {
    background: hsl(213 45% 12%);
    border-color: hsl(213 40% 20%);
}
@keyframes siStripIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.si-wb-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1px;
    line-height: 1.2;
}
.si-wb-handle {
    font-size: 0.74rem;
    color: var(--accent2);
    font-weight: 600;
    margin: 0;
}
.si-wb-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text3);
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.si-wb-dismiss:hover { color: var(--text); background: var(--surface2); }

/* ── AVATAR RING ────────────────────────────────────────── */
.si-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(213 80% 38%), hsl(221 75% 48%));
    box-shadow: 0 0 0 2.5px hsl(213 65% 84%), 0 2px 10px hsl(213 80% 46% / 0.22);
    letter-spacing: -0.02em;
    user-select: none;
}
[data-theme="dark"] .si-avatar {
    box-shadow: 0 0 0 2.5px hsl(213 45% 22%), 0 2px 12px hsl(213 80% 46% / 0.30);
}

/* ── LOGGED-IN IDENTITY BLOCK ───────────────────────────── */
.si-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: hsl(213 80% 97%);
    border: 1px solid hsl(213 60% 88%);
    border-radius: 14px;
    margin-bottom: 20px;
}
[data-theme="dark"] .si-identity {
    background: hsl(213 45% 9%);
    border-color: hsl(213 40% 18%);
}
.si-identity .si-avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.si-identity-info { flex: 1; min-width: 0; }
.si-identity-name {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.si-identity-name strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.si-identity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    color: hsl(213 80% 40%);
    background: hsl(213 80% 92%);
    border: 1px solid hsl(213 65% 82%);
    padding: 2px 7px;
    border-radius: 20px;
}
[data-theme="dark"] .si-identity-tag {
    background: hsl(213 50% 14%);
    border-color: hsl(213 45% 22%);
    color: hsl(213 80% 62%);
}
.si-identity-sub {
    font-size: 0.76rem;
    color: var(--text3);
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── TVB NETWORK FORM FIELDS & PHONE INPUT ───────────────── */
.si-field { margin-bottom: 20px; }
.si-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text2);
    margin-bottom: 7px;
}
.si-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 10px);
    background: var(--surface2);
    height: 48px;
    min-height: 48px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}
[data-theme="dark"] .si-phone-wrap {
    background: var(--surface2);
    border-color: var(--border);
}
.si-phone-wrap:focus-within {
    border-color: var(--accent2, #0066FF) !important;
    box-shadow: 0 0 0 3px rgba(26, 111, 207, 0.15) !important;
    background: var(--surface) !important;
}
.si-country {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    background: var(--surface3, rgba(0,0,0,0.03));
    border-right: 1.5px solid var(--border);
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--text);
    user-select: none;
    flex-shrink: 0;
    height: 100%;
    cursor: pointer;
    transition: background 0.15s;
}
[data-theme="dark"] .si-country {
    border-right-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}
.si-country:hover { background: rgba(0, 102, 255, 0.08); }
.si-country-flag {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: inline-block;
    pointer-events: none;
}
.si-country select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    -webkit-appearance: menulist;
    appearance: menulist;
    z-index: 5;
}
.si-country-val { pointer-events: none; line-height: 1; font-weight: 650; }
.si-country-chevron { opacity: 0.65; pointer-events: none; flex-shrink: 0; }
.si-phone-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 14px;
    font-size: 0.92rem !important;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    font-family: inherit;
    box-sizing: border-box;
}
[data-theme="dark"] .si-phone-input {
    color: var(--text);
}
.si-phone-input::placeholder { color: var(--text3); font-weight: 450; }
.si-field-hint {
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: 6px;
    line-height: 1.45;
    font-weight: 450;
}

/* ── OTP GRID ───────────────────────────────────────────── */
.si-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 20px 0 18px;
}
.si-otp-box {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--accent2);
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    outline: none;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s, transform 0.12s;
    caret-color: var(--accent2);
    box-sizing: border-box;
    font-family: inherit;
}
[data-theme="dark"] .si-otp-box {
    background: hsl(222 24% 12%);
    border-color: hsl(220 20% 18%);
}
.si-otp-box::placeholder { color: var(--border); font-size: 1.4rem; }
.si-otp-box:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px hsl(213 80% 55% / 0.15);
    background: var(--surface);
    transform: scale(1.06);
}
[data-theme="dark"] .si-otp-box:focus {
    background: hsl(222 24% 10%);
    box-shadow: 0 0 0 3px hsl(265 70% 55% / 0.2), 0 0 12px hsl(265 70% 55% / 0.12);
}
.si-otp-box:not(:placeholder-shown) {
    border-color: var(--accent2);
    background: hsl(213 80% 55% / 0.04);
}
[data-theme="dark"] .si-otp-box:not(:placeholder-shown) {
    background: hsl(265 70% 55% / 0.07);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.si-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13.5px 20px;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, opacity 0.18s;
    position: relative;
    overflow: hidden;
}
.si-btn:active { transform: scale(0.98); }
.si-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Primary CTA */
.si-btn-primary {
    background: linear-gradient(135deg, hsl(213 80% 46%) 0%, hsl(213 80% 40%) 100%);
    color: #fff;
    box-shadow: 0 2px 10px hsl(213 80% 45% / 0.3), 0 1px 3px hsl(213 80% 45% / 0.2);
}
.si-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.si-btn-primary:hover::after { transform: translateX(100%); }
.si-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsl(213 80% 45% / 0.4), 0 2px 8px hsl(213 80% 45% / 0.25);
}
.si-btn-primary:disabled::after { display: none; }

/* Social (Google) */
.si-btn-social {
    background: var(--surface2);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: none;
    font-weight: 600;
}
[data-theme="dark"] .si-btn-social {
    background: hsl(222 22% 13%);
    border-color: hsl(220 18% 19%);
}
.si-btn-social:hover {
    background: var(--surface3);
    border-color: hsl(213 60% 55% / 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px hsl(220 30% 8% / 0.08);
}
[data-theme="dark"] .si-btn-social:hover {
    background: hsl(222 22% 16%);
    border-color: hsl(265 50% 55% / 0.35);
    box-shadow: 0 6px 20px hsl(220 40% 2% / 0.3);
}

/* Ghost / text button */
.si-btn-ghost {
    background: none;
    border: none;
    color: var(--accent2);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.15s;
}
.si-btn-ghost:hover { opacity: 0.75; }

/* ── DIVIDER ────────────────────────────────────────────── */
.si-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    color: var(--text3);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.si-divider::before,
.si-divider::after {
    content: '';
    height: 1px;
    background: var(--border);
    opacity: 0.7;
}

/* ── TERMS HINT ─────────────────────────────────────────── */
.si-terms {
    text-align: center;
    font-size: 0.69rem;
    color: var(--text3);
    line-height: 1.55;
    margin-bottom: 14px;
}
.si-terms a {
    color: var(--accent2);
    font-weight: 600;
    text-decoration: none;
}
.si-terms a:hover { text-decoration: underline; }

/* ── OTP RESEND ROW ─────────────────────────────────────── */
.si-otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.79rem;
    color: var(--text3);
    margin-top: 2px;
}

/* ── GOOGLE LINKED CARD ─────────────────────────────────── */
.si-google-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: hsl(213 80% 96%);
    border: 1px solid hsl(213 60% 87%);
    border-radius: 12px;
    margin-bottom: 18px;
}
[data-theme="dark"] .si-google-card {
    background: hsl(213 45% 10%);
    border-color: hsl(213 40% 18%);
}
.si-google-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── STATUS ALERT ───────────────────────────────────────── */
.si-status {
    min-height: 20px;
    margin-top: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    color: var(--accent2);
    position: relative;
    z-index: 1;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.si-status:not(:empty) {
    display: flex;
}
.si-status.si-status--error {
    background: hsl(0 84% 60% / 0.10);
    border: 1px solid hsl(0 84% 60% / 0.28);
    color: #ef4444 !important;
}
.si-status.si-status--success {
    background: hsl(152 60% 38% / 0.10);
    border: 1px solid hsl(152 60% 38% / 0.28);
    color: #10b981 !important;
}
.si-status.si-status--info {
    background: hsl(213 80% 55% / 0.08);
    border: 1px solid hsl(213 80% 55% / 0.22);
    color: var(--accent2);
}
.si-status-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.si-status-icon svg {
    display: block;
}

/* ── SPINNER ────────────────────────────────────────────── */
.si-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.si-spinner-ring {
    width: 15px;
    height: 15px;
    border: 2px solid hsl(213 80% 55% / 0.22);
    border-top-color: var(--accent2);
    border-radius: 50%;
    animation: siSpin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes siSpin { to { transform: rotate(360deg); } }

/* ── SINGLE APP TARGET CARD ─────────────────────────────── */
.si-app-card {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}
.si-app-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}
.si-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.si-app-name { font-size: 0.96rem; font-weight: 800; color: var(--text); margin: 0; }
.si-app-status { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.si-app-desc { font-size: 0.8rem; color: var(--text2); margin: 0 0 12px; line-height: 1.55; }
.si-app-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text3);
    margin-bottom: 13px;
    cursor: pointer;
    line-height: 1.5;
}
.si-app-terms input { margin-top: 2px; flex-shrink: 0; }

/* ── MULTI APP LIST ─────────────────────────────────────── */
.si-app-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 270px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}
.si-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 10px;
}
.si-app-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: hsl(0 0% 100% / 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.si-app-row-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.si-app-row-desc {
    font-size: 0.69rem;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.si-app-open {
    padding: 5px 11px;
    border-radius: 7px;
    background: hsl(152 60% 95%);
    color: hsl(152 55% 35%);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.14s;
}
[data-theme="dark"] .si-app-open {
    background: hsl(152 40% 11%);
    color: hsl(152 55% 48%);
}
.si-app-open:hover { background: hsl(152 60% 90%); }

/* ── LOGOUT LINK ────────────────────────────────────────── */
.si-logout-row {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 4px;
}
.si-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: hsl(0 65% 50%);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.si-logout-link:hover { opacity: 0.75; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .si-page {
        grid-template-columns: 1fr;
        min-height: calc(100dvh - 68px);
        padding-top: 68px;
    }
    .si-left {
        display: none !important;
    }
    .si-right {
        padding: 32px 18px 48px;
        align-items: center;
        min-height: calc(100dvh - 68px);
    }
    .si-mobile-hero {
        display: block !important;
    }
    .si-card {
        max-width: 440px;
        margin: 0 auto;
    }
}
@media (max-width: 640px) {
    .si-page { 
        padding-top: 64px;
        min-height: calc(100dvh - 64px);
    }
    .si-right { 
        padding: 20px 14px 40px; 
    }
    .si-card { 
        padding: 24px 18px 22px; 
        border-radius: 18px; 
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    .si-card-brand {
        padding-bottom: 16px;
        margin-bottom: 18px;
        gap: 10px;
    }
    .si-card-logo {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .si-card-logo img {
        width: 20px;
        height: 20px;
    }
    .si-card-title h2 {
        font-size: 0.85rem;
    }
    .si-card-title p {
        font-size: 0.68rem;
    }
    .si-sso-badge {
        font-size: 0.6rem;
        padding: 3px 7px;
    }
    .si-otp-grid { gap: 6px; }
}

/* ── TVB NETWORK INPUT WRAPPER & TEXT INPUT ─────────────── */
.si-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 10px);
    background: var(--surface2);
    height: 48px;
    min-height: 48px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}
[data-theme="dark"] .si-input-wrap {
    background: var(--surface2);
    border-color: var(--border);
}
.si-input-wrap:focus-within {
    border-color: var(--accent2, #0066FF) !important;
    box-shadow: 0 0 0 3px rgba(26, 111, 207, 0.15) !important;
    background: var(--surface) !important;
}
.si-input-icon {
    display: none;
}
.si-text-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 16px;
    font-size: 0.94rem !important;
    font-weight: 500;
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
    letter-spacing: -0.01em;
}
[data-theme="dark"] .si-text-input {
    color: var(--text);
}
.si-text-input::placeholder { color: var(--text3); font-weight: 450; }

/* ── TVB USER IDENTIFIER CHIP ────────────────────────────── */
.si-google-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface2);
    cursor: pointer;
    margin-bottom: 18px;
    transition: all 0.18s ease;
    user-select: none;
    max-width: 100%;
}
.si-google-chip:hover {
    background: var(--surface3);
    border-color: var(--accent2);
}
.si-google-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.si-google-chip-avatar img {
    width: 13px;
    height: 13px;
    filter: brightness(0) invert(1);
}
.si-google-chip-label {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.si-google-chip-chevron {
    opacity: 0.65;
    flex-shrink: 0;
}

/* ── ACTION ROWS & TVB BUTTONS ──────────────────────────── */
.si-sublink-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 2px;
    margin-bottom: 22px;
}
.si-action-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent2, #0066FF);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s;
}
.si-action-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.si-action-link-subtle {
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--text3);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}
.si-action-link-subtle:hover {
    color: var(--text);
}

.si-actions-row {
    margin-top: 10px;
    margin-bottom: 14px;
    width: 100%;
}
.si-actions-row--split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
}

/* Primary Button (TVB Brand Gradient with Glow) */
.si-btn-primary,
.si-btn-google-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-sm, 10px);
    background: linear-gradient(135deg, var(--accent2, #1a6fcf), var(--accent3, #0d4fa8));
    color: #ffffff !important;
    font-size: 0.94rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(26, 111, 207, 0.28), 0 1px 3px rgba(26, 111, 207, 0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}
.si-btn-primary:hover,
.si-btn-google-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(26, 111, 207, 0.38), 0 2px 6px rgba(26, 111, 207, 0.22);
}
.si-btn-primary:active,
.si-btn-google-primary:active {
    transform: translateY(0);
}
.si-btn-arrow {
    transition: transform 0.2s ease;
}
.si-btn-primary:hover .si-btn-arrow,
.si-btn-google-primary:hover .si-btn-arrow {
    transform: translateX(3px);
}

/* Secondary Button */
.si-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-sm, 10px);
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text) !important;
    font-size: 0.88rem;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s ease;
}
.si-btn-secondary:hover {
    background: var(--surface3);
    border-color: var(--text3);
}

.si-helper-row {
    text-align: center;
    margin-bottom: 20px;
}
.si-create-link {
    font-size: 0.84rem;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.15s;
}
.si-create-link strong {
    color: var(--accent2, #0066FF);
}
.si-create-link:hover {
    color: var(--text);
}

/* Social Button (Google TVB Pill) */
.si-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: var(--radius-sm, 10px);
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
}
.si-btn-social:hover {
    background: var(--surface2);
    border-color: var(--text3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .si-btn-social {
    background: var(--surface2);
    border-color: var(--border);
}
[data-theme="dark"] .si-btn-social:hover {
    background: var(--surface3);
    border-color: var(--accent2);
}

/* OTP Navigation Strip */
.si-otp-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── TVB CARD FOOTER STRIP ───────────────────────────────── */
.si-card-footer-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin-top: 20px;
    padding: 0 6px;
    font-size: 0.78rem;
    color: var(--text3);
    box-sizing: border-box;
}
.si-footer-sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 550;
    color: var(--text3);
}
.si-footer-sec-pill img {
    opacity: 0.75;
}
.si-footer-links {
    display: flex;
    gap: 12px;
    font-size: 0.76rem;
}
.si-footer-links a {
    color: var(--text3);
    text-decoration: none;
    transition: color 0.15s;
}
.si-footer-links a:hover {
    color: var(--accent2);
    text-decoration: underline;
}

.si-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}
[data-theme="dark"] .si-verified-chip {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
}

/* ── 2-STEP AUTH OPTION DRAWER ────────────────────────── */
.si-2fa-card {
    background: var(--surface2);
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}
[data-theme="dark"] .si-2fa-card {
    background: hsl(222 24% 11%);
    border-color: hsl(220 20% 20%);
}
.si-2fa-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.si-2fa-toggle-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.81rem;
    font-weight: 650;
    color: var(--text);
}
.si-2fa-badge {
    font-size: 0.64rem;
    font-weight: 750;
    padding: 2.5px 7px;
    border-radius: 8px;
    background: hsl(213 80% 55% / 0.12);
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.si-2fa-drawer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    animation: siFadeUp 0.2s ease both;
}

/* ── OTP COUNTDOWN & ATTEMPTS NOTICE ─────────────────── */
.si-otp-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text3);
    margin: 10px 0 16px;
    padding: 8px 12px;
    background: var(--surface2);
    border-radius: 9px;
    border: 1px solid var(--border);
}
[data-theme="dark"] .si-otp-meta-strip {
    background: hsl(222 24% 11%);
    border-color: hsl(220 20% 18%);
}
.si-otp-countdown-val {
    font-weight: 750;
    color: var(--accent2);
}
.si-otp-attempts-pill {
    font-weight: 700;
    font-size: 0.72rem;
    color: #f59e0b;
}

/* ── THEME CIRCULAR WIPE TRANSITIONS ───────────────────────── */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) {
    z-index: 1;
}
::view-transition-new(root) {
    z-index: 999999;
}
html.tvb-theme-wipe-active,
html.tvb-theme-wipe-active * {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease !important;
}
