/* Extracted from the matching Jinja template for a strict style-src policy. */
.otp-section { background: rgba(59, 130, 246, 0.05); padding: 25px; border-radius: 16px; border: 1px solid var(--accent-color); margin-bottom: 20px; animation: fadeIn 0.5s ease; }
        .otp-title { color: var(--accent-color); font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
        .otp-input { text-align: center; letter-spacing: 5px; font-family: var(--font-family-monospace); font-size: 1.5rem; font-weight: bold; }
        
        /* Modal ToS */
        .tos-modal { display: none; position: fixed; inset: 0; overflow: hidden auto; overscroll-behavior: contain; touch-action: pan-y; background: rgba(0,0,0,0.8); z-index: var(--layer-dialog, 1000); justify-content: center; align-items: center; backdrop-filter: blur(5px); }
        .tos-modal.is-open { display: flex; }
        .match-success { color: var(--buy-color, #10b981); }
        .match-error { color: var(--sell-color, #ef4444); }
        .tos-content { background: var(--primary-card-bg); width: 90%; max-width: 600px; max-height: 80vh; border-radius: 16px; border: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
        .tos-header { padding: 20px; background: var(--secondary-card-bg); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .tos-header h2 { margin: 0; color: var(--sell-color); font-size: 1.2rem; }
        .tos-body { min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; color: var(--text-primary); font-size: 0.9rem; line-height: 1.6; text-align: start; }
        .tos-body h3 { color: var(--accent-color); margin-top: 15px; margin-bottom: 5px; font-size: 1rem; }
        .tos-footer { padding: 15px 20px; background: var(--secondary-card-bg); border-top: 1px solid var(--border-color); text-align: end; }
        .tos-btn { min-height: 44px; background: var(--accent-color); color: #fff; padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; }
        .pass-hint { font-size: 0.75rem; color: var(--text-secondary); margin-top: 5px; display: block; }
        
        /* Liquid Background Elements */
        .liquid-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; overflow: hidden; background: var(--bg-color); pointer-events: none; }
        .orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.6; animation: float 20s infinite alternate ease-in-out; will-change: transform; }
        .orb-1 { width: 50vw; height: 50vw; background: #3b82f6; inset-block-start: -10%; inset-inline-start: -10%; animation-delay: 0s; }
        .orb-2 { width: 40vw; height: 40vw; background: #bc13fe; inset-block-end: -20%; inset-inline-end: -10%; animation-delay: -5s; animation-duration: 25s; }
        .orb-3 { width: 30vw; height: 30vw; background: #00f2ff; inset-block-start: 40%; inset-inline-start: 50%; transform: translate(-50%, -50%); animation-delay: -10s; animation-duration: 18s; opacity: 0.4; }
        @keyframes float {
            0% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(5vw, 10vh) scale(1.1); }
            66% { transform: translate(-10vw, 5vh) scale(0.9); }
            100% { transform: translate(0, -10vh) scale(1.05); }
        }
        .auth-wrapper { background: transparent !important; animation: none !important; }
        
        /* Mobile-specific overrides for register orbs and ToS modal */
        @media (max-width: 600px) {
            .orb { filter: blur(70px); opacity: 0.5; }
            .orb-1 { width: 90vw; height: 90vw; }
            .orb-2 { width: 80vw; height: 80vw; }
            .orb-3 { width: 60vw; height: 60vw; }
            
            .tos-modal { padding: 0; }
            .tos-content { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
            .tos-header { padding: 16px; }
            .tos-header h2 { font-size: 0.95rem; line-height: 1.3; }
            .tos-body { padding: 16px; font-size: 0.85rem; line-height: 1.65; }
            .tos-body h3 { font-size: 0.92rem; margin-top: 14px; }
            .tos-footer { padding: 12px 16px; }
            .tos-btn { width: 100%; padding: 12px; font-size: 0.95rem; }
            
            .pass-hint { font-size: 0.7rem; line-height: 1.4; }
        }
        
        @media (prefers-reduced-motion: reduce) {
            .orb { animation: none; }
        }
        
        /* Cyber grid overlay for premium depth */
        .grid-overlay {
            position: absolute; inset: 0;
            background: none;
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
        }
        
        /* Premium auth card glow accent */
        .auth-card { position: relative; }
        .auth-card::before {
            content: ''; position: absolute; inset: -1px;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, rgba(0, 242, 255, 0.4), transparent 40%, transparent 60%, rgba(188, 19, 254, 0.4));
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            pointer-events: none; opacity: 0.6;
        }
        
        /* OTP input theme parity with login (was missing border-color highlight) */
        .otp-input { border-color: var(--accent-color) !important; }
        .otp-input:focus { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important; }
        .otp-input::placeholder { letter-spacing: 5px; opacity: 0.3; }
        
        /* Password strength meter */
        .pass-strength {
            display: flex; gap: 4px; margin-top: 8px; height: 4px;
        }
        .pass-strength-bar {
            flex: 1; background: var(--border-color); border-radius: 2px;
            transition: background 0.3s ease;
        }
        .pass-strength-bar.active-weak { background: #ef4444; }
        .pass-strength-bar.active-medium { background: #f59e0b; }
        .pass-strength-bar.active-strong { background: var(--buy-color, #10b981); }
        .pass-strength-label {
            font-size: 0.7rem; margin-top: 4px; display: block;
            color: var(--text-secondary); font-family: var(--font-family-monospace);
            letter-spacing: 1px;
        }
        
        /* Resend code link */
        .resend-link {
            display: inline-block; margin-top: 12px; font-size: 0.8rem;
            color: var(--text-secondary); text-decoration: none;
            transition: color 0.2s ease;
        }
        .resend-link:hover { color: var(--accent-color); }
        .resend-link i { margin-inline-end: 4px; }
        
        /* Screen-reader-only utility */
        .visually-hidden {
            position: absolute !important;
            width: 1px; height: 1px;
            padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0, 0, 0, 0);
            white-space: nowrap; border: 0;
        }

/* Former static style attributes, deduplicated by declaration digest. */
.csp-style-0035ac7154ec { color: var(--interactive-default); margin-inline-start: 6px; }
.csp-style-02ee4b516bec { background: linear-gradient(135deg, #10b981, #059669); }
.csp-style-16aa43b57797 { color: var(--sell-color); margin-inline-end: 4px; }
.csp-style-1702fe9e4891 { margin-inline-end: 8px; }
.csp-style-19579251011f { margin-top: 8px; font-size: 0.7rem; opacity: 0.5; }
.csp-style-21d17d614be1 { padding-inline-end: 60px; }
.csp-style-2654e48d5b83 { margin-inline-end: 6px; opacity: 0.7; }
.csp-style-3a6257bdb338 { color: var(--text-primary); font-family: var(--font-family-monospace); }
.csp-style-3f1fe3eca2e6 { margin-top:20px; color: var(--sell-color); font-weight:bold; }
.csp-style-4fa00029d5b1 { position: relative; }
.csp-style-5bd0bfbe260c { margin-inline-end: 4px; opacity: 0.6; }
.csp-style-6e22c58a7a6a { display: none; }
.csp-style-6fb4ce28507a { min-width: 44px; min-height: 44px; background: transparent; border: none; cursor: pointer; color: var(--text-secondary); font-size: 1.2rem; padding: 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.csp-style-942b190eb26f { margin-inline-end: 6px; }
.csp-style-a83477b4af89 { color: var(--accent-color); margin-inline-end: 6px; }
.csp-style-af9d89b200e4 { margin-inline-start: 8px; }
.csp-style-b5f68d1e5b27 { position: absolute; inset-inline-end: 8px; inset-block-start: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; background: transparent; border: none; cursor: pointer; color: var(--text-secondary); padding: 6px; display: inline-flex; align-items: center; justify-content: center; }
.csp-style-b5f68d1e5b27:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.csp-style-b94ad19c3983 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 15px; line-height: 1.5; }
.csp-style-c9d423beb4fb { margin-inline-end: 4px; }
.csp-style-f2f98214d183 { color: var(--sell-color); margin-inline-end: 6px; }
.csp-style-f6279acc7326 { margin-bottom: 20px; }
.csp-style-fb5ec070f2bf { text-align: center; }
