:root {
    --deep-navy: #07111F;
    --panel-slate: #0F1B2D;
    --electric-cyan: #22D3EE;
    --alipay-blue: #1677FF;
    --soft-mist: #F4F7FB;
    --signal-amber: #F59E0B;
}

html {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ds-auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.22), transparent 28rem),
        radial-gradient(circle at 76% 18%, rgba(22, 119, 255, 0.14), transparent 24rem),
        linear-gradient(135deg, #07111F 0%, #0F1B2D 48%, #F4F7FB 48%, #F4F7FB 100%);
}

.ds-profile-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
        linear-gradient(180deg, #07111F 0%, #0F1B2D 18rem, #F4F7FB 18rem, #F4F7FB 100%);
}

.ds-glass-panel {
    background: rgba(15, 27, 45, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.ds-light-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ds-terminal-card {
    background:
        linear-gradient(145deg, rgba(15, 27, 45, 0.96), rgba(7, 17, 31, 0.98)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 18rem);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 70px rgba(2, 6, 23, 0.32);
}

.ds-orbit-line {
    position: relative;
    overflow: hidden;
}

.ds-orbit-line::after {
    content: "";
    position: absolute;
    inset: auto -20% 0 -20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
}

.ds-qr-radar {
    position: relative;
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 32px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(15, 27, 45, 0.98) 68%);
    border: 1px solid rgba(34, 211, 238, 0.35);
    overflow: hidden;
}

.ds-qr-radar::before {
    content: "";
    position: absolute;
    width: 175%;
    height: 175%;
    background: conic-gradient(from 180deg, transparent, rgba(34, 211, 238, 0.45), transparent 34%);
    animation: dsRadarSpin 4s linear infinite;
}

.ds-qr-radar::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 26px;
}

.ds-qr-radar-inner {
    position: relative;
    z-index: 1;
    min-width: 192px;
    min-height: 192px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
}

.ds-status-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    background: var(--electric-cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.ds-status-dot.ds-status-warn {
    background: var(--signal-amber);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.ds-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.55);
    z-index: 80;
}

.ds-modal-backdrop.is-open {
    display: flex;
}

.ds-focus-ring:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.5);
    outline-offset: 3px;
}

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

@media (max-width: 768px) {
    .ds-auth-shell {
        background:
            radial-gradient(circle at top, rgba(34, 211, 238, 0.18), transparent 24rem),
            linear-gradient(180deg, #07111F 0%, #0F1B2D 38%, #F4F7FB 38%, #F4F7FB 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds-qr-radar::before {
        animation: none;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}
