@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap");

/* ============================================================
   BANKAK ONLINE — styles.css
   Shared stylesheet for all pages.
   Reference design: light gray bg, white cards, #C8232C red,
   #E5B01E gold, larger header logo (60/40 split), soft shadows.
   ============================================================ */

/* ============================================================
   1. RESET + BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid #e2e8f0;
}
html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', sans-serif;
    line-height: 1.5;
    font-size: 18px;
}
body {
    min-height: 100%;
    background-color: #F5F5F5;
    color: #020617;
    font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img, svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
button {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    text-transform: none;
}
input, select, textarea {
    background-color: transparent;
    border: none;
    outline: none;
}
input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}
a { color: inherit; text-decoration: inherit; }

/* ============================================================
   2. PAGE WRAPPER
   ============================================================ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   3. SITE HEADER — red 60% / gold 40%, universal compact size
   ============================================================ */
.site-header {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid #c79f0f;
    background-color: #E5B01E;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.header-inner {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: clamp(80px, 12vw, 120px);
}
.header-red {
    position: relative;
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 260px;
    overflow: hidden;
    background-color: #C8232C;
    display: flex;
    align-items: center;
    padding: 0 clamp(12px, 1.5vw, 30px);
}
.header-red-bg { position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.header-red-bg::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 82%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 18%),
        linear-gradient(135deg, #d62e2d 0%, #9B1B22 100%);
}
.header-red-bg::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    right: -12%;
    width: 44%;
    transform: skewX(-18deg);
    border-left: 8px solid rgba(220,184,43,0.6);
    background-color: rgba(155,27,34,0.25);
}
.header-red-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0) 32%,
        rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}
.header-logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
html[dir="rtl"] .header-logo { justify-content: flex-start; }
html[dir="ltr"] .header-logo { justify-content: flex-start; }
.header-logo img {
    width: clamp(130px, 16vw, 280px);
    height: auto;
    display: block;
}
.header-logo .logo-fallback {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 900;
    line-height: 1.1;
    display: none;
}
/* Shown by JS only when logo.svg fails to load */
.header-logo .logo-fallback.is-visible { display: block; }
/* Applied to the <img> when it fails to load, before the fallback appears */
.header-logo img.is-hidden { display: none; }
.logo-fallback .logo-fallback-en {
    font-size: 0.9rem;
    font-weight: 600;
}
.header-gold {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #E5B01E;
    padding: 0 clamp(12px, 1.5vw, 30px);
    min-width: 100px;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 1.8rem;
    padding: 0 0.6rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255,255,255,0.75);
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.15s;
}
.lang-toggle:hover { background-color: rgba(255,255,255,0.24); }
.lang-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 640px) {
    .lang-toggle {
        min-width: 2.4rem;
        height: 2.1rem;
        font-size: 0.78rem;
        padding: 0 0.8rem;
    }
}

/* ============================================================
   4. MAIN CONTENT WRAPPER
   ============================================================ */
.main-content {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 0.75rem 2.5rem;
}
@media (min-width: 640px) {
    .main-content { padding: 2rem 1.25rem 3rem; }
}
@media (min-width: 1024px) {
    .main-content { padding: 2.5rem 2rem 4rem; }
}

/* ============================================================
   5. CARD (generic white card)
   ============================================================ */
.card {
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 1.5rem;
    border: 1px solid #E8E8E8;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .card { border-radius: 1.75rem; padding: 2rem; }
}
@media (min-width: 1024px) {
    .card { border-radius: 2rem; padding: 2.5rem; }
}

/* ============================================================
   6. SITE FOOTER
   ============================================================ */
.site-footer {
    width: 100%;
    flex-shrink: 0;
    border-top: 3px solid #E5B01E;
    background-color: #eef0f1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.footer-inner {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: hidden;
    padding: 0.4rem 0.75rem;
    height: 72px;
}
@media (min-width: 640px) { .footer-inner { gap: 1rem; padding: 0.5rem 1.5rem; } }
@media (min-width: 768px) { .footer-inner { padding: 0.5rem 2.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 0.5rem 3.5rem; } }
.footer-copy {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e2a39;
}
@media (min-width: 640px) { .footer-copy { font-size: 1rem; } }
@media (min-width: 768px) { .footer-copy { font-size: 1.05rem; } }
.footer-copy .bold { font-weight: 700; }
.footer-copy .semibold { font-weight: 600; }
.footer-banner {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
/* Banner artwork is 976x229. It is pinned to ONE size (307x72) on every
   page and every breakpoint so all footers are identical. Do not add
   responsive sizing or aspect-ratio here — section 22 enforces this. */
.footer-banner img {
    width: 307px;
    height: 72px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* ============================================================
   7. LANGUAGE FADE
   ============================================================ */
.lang-fade { transition: opacity 0.15s ease; }
.lang-fade.is-switching { opacity: 0.4; }

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
}
@media (min-width: 640px) {
    .btn { min-height: 3.25rem; padding: 0.75rem 1.75rem; font-size: 1.05rem; }
}
.btn-primary {
    background: linear-gradient(180deg, #ef2029 0%, #C8232C 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200,35,44,0.25);
}
.btn-primary:hover { filter: brightness(1.03); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; filter: none; }
.btn-outline {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-outline:hover { background-color: #f8fafc; border-color: #94a3b8; }

/* ============================================================
   9. SPINNER
   ============================================================ */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-inline-start: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   10. FORM ERROR
   ============================================================ */
.form-error {
    display: none;
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.6rem;
    background-color: #fee2e2;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}
@media (min-width: 640px) { .form-error { font-size: 0.9rem; padding: 0.75rem 1rem; } }
.form-error.visible { display: block; }

/* ============================================================
   11. FORM INPUTS
   ============================================================ */
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
@media (min-width: 640px) {
    .field-label { font-size: 0.9rem; margin-bottom: 0.4rem; }
}
html[dir="rtl"] .field-label { text-align: right; }
html[dir="ltr"] .field-label { text-align: left; }

.field-input {
    width: 100%;
    min-height: 2.5rem;
    border-radius: 0.6rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
@media (min-width: 640px) {
    .field-input { min-height: 2.75rem; padding: 0.625rem 0.875rem; font-size: 0.95rem; }
}
.field-input::placeholder { color: #94a3b8; font-size: 0.85rem; }
.field-input:focus { border-color: #C8232C; box-shadow: 0 0 0 3px #f1c1c4; }
.field-input.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px #fecaca;
}
.field-input.is-valid {
    border-color: #16a34a;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px #bbf7d0;
}

/* ============================================================
   12. RADIO GROUP
   ============================================================ */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.4rem 0;
}
@media (min-width: 640px) {
    .radio-group { gap: 1rem 1.5rem; padding: 0.5rem 0; }
}
.radio-group.is-invalid {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem;
    border: 1px solid #dc2626;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px #fecaca;
}
.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
    user-select: none;
}
@media (min-width: 640px) {
    .radio-option { font-size: 0.92rem; gap: 0.5rem; }
}
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .radio-option input[type="radio"] { width: 1.05rem; height: 1.05rem; }
}
.radio-option input[type="radio"]:checked { border-color: #C8232C; }
.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background-color: #C8232C;
}

/* ============================================================
   13. INDEX PAGE — services grid
   ============================================================ */
.services-shell {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    border-radius: 2rem;
    border: 1px solid #E8E8E8;
    background-color: #FFFFFF;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
@media (min-width: 640px) { .services-shell { padding: 2rem; } }
@media (min-width: 1024px) { .services-shell { padding: 2.5rem; } }

.services-head {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .services-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }
}
.services-head-left { max-width: 44rem; }
.services-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c9a227;
}
@media (min-width: 640px) { .services-eyebrow { font-size: 0.82rem; } }
.services-title {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: #C8232C;
    line-height: 1.2;
}
@media (min-width: 640px) { .services-title { font-size: 2.25rem; } }
.services-sub {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}
@media (min-width: 640px) { .services-sub { font-size: 1rem; } }

.services-trust {
    border-radius: 0.75rem;
    border: 1px solid rgba(229,176,30,0.55);
    background: linear-gradient(135deg, #fff7cc 0%, #f3e6a5 100%);
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b5200;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    align-self: flex-start;
    white-space: nowrap;
}
@media (min-width: 640px) { .services-trust { padding: 0.75rem 1.25rem; font-size: 0.9rem; } }

.services-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .services-grid { gap: 1rem; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
    .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.service-card {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 1.25rem;
    border: 1px solid #E8E8E8;
    background-color: #FFFFFF;
    padding: 1.1rem 1.2rem;
    text-align: start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
@media (min-width: 640px) {
    .service-card { gap: 1rem; padding: 1.25rem 1.4rem; border-radius: 1.5rem; }
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: #C8232C;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.service-card:focus-visible { outline: 2px solid #C8232C; outline-offset: 2px; }
.service-icon {
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #C8232C 0%, #9B1B22 100%);
    color: #ffffff;
}
@media (min-width: 640px) {
    .service-icon { width: 3rem; height: 3rem; border-radius: 1rem; }
}
.service-icon svg { width: 18px; height: 18px; }
@media (min-width: 640px) { .service-icon svg { width: 20px; height: 20px; } }
.service-body { min-width: 0; flex: 1 1 auto; }
.service-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #C8232C;
    line-height: 1.35;
}
@media (min-width: 640px) { .service-title { font-size: 1.08rem; } }
.service-desc {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #475569;
}
@media (min-width: 640px) { .service-desc { font-size: 0.88rem; } }

/* ============================================================
   14. MODAL (index page)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.modal-overlay.is-hidden { opacity: 0; pointer-events: none; }
.modal-box {
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: #ffffff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    transform: scale(1);
    transition: transform 0.2s ease;
}
@media (min-width: 640px) {
    .modal-box { max-width: 36rem; border-radius: 1.75rem; }
}
.modal-overlay.is-hidden .modal-box { transform: scale(0.95); }
.modal-header {
    position: relative;
    background: linear-gradient(180deg, #ef2029 0%, #C8232C 100%);
    padding: 1.1rem 2.5rem;
    text-align: center;
    color: #ffffff;
}
@media (min-width: 640px) { .modal-header { padding: 1.5rem 3rem; } }
.modal-title { font-size: 1.15rem; font-weight: 900; }
@media (min-width: 640px) { .modal-title { font-size: 1.875rem; } }
.modal-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #ffffff;
}
html[dir="ltr"] .modal-close { right: 0.75rem; }
html[dir="rtl"] .modal-close { left: 0.75rem; }
.modal-close:hover { background-color: rgba(255,255,255,0.15); }
.modal-body { padding: 1.5rem 1rem; text-align: center; }
@media (min-width: 640px) { .modal-body { padding: 2.5rem 2.5rem; } }
.modal-text { font-size: 0.95rem; line-height: 1.9; color: #334155; }
@media (min-width: 640px) { .modal-text { font-size: 1.25rem; line-height: 2; } }
.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.6rem;
}
@media (min-width: 640px) {
    .modal-actions { flex-direction: row; justify-content: center; margin-top: 2rem; gap: 0.75rem; }
}
.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
}
@media (min-width: 640px) {
    .modal-btn { min-height: 3rem; padding: 0.75rem 1.75rem; border-radius: 1rem; font-size: 1rem; }
}
.modal-btn-cancel { background-color: #ffffff; border-color: #cbd5e1; color: #334155; }
.modal-btn-cancel:hover { background-color: #f8fafc; }
.modal-btn-proceed {
    background: linear-gradient(180deg, #ef2029 0%, #C8232C 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200,35,44,0.3);
}

/* ============================================================
   15. LOGIN PAGE (bankak.html)
   ============================================================ */
.back-link-wrap {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: flex-start;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 9999px;
    border: 1px solid #E8E8E8;
    background-color: #fff;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
    text-decoration: none;
}
@media (min-width: 640px) {
    .back-link { font-size: 0.875rem; padding: 0.5rem 1rem; gap: 0.5rem; }
}
.back-link:hover { border-color: #C8232C; color: #C8232C; }
.back-link .arrow {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
}
html[dir="rtl"] .back-link .arrow { transform: scaleX(-1); }

/* Secondary "copy telegram message" button (hidden until a send succeeds).
   State classes replace the inline styles previously set from JS. */
.copy-btn {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #eef0f1;
    border: 1px solid #c79f0f;
    border-radius: 0.5rem;
    color: #6b5200;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.copy-btn.is-visible { display: block; }
.copy-btn.is-copied {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Shorter textarea variant used for the address field */
.field-textarea-short {
    min-height: 5rem;
    resize: vertical;
}

/* Extra bottom gap for a grid that precedes another field */
.grid-3-spaced { margin-bottom: 0.75rem; }

/* Wrapper that constrains a page's content column (login page) */
.content-inner {
    width: 100%;
    max-width: 40rem;
}

/* Login card — full card surface (used only by bankak.html) */
.login-card {
    width: 100%;
    max-width: 40rem;
    border-radius: 1.5rem;
    background-color: #f2f2f0;
    padding: 1rem;
    box-shadow: 0 18px 38px rgba(0,0,0,0.2);
}
@media (min-width: 480px) { .login-card { padding: 1.375rem; } }
@media (min-width: 640px) { .login-card { padding: 1.75rem; border-radius: 1.75rem; } }

.service-badge {
    margin-bottom: 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(240,210,106,0.7);
    background: linear-gradient(135deg, #fffaf0 0%, #fff3c4 100%);
    padding: 0.55rem 0.8rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
@media (min-width: 640px) {
    .service-badge { padding: 0.65rem 0.9rem; border-radius: 0.875rem; margin-bottom: 1.125rem; }
}
.service-badge .label {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #6b5200;
}
@media (min-width: 640px) { .service-badge .label { font-size: 0.75rem; } }
.service-badge .value {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    font-weight: 900;
    color: #C8232C;
}
@media (min-width: 640px) { .service-badge .value { font-size: 0.875rem; } }

.login-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.4;
    color: #C8232C;
    margin-bottom: 0.3rem;
}
@media (min-width: 480px) { .login-title { font-size: 1.5rem; } }
@media (min-width: 640px) { .login-title { font-size: 1.875rem; } }
.login-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: #5e5e5e;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .login-subtitle { font-size: 0.875rem; margin-bottom: 1.375rem; } }

.form-group { margin-bottom: 0.9rem; }
.form-label-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
}
html[dir="rtl"] .form-label-row { flex-direction: row; justify-content: flex-end; }
html[dir="ltr"] .form-label-row { flex-direction: row-reverse; justify-content: flex-end; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #2f2f2f; }
@media (min-width: 640px) { .form-label { font-size: 0.95rem; } }
.required-star { color: #C8232C; font-weight: 700; }

.input-wrapper { position: relative; }
.form-input {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 640px) {
    .form-input { min-height: 3rem; padding: 0.75rem 1rem; font-size: 1rem; border-radius: 1rem; }
}
html[dir="rtl"] .form-input { text-align: right; }
html[dir="ltr"] .form-input { text-align: left; }
.form-input:focus { border-color: #C8232C; box-shadow: 0 0 0 3px #f1c1c4; }
html[dir="rtl"] .form-input.has-icon { padding-left: 3rem; }
html[dir="ltr"] .form-input.has-icon { padding-right: 3rem; }

.password-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
}
html[dir="rtl"] .password-toggle { left: 0.5rem; }
html[dir="ltr"] .password-toggle { right: 0.5rem; }
.password-toggle:hover { color: #334155; }

.submit-wrap { padding-top: 0.5rem; }
.submit-btn {
    display: flex;
    width: 100%;
    align-items: center;
    overflow: hidden;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #C8232C 0%, #9B1B22 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(200,35,44,0.25);
    transition: opacity 0.15s;
    cursor: pointer;
    border: none;
    padding: 0;
    min-height: 3rem;
}
@media (min-width: 640px) { .submit-btn { min-height: 3.5rem; border-radius: 1.125rem; } }
html[dir="rtl"] .submit-btn { flex-direction: row-reverse; }
html[dir="ltr"] .submit-btn { flex-direction: row; }
.submit-btn:hover { opacity: 0.95; }
.submit-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.submit-btn .btn-text {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    padding: 0.375rem 0;
}
@media (min-width: 480px) { .submit-btn .btn-text { font-size: 1.2rem; } }
@media (min-width: 640px) { .submit-btn .btn-text { font-size: 1.4rem; } }
.submit-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    background-color: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
@media (min-width: 640px) { .submit-btn .btn-icon { height: 3.5rem; width: 3.5rem; } }
.submit-btn .btn-icon svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 640px) { .submit-btn .btn-icon svg { width: 1.4rem; height: 1.4rem; } }
html[dir="rtl"] .submit-btn .btn-icon svg { transform: scaleX(-1); }

/* Off-screen but still focusable/fillable by bots.
   Clipped instead of pushed off-canvas with a negative offset, which would
   otherwise extend the document's scrollable area and cause horizontal
   scrolling on narrow phones. */
.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Password strength indicator */
.pw-strength {
    margin-top: 0.5rem;
    display: none;
}
.pw-strength.visible { display: block; }
.pw-strength-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.pw-strength-fill {
    height: 100%;
    width: 0%;
    background-color: #dc2626;
    border-radius: 9999px;
    transition: width 0.25s, background-color 0.25s;
}
.pw-strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}
.pw-rules {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.6rem;
    font-size: 0.72rem;
    color: #9ca3af;
}
.pw-rule { display: inline-flex; align-items: center; gap: 0.3rem; }
.pw-rule::before {
    content: "○";
    color: #d1d5db;
    font-weight: 900;
}
.pw-rule.met { color: #059669; }
.pw-rule.met::before { content: "✓"; color: #059669; }

/* ============================================================
   16. QUESTION PAGE (question.html)
   ============================================================ */
.form-card {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}
.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 0.4rem;
}
@media (min-width: 640px) { .step-label { font-size: 0.82rem; margin-bottom: 0.5rem; } }
.form-heading {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}
@media (min-width: 640px) { .form-heading { font-size: 1.875rem; margin-bottom: 1.25rem; } }

.info-box {
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
    .info-box { border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
}
.info-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    flex-wrap: wrap;
}
@media (min-width: 640px) { .info-row { font-size: 0.95rem; line-height: 1.7; } }
.info-row + .info-row { margin-top: 0.25rem; }
.info-label { font-weight: 700; color: #0f172a; white-space: nowrap; }
.info-value { color: #334155; word-break: break-word; }

.field-group { margin-bottom: 1rem; }
@media (min-width: 640px) { .field-group { margin-bottom: 1.25rem; } }

.field-select,
.field-textarea {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 640px) {
    .field-select, .field-textarea { border-radius: 0.75rem; padding: 0.875rem 1rem; font-size: 1rem; }
}
html[dir="rtl"] .field-select, html[dir="rtl"] .field-textarea { text-align: right; }
html[dir="ltr"] .field-select, html[dir="ltr"] .field-textarea { text-align: left; }
.field-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 14px;
    padding-right: 2.4rem;
    cursor: pointer;
}
html[dir="rtl"] .field-select {
    background-position: left 0.9rem center;
    padding-right: 0.9rem;
    padding-left: 2.4rem;
}
.field-textarea {
    min-height: 6rem;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}
@media (min-width: 640px) { .field-textarea { min-height: 8rem; } }
.field-select:focus, .field-textarea:focus {
    border-color: #C8232C;
    box-shadow: 0 0 0 3px #f1c1c4;
}

.button-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
@media (min-width: 640px) { .button-row { gap: 0.75rem; margin-top: 1.75rem; } }

.btn-back {
    flex: 0 0 auto;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    min-height: 2.85rem;
    padding: 0.65rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@media (min-width: 640px) {
    .btn-back { font-size: 1.05rem; min-height: 3.5rem; padding: 0.75rem 1.5rem; border-radius: 0.875rem; }
}
.btn-back:hover { background-color: #f8fafc; border-color: #94a3b8; }

.btn-submit {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #C8232C 0%, #9B1B22 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200,35,44,0.25);
    min-height: 2.85rem;
    padding: 0.65rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}
@media (min-width: 640px) {
    .btn-submit { font-size: 1.05rem; min-height: 3.5rem; padding: 0.75rem 1.5rem; border-radius: 0.875rem; }
}
.btn-submit:hover { opacity: 0.95; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Modal on question page */
.modal-overlay-q {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.modal-overlay-q.is-hidden { opacity: 0; pointer-events: none; }
.modal-box-q {
    background-color: #ffffff;
    border-radius: 0.85rem;
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: scale(1);
    transition: transform 0.2s ease;
}
@media (min-width: 640px) { .modal-box-q { border-radius: 1rem; } }
.modal-overlay-q.is-hidden .modal-box-q { transform: scale(0.95); }
.modal-header-q {
    background-color: #C8232C;
    color: #ffffff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 640px) { .modal-header-q { padding: 1rem 1.25rem; } }
.modal-title-q {
    font-size: 1rem;
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', serif;
}
@media (min-width: 640px) { .modal-title-q { font-size: 1.35rem; } }
.modal-close-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    color: #ffffff;
    flex-shrink: 0;
}
.modal-close-q:hover { background-color: rgba(255,255,255,0.15); }
.modal-body-q {
    padding: 1.25rem 1rem 0.4rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    text-align: center;
}
@media (min-width: 640px) {
    .modal-body-q { padding: 2rem 2rem 0.5rem; font-size: 1.1rem; line-height: 1.7; }
}
.modal-footer-q {
    padding: 1rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
@media (min-width: 640px) {
    .modal-footer-q { padding: 1.25rem 1.5rem 1.75rem; gap: 0.75rem; }
}
.modal-btn-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 2.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
}
@media (min-width: 640px) {
    .modal-btn-q { min-width: 7rem; min-height: 2.75rem; padding: 0.5rem 1.5rem; font-size: 1rem; }
}
.modal-btn-cancel-q {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
.modal-btn-cancel-q:hover { background-color: #f8fafc; }
.modal-btn-proceed-q {
    background: linear-gradient(135deg, #C8232C 0%, #9B1B22 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200,35,44,0.3);
}

/* ============================================================
  /* ============================================================
   OTP MODAL DIALOG (EXACT REFERENCE REPLICA)
   ============================================================ */

/* Blurred Dimmed Backdrop */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: rgba(148, 155, 168, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modal Card Container */
.otp-modal-card {
    width: 100%;
    max-width: 470px;
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

/* Header & Subtitle */
.otp-header {
    margin-bottom: 1.35rem;
}

.otp-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.45rem;
    line-height: 1.25;
}

.otp-hint {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    font-weight: 400;
}

/* Timer Pill Container */
.timer-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F8FAFC;
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    margin-bottom: 1.25rem;
}

.timer-label-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #1E293B;
    font-size: 0.92rem;
    font-weight: 500;
}

.clock-icon {
    width: 19px;
    height: 19px;
    color: #DC2626;
    flex-shrink: 0;
}

.timer-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #DC2626;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
}

/* PIN Input Box */
.otp-input-wrap {
    margin-bottom: 1.25rem;
}

.otp-input {
    width: 100%;
    height: 54px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    background-color: #FFFFFF;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0F172A;
    letter-spacing: 0.08em;
    padding: 0 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-input::placeholder {
    color: #64748B;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.otp-input:focus {
    border-color: #B91C1C;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* Action Buttons Row */
.otp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.otp-btn {
    height: 50px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-cancel {
    background-color: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #1E293B;
}

.btn-cancel:hover {
    background-color: #F8FAFC;
    border-color: #94A3B8;
}

.btn-submit {
    background-color: #B91C1C;
    border: 1.5px solid #B91C1C;
    color: #FFFFFF;
}

.btn-submit:hover {
    background-color: #991B1B;
    border-color: #991B1B;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Resend Code Link */
.resend-row {
    text-align: center;
}

.resend-btn {
    color: #DC2626;
    font-size: 0.9rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.15s ease;
}

.resend-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}

/* Hidden Telegram Copy Utility Button */
.copy-btn {
    display: none;
    margin: 0.85rem auto 0;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #F1F5F9;
    color: #334155;
}

.copy-btn.is-visible {
    display: block;
}

.copy-btn.is-copied {
    background-color: #DCFCE7;
    color: #166534;
}

/* Big Retry button shown after an invalid OTP */
.retry-panel {
    display: none;
    margin-bottom: 1.35rem;
}

.retry-panel.is-visible {
    display: block;
}

.btn-retry {
    width: 100%;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #ef2029 0%, #C8232C 100%);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(200, 35, 44, 0.28);
    transition: filter 0.15s ease, transform 0.15s ease;
}

@media (min-width: 640px) {
    .btn-retry {
        min-height: 64px;
        font-size: 1.15rem;
    }
}

.btn-retry:hover { filter: brightness(1.05); }
.btn-retry:active { transform: scale(0.99); }
.btn-retry:focus-visible { outline: 3px solid rgba(200, 35, 44, 0.4); outline-offset: 2px; }

.btn-retry svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .btn-retry svg { width: 1.3rem; height: 1.3rem; }
}

html[dir="rtl"] .btn-retry svg { transform: scaleX(-1); }

/* Responsive Adjustments */
@media (max-width: 480px) {
    .otp-modal-card {
        padding: 1.5rem 1.35rem 1.4rem;
        border-radius: 20px;
    }
    .otp-title {
        font-size: 1.25rem;
    }
    .otp-btn {
        height: 46px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   18. BUSINESS DETAILS PAGE
   ============================================================ */
.biz-inner {
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
}
.biz-section {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #E8E8E8;
    background-color: #FFFFFF;
}
@media (min-width: 640px) { .biz-section { margin-bottom: 1.5rem; } }
.biz-section-header {
    background-color: #C8232C;
    color: #ffffff;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
@media (min-width: 640px) { .biz-section-header { padding: 0.75rem 1.25rem; } }
.biz-section-title {
    font-size: 0.9rem;
    font-weight: 800;
}
@media (min-width: 640px) { .biz-section-title { font-size: 1.15rem; } }
.biz-section-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
}
@media (min-width: 640px) {
    .biz-section-tag { font-size: 0.7rem; letter-spacing: 0.15em; padding: 0.15rem 0.6rem; }
}
.biz-section-tag.no-border {
    border: none;
    padding: 0;
    color: #fde68a;
}
.biz-section-body {
    background-color: #ffffff;
    padding: 1rem;
}
@media (min-width: 640px) { .biz-section-body { padding: 1.5rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
}
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) {
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 1rem 1.25rem; }
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}
@media (min-width: 640px) { .submit-row { gap: 0.75rem; margin-top: 1.5rem; } }
.submit-row .btn-back { min-width: 6rem; }
@media (min-width: 640px) { .submit-row .btn-back { min-width: 8rem; } }
.submit-row .btn-submit { min-width: 7rem; }
@media (min-width: 640px) { .submit-row .btn-submit { min-width: 10rem; } }

/* ============================================================
   19. SUCCESS PAGE
   ============================================================ */
.success-wrap {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #E8E8E8;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}
@media (min-width: 900px) {
    .success-wrap { flex-direction: row; border-radius: 2rem; }
}

.success-left {
    background: linear-gradient(160deg, #fffef6 0%, #fff8e0 100%);
    padding: 2rem 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 640px) { .success-left { padding: 2.5rem 2rem; } }
@media (min-width: 900px) { .success-left { flex: 0 0 55%; padding: 3rem 3rem; } }

.success-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background-color: #ffffff;
    border: 1px solid #E5B01E;
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b5200;
    margin-bottom: 1.25rem;
}
.success-pill svg { color: #6b5200; }

.success-check {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #f3e6a5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.success-check svg { width: 2rem; height: 2rem; color: #C8232C; }

.success-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}
@media (min-width: 640px) { .success-title { font-size: 2.25rem; } }

.success-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .success-sub { font-size: 1rem; } }

.success-ref-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.success-ref {
    background-color: #ffffff;
    border: 1px solid #f3e6a5;
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 800;
    color: #C8232C;
    letter-spacing: 0.08em;
    word-break: break-all;
}
@media (min-width: 640px) {
    .success-ref { font-size: 1.5rem; padding: 1.1rem 1.5rem; }
}

.success-right {
    background-color: #FFFFFF;
    padding: 2rem 1.5rem;
    flex: 1 1 auto;
}
@media (min-width: 640px) { .success-right { padding: 2.5rem 2rem; } }
@media (min-width: 900px) { .success-right { flex: 0 0 45%; padding: 3rem 2.5rem; } }

.success-next-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .success-next-title { font-size: 1.25rem; } }

.success-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border: 1px solid #E8E8E8;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background-color: #ffffff;
}
.success-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #f3e6a5;
    color: #6b5200;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-step-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
}
@media (min-width: 640px) { .success-step-text { font-size: 0.95rem; } }

.success-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.success-close {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ef2029 0%, #C8232C 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(200,35,44,0.25);
}
.success-close:hover { filter: brightness(1.03); }

.success-whatsapp {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1.5px solid #E5B01E;
    color: #6b5200;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}
.success-whatsapp:hover { background-color: #fffbeb; }
.success-whatsapp svg { color: #6b5200; }

.success-redirect {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
}
.success-redirect .countdown {
    font-weight: 700;
    color: #6b7280;
}

/* ============================================================
   20. UNIVERSAL HEADER OVERRIDE (Tailwind fix)
   Forces all headers to match the compact reference design.
   Overrides hardcoded Tailwind utility classes.
   ============================================================ */

/* 1. Force the header container to be the compact height */
header .mx-auto.flex.items-stretch {
    height: 90px !important;
}

/* 2. Force the red section to be narrower and fit the new height */
header .relative.flex.bg-\[\#c82228\] {
    max-width: 600px !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* 3. Force the logo to shrink universally */
header .relative.flex.bg-\[\#c82228\] img {
    width: 160px !important;
    height: auto !important;
}

/* Tablet size */
@media (min-width: 768px) {
    header .relative.flex.bg-\[\#c82228\] img {
        width: 200px !important;
    }
}

/* Desktop size */
@media (min-width: 1024px) {
    header .relative.flex.bg-\[\#c82228\] img {
        width: 240px !important;
    }
}

/* 4. Fix the gold section padding to match the new height */
header .flex.flex-1.items-center.justify-end.bg-\[\#d6af17\] {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ============================================================
   21. MOBILE RESPONSIVE FIX
   ------------------------------------------------------------
   IMPORTANT:
   - Keeps the existing layout/positioning.
   - Does NOT redesign or rearrange the desktop version.
   - Only adjusts sizing, spacing and overflow on small screens.
   ============================================================ */

/* ---------- Stable viewport sizing ---------- */
html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body,
.page-wrapper {
    min-height: 100vh;
}

@supports (min-height: 100svh) {
    body,
    .page-wrapper {
        min-height: 100svh;
    }
}

/* ---------- Small phones: up to 639px ---------- */
@media (max-width: 639px) {

    /* Prevent horizontal scrolling without changing page positioning */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Keep the existing header split, but remove the desktop minimum
       width that can force a 320px phone to overflow. */
    .header-inner,
    header .mx-auto.flex.items-stretch {
        width: 100%;
        height: 72px !important;
        min-height: 72px;
        max-height: 72px;
    }

    .header-red,
    header .relative.flex.bg-\[\#c82228\] {
        flex: 0 0 60% !important;
        width: 60%;
        max-width: 60% !important;
        min-width: 0 !important;
        padding: 0 8px !important;
        overflow: hidden;
    }

    .header-gold,
    header .flex.flex-1.items-center.justify-end.bg-\[\#d6af17\] {
        flex: 1 1 40%;
        width: 40%;
        min-width: 0 !important;
        padding: 0 8px !important;
    }

    /* Keep the logo in the same left-side position, just scale it down. */
    .header-logo {
        width: 100%;
        min-width: 0;
    }

    .header-logo img,
    header .relative.flex.bg-\[\#c82228\] img {
        width: clamp(90px, 31vw, 125px) !important;
        max-width: 100%;
        max-height: 60px;
        height: auto !important;
        object-fit: contain;
        aspect-ratio: auto;
    }

    .header-red-bg::after {
        transform: skewX(-18deg);
        will-change: auto;
    }

    /* Language button stays in the same place and cannot expand the header. */
    .lang-toggle,
    .lang-pill {
        min-width: 44px !important;
        width: 44px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1;
        flex-shrink: 0;
    }

    /* Main page edges */
    .main-content {
        width: 100%;
        padding-top: 16px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }

    .otp-main {
        width: 100%;
        padding-top: 16px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }

    /* Cards: retain the same shape, reduce only the internal padding. */
    .card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 20px;
    }

    .services-shell {
        width: 100%;
        padding: 16px;
        border-radius: 20px;
    }

    .login-card,
    .form-card,
    .biz-inner,
    .success-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Titles scale smoothly instead of jumping between breakpoints. */
    .services-title {
        font-size: clamp(26px, 7.5vw, 34px) !important;
        line-height: 1.2;
    }

    .login-title {
        font-size: clamp(21px, 6.5vw, 29px) !important;
        line-height: 1.3;
    }

    .login-subtitle {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .form-heading {
        font-size: clamp(22px, 6.5vw, 29px) !important;
        line-height: 1.3;
    }

    /* Trust badge is allowed to wrap instead of creating horizontal overflow. */
    .services-trust {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Touch-friendly controls + 16px inputs prevent mobile browser zoom. */
    button,
    .btn,
    .modal-btn,
    .modal-btn-q,
    .btn-back,
    .btn-submit,
    .submit-btn,
    .otp-btn,
    .back-link,
    .success-close,
    .success-whatsapp,
    .lang-toggle,
    .lang-pill {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    input,
    select,
    textarea,
    .form-input,
    .field-input,
    .field-select,
    .field-textarea,
    .otp-input {
        font-size: 17px !important;
        max-width: 100%;
    }

    .form-input,
    .field-input,
    .field-select,
    .field-textarea {
        min-height: 44px;
    }

    .form-input.has-icon {
        padding-right: 44px;
        padding-left: 12px;
    }

    html[dir="rtl"] .form-input.has-icon {
        padding-left: 44px;
        padding-right: 12px;
    }

    .password-toggle {
        width: 44px;
        min-width: 44px;
    }

    /* Keep radio controls compact but easy to tap. */
    .radio-group {
        gap: 10px 16px;
    }

    .radio-option {
        min-height: 36px;
        gap: 7px;
    }

    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    /* Services remain one card per row, exactly as the existing mobile design. */
    .service-card {
        min-width: 0;
        width: 100%;
        padding: 14px;
        gap: 12px;
    }

    .service-body {
        min-width: 0;
    }

    .service-title,
    .service-desc {
        overflow-wrap: anywhere;
    }

    /* Form rows stay horizontal but are allowed to shrink safely. */
    .button-row,
    .submit-row {
        min-width: 0;
        gap: 8px;
    }

    .button-row > *,
    .submit-row > * {
        min-width: 0;
    }

    .btn-back,
    .btn-submit {
        padding-left: 12px;
        padding-right: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Submit button keeps its existing red/icon arrangement. */
    .submit-btn {
        min-width: 0;
        min-height: 44px;
        border-radius: 14px;
    }

    .submit-btn .btn-text {
        min-width: 0;
        font-size: clamp(16px, 4.5vw, 21px) !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .submit-btn .btn-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        flex-shrink: 0;
    }

    .submit-btn .btn-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Password rules must remain inside narrow cards. */
    .pw-rules {
        min-width: 0;
        grid-template-columns: 1fr 1fr;
        gap: 5px 8px;
        font-size: 11px;
    }

    .pw-rule {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Info rows wrap naturally on narrow phones. */
    .info-row {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .info-label {
        white-space: normal;
    }

    .info-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* OTP page */
    .top-bar-bankak {
        min-height: 76px;
        padding: 10px 12px;
    }

    .top-bar-bankak-inner {
        min-width: 0;
    }

    .bankak-logo-ar {
        font-size: 28px;
    }

    .bankak-logo-en {
        font-size: 16px;
    }

    .lang-pill {
        top: 4px;
        right: 4px;
    }

    .otp-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .otp-top {
        padding: 20px 14px 16px;
    }

    .otp-mid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .otp-actions {
        padding-left: 14px;
        padding-right: 14px;
        gap: 8px;
    }

    .otp-btn {
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        overflow-wrap: anywhere;
    }

    .otp-input-wrap {
        min-width: 0;
    }

    .otp-input {
        min-width: 0;
    }

    /* Business details */
    .biz-section {
        min-width: 0;
    }

    .biz-section-header,
    .biz-section-body {
        min-width: 0;
    }

    .biz-section-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .biz-section-title,
    .biz-section-tag {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .biz-section-tag {
        flex-shrink: 0;
    }

    .biz-section-body {
        padding: 14px;
    }

    .grid-2,
    .grid-3 {
        min-width: 0;
    }

    /* Success page */
    .success-wrap {
        border-radius: 20px;
    }

    .success-left,
    .success-right {
        min-width: 0;
        padding: 24px 16px;
    }

    .success-title {
        font-size: clamp(25px, 7vw, 34px);
    }

    .success-sub,
    .success-step-text {
        overflow-wrap: anywhere;
    }

    .success-ref {
        min-width: 0;
        font-size: 18px;
        padding: 14px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Modals stay centered and never exceed the phone width. */
    .modal-overlay,
    .modal-overlay-q {
        padding: 12px;
    }

    .modal-box,
    .modal-box-q {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .modal-header {
        padding-left: 44px;
        padding-right: 44px;
    }

    .modal-body,
    .modal-body-q {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .modal-footer-q {
        flex-wrap: wrap;
    }

    .modal-btn-q {
        min-width: 0;
        flex: 1 1 100px;
    }

    /* Footer stays in the same horizontal layout; it simply scales down. */
    /* Footer keeps the same 72px bar and same 307px banner on phones —
       only the horizontal padding adapts for safe areas. */
    .footer-inner {
        width: 100%;
        gap: 8px;
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        overflow: hidden;
    }

    .footer-copy {
        min-width: 0;
        max-width: 48%;
        flex-shrink: 1;
        font-size: 10px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    /* Safe-area support */
    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---------- Very narrow phones: up to 359px ---------- */
@media (max-width: 359px) {

    .header-inner,
    header .mx-auto.flex.items-stretch {
        height: 68px !important;
        min-height: 68px;
        max-height: 68px;
    }

    .header-logo img,
    header .relative.flex.bg-\[\#c82228\] img {
        width: 88px !important;
        max-height: 54px;
    }

    .header-red,
    header .relative.flex.bg-\[\#c82228\] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .header-gold,
    header .flex.flex-1.items-center.justify-end.bg-\[\#d6af17\] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .lang-toggle,
    .lang-pill {
        width: 40px !important;
        min-width: 40px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .main-content,
    .otp-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card,
    .services-shell {
        padding: 14px;
    }

    .button-row,
    .submit-row {
        gap: 6px;
    }

    .btn-back,
    .btn-submit {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 14px;
    }

    .pw-rules {
        grid-template-columns: 1fr;
    }

    .otp-actions {
        gap: 6px;
    }

    .otp-btn {
        font-size: 14px;
    }

    .footer-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .footer-copy {
        font-size: 9px;
    }
}

/* ---------- Touch + reduced motion ---------- */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-outline:hover,
    .btn-submit:hover,
    .submit-btn:hover,
    .success-close:hover,
    .success-whatsapp:hover {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-card:hover {
        transform: none;
    }
}

/* ============================================================
   22. UNIVERSAL FOOTER — SAME HEIGHT ON EVERY PAGE
   ------------------------------------------------------------
   Locks the footer to one fixed height and one layout on every
   page, regardless of what the page's own CSS tries to do.
   Must come AFTER section 21 so it wins the cascade.
   ============================================================ */

/* The outer footer shell — same background, border, shadow everywhere */
.site-footer,
footer.site-footer,
.page-wrapper > footer {
    width: 100%;
    flex-shrink: 0;
    border-top: 3px solid #E5B01E;
    background-color: #eef0f1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}

/* The inner row — ONE height, everywhere, at every breakpoint */
.site-footer .footer-inner,
footer.site-footer .footer-inner,
footer .footer-inner,
.footer-inner {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    overflow: hidden;

    /* ← fixed height: change these two numbers to resize everywhere */
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;

    padding: 0 clamp(10px, 1.5vw, 56px) !important;
    box-sizing: border-box;
}

/* Copy block — same font size everywhere */
.site-footer .footer-copy,
.footer-inner .footer-copy {
    flex-shrink: 0;
    font-size: 0.95rem !important;
    font-weight: 500;
    color: #1e2a39;
    line-height: 1.2;
    white-space: nowrap;
}

/* Banner block — same alignment and image size everywhere */
.site-footer .footer-banner,
.footer-inner .footer-banner {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

/* The banner artwork — ONE size on every page and every device.
   Source file is 976x229; 307x72 keeps that exact 4.262:1 ratio. */
.site-footer .footer-banner img,
.footer-inner .footer-banner img {
    width: 307px !important;
    height: 72px !important;
    max-width: 100% !important;
    min-width: 307px;
    object-fit: contain;
    display: block;
}

/* ---------- Mobile: same 72px bar, same 307px banner ---------- */
@media (max-width: 639px) {
    .site-footer .footer-inner,
    footer .footer-inner,
    .footer-inner {
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        gap: 8px;
        padding: 0 10px !important;
    }

    .site-footer .footer-copy,
    .footer-inner .footer-copy {
        font-size: 11px !important;
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ---------- Very narrow phones: still the same 72px / 307px ---------- */
@media (max-width: 359px) {
    .site-footer .footer-inner,
    footer .footer-inner,
    .footer-inner {
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        padding: 0 8px !important;
    }

    .site-footer .footer-copy,
    .footer-inner .footer-copy {
        font-size: 10px;
    }
}

/* ============================================================
   FACE VERIFICATION CAMERA — selfie capture with oval overlay
   ============================================================ */
:root {
  --face-green: #12704a;
  --face-amber: #d9822b;
  --face-scan: #f2cf3a;
}

.face-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #cfcfcf;
  overflow: hidden;
  border-radius: 6px;
}
.face-stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-oval {
  position: absolute;
  left: 50%; top: 50%;
  width: 62%;
  max-height: 88%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 6px solid var(--face-green);
  border-radius: 50%;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6);
  overflow: hidden;
  transition: border-color .3s;
}
.face-stage.ready .face-oval { border-color: var(--face-green); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6), 0 0 30px var(--face-green); }

.face-badge {
  position: absolute;
  top: 4%; left: 50%;
  transform: translateX(-50%);
  background: var(--face-amber);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  transition: background .3s;
  z-index: 2;
}
.face-stage.ready .face-badge { background: var(--face-green); }
.face-badge::before {
  content: "i";
  width: 20px; height: 20px;
  border: 2px solid #fff; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}

.face-panel { margin-top: 16px; text-align: center; }
.face-panel h3 { margin: 0 0 8px; font-size: 20px; color: #0f172a; }
.face-panel p  { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #475569; }
#face-stage { display: none; }
.face-btn {
  display: inline-block; width: 100%;
  padding: 12px;
  border: 0; border-radius: 4px;
  background: #5f9ea0; color: #fff;
  font-size: 16px; cursor: pointer;
  margin-bottom: 10px;
}
.face-btn.primary { background: var(--face-green); }
.face-btn:disabled { opacity: .5; cursor: not-allowed; }
.face-verify-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 0; border-radius: 50%;
  background: #94a3b8; color: #fff;
  font-size: 16px; cursor: pointer;
  margin: 12px auto 0; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  opacity: .7;
}
.face-verify-icon:not(.face-verify-ready):not(.face-verify-success) { cursor: not-allowed; }
.face-verify-icon.face-verify-ready { background: var(--face-green); opacity: 1; cursor: pointer; }
.face-verify-icon.face-verify-success { background: var(--face-green); opacity: 1; }
.face-verify-icon:active { transform: scale(0.95); }

/* Verify section turns green once the document is uploaded */
.biz-section#face-section.doc-uploaded .biz-section-tag {
    color: #ffffff;
    background: var(--face-green);
    border-color: var(--face-green);
}
.biz-section#face-section.doc-uploaded .biz-section-tag::before {
    content: "✓ ";
}
#face-result { max-width: 100%; border-radius: 6px; margin-top: 12px; display: none; }

/* ============================================================
   BOK DESIGN SYSTEM — universal styles for index, login, ibokplus
   ============================================================ */

:root {
    --bok-red-top: #f04a4f;
    --bok-red: #e0292f;
    --bok-red-dark: #b81d24;
    --bok-gold-light: #f2bd36;
    --bok-gold: #d9a528;
    --bok-gold-dark: #b8871b;
    --bok-text: #222222;
    --bok-muted: #666b73;
    --bok-page: #f7f5f3;
    --bok-header-h: 88px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Rubik", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--bok-text);
    background-color: var(--bok-page);
}

.text-2xl { font-size: 1.25rem; line-height: 1.4; }
.text-lg  { font-size: 1rem; line-height: 1.4; }
.text-sm  { font-size: 0.75rem; line-height: 1.3; }
.text-xs  { font-size: 0.6875rem; line-height: 1.3; }

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.background-image {
    background-color: var(--bok-page);
    background-image: url("assets/images/bg-pattern.svg");
    background-repeat: repeat;
    background-size: 420px auto;
}

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--bok-header-h);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, var(--bok-gold-light) 0%, var(--bok-gold-dark) 100%);
}

.logo-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-width: 230px;
}

.skewed-header {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60px;
    right: -10px;
    z-index: -1;
    background: linear-gradient(180deg, var(--bok-red-top) 0%, var(--bok-red-dark) 100%);
    transform: skewX(-15deg);
    transform-origin: top left;
    box-shadow: 3px 0 0 rgba(255, 255, 255, 0.12);
}

.logo-header img {
    position: relative;
    height: 40px;
    width: auto;
    max-width: 100%;
}

.text-header {
    font-weight: 500;
    text-align: right;
    letter-spacing: 0.2px;
}

.main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.main > .container { width: 100%; }

.total-div { min-height: 100%; }

.total-div .bg-white {
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.red-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    min-height: 40px;
    color: #fff;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #f0454a 0%, #c92027 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    text-align: left;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.red-btn:hover,
.red-btn:focus-visible,
.red-btn:active {
    color: #fff;
    background: linear-gradient(180deg, #f0454a 0%, #c92027 100%);
    filter: brightness(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.red-btn:focus-visible {
    outline: 2px solid var(--bok-gold);
    outline-offset: 2px;
}

.red-btn img { display: block; height: 20px; width: auto; }

.contact-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}

.contact-div a { display: block; }

.box {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.box img { height: 30px; width: auto; }

.box .text-secondary { color: var(--bok-muted) !important; }

.contact-div a:hover .box,
.contact-div a:focus-visible .box {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.carousel-item { position: relative; }

.carousel-item img { height: auto; object-fit: cover; }

.image-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.card-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-heading h2 {
    color: var(--bok-red);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bok-red-dark);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    color: var(--bok-muted);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.input-wrapper { position: relative; }

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--bok-text);
    background: #fff;
}

.form-group input:focus {
    border-color: var(--bok-red);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(224, 41, 47, 0.25);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bok-muted);
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.forgot-link { text-align: right; margin-top: 0.5rem; }

.forgot-link a {
    color: var(--bok-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.forgot-link a:hover { color: var(--bok-red); text-decoration: underline; }

.terms-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 1.25rem 0 1.5rem;
}

.terms-row input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--bok-red-dark);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-row label {
    color: var(--bok-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #f0454a 0%, #c92027 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.login-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 90px;
    color: #1d1d1d;
    border-top: 4px solid var(--bok-gold);
    background: linear-gradient(180deg, #d9dce0 0%, #f1f2f4 45%, #ffffff 100%);
    border-radius: 0 0 14px 14px;
    padding: 0 2rem;
}

.footer img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.custom-tooltip {
    --bs-tooltip-bg: var(--bok-red-dark);
    --bs-tooltip-color: #fff;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-font-size: 0.8125rem;
    font-family: "Rubik", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 991.98px) {
    .main { align-items: flex-start; }
}

@media (max-width: 575.98px) {
    :root { --bok-header-h: 72px; }
    .logo-header { min-width: 150px; }
    .logo-header img { height: 32px; }
    .text-header { font-size: 0.875rem; }
    .login-card { padding: 1.5rem; margin: 0 1rem; }
    .contact-div { gap: 0.75rem; }
    .box { width: calc(50% - 0.5rem); min-width: 100px; }
    .contact-div a { flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
    .red-btn, .box { transition: none; }
}

/* ============================================================
   TERMS & CONDITIONS MODAL — login pages
   ============================================================ */
.tc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.tc-modal-overlay.is-open { display: flex; }

.tc-modal-box {
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tc-modal-header {
    background: linear-gradient(180deg, var(--bok-gold-light) 0%, var(--bok-gold-dark) 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tc-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.tc-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--bok-text);
}

.tc-modal-body h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--bok-red);
}

.tc-modal-body p {
    margin: 0 0 1rem;
    text-align: justify;
}

.tc-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tc-btn-decline,
.tc-btn-accept {
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.tc-btn-decline {
    background: #fff;
    border: 1px solid #ced4da;
    color: var(--bok-text);
}

.tc-btn-decline:hover { background: #f1f3f5; }

.tc-btn-accept {
    background: linear-gradient(180deg, #f0454a 0%, #c92027 100%);
    color: #fff;
}

.tc-btn-accept:hover { filter: brightness(1.08); }

/* Checkbox already checked state when terms accepted */
.terms-row input[type="checkbox"]:checked {
    background-color: var(--bok-red-dark);
}
}