
            :root {
                --primary: #2563eb;
                --primary-dark: #1e40af;
                --primary-light: #3b82f6;
                --error: #ef4444;
                --error-light: #fee2e2;
                --success: #22c55e;
                --success-light: #dcfce7;
                --border: #e5e7eb;
                --bg-input: #f9fafb;
                --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
                --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
                --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            }
            
            .c100tik-wrapper, .c100tik-wrapper * {
                box-sizing: border-box;
            }
            
            .c100tik-wrapper {
                max-width: 440px;
                margin: 40px auto;
                background: #fff;
                border-radius: 24px;
                box-shadow: var(--shadow-lg);
                overflow: hidden;
                direction: rtl;
            }
            
            .c100tik-top-header {
                background: linear-gradient(135deg, var(--primary), var(--primary-dark));
                color: #fff;
                padding: 24px 16px;
                text-align: center;
                position: relative;
                overflow: hidden;
            }
            
            .c100tik-top-header::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
                animation: pulse 3s ease-in-out infinite;
            }
            
            @keyframes pulse {
                0%, 100% { transform: scale(1); opacity: 0.5; }
                50% { transform: scale(1.1); opacity: 0.8; }
            }
            
            .c100tik-site-name {
                font-size: 1.3em;
                font-weight: 800;
                margin-bottom: 6px;
                position: relative;
                z-index: 1;
            }
            
            .c100tik-page-title {
                font-size: 0.85em;
                opacity: 0.95;
                font-weight: 500;
                position: relative;
                z-index: 1;
            }
            
            .c100tik-tabs {
                display: flex;
                border-bottom: 1px solid var(--border);
                background: #fff;
            }
            
            .c100tik-tab {
                flex: 1;
                padding: 14px;
                cursor: pointer;
                background: #fff;
                border: none;
                color: #6b7280;
                font-weight: 700;
                transition: all 0.3s ease;
                border-bottom: 3px solid transparent;
                font-size: 0.95em;
                position: relative;
            }
            
            .c100tik-tab.active {
                color: var(--primary);
                background: linear-gradient(to bottom, #fff, #f0f9ff);
                border-bottom-color: var(--primary);
            }
            
            .c100tik-content {
                padding: 28px 24px;
                background: #fff;
            }
            
            .c100tik-form {
                display: none;
                animation: fadeIn 0.3s ease;
            }
            
            .c100tik-form.active {
                display: block;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; transform: translateY(10px); }
                to { opacity: 1; transform: translateY(0); }
            }
            
            .c100tik-group {
                margin-bottom: 18px;
                position: relative;
            }
            
            .c100tik-group label {
                display: block;
                margin-bottom: 6px;
                font-size: 0.82em;
                font-weight: 700;
                color: #374151;
            }
            
            .c100tik-input-wrapper {
                position: relative;
            }
            
            .c100tik-group input:not(.otp-input) {
                width: 100%;
                padding: 14px 14px !important;
                padding-left: 44px !important;
                border: 2px solid var(--border);
                border-radius: 12px;
                background: var(--bg-input);
                transition: all 0.2s ease;
                font-size: 15px;
                color: #1f2937;
                min-height: 48px !important;
                height: auto !important;
            }
            
            .c100tik-group input:not(.otp-input):focus {
                border-color: var(--primary);
                background: #fff;
                outline: none;
                box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
            }
            
            .c100tik-group.has-error input:not(.otp-input) {
                border-color: var(--error);
                background: var(--error-light);
            }
            
            .c100tik-toggle-pass {
                position: absolute;
                left: 14px;
                top: 50%;
                transform: translateY(-50%);
                cursor: pointer;
                color: #9ca3af;
                z-index: 10;
                font-size: 17px;
            }
            
            .c100tik-toggle-pass:hover {
                color: var(--primary);
            }
            
            .password-meter {
                height: 4px;
                background: #e5e7eb;
                margin-top: 8px;
                border-radius: 4px;
                overflow: hidden;
            }
            
            .password-meter-bar {
                height: 100%;
                width: 0;
                transition: width 0.3s ease;
                border-radius: 4px;
            }
            
            .pass-hint {
                font-size: 0.7em;
                margin-top: 5px;
                color: #6b7280;
            }
            
            .c100tik-error-text {
                color: var(--error);
                font-size: 0.75em;
                margin-top: 5px;
                display: none;
                font-weight: 500;
            }
            
            .c100tik-severe-warning {
                color: #991b1b !important;
                background: #fee2e2;
                padding: 8px;
                border-radius: 8px;
                border-right: 3px solid var(--error);
                margin-top: 6px;
                font-size: 0.8em !important;
            }
            
            .otp-loading {
                text-align: center;
                margin-top: 14px;
                display: none;
            }
            
            .otp-loading .spinner {
                display: inline-block;
                width: 22px;
                height: 22px;
                border: 3px solid #e5e7eb;
                border-top-color: var(--primary);
                border-radius: 50%;
                animation: spin 0.6s linear infinite;
            }
            
            @keyframes spin {
                to { transform: rotate(360deg); }
            }
            
            .c100tik-btn {
                width: 100%;
                padding: 14px 20px !important;
                background: linear-gradient(135deg, var(--primary), var(--primary-dark));
                color: #fff;
                border: none;
                border-radius: 12px;
                font-weight: 700;
                cursor: pointer;
                transition: all 0.3s ease;
                margin-top: 14px;
                font-size: 15px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                min-height: 48px !important;
            }
            
            .c100tik-btn:hover {
                transform: translateY(-2px);
                box-shadow: var(--shadow-md);
            }
            
            .c100tik-btn:disabled {
                opacity: 0.7;
                cursor: not-allowed;
                transform: none;
            }
            
            .c100tik-links {
                text-align: center;
                margin-top: 18px;
                font-size: 0.8em;
                font-weight: 500;
            }
            
            .c100tik-links a {
                color: var(--primary);
                cursor: pointer;
                text-decoration: none;
            }
            
            .c100tik-links a:hover {
                text-decoration: underline;
            }
            
            .c100tik-global-msg {
                padding: 12px;
                border-radius: 12px;
                margin-bottom: 20px;
                text-align: center;
                font-size: 0.85em;
                display: none;
                font-weight: 600;
            }
            
            .c100tik-global-msg.error {
                background: var(--error-light);
                color: #991b1b;
                border-right: 4px solid var(--error);
            }
            
            .c100tik-global-msg.success {
                background: var(--success-light);
                color: #166534;
                border-right: 4px solid var(--success);
            }
            
            .c100tik-global-msg.info {
                background: #e0f2fe;
                color: #075985;
                border-right: 4px solid #0ea5e9;
            }
            
            .c100tik-footer-link {
                font-size: 10px;
                color: #9ca3af;
                text-align: center;
                padding: 14px 16px;
                background: #f9fafb;
                border-top: 1px solid var(--border);
            }
            
            .c100tik-footer-link a {
                color: inherit;
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: 6px;
            }
            
            .c100tik-footer-link a:hover {
                color: var(--primary);
            }
            
            .spinner {
                display: inline-block;
                width: 16px;
                height: 16px;
                border: 2px solid #fff;
                border-top-color: transparent;
                border-radius: 50%;
                animation: spin 0.6s linear infinite;
            }
            
            @media (min-width: 768px) {
                .c100tik-wrapper {
                    max-width: 440px;
                    margin: 40px auto;
                }
            }
            
            @media (max-width: 767px) {
                .c100tik-wrapper {
                    max-width: 440px;
                    margin: 30px 20px;
                    width: calc(100% - 40px);
                }
                
                .c100tik-wrapper .c100tik-group input:not(.otp-input) {
                    padding: 12px 12px !important;
                    padding-left: 40px !important;
                    min-height: 44px !important;
                    height: auto !important;
                    font-size: 14px !important;
                }
                
                .c100tik-wrapper .c100tik-btn {
                    padding: 12px 16px !important;
                    min-height: 44px !important;
                    font-size: 14px !important;
                }
                
                .c100tik-wrapper .c100tik-content {
                    padding: 22px 18px !important;
                }
                
                .c100tik-wrapper .c100tik-top-header {
                    padding: 20px 14px !important;
                }
                
                .c100tik-wrapper .c100tik-site-name {
                    font-size: 1.2em !important;
                }
            }
            
            @media (max-width: 480px) {
                .c100tik-wrapper {
                    max-width: 440px;
                    margin: 20px 15px;
                    width: calc(100% - 30px);
                }
                
                .c100tik-wrapper .c100tik-group input:not(.otp-input) {
                    padding: 10px 10px !important;
                    padding-left: 36px !important;
                    min-height: 40px !important;
                    height: auto !important;
                    font-size: 13px !important;
                }
                
                .c100tik-wrapper .c100tik-btn {
                    padding: 10px 14px !important;
                    min-height: 40px !important;
                    font-size: 13px !important;
                }
                
                .c100tik-wrapper .c100tik-content {
                    padding: 18px 14px !important;
                }
                
                .c100tik-wrapper .c100tik-top-header {
                    padding: 16px 12px !important;
                }
                
                .c100tik-wrapper .c100tik-site-name {
                    font-size: 1.1em !important;
                }
                
                .c100tik-wrapper .c100tik-page-title {
                    font-size: 0.8em !important;
                }
                
                .c100tik-wrapper .c100tik-tab {
                    padding: 12px !important;
                    font-size: 0.85em !important;
                }
            }

/* v0.96.9 - isolate real legacy auth page; not a modal */
.c100tik-auth-legacy-page{width:100%;min-height:calc(100vh - 150px);padding:1px 0 96px;direction:rtl}
.c100tik-auth-legacy-page .c100tik-wrapper{color-scheme:light;background:#fff!important;color:#111827!important}
.c100tik-auth-legacy-page .c100tik-top-header{background:linear-gradient(135deg,#2563eb,#1e40af)!important;color:#fff!important}
.c100tik-auth-legacy-page .c100tik-tabs,
.c100tik-auth-legacy-page .c100tik-content,
.c100tik-auth-legacy-page .c100tik-footer-link{background:#fff!important}
@media (max-width:767px){
  .c100tik-auth-legacy-page .c100tik-wrapper,
  html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-wrapper{
    max-width:440px!important;width:calc(100% - 40px)!important;margin:30px auto!important
  }
}
@media (max-width:480px){
  .c100tik-auth-legacy-page .c100tik-wrapper,
  html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-wrapper{
    max-width:440px!important;width:calc(100% - 30px)!important;margin:20px auto!important
  }
}

/* ============================================================
   v0.97.4.3 — Auth + Privacy dark-mode readability
   Fixes Chrome/Edge autofill, dark inputs, footer privacy link,
   and the /{locale}/privacy-policy page without changing light mode.
   ============================================================ */

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-wrapper {
    color-scheme: dark !important;
    background: #0f1a2b !important;
    color: #eaf1fb !important;
    border: 1px solid #2a3b55 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .38) !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-tabs,
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-content,
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-footer-link {
    background: #0f1a2b !important;
    color: #dbe7f6 !important;
    border-color: #2a3b55 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-tab {
    background: #101c2e !important;
    color: #aebed2 !important;
    border-color: #2a3b55 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-tab.active {
    background: linear-gradient(180deg, #13223a 0%, #0f1a2b 100%) !important;
    color: #72a7ff !important;
    border-bottom-color: #3b82f6 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-group label,
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-form p,
html[data-theme="dark"] .c100tik-auth-legacy-page .pass-hint,
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-loading,
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-status {
    color: #cbd7e7 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-group input:not(.otp-input),
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input {
    color-scheme: dark !important;
    background: #111f33 !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    caret-color: #ffffff !important;
    border-color: #3a4c66 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-group input:not(.otp-input)::placeholder,
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input::placeholder {
    color: #8fa2bb !important;
    -webkit-text-fill-color: #8fa2bb !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-group input:not(.otp-input):focus,
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input:focus {
    background: #14253d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #5b8def !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .18) !important;
    outline: none !important;
}

/* Browser autofill must not switch dark fields to yellow/white. */
html[data-theme="dark"] .c100tik-auth-legacy-page input:-webkit-autofill,
html[data-theme="dark"] .c100tik-auth-legacy-page input:-webkit-autofill:hover,
html[data-theme="dark"] .c100tik-auth-legacy-page input:-webkit-autofill:focus,
html[data-theme="dark"] .c100tik-auth-legacy-page input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #111f33 inset !important;
    box-shadow: 0 0 0 1000px #111f33 inset !important;
    border-color: #3a4c66 !important;
    transition: background-color 99999s ease-out 0s !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page input:autofill {
    color: #ffffff !important;
    background: #111f33 !important;
    border-color: #3a4c66 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-toggle-pass {
    color: #9eb1ca !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-toggle-pass:hover {
    color: #7eb0ff !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .password-meter {
    background: #2a3b55 !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-links a {
    color: #7eb0ff !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-footer-link {
    background: #0b1626 !important;
    color: #9fb0c7 !important;
    border-top: 1px solid #2a3b55 !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-footer-link a {
    color: #aabbd1 !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-footer-link a:hover,
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-footer-link a:focus-visible {
    color: #7eb0ff !important;
}

html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-global-msg.error {
    background: rgba(127, 29, 29, .34) !important;
    color: #fecaca !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-global-msg.success {
    background: rgba(20, 83, 45, .36) !important;
    color: #bbf7d0 !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-global-msg.info {
    background: rgba(7, 89, 133, .34) !important;
    color: #bae6fd !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .c100tik-severe-warning {
    background: rgba(127, 29, 29, .34) !important;
    color: #fecaca !important;
    border-color: #ef4444 !important;
}

/* Privacy Policy page: route-scoped so no other content page is changed. */
html[data-theme="dark"] body.tik-privacy-policy-page {
    background: #07111f !important;
    color: #dbe7f5 !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main {
    background: #07111f !important;
    color: #dbe7f5 !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main > section,
html[data-theme="dark"] body.tik-privacy-policy-page main > article,
html[data-theme="dark"] body.tik-privacy-policy-page main [class*="privacy"],
html[data-theme="dark"] body.tik-privacy-policy-page main [class*="policy"],
html[data-theme="dark"] body.tik-privacy-policy-page main [class*="content-page"],
html[data-theme="dark"] body.tik-privacy-policy-page main .rules-container-100tik {
    background-color: #0f1b2d !important;
    color: #dbe7f5 !important;
    border-color: #293b54 !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main h1,
html[data-theme="dark"] body.tik-privacy-policy-page main h2,
html[data-theme="dark"] body.tik-privacy-policy-page main h3,
html[data-theme="dark"] body.tik-privacy-policy-page main h4,
html[data-theme="dark"] body.tik-privacy-policy-page main strong,
html[data-theme="dark"] body.tik-privacy-policy-page main b {
    color: #f6f9fd !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main p,
html[data-theme="dark"] body.tik-privacy-policy-page main li,
html[data-theme="dark"] body.tik-privacy-policy-page main span {
    color: #c6d4e6 !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main a {
    color: #7eb0ff !important;
}
html[data-theme="dark"] body.tik-privacy-policy-page main a:hover,
html[data-theme="dark"] body.tik-privacy-policy-page main a:focus-visible {
    color: #a8c9ff !important;
}

html[data-theme="dark"] body.tik-privacy-policy-page main hr,
html[data-theme="dark"] body.tik-privacy-policy-page main table,
html[data-theme="dark"] body.tik-privacy-policy-page main th,
html[data-theme="dark"] body.tik-privacy-policy-page main td {
    border-color: #31445f !important;
}
html[data-theme="dark"] body.tik-privacy-policy-page main th {
    background: #16263d !important;
    color: #f2f6fb !important;
}
html[data-theme="dark"] body.tik-privacy-policy-page main td {
    background: #101d30 !important;
    color: #cbd8e8 !important;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] .c100tik-auth-legacy-page input:-webkit-autofill {
        transition: none !important;
    }
}

/* ======================================================================
   100Tik Auth OTP v0.97.4.6 — smart 5-box verification / Light + Dark
   ====================================================================== */
.c100tik-auth-legacy-page .otp-smart-form {
    --otp-blue: #2f63e9;
    --otp-blue-soft: rgba(47, 99, 233, .14);
    --otp-green: #16a368;
    --otp-green-soft: rgba(22, 163, 104, .14);
    --otp-red: #e04455;
    --otp-red-soft: rgba(224, 68, 85, .14);
}

.c100tik-auth-legacy-page .otp-mobile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 15px;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f6ff 100%);
    color: #15243b;
}

.c100tik-auth-legacy-page .otp-mobile-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--otp-blue-soft);
    color: var(--otp-blue);
    font-size: 20px;
}

.c100tik-auth-legacy-page .otp-mobile-info > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c100tik-auth-legacy-page .otp-mobile-info strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.c100tik-auth-legacy-page .otp-mobile-info small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.75;
}

.c100tik-auth-legacy-page .otp-stage {
    position: relative;
    padding: 8px 0 2px;
}

.c100tik-auth-legacy-page .otp-container {
    direction: ltr !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 8px auto 14px !important;
}

.c100tik-auth-legacy-page .otp-input {
    box-sizing: border-box !important;
    width: 54px !important;
    height: 58px !important;
    min-width: 0 !important;
    flex: 0 0 54px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid #cbd7e6 !important;
    border-radius: 15px !important;
    outline: none !important;
    background: #f8fbff !important;
    color: #14233a !important;
    -webkit-text-fill-color: #14233a !important;
    caret-color: var(--otp-blue) !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease, color .18s ease !important;
}

.c100tik-auth-legacy-page .otp-input:hover {
    border-color: #9eb3cf !important;
}

.c100tik-auth-legacy-page .otp-input:focus {
    border-color: var(--otp-blue) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px var(--otp-blue-soft), 0 8px 20px rgba(47, 99, 233, .10) !important;
    transform: translateY(-2px) scale(1.025) !important;
}

.c100tik-auth-legacy-page .otp-input.is-filled {
    border-color: #8fa8ca !important;
    background: #f3f7fd !important;
}

.c100tik-auth-legacy-page .otp-stage.is-checking .otp-input {
    border-color: var(--otp-blue) !important;
    background: #eef4ff !important;
    box-shadow: 0 0 0 3px var(--otp-blue-soft) !important;
    animation: tikOtpPulse .9s ease-in-out infinite alternate;
}

.c100tik-auth-legacy-page .otp-stage.is-success .otp-input {
    border-color: var(--otp-green) !important;
    background: #eafaf3 !important;
    color: #087647 !important;
    -webkit-text-fill-color: #087647 !important;
    box-shadow: 0 0 0 4px var(--otp-green-soft), 0 10px 24px rgba(22, 163, 104, .12) !important;
    animation: tikOtpSuccess .45s cubic-bezier(.2,.8,.2,1) both;
}

.c100tik-auth-legacy-page .otp-stage.is-error .otp-input,
.c100tik-auth-legacy-page .otp-stage.is-expired .otp-input {
    border-color: var(--otp-red) !important;
    background: #fff1f3 !important;
    color: #9f2030 !important;
    -webkit-text-fill-color: #9f2030 !important;
    box-shadow: 0 0 0 4px var(--otp-red-soft) !important;
}

.c100tik-auth-legacy-page .otp-stage.is-error .otp-container {
    animation: tikOtpShake .38s ease both;
}

.c100tik-auth-legacy-page .otp-input:disabled {
    opacity: 1 !important;
    cursor: default !important;
}

.c100tik-auth-legacy-page .otp-inline-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    margin: 4px 0 2px;
    color: #52657d;
    font-size: 11px;
    font-weight: 700;
}

.c100tik-auth-legacy-page .otp-inline-loader[hidden] { display: none !important; }

.c100tik-auth-legacy-page .otp-inline-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--otp-blue);
    animation: tikOtpDots .85s ease-in-out infinite;
}
.c100tik-auth-legacy-page .otp-inline-loader span:nth-child(2) { animation-delay: .12s; }
.c100tik-auth-legacy-page .otp-inline-loader span:nth-child(3) { animation-delay: .24s; margin-inline-end: 4px; }

.c100tik-auth-legacy-page .otp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 9px 0 4px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
    line-height: 1.8;
}
.c100tik-auth-legacy-page .otp-status[hidden] { display: none !important; }
.c100tik-auth-legacy-page .otp-status.success { color: #087647 !important; background: #eafaf3; border: 1px solid #b8ead3; }
.c100tik-auth-legacy-page .otp-status.error { color: #a32031 !important; background: #fff0f2; border: 1px solid #f4c4cb; }
.c100tik-auth-legacy-page .otp-status.info { color: #214fba !important; background: #edf3ff; border: 1px solid #c9d8fa; }

.c100tik-auth-legacy-page .otp-timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    margin: 16px 0 10px;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #f8fbff;
}

.c100tik-auth-legacy-page .otp-timer-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #60728a;
    font-size: 11px;
    font-weight: 650;
}

.c100tik-auth-legacy-page .otp-timer-card strong {
    min-width: 62px;
    direction: ltr;
    color: #264fae;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.c100tik-auth-legacy-page .otp-timer-card strong.is-low {
    color: #d97706;
    animation: tikOtpLowTime 1s ease-in-out infinite;
}

.c100tik-auth-legacy-page .otp-resend {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.c100tik-auth-legacy-page .otp-resend-btn {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #d5dfed;
    border-radius: 12px;
    background: #f6f9fd;
    color: #718197;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .18s ease;
}

.c100tik-auth-legacy-page .otp-resend-btn:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.c100tik-auth-legacy-page .otp-resend-btn.is-ready:not(:disabled) {
    border-color: #b8c9e7;
    background: #eef4ff;
    color: #2456c7;
    cursor: pointer;
}

.c100tik-auth-legacy-page .otp-resend-btn.is-ready:not(:disabled):hover {
    border-color: var(--otp-blue);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(47, 99, 233, .12);
}

@keyframes tikOtpPulse {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}
@keyframes tikOtpSuccess {
    0% { transform: scale(.94); }
    60% { transform: scale(1.07); }
    100% { transform: scale(1); }
}
@keyframes tikOtpShake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
@keyframes tikOtpDots {
    0%,100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}
@keyframes tikOtpLowTime {
    0%,100% { opacity: 1; }
    50% { opacity: .6; }
}

/* Dark-mode OTP surfaces */
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-mobile-info {
    background: linear-gradient(135deg, #13233a 0%, #101d31 100%) !important;
    border-color: #2f425d !important;
    color: #edf5ff !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-mobile-info small { color: #9fb2ca !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-mobile-icon { background: rgba(79, 132, 255, .16) !important; color: #78a5ff !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input {
    background: #122036 !important;
    border-color: #3a4d69 !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    caret-color: #89afff !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input:hover { border-color: #59708f !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input:focus {
    background: #162942 !important;
    border-color: #6592f6 !important;
    box-shadow: 0 0 0 4px rgba(76, 127, 239, .18), 0 10px 22px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-input.is-filled { background: #17283f !important; border-color: #506987 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-stage.is-checking .otp-input { background: #142846 !important; border-color: #6592f6 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-stage.is-success .otp-input {
    background: #10352a !important;
    border-color: #38c98a !important;
    color: #bdf7da !important;
    -webkit-text-fill-color: #bdf7da !important;
    box-shadow: 0 0 0 4px rgba(56,201,138,.14) !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-stage.is-error .otp-input,
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-stage.is-expired .otp-input {
    background: #3a1a24 !important;
    border-color: #ef6373 !important;
    color: #ffd8dd !important;
    -webkit-text-fill-color: #ffd8dd !important;
    box-shadow: 0 0 0 4px rgba(239,99,115,.13) !important;
}
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-inline-loader { color: #a9bad0 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-status.success { color: #baf2d5 !important; background: #103327 !important; border-color: #265f49 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-status.error { color: #ffc6ce !important; background: #371923 !important; border-color: #6d3440 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-status.info { color: #c7d9ff !important; background: #152847 !important; border-color: #35558a !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-timer-card { background: #101e32 !important; border-color: #2f425d !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-timer-card span { color: #9fb2ca !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-timer-card strong { color: #8db0ff !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-timer-card strong.is-low { color: #f8bd63 !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-resend-btn { background: #101e32 !important; border-color: #334864 !important; color: #8fa4bf !important; }
html[data-theme="dark"] .c100tik-auth-legacy-page .otp-resend-btn.is-ready:not(:disabled) { background: #162847 !important; border-color: #496fae !important; color: #9bbcff !important; }

@media (max-width: 480px) {
    .c100tik-auth-legacy-page .otp-container { gap: 7px !important; }
    .c100tik-auth-legacy-page .otp-input {
        width: 46px !important;
        height: 50px !important;
        flex-basis: 46px !important;
        border-radius: 13px !important;
        font-size: 22px !important;
    }
    .c100tik-auth-legacy-page .otp-mobile-info { padding: 12px; gap: 10px; }
    .c100tik-auth-legacy-page .otp-mobile-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 12px; }
    .c100tik-auth-legacy-page .otp-timer-card { flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
    .c100tik-auth-legacy-page .otp-timer-card span { justify-content: center; }
}

@media (max-width: 360px) {
    .c100tik-auth-legacy-page .otp-container { gap: 5px !important; }
    .c100tik-auth-legacy-page .otp-input {
        width: 41px !important;
        height: 46px !important;
        flex-basis: 41px !important;
        font-size: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c100tik-auth-legacy-page .otp-input,
    .c100tik-auth-legacy-page .otp-container,
    .c100tik-auth-legacy-page .otp-inline-loader span,
    .c100tik-auth-legacy-page .otp-timer-card strong { animation: none !important; transition: none !important; }
}
