:root {
    /* ============================================================
       PALETTE — "شركة الشارقة إكسبرس للصرافة والتحويلات"
       Vibrant electric cyan, obsidian marine navy, chrome slate,
       and energetic high-tech accents for premium financial UI.
       ============================================================ */
    --bank-primary: #0284C7;          /* Sharjah Electric Cerulean */
    --bank-primary-dark: #032B3E;     /* Deep Obsidian Marine */
    --bank-primary-light: #00B4D8;    /* High-Vibrancy Cyan */
    --bank-accent-cyan: #38BDF8;      /* Neon Sky Cyan */
    --bank-slate: #475569;            /* Chrome Slate */
    --bank-slate-dark: #1E293B;
    --bank-accent-light: #E0F2FE;
    --bank-accent-border: #BAE6FD;
    --bank-emerald: #059669;          /* Success Emerald */
    --bank-emerald-light: #ECFDF5;
    --bank-bg: #F0F7FB;
    --bank-surface: #FFFFFF;
    --bank-text-main: #0F172A;
    --bank-text-muted: #475569;
    --bank-border: #CBD5E1;
    --bank-danger: #DC2626;
    --bank-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(2, 132, 199, 0.06);
    --bank-shadow-lg: 0 22px 32px -8px rgba(3, 43, 62, 0.18), 0 10px 12px -6px rgba(3, 43, 62, 0.08);
    --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Accents & Brand Lighting */
    --bank-gold: #F59E0B;             /* Warm Gold Signature */
    --bank-gold-soft: #FEF3C7;
    --bank-gold-glow: rgba(245, 158, 11, 0.25);
    --bank-cyan-glow: rgba(0, 180, 216, 0.35);
    --bank-ink-veil: rgba(3, 43, 62, 0.06);
    --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bank-bg);
    /* Subtle geometric grid texture matching modern exchange portal */
    background-image:
        radial-gradient(circle at 0 0, rgba(2, 132, 199, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 12px 12px, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--bank-text-main);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#blazor-error-ui {
    display: none !important;
}

/* ==========================================================================
   PAGE WRAPPER & LAYOUT
   ========================================================================== */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding: 2rem 1rem 3.5rem;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   HEADER — SHARJAH EXPRESS TOP BAR
   ========================================================================== */
.bank-header {
    background: linear-gradient(135deg, #021F2D 0%, #032B3E 60%, #043850 100%);
    color: #FFFFFF;
    position: relative;
    box-shadow: 0 4px 24px rgba(2, 26, 40, 0.35);
    z-index: 100;
}

/* Subtle luxury ambient backlight */
.bank-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 12% 50%, rgba(0, 180, 216, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    position: relative;
    z-index: 2;
    gap: 1.5rem;
}

/* Brand Group */
.brand-group {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 180, 216, 0.5);
    border-radius: 12px;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.3s var(--ease-silk);
}

.brand-logo-link:hover {
    transform: translateY(-2px);
    border-color: #38BDF8;
    box-shadow: 0 8px 22px rgba(0, 180, 216, 0.35);
}

.bank-header-logo {
    height: 42px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Portal Meta in Header */
.brand-portal-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.portal-service-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.portal-badge-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #91D5ED;
    text-align: center;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2ED573;
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(46, 213, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s var(--ease-silk);
}

.support-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.support-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bank-gold);
}

.support-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    line-height: 1;
}

.support-label {
    color: #BDD2DE;
    font-weight: 500;
}

.support-number {
    color: #F8D179;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.support-number:hover {
    color: #FFFFFF;
}

.btn-bank-header-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: rgba(28, 147, 196, 0.15);
    border: 1px solid rgba(28, 147, 196, 0.45);
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.25s var(--ease-silk);
}

.btn-bank-header-site:hover {
    background: linear-gradient(135deg, var(--bank-primary-light), var(--bank-primary));
    border-color: var(--bank-primary-light);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(28, 147, 196, 0.35);
    transform: translateY(-1px);
}

.external-arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.btn-bank-header-site:hover .external-arrow {
    opacity: 1;
    transform: translate(-2px, -2px);
}

/* Hairline bottom accent line */
.header-bottom-accent {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(184, 146, 78, 0.4) 15%, 
        rgba(28, 147, 196, 0.9) 50%, 
        rgba(184, 146, 78, 0.4) 85%, 
        transparent 100%);
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    max-width: 620px;
    margin: 0.1rem auto 0.1rem;
    text-align: center;
    position: relative;
}

.bank-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #FFFFFF;
    color: var(--bank-primary);
    border: 1px solid var(--bank-accent-border);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 1.1rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(4, 97, 140, 0.08);
    animation: trustPulse 2.8s ease-in-out infinite;
}

.trust-icon {
    color: var(--bank-primary);
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    background: linear-gradient(120deg, var(--bank-primary-dark) 20%, var(--bank-primary) 70%, var(--bank-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bank-primary-dark);
}

.hero-motto {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bank-slate);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* A short woven underline instead of a plain rule — two threads,
   cerulean and gold, crossing like weft and warp. */
.hero-motto::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, var(--bank-primary) 0%, var(--bank-primary) 100%) center / 100% 1px no-repeat,
        linear-gradient(90deg, var(--bank-gold) 0%, var(--bank-gold) 100%) center / 100% 1px no-repeat;
    background-position: top, bottom;
}

/* ==========================================================================
   SEARCH CARD
   ========================================================================== */
.search-card-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.search-card {
    background: var(--bank-surface);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--bank-shadow-lg);
    border: 1px solid var(--bank-border);
    position: relative;
    overflow: hidden;
}

/* Signature element: a mashrabiya-lattice corner, woven from the same
   interlace as the header thread. It sits quietly behind the top edge —
   guarding the form the way a screened window guards a room. */
.search-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, var(--bank-gold-glow) 0, var(--bank-gold-glow) 1px, transparent 1px, transparent 11px),
        repeating-linear-gradient(-45deg, rgba(4, 97, 140, 0.07) 0, rgba(4, 97, 140, 0.07) 1px, transparent 1px, transparent 11px);
    -webkit-mask-image: radial-gradient(circle at 100% 0, black 0%, black 18%, transparent 60%);
    mask-image: radial-gradient(circle at 100% 0, black 0%, black 18%, transparent 60%);
    opacity: 0.55;
}

.search-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bank-primary-dark), var(--bank-primary) 45%, var(--bank-gold) 100%);
}

.form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--bank-primary-dark);
    margin-bottom: 0.35rem;
    display: block;
}

.input-with-icon {
    position: relative;
}

.bank-input {
    width: 100%;
    height: 2.75rem;
    padding: 0.5rem 2.4rem 0.5rem 0.75rem;
    font-size: 0.92rem;
    font-family: var(--font-family);
    border: 1.5px solid var(--bank-border);
    border-radius: 9px;
    color: var(--bank-text-main);
    transition: border-color 0.2s var(--ease-silk), box-shadow 0.2s var(--ease-silk), background-color 0.2s var(--ease-silk);
    background-color: #FAFCFE;
}

.bank-input:focus {
    outline: none;
    border-color: var(--bank-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(4, 97, 140, 0.14);
}

.bank-input:focus-visible {
    outline: 2px solid var(--bank-primary-light);
    outline-offset: 2px;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bank-primary);
    pointer-events: none;
    transition: color 0.2s var(--ease-silk);
}

.bank-input:focus ~ .input-icon {
    color: var(--bank-gold);
}

.bank-input.is-invalid {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.bank-input.is-invalid ~ .input-icon {
    color: #EF4444 !important;
}

.input-shake-anim {
    animation: input-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.input-hint {
    font-size: 0.78rem;
    color: var(--bank-text-muted);
    margin-top: 0.35rem;
}

.validation-feedback {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeIn 0.2s var(--ease-silk);
}

/* ==========================================================================
   TURNSTILE WIDGET & SKELETON LOADER
   ========================================================================== */
.turnstile-wrapper {
    margin: 1.15rem 0;
    position: relative;
    min-height: 65px;
}

.turnstile-cf-container.turnstile-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.turnstile-cf-container.turnstile-visible {
    opacity: 1;
    transition: opacity 0.35s var(--ease-silk);
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.turnstile-skeleton-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #F8FAFD 0%, #EEF4FA 100%);
    border: 1.5px solid var(--bank-border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    min-height: 65px;
    box-shadow: 0 2px 8px rgba(4, 51, 73, 0.04);
    animation: turnstile-pulse-border 2s ease-in-out infinite alternate;
}

@keyframes turnstile-pulse-border {
    0% { border-color: var(--bank-border); }
    100% { border-color: rgba(4, 97, 140, 0.4); }
}

.turnstile-skeleton-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(4, 97, 140, 0.08);
    color: var(--bank-primary);
    margin-left: 0.65rem;
    flex-shrink: 0;
}

.shield-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid var(--bank-primary);
    opacity: 0.4;
    animation: turnstile-ripple 1.8s cubic-bezier(0.1, 0, 0.3, 1) infinite;
}

@keyframes turnstile-ripple {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.turnstile-skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.skeleton-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bank-primary-dark);
    line-height: 1.3;
}

.skeleton-sub {
    font-size: 0.72rem;
    color: var(--bank-text-muted);
    font-weight: 500;
}

.turnstile-skeleton-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.mini-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(4, 97, 140, 0.2);
    border-top-color: var(--bank-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.turnstile-error-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF5F5;
    border: 1.5px solid #FED7D7;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: #C53030;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 65px;
}

.btn-turnstile-retry {
    background: #C53030;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-silk);
}

.btn-turnstile-retry:hover {
    background: #9B2C2C;
}

.turnstile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFD;
    border: 1px solid var(--bank-border);
    border-radius: 9px;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-silk);
    user-select: none;
}

.turnstile-card:hover {
    background: var(--bank-accent-light);
    border-color: var(--bank-primary);
}

.turnstile-card.verified {
    background: var(--bank-emerald-light);
    border-color: #7FCDBF;
}

.turnstile-checkbox-area {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.6rem;
}

.turnstile-box {
    width: 20px;
    height: 20px;
    border: 2px solid #94A3B8;
    border-radius: 5px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s var(--ease-silk), background-color 0.2s var(--ease-silk);
}

/* Hand-drawn checkmark, built from two borders — no glyph, no font icon,
   just geometry, so it inherits the page's material honesty. */
.turnstile-card.verified .turnstile-box {
    border-color: var(--bank-emerald);
    background: var(--bank-emerald);
}

.turnstile-card.verified .turnstile-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(40deg);
    transform-origin: bottom left;
}

.turnstile-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #E2E8F0;
    border-top-color: var(--bank-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.turnstile-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.turnstile-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bank-text-main);
}

.turnstile-subtitle {
    font-size: 0.7rem;
    color: var(--bank-text-muted);
}

.turnstile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0.4rem;
}

.turnstile-brand-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-bank-primary {
    background: linear-gradient(135deg, #024669 0%, #04618C 50%, #1C93C4 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 9px;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease-silk), box-shadow 0.2s var(--ease-silk);
    box-shadow: 0 4px 12px rgba(4, 97, 140, 0.25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* A single sheen sweep on hover — one gesture, not a light show. */
.btn-bank-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--ease-silk);
    z-index: 1;
}

.btn-bank-primary:hover:not(:disabled)::before {
    transform: translateX(120%);
}

.btn-bank-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(4, 97, 140, 0.32);
}

.btn-bank-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-bank-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-bank-primary:focus-visible {
    outline: 2px solid var(--bank-gold);
    outline-offset: 2px;
}

.btn-outline-bank {
    border: 1.5px solid var(--bank-primary);
    color: var(--bank-primary);
    background: transparent;
    border-radius: 9px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.25s var(--ease-silk);
}

.btn-outline-bank:hover {
    background-color: var(--bank-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(4, 97, 140, 0.22);
}

.btn-secondary-bank {
    background-color: #FFFFFF;
    color: var(--bank-slate-dark);
    border: 1.5px solid #CBD8E0;
    border-radius: 9px;
    padding: 0.5rem 1rem 0.5rem 0.6rem;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font-family);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s var(--ease-silk);
}

/* A quiet refresh glyph, drawn from borders only — gives the button
   an icon without touching markup, and reads as "start over". */
.btn-secondary-bank::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-40deg);
    flex-shrink: 0;
}

.btn-secondary-bank:hover {
    background-color: #F4F7F9;
    border-color: var(--bank-slate);
    color: var(--bank-slate-dark);
}

/* ==========================================================================
   RESULT CARDS
   ========================================================================== */
.result-section {
    max-width: 480px;
    margin: 1.5rem auto 0;
}

.result-card {
    background: var(--bank-surface);
    border-radius: 16px;
    box-shadow: var(--bank-shadow-lg);
    border: 1px solid var(--bank-border);
    overflow: hidden;
}

.found-card {
    border-top: 4px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--bank-primary), var(--bank-emerald));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.notfound-card {
    border-top: 4px solid #94A3B8;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.35rem;
    background: #F8FAFD;
    border-bottom: 1px solid #E2E8F0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.success-badge {
    color: var(--bank-emerald);
}

.neutral-badge {
    color: var(--bank-slate);
}

.count-pill {
    background: var(--bank-accent-light);
    color: var(--bank-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.result-body {
    padding: 1.35rem 1.35rem;
}

.result-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.result-announcement {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.75) 0%, rgba(248, 250, 253, 0.95) 100%);
    border: 1.5px solid #DCFCE7;
    border-radius: 14px;
    padding: 1.25rem 1.15rem;
    margin-bottom: 1.25rem;
}

.app-instruction-banner {
    background: #FFFFFF;
    border: 1.5px solid #D1FAE5;
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    margin: 0.85rem 0 1.25rem;
    box-shadow: 0 2px 8px rgba(4, 51, 73, 0.04);
}

.result-app-desc {
    font-size: 0.96rem;
    color: var(--bank-primary-dark);
    font-weight: 700;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.app-exclusive-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FCD34D;
    border-radius: 8px;
    padding: 0.4rem 0.95rem;
    color: #92400E;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.12);
}

.app-exclusive-alert .alert-inline-icon {
    color: #D97706;
    flex-shrink: 0;
}

.customer-service-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.customer-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 1.5px solid var(--bank-border);
    border-radius: 30px;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bank-primary-dark);
    box-shadow: 0 2px 8px rgba(4, 51, 73, 0.06);
    transition: all 0.2s var(--ease-silk);
}

.customer-service-badge:hover {
    border-color: var(--bank-primary);
    box-shadow: 0 4px 12px rgba(4, 97, 140, 0.12);
}

.customer-service-badge svg {
    color: var(--bank-primary);
}

.cs-phone-link {
    color: var(--bank-primary);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    font-size: 0.96rem;
    transition: color 0.2s var(--ease-silk);
}

.cs-phone-link:hover {
    color: var(--bank-gold);
    text-decoration: underline;
}

.cs-phone-sep {
    color: #94A3B8;
    font-weight: 600;
    margin: 0 0.15rem;
    user-select: none;
}

.dates-container {
    background: #F8FAFD;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.dates-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bank-primary-dark);
    margin-bottom: 0.6rem;
}

.dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FFFFFF;
    border: 1px solid var(--bank-border);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bank-primary);
    transition: border-color 0.2s var(--ease-silk);
}

.date-item:hover {
    border-color: var(--bank-primary);
}

.date-bullet {
    width: 6px;
    height: 6px;
    background: var(--bank-gold);
    border-radius: 50%;
}

/* ==========================================================================
   REMITTANCE ITEMS WITH REMITTANCE NUMBER
   ========================================================================== */
.remittances-container {
    background: #F8FAFD;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.15rem;
    margin-bottom: 1.25rem;
}

.remittances-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--bank-primary-dark);
}

.remittances-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.remittance-row-card {
    background: #FFFFFF;
    border: 1px solid var(--bank-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s var(--ease-silk);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.remittance-row-card:hover {
    border-color: var(--bank-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 70, 105, 0.08);
}

.remittance-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.remittance-no-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bank-accent-light);
    color: var(--bank-primary-dark);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(2, 70, 105, 0.15);
    letter-spacing: 0.5px;
    direction: ltr;
}

.remittance-no-badge .badge-label {
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bank-text-muted);
}

.remittance-date-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bank-slate);
}

.btn-copy-remno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #F1F5F9;
    color: var(--bank-primary);
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s var(--ease-silk);
    white-space: nowrap;
}

.btn-copy-remno:hover {
    background: var(--bank-primary);
    color: #FFFFFF;
    border-color: var(--bank-primary);
}

.btn-copy-remno.copied {
    background: var(--bank-emerald);
    color: #FFFFFF;
    border-color: var(--bank-emerald);
}

.requirements-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 9px;
    padding: 1rem;
}

.requirements-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #92400E;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.requirements-list {
    margin: 0;
    padding-right: 1.15rem;
    color: #78350F;
    font-size: 0.82rem;
    line-height: 1.7;
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.35rem;
    background: #F8FAFD;
    border-top: 1px solid #E2E8F0;
}

.notfound-title {
    font-weight: 600;
    color: var(--bank-primary-dark);
}

.notfound-desc {
    color: var(--bank-text-muted);
    font-size: 0.88rem;
    max-width: 450px;
    margin: 0 auto 1.25rem;
}

.notfound-tips {
    background: #F1F5F9;
    border-radius: 9px;
    padding: 0.85rem;
    text-align: right;
    max-width: 450px;
    margin: 0 auto;
    font-size: 0.82rem;
    color: var(--bank-text-muted);
}

.notfound-tips h6 {
    font-weight: 700;
    color: var(--bank-primary-dark);
    margin-bottom: 0.35rem;
}

.notfound-tips p {
    margin: 0.15rem 0;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert-bank-danger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #FDF2F1;
    border: 1.5px solid #F1B4AF;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #8C2A25;
}

.alert-heading {
    font-weight: 800;
    margin-bottom: 0.15rem;
}

/* ==========================================================================
   FOOTER — CLEAN LIGHT BANKING SURFACE
   ========================================================================== */
.bank-footer {
    background: #FFFFFF;
    color: var(--bank-text-main);
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--bank-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(4, 97, 140, 0.04);
}

/* Subtle luxury cerulean & gold hairline top edge */
.bank-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(184, 146, 78, 0.4) 15%, 
        var(--bank-primary) 50%, 
        rgba(184, 146, 78, 0.4) 85%, 
        transparent 100%);
    opacity: 0.9;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bank-primary-dark);
    letter-spacing: -0.01em;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--bank-text-muted);
    margin-top: 0.35rem;
    line-height: 1.6;
    font-weight: 500;
}

.app-buttons-group {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bank-primary-dark);
    border: 1.5px solid var(--bank-primary-dark);
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(4, 51, 73, 0.15);
    transition: all 0.25s var(--ease-silk);
}

.app-store-btn:hover {
    background: var(--bank-primary);
    border-color: var(--bank-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(4, 97, 140, 0.25);
}

.app-btn-icon {
    flex-shrink: 0;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.app-btn-sub {
    font-size: 0.65rem;
    opacity: 0.85;
    line-height: 1.2;
}

.app-btn-title {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: sans-serif;
    line-height: 1.2;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    border-top: 1px solid var(--bank-border);
    padding-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--bank-text-muted);
    position: relative;
    z-index: 1;
}

.security-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    direction: rtl;
    text-align: center;
    color: var(--bank-slate);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.security-seal svg {
    color: var(--bank-primary);
}

/* ==========================================================================
   LOADER & PROGRESS BAR — OFFICIAL BANK IDENTITY
   ========================================================================== */
.initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #074766 0%, #043349 70%, #02202E 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.initial-loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 180, 216, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2.2rem;
    background: rgba(2, 31, 45, 0.85);
    border: 1.5px solid rgba(0, 180, 216, 0.45);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 180, 216, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.6s var(--ease-silk);
}

.loader-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 0.9rem 1.8rem;
    border-radius: 20px;
    border: 1.5px solid rgba(0, 180, 216, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 180, 216, 0.25);
    margin-bottom: 1.35rem;
    position: relative;
    animation: loaderLogoGlow 3.5s infinite ease-in-out;
}

.loader-logo-img {
    height: 85px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

@keyframes loaderLogoGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 180, 216, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.45);
    }
}

.loader-text {
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

/* Progress Box & Dynamic Status */
.loader-progress-box {
    width: 100%;
    margin-bottom: 1rem;
}

.loader-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    direction: rtl;
}

.loader-status-msg {
    color: #BAE6FD;
    font-weight: 600;
    text-align: right;
    transition: color 0.3s ease;
}

.loader-percent-badge {
    color: #38BDF8;
    font-weight: 800;
    font-size: 0.88rem;
    background: rgba(0, 180, 216, 0.18);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 216, 0.35);
    font-variant-numeric: tabular-nums;
}

.loader-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(2, 20, 30, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284C7 0%, #00B4D8 60%, #38BDF8 100%);
    border-radius: 999px;
    transition: width 0.25s ease-out;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.6);
}

.loader-progress-bar.is-finishing {
    background: linear-gradient(90deg, #0284C7 0%, #00B4D8 50%, #22D3EE 100%);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
    animation: barPulseGlow 1.4s ease-in-out infinite alternate;
}

@keyframes barPulseGlow {
    0% { opacity: 0.88; filter: brightness(1); }
    100% { opacity: 1; filter: brightness(1.25); box-shadow: 0 0 20px rgba(212, 175, 55, 0.85); }
}

.loader-bar-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: barSheen 1.8s infinite linear;
}

@keyframes barSheen {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Reassurance badge */
.loader-reassurance {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(28, 147, 196, 0.12);
    border: 1px solid rgba(28, 147, 196, 0.3);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    margin-bottom: 1.15rem;
    font-size: 0.76rem;
    color: #CBE6F0;
    line-height: 1.35;
    text-align: right;
}

.reassurance-icon {
    color: #2ED573;
    flex-shrink: 0;
}

.loader-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 146, 78, 0.15);
    border: 1px solid rgba(184, 146, 78, 0.35);
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #F1DDAF;
}

.tagline-dot {
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #D4AF37;
    animation: pulse 2s infinite;
}

/* Timeout & Retry Container */
.loader-timeout-card {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(193, 59, 52, 0.15);
    border: 1px solid rgba(193, 59, 52, 0.4);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.timeout-text {
    font-size: 0.75rem;
    color: #FCA5A5;
    line-height: 1.3;
}

.btn-loader-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #C13B34;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-loader-retry:hover {
    background: #991B1B;
}

.fade-in {
    animation: fadeIn 0.45s var(--ease-silk);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trustPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(4, 97, 140, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(4, 97, 140, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .bank-trust-badge,
    .fade-in,
    .btn-bank-primary::before,
    .loader-spinner,
    .turnstile-spinner {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (BOTTOM RIGHT)
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s var(--ease-silk);
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float-btn:hover {
    color: #FFFFFF;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn svg {
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover svg {
    transform: scale(1.08);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #043349;
    color: #FFFFFF;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s var(--ease-silk);
    box-shadow: 0 4px 14px rgba(4, 51, 73, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #043349;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 6px 20px rgba(37, 211, 102, 0.35);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.35);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.65rem 0.5rem;
        text-align: center;
    }
    .brand-group {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        text-align: right;
    }
    .bank-header-logo {
        height: 40px;
        max-height: 40px;
    }
    .brand-logo-link {
        padding: 0.25rem 0.45rem;
    }
    .portal-service-name {
        font-size: 0.95rem;
    }
    .header-tools {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
    .support-badge,
    .btn-bank-header-site {
        font-size: 0.76rem;
        padding: 0.3rem 0.75rem;
    }
    .hero-section {
        margin: 1rem auto 1.25rem;
    }
    .hero-title {
        font-size: 1.45rem;
    }
    .hero-motto {
        font-size: 0.95rem;
    }
    .search-card {
        padding: 1.25rem;
    }
    .search-card::before {
        width: 70px;
        height: 70px;
    }
    .footer-top {
        gap: 1.25rem;
    }
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float-btn svg {
        width: 26px;
        height: 26px;
    }
    .app-instruction-banner {
        padding: 0.8rem 0.85rem;
    }
    .result-app-desc {
        font-size: 0.9rem;
    }
    .app-exclusive-alert {
        font-size: 0.82rem;
        padding: 0.35rem 0.75rem;
    }
    .whatsapp-tooltip {
        display: none;
    }
}