/* ============================================================
   style_new.css — Dark theme overlay
   Load order: after style_b.css and style_bb.css (wins specificity)
   ============================================================ */

/* ─── 0. OVERRIDE CSS VARIABLES (neutralize style_b.css light theme) ── */
:root,
body.white,
body.alt {
    --bg-color: transparent;
    --text-color: #ffffff;
    --btn-bg: #00ff88;
    --btn-bg-faqs: #00ff88;
    --btn-text: #0f0f23;
    --btn-text-faqs: rgba(255, 255, 255, 0.9);
    --btn-bg-disabled: rgba(255, 255, 255, 0.15);
    --btn-text-disabled: rgba(255, 255, 255, 0.3);
    --input-border: rgba(255, 255, 255, 0.1);
    --alt-input-border: rgba(255, 255, 255, 0.1);
    --alt-input-border-70: rgba(255, 255, 255, 0.07);
    --input-text: #ffffff;
    --input-icon: rgba(255, 255, 255, 0.5);
    --input-icon-grey: rgba(255, 255, 255, 0.3);
    --input-label: #00ff88;
    --alt-input-label: #00ff88;
    --input-icon-focus: #00ff88;
    --input-label-focus: #00ff88;
    --alt-input-icon-focus: #00ff88;
    --alt-input-label-focus: #00ff88;
    --input-error: #ff4444;
    --progress-bg: rgba(255, 255, 255, 0.1);
    --progress-filled: #00ff88;
    --alt-progress-filled: #00ff88;
    --alt-proggress-text: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(15, 15, 35, 0.95);
    --nav-close: #ffffff;
    --nav-text: #ffffff;
    --nav-link: #00ff88;
    --focus-bg: transparent;
}

/* ─── 1. RESET + BASE ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: auto;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto !important;
}

/* ─── 2. LAYOUT ─────────────────────────────────────────────── */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: width 0.3s ease;
}

.container {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
.service-name {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 34px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* ─── 4. STEP INDICATOR ─────────────────────────────────────── */
.step-indicator {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.step-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.new-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #00ff88;
}

.step-dot.completed {
    background: rgba(0, 255, 136, 0.5);
}

/* ─── 5. BACK BUTTON ────────────────────────────────────────── */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-top: 5px;
    transition: all 0.2s ease;
}

/* Force back-button row to be left-aligned despite body text-align:center */
.back-button-row {
    text-align: left;
}

.back-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

/* ─── 6. ICON CONTAINERS ────────────────────────────────────── */
.header {
    text-align: center;
    margin-bottom: 15px;
}

.icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

.icon-container svg {
    width: 35px;
    height: 35px;
    fill: #0f0f23;
}

.success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.4);
    animation: success-bounce 0.6s ease-out;
    position: relative;
}

@keyframes success-bounce {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-container::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    animation: ripple-anim 2s ease-out infinite;
}

@keyframes ripple-anim {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-icon-container svg {
    width: 50px;
    height: 50px;
    fill: #0f0f23;
}

/* ─── 7. MSISDN FORM ────────────────────────────────────────── */
.form-section {
    margin-bottom: 30px;
}

.input-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
    text-align: left;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-prefix {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    pointer-events: none;
    z-index: 2;
}

.phone-input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    font-size: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.phone-input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.phone-input.has-error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.1);
}

.input-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.input-helper.error   { color: #ff4444; }
.input-helper.success { color: #00ff88; }

.phone-display {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* ─── 8. PIN FORM ───────────────────────────────────────────── */
[data-pin-check] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-section {
    margin-bottom: 10px;
}

.pin-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.pin-input {
    width: 56px;
    height: 64px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
    caret-color: #00ff88;
}

.pin-input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
    transform: scale(1.05);
}

.pin-input.filled {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.pin-input.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-10px); }
    75%       { transform: translateX(10px); }
}

.helper-text {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.helper-text.error   { color: #ff4444; }
.helper-text.success { color: #00ff88; }

/* ─── 9. CTA BUTTONS ────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* Fixed height: larger font must not grow the control (only the glyphs scale inside). */
.cta-button {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    transition: all 0.2s ease;
    opacity: 0.5;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
    margin-top: 5px;
}

.cta-button span {
    color: #ffffff;
    font-size: inherit;
    line-height: inherit;
}

.cta-button.active,
.cta-button:not([disabled]) {
    opacity: 1;
    pointer-events: all;
}

.cta-button.active:active,
.cta-button:not([disabled]):active {
    transform: scale(0.98);
    animation: none;
}

.primary-cta {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    color: #0f0f23;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    transition: all 0.2s ease;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.primary-cta:active {
    transform: scale(0.98);
    animation: none;
}

.secondary-cta {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-cta:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

/* ─── 10. FEATURES ──────────────────────────────────────────── */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 10px;
    padding-top: 10px;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-pill::before {
    content: '✓';
    color: #00ff88;
    font-weight: bold;
}

.features-section {
    margin-bottom: 30px;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ─── 11. WELCOME / SUBSCRIPTION CARD ───────────────────────── */
.success-header {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 30px;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.status-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.detail-label              { color: rgba(255, 255, 255, 0.6); }
.detail-value              { color: #ffffff; font-weight: 600; }
.detail-value.highlight    { color: #00ff88; }

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff88;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(300px) rotate(720deg); opacity: 0; }
}

/* ─── 12. FAQ ACCORDION (OLD INPUT STRUCTURE, NEW LOOK) ──────── */

/* Reset #faqContainer row-reverse layout from style_b.css */
#faqContainer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 30px;
}

#faqContainer.full_hide {
    display: none !important;
}

#faqContainer > img {
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    align-self: center;
}

#faq {
    width: 100% !important;
    max-width: none !important;
}

#faq h2 {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff !important;
    text-align: left;
}

#faq .accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: static;
}

#faq .accordion > div {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#faq .accordion > div > input[type="checkbox"] {
    display: none;
}

#faq .accordion > div > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Reset style_b.css overrides */
    background: none;
    border: none;
    border-radius: 0;
    text-align: left;
    position: static;
    z-index: auto;
}

#faq .accordion > div > label:hover {
    background: rgba(255, 255, 255, 0.03);
}

#faq .accordion > div > label::after {
    content: '▼' !important;
    color: #00ff88;
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* Reset style_b.css absolute positioning */
    position: static;
    width: auto;
    height: auto;
    right: auto;
    top: auto;
    transform: none;
}

#faq .accordion > div > article {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    /* Reset style_b.css overrides */
    background: none;
    border: none;
    border-radius: 0;
}

#faq .accordion > div > article p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

#faq .accordion > div > article p strong {
    color: #00ff88;
    font-weight: 600;
}

#faq .accordion > div > input[type="checkbox"]:checked + label {
    background: none;
    border-radius: 0;
}

#faq .accordion > div > input[type="checkbox"]:checked + label::after {
    transform: rotate(180deg);
}

#faq .accordion > div > input[type="checkbox"]:checked ~ article {
    max-height: 500px;
    padding: 0 16px 16px 16px;
    border-top: none;
}

#faq .accordion > div:has(input:checked) {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

/* ─── 13. COMPLIANCE / LEGAL TEXT ───────────────────────────── */
.compliance {
    margin-top: 30px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    text-align: justify;
}

.compliance a { color: inherit; text-decoration: underline; }

.legal-box {
    margin-top: 15px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    text-align: justify;
}

.legal-box a { color: inherit; text-decoration: underline; }

/* Footer legal text — justified on mobile, centered container */
.footer [data-trans="footer"] {
    display: block;
    text-align: justify;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
}

/* ─── 14. LOADING / SPINNERS ────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.active { display: flex; }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 136, 0.1);
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Trust badge */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    fill: #00ff88;
}

/* SMS preview */
.sms-preview {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00ff88;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ─── 15. UTILITY CLASSES ───────────────────────────────────── */
.d-none    { display: none !important; }
.d_none    { display: none !important; }
.full_hide { display: none !important; }
.v-hidden  { visibility: hidden; }

/* Language switcher — always centered */
.langs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* padding: 6px; */
    /* border-radius: 8px; */
    /* background: rgba(19, 25, 45, 0.9); */
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    direction: ltr;
    margin: 20px auto 0;
    width: fit-content;
}

.lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Active: soft brand green — visible but not a heavy solid fill */
.lang.active {
    color: #eafff4;
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.38);
    box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.1) inset, 0 0 16px rgba(0, 255, 136, 0.1);
}

/* ─── 16. RTL OVERRIDES ──────────────────────────────────────── */
body.rtl-text {
    direction: rtl;
    text-align: right;
}

body.rtl-text .langs {
    text-align: center;
}

body.rtl-text .input-prefix {
    left: 20px;
    right: auto;
}

body.rtl-text .phone-input {
    padding: 18px 20px 18px 60px;
    direction: ltr;
    text-align: left;
}

body.rtl-text #pinPhoneDisplay {
    display: block !important;
    text-align: center;
    direction: ltr;
}

body.rtl-text .pin-inputs {
    direction: ltr;
}

body.rtl-text .pin-input {
    direction: ltr !important;
    text-align: center !important;
}

body.rtl-text .sms-preview {
    border-left: none;
    border-right: 3px solid #00ff88;
}

body.rtl-text #faq h2 {
    text-align: right;
    direction: rtl;
}

body.rtl-text #faq .accordion > div > label {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl-text #faq .accordion > div > article,
body.rtl-text #faq .accordion > div > article p {
    text-align: right;
    direction: rtl;
}

/* ─── 17. EXISTING COMPAT ───────────────────────────────────── */

/* Dark fraud-loader (overrides inline style from document.write) */
#fraud-loader {
    background: rgba(15, 15, 35, 0.98) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

/* API loading div — main_confirm.js calls loading(true/false) */
.loading.show {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 35, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

/* SMS overlay */
.sms-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 35, 0.95);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
}

.sms-overlay.d-none { display: none !important; }

.sms-overlay-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
}

.sms-overlay #btn-retry {
    color: #00ff88;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Operators */
.operators-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.operator-option {
    flex: 1;
    max-width: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.operator-option img {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.operator-option.active,
.operator-option:active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.other-option {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
}

/* SMS flow (focused step only) */
form[data-sms-send].focus_form {
    text-align: left;
}

form[data-sms-send].focus_form .sms-header {
    margin-bottom: 6px;
}

form[data-sms-send].focus_form .icon-container {
    width: 86px;
    height: 86px;
    margin: 0 auto 14px;
}

form[data-sms-send].focus_form #sms_flow {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    counter-reset: sms-steps;
}

form[data-sms-send].focus_form #sms_flow li {
    counter-increment: sms-steps;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

form[data-sms-send].focus_form #sms_flow li:last-child {
    margin-bottom: 0;
}

form[data-sms-send].focus_form #sms_flow li::before {
    content: counter(sms-steps) ".";
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

form[data-sms-send].focus_form #sms_flow li span {
    display: none;
}

form[data-sms-send].focus_form .sms-reply-caption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

/* Keep caption aligned with SMS instructions even if focus_form toggles */
form[data-sms-send] .sms-reply-caption {
    display: block;
    width: 100%;
    margin-top: 8px !important;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35;
    text-align: left !important;
}

form[data-sms-send].focus_form .sms-reply-code {
    margin-top: 8px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: center;
}

form[data-sms-send].focus_form .sms-reply-to {
    margin-top: -2px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

form[data-sms-send].focus_form .sms-reply-number {
    margin-top: -2px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

form[data-sms-send].focus_form .cta-button {
    margin-top: 14px;
    animation: none;
}

/* old-steps — hidden but present for main_confirm.js .step tracking */
.old-steps {
    display: none !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer a { color: inherit; text-decoration: underline; }

/* data-trans footer inside forms */
[data-welcome] [data-trans="footer"],
[data-pin-check] [data-trans="footer"],
[data-pin-req] [data-trans="footer"] {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-top: 15px;
    text-align: justify;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

/* ─── Override old absolute-positioned field-alert for new layout ── */
[data-pin-check] .field-alert,
[data-pin-req] .field-alert {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    display: none;
    text-align: center;
    direction: ltr;
    color: #ff4444;
    font-size: 13px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border-radius: 0;
    white-space: normal;
}

body.rtl-text [data-pin-req] .field-alert {
    direction: rtl;
    text-align: center;
}

[data-pin-check] .field-alert:after,
[data-pin-req] .field-alert:after {
    display: none;
}

[data-pin-check] .field-alert.active,
[data-pin-req] .field-alert.active {
    display: block;
    margin-bottom: 5px;
}

/* ─── 18. DESKTOP: legais em largura total ───────────────────── */
@media (min-width: 500px) {
    .footer {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding-left: 5vw;
        padding-right: 5vw;
        box-sizing: border-box;
    }

    body.rtl-text .footer {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    .footer [data-trans="footer"] {
        text-align: justify;
    }
}

/* ─── 19. RTL LAYOUT GUARD ──────────────────────────────────── */
/* Ensure container is always centered — some browsers fail to
   honour margin:auto on block elements when direction:rtl is
   set on the parent */
body.rtl-text .container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Re-apply RTL text alignment on the content inside */
body.rtl-text .footer [data-trans="footer"],
body.rtl-text #faq h2 {
    text-align: right;
}
