*, *::before, *::after {
    box-sizing: border-box;
}

/* Load Custom Fonts */
@font-face {
    font-family: 'Moderniz';
    src: url('Fonts/Moderniz.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OCR-B';
    src: url('Fonts/OCR-B.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f2fcf5 0%, #e0f2f1 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 45px;
    width: auto;
}

/* Mobile Menu Toggle Button (Hidden by default) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 102;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #169FB2;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.menu-overlay.active {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

/* Stable isolated nav class for non-index pages */
.standard-page .standard-nav-links {
    display: flex;
    align-items: center;
}

.standard-page {
    padding-top: 86px;
}

.standard-page .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
}

.standard-page .menu-overlay,
.standard-page .menu-overlay.active {
    display: none !important;
    background: transparent !important;
    pointer-events: none !important;
}

.standard-page .standard-nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    margin-left: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: 'Moderniz', sans-serif;
}

.standard-page .standard-nav-links a:hover {
    color: #169FB2;
}

.standard-page .standard-nav-links .btn-login {
    color: #F37021 !important;
    min-height: 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.standard-page .standard-nav-links .btn-signup {
    background-color: #F37021;
    color: #fff !important;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
}

@media (max-width: 900px) {
    .standard-page {
        overflow-x: hidden;
        padding-top: 74px;
    }

    .standard-page .mobile-menu-toggle {
        display: flex;
        z-index: 1201;
    }

    .standard-page .standard-nav-links {
        position: fixed;
        top: 0;
        right: -320px;
        bottom: 0;
        width: min(85vw, 320px);
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 88px 20px calc(24px + env(safe-area-inset-bottom));
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.14);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1200;
        transition: right 0.28s ease;
    }

    .standard-page .standard-nav-links.active {
        right: 0;
    }

    .standard-page .standard-nav-links a {
        display: block !important;
        margin: 0 !important;
        padding: 14px 8px !important;
        color: #1f2937 !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        line-height: 1.3;
        opacity: 1 !important;
        visibility: visible !important;
        text-decoration: none;
        font-family: Arial, sans-serif !important;
    }

    .standard-page .standard-nav-links .btn-signup {
        margin-top: 14px;
        text-align: center;
        border-bottom: none;
    }
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    margin-left: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: 'Moderniz', sans-serif;
}

.nav-links a:hover {
    color: #169FB2; 
}

.btn-login {
    color: #F37021 !important; 
}

.btn-signup {
    background-color: #F37021;
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
    transition: all 0.3s ease !important;
}

.btn-signup:hover {
    background-color: #e56015;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 112, 33, 0.3);
}

/* Hero Section (Modern Split Layout) */
.hero {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 5rem 5%; 
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.slogan {
    color: #F37021;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-family: 'Moderniz', sans-serif;
}

.tagline {
    color: #169FB2;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: 'Moderniz', sans-serif;
}

.description {
    font-size: 1.15rem; 
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #555;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Moderniz', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: #169FB2;
    color: white;
    box-shadow: 0 4px 15px rgba(22, 159, 178, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 159, 178, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #169FB2;
    border: 2px solid #169FB2;
}

.btn-secondary:hover {
    background-color: rgba(22, 159, 178, 0.05);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 650px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-graphic:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* =========================================
   Features Section (Alternating Cards)
   ========================================= */
.features-section {
    padding: 2rem 0 6rem 0;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: translateY(-5px);
}

.feature-text-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.4);
}

.feature-subheading {
    color: #169FB2;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-family: 'Moderniz', sans-serif;
    text-transform: uppercase;
}

.feature-heading {
    color: #F37021;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Moderniz', sans-serif;
    line-height: 1.1;
}

.feature-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    font-family: 'OCR-B', monospace;
    font-size: 0.9rem;
}

.legal-text {
    text-align: right;
    color: #888;
    font-size: 0.75rem;
    font-family: 'OCR-B', monospace;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
        gap: 3rem;
        min-height: auto;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-image-container {
        justify-content: center;
    }
    
    .hero-graphic {
        transform: none;
        max-width: 90%;
    }
    
    .tagline { 
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .slogan {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
        display: block;
    }
    
    .btn-login, .btn-signup {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        border-radius: 8px;
        display: block;
    }
    
    .cta-buttons { 
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column; 
        text-align: center;
        gap: 2rem;
    }
    
    .feature-text-card {
        padding: 2.5rem;
    }

    .feature-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }
    
    .navbar {
        padding: 1rem 4%;
    }
    
    .logo {
        height: 35px;
    }
    
    .hero {
        padding: 2rem 4%;
        gap: 2rem;
    }
    
    .tagline { 
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .slogan {
        font-size: 0.9rem;
        margin: 0.8rem 0;
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .hero-graphic {
        max-width: 100%;
        height: auto;
    }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 4%;
    }
    
    .legal-text { 
        text-align: center;
        font-size: 0.7rem;
    }
}
/* =========================================
   Internal Teller Portal Styles
   ========================================= */

.teller-body {
    background-color: #e8ecef; /* More clinical, gray background */
    font-family: 'OCR-B', monospace; /* Force the technical font everywhere */
    margin: 0;
    min-height: 100vh;
}

.teller-nav {
    background-color: #1a2529; /* Dark terminal header */
    color: #4CAF50; /* Terminal Green */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3%;
    border-bottom: 4px solid #169FB2;
}

.teller-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.teller-logo {
    height: 35px;
    filter: brightness(0) invert(1); /* Makes the logo white for the dark header */
}

.system-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.teller-user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.btn-logout {
    background-color: transparent;
    border: 1px solid #F37021;
    color: #F37021;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: #F37021;
    color: white;
}

.dashboard-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 3%;
    max-width: 1600px;
    margin: 0 auto;
}

.dashboard-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-right {
    flex: 2;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #169FB2;
}

.widget-title {
    font-family: 'Moderniz', sans-serif;
    color: #333;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Lookup Widget */
.search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-family: 'OCR-B', monospace;
    font-size: 1rem;
}

.search-input-group input:focus {
    border-color: #169FB2;
    outline: none;
}

.btn-search {
    background-color: #169FB2;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'OCR-B', monospace;
    font-weight: bold;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.btn-action {
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-family: 'OCR-B', monospace;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    color: white;
}

.btn-action.deposit { background-color: #4CAF50; }
.btn-action.withdraw { background-color: #F37021; }
.btn-action.transfer { background-color: #169FB2; }
.btn-action.freeze { background-color: #d32f2f; }

.btn-action:hover { filter: brightness(1.1); }

/* Alerts */
.alert-list {
    list-style: none;
    font-size: 0.85rem;
}

.alert {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid;
    background-color: #f9f9f9;
}

.alert.warning { border-color: #ff9800; }
.alert.info { border-color: #169FB2; }
.alert.critical { border-color: #d32f2f; color: #d32f2f; font-weight: bold; }

/* Profile Right Side */
.profile-widget {
    border-top-color: #F37021;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.customer-name {
    font-family: 'Moderniz', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.status-badge.active {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #c8e6c9;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: #f5f7f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.data-group {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.data-value {
    font-size: 1.1rem;
    color: #222;
    font-weight: bold;
}

.balance-section {
    background-color: #1a2529;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.balance-amount {
    font-family: 'Moderniz', sans-serif;
    color: #4CAF50;
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

.routing-number {
    font-size: 0.9rem;
    color: #888;
}

/* Ledger */
.sub-widget-title {
    font-family: 'Moderniz', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
}

.ledger-table th {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 2px solid #ddd;
    color: #666;
    font-size: 0.9rem;
}

.ledger-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.ledger-table .positive { color: #2e7d32; font-weight: bold; }
.ledger-table .negative { color: #d32f2f; }

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }
}
/* =========================================
   Client Portal Styles
   ========================================= */

.client-body {
    background-color: #f4f7f6;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Split Screen Layout */
.client-dashboard-split {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

.client-left-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #169FB2 0%, #0d707e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.client-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dashboard-image {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.dashboard-image:hover {
    transform: scale(1.02);
}

.overlay-text {
    color: white;
    text-align: center;
    max-width: 600px;
}

.overlay-text h2 {
    font-family: 'Moderniz', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.overlay-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.client-right-panel {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 2rem 3%;
}

.client-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.client-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.client-nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.client-nav-links a:hover,
.client-nav-links a.active {
    color: #169FB2;
}

.btn-logout-client {
    color: #d32f2f !important;
    border: 1px solid #d32f2f;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.btn-logout-client:hover {
    background-color: #ffebee;
}

/* Legacy dashboard style - kept for compatibility */
.client-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.welcome-text {
    font-family: 'Moderniz', sans-serif;
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.last-login {
    color: #888;
    font-size: 0.9rem;
    font-family: 'OCR-B', monospace;
}

.account-id-display {
    color: #169FB2;
    font-size: 0.95rem;
    font-family: 'OCR-B', monospace;
    font-weight: bold;
    margin-top: 0.5rem;
}

.account-id-display span {
    color: #F37021;
}

/* Full-width Dashboard Layout */
.client-dashboard-full {
    background-color: #f4f7f6;
    min-height: calc(100vh - 80px);
}

.client-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3%;
}

/* Card CVV Styling */
.card-cvv {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'OCR-B', monospace;
    font-weight: bold;
}

.card-cvv span {
    letter-spacing: 2px;
}

/* QR Receive Widget */
.qr-receive-widget {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2f7 100%);
    border-left: 4px solid #169FB2;
}

.qr-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qr-custom-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#qrDisplay {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#qrcode {
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

#qrcode img {
    display: block;
    margin: 0 auto;
}

/* QR Scanner Button */
.btn-scan-qr {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-bottom: 1rem;
}

.btn-scan-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#qrScannerContainer {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #169FB2;
}

#qrReader {
    background: #000;
}

/* OR Divider */
.or-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}


.profile-icon {
    width: 60px;
    height: 60px;
    background-color: #F37021;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-family: 'Moderniz', sans-serif;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.3);
}

.client-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
}

.client-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

/* Balance Card */
.balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #169FB2 0%, #0d707e 100%);
    color: white;
    border: none;
}

.balance-card h3 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.total-funds {
    font-family: 'Moderniz', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.total-funds .currency {
    font-size: 1.2rem;
    opacity: 0.8;
}

.account-routing {
    font-family: 'OCR-B', monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-client-primary {
    background-color: #F37021;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-client-primary:hover {
    background-color: #e56015;
}

.btn-client-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-client-secondary:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Activity List */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.widget-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.view-all {
    color: #169FB2;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-details {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.activity-icon.purchase { background: #fff3e0; color: #ff9800; }
.activity-icon.transfer { background: #e0f2f1; color: #009688; }
.activity-icon.bill { background: #ffebee; color: #f44336; }
.activity-icon.deposit { background: #e8f5e9; color: #4caf50; }

.activity-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
}

.activity-date {
    font-size: 0.85rem;
    color: #888;
}

.activity-amount {
    font-family: 'OCR-B', monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

.activity-amount.positive { color: #2e7d32; }
.activity-amount.negative { color: #333; }

/* Virtual Card */
.virtual-card {
    background: linear-gradient(135deg, #333 0%, #111 100%);
    border-radius: 16px;
    padding: 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}

.card-type {
    font-family: 'Moderniz', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card-number {
    font-family: 'OCR-B', monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    font-family: 'OCR-B', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Quick Transfer */
.transfer-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.transfer-input {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.currency-symbol {
    font-family: 'Moderniz', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-right: 0.5rem;
}

.transfer-input input {
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    width: 100%;
    color: #169FB2;
    font-family: 'OCR-B', monospace;
}

.transfer-input input:focus {
    outline: none;
}

.recipient-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: system-ui, sans-serif;
}

.btn-client-primary.full-width {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .client-dashboard-split {
        flex-direction: column;
    }
    
    .client-left-panel {
        flex: 0 0 auto;
        min-height: 50vh;
        padding: 2rem;
    }
    
    .overlay-text h2 {
        font-size: 1.8rem;
    }
    
    .dashboard-image {
        max-width: 90%;
    }
    
    .client-right-panel {
        padding: 2rem 5%;
    }
    
    .client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
    }
    .balance-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .balance-actions {
        flex-direction: row;
        width: 100%;
    }
    .balance-actions button {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .client-left-panel {
        min-height: 40vh;
        padding: 1.5rem;
    }
    
    .overlay-text h2 {
        font-size: 1.4rem;
    }
    
    .overlay-text p {
        font-size: 0.95rem;
    }
}

/* =========================================
   LOGIN SPLIT-SCREEN LAYOUT (BDO Style)
   ========================================= */

.login-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.login-split-container {
    display: flex;
    min-height: 100vh;
    height: auto;
}

.login-left-panel {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #169FB2 0%, #0d707e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.login-image-full {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 7px;
}

.login-logo-top {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.login-logo-top .logo {
    height: 45px;
    filter: brightness(0) invert(1);
}

.login-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-image {
    max-width: 70%;
    max-height: 60%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.login-image:hover {
    transform: scale(1.02);
}

.login-overlay-text {
    color: white;
    text-align: center;
    max-width: 600px;
}

.login-overlay-text h2 {
    font-family: 'Moderniz', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-overlay-text p {
    font-size: 1.15rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.login-right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-title {
    font-family: 'Moderniz', sans-serif;
    color: #169FB2;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-input-group {
    display: flex;
    flex-direction: column;
}

.login-input-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.login-input-group input {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: system-ui, sans-serif;
}

.login-input-group input:focus {
    outline: none;
    border-color: #169FB2;
    box-shadow: 0 0 0 3px rgba(22, 159, 178, 0.1);
}

.login-error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    font-size: 0.9rem;
}

.login-btn-submit {
    background: linear-gradient(135deg, #169FB2 0%, #0d707e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(22, 159, 178, 0.3);
}

.login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 159, 178, 0.4);
}

.login-divider {
    text-align: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.9rem;
}

.login-btn-secondary {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border: 2px solid #169FB2;
    color: #169FB2;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn-secondary:hover {
    background-color: #169FB2;
    color: white;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.security-badge-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.security-badge-small svg {
    color: #169FB2;
}

/* Login Responsive */
@media (max-width: 900px) {
    .login-split-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login-left-panel {
        flex: 0 0 auto;
        min-height: 35vh;
        max-height: 40vh;
        padding: 1.5rem;
    }
    
    .login-image-full {
        max-height: 30vh;
        object-fit: cover;
    }
    
    .login-logo-top {
        top: 1rem;
        left: 1rem;
    }
    
    .login-logo-top .logo {
        height: 35px;
    }
    
    .login-illustration {
        padding: 1rem;
    }
    
    .login-image {
        max-width: 80%;
        max-height: 50%;
        margin-bottom: 1rem;
    }
    
    .login-overlay-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .login-overlay-text p {
        font-size: 0.95rem;
    }
    
    .login-right-panel {
        flex: 1;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        min-height: auto;
    }
    
    .login-form-wrapper {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .login-left-panel {
        min-height: 25vh;
        max-height: 30vh;
        padding: 1rem;
    }
    
    .login-image {
        max-width: 90%;
        max-height: 40%;
    }
    
    .login-overlay-text h2 {
        font-size: 1.3rem;
    }
    
    .login-overlay-text p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .login-right-panel {
        padding: 2rem 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 30vh);
    }
    
    .login-form-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-input {
        padding: 0.8rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .login-btn-submit {
        padding: 0.9rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .login-divider {
        margin: 1.5rem 0;
    }
    
    .security-badge-small {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* =========================================
   Form Page Styles (Open Account)
   ========================================= */

.form-page {
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    border-top: 6px solid #169FB2;
}

.form-title {
    font-family: 'Moderniz', sans-serif;
    color: #169FB2;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.pawpay-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-family: 'Moderniz', sans-serif;
    color: #F37021;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group.half-width {
    flex: 1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: system-ui, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #169FB2;
    box-shadow: 0 0 0 3px rgba(22, 159, 178, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

.helper-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #169FB2;
    background-color: #e8f5f7;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #169FB2;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-group > label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.radio-options {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-options input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #169FB2;
}

.radio-options label {
    cursor: pointer;
    font-size: 1rem;
    color: #555;
}

.terms-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    max-height: 300px;
    overflow-y: auto;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #169FB2;
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.btn-submit {
    background: linear-gradient(135deg, #169FB2 0%, #0d707e 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Moderniz', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 6px 20px rgba(22, 159, 178, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(22, 159, 178, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Form Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        border-radius: 12px;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group.half-width {
        width: 100%;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* Login Page Styles */
.login-container {
    max-width: 500px;
}

.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.form-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.link-primary {
    color: #169FB2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.link-primary:hover {
    color: #0d707e;
    text-decoration: underline;
}
/* =========================================
   MOBILE OPTIMIZATION & ENHANCEMENTS
   ========================================= */

/* Ensure body can scroll on all devices */
body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly interactive elements */
button, .btn-primary, .btn-secondary, .btn-login, .btn-signup, 
.btn-client-primary, .btn-client-secondary, .login-btn-submit, 
.login-btn-secondary, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Prevent horizontal scroll issues */
* {
    box-sizing: border-box;
}

/* Table horizontal scroll on mobile */
@media (max-width: 768px) {
    /* Ensure scrollability */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    /* Remove any fixed heights that prevent scrolling */
    .hero, .login-split-container, .form-page {
        min-height: auto;
        height: auto;
    }
    
    .ledger-table-wrapper, .user-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .ledger-table, .user-registry-table {
        min-width: 600px;
    }
    
    /* Improved form spacing */
    .form-page {
        padding: 2rem 4%;
        min-height: auto;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    /* Better button sizing on mobile */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Navigation improvements */
    .nav-links {
        display: none; /* Hidden on mobile */
    }
    
    .navbar {
        padding: 1rem 4%;
    }
    
    /* Client portal mobile improvements */
    .client-nav {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .client-nav-links {
        width: 100%;
        order: 3;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .client-nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
    
    .btn-logout-client {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Better input field sizing */
    input[type="text"], input[type="password"], input[type="email"], 
    input[type="number"], select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem;
        min-height: 44px;
    }
    
    /* Teller portal mobile */
    .teller-container {
        padding: 1.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Fix cramped layouts */
    .widget {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Ensure sections are visible */
    section {
        padding: 2rem 4%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Ensure full scrollability */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    
    /* Hero section */
    .hero {
        padding: 1.5rem 4%;
        gap: 1.5rem;
    }
    
    .tagline {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .slogan {
        font-size: 0.85rem;
        margin: 0.6rem 0;
    }
    
    .description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.8rem 4%;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
    }
    
    .btn-login, .btn-signup {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        border-radius: 8px;
    }
    
    .logo {
        height: 32px;
    }
    
    /* Buttons */
    .cta-buttons {
        padding: 0;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Login page */
    .login-left-panel {
        min-height: 20vh;
        max-height: 25vh;
        padding: 0.8rem;
    }
    
    .login-logo-top .logo {
        height: 30px;
    }
    
    .login-image {
        max-width: 100%;
        max-height: 35%;
    }
    
    .login-overlay-text h2 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .login-overlay-text p {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .login-right-panel {
        padding: 1.5rem 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 25vh);
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    /* Form improvements */
    .form-page {
        padding: 1.5rem 4%;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Client portal */
    .client-header h1 {
        font-size: 1.3rem;
    }
    
    .client-header p {
        font-size: 0.8rem;
    }
    
    .total-funds {
        font-size: 1.8rem;
    }
    
    .client-grid {
        gap: 1rem;
    }
    
    .client-widget {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .widget-header h3 {
        font-size: 1rem;
    }
    
    /* Virtual card */
    .virtual-card {
        padding: 1.2rem;
    }
    
    .card-number {
        font-size: 0.95rem;
    }
    
    /* Feature sections */
    .feature-text-card {
        padding: 1.5rem;
    }
    
    .feature-heading {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-subheading {
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 4%;
        font-size: 0.85rem;
    }
    
    .legal-text {
        font-size: 0.65rem;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .login-split-container {
        flex-direction: row;
    }
    
    .login-left-panel {
        flex: 0 0 40%;
        min-height: 100vh;
    }
    
    .client-dashboard-split {
        flex-direction: row;
    }
    
    .client-left-panel {
        flex: 0 0 35%;
    }
}

/* Print optimization */
@media print {
    .navbar, .client-nav, .teller-nav,
    .btn-logout-client, .mobile-menu-toggle,
    button, .cta-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .client-dashboard-split, .login-split-container {
        flex-direction: column;
    }
}

/* =========================================
   MOBILE MENU & NAVBAR CSS
   ========================================= */
.navbar, .client-nav, .teller-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #169FB2;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* =========================================
   MEDIA QUERIES FOR MOBILE OPTIMIZATION
   ========================================= */
@media screen and (max-width: 768px) {
    /* Navbar Mobile Behavior */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        display: flex;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-overlay.active {
        display: block;
    }

    /* Burger Animation when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero & Feature Sections */
    .hero, .feature-row, .feature-row.reverse {
        flex-direction: column !important;
        text-align: center;
        padding: 2rem 5%;
    }

    .feature-image-container, .feature-text-card {
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-content h1, .tagline {
        font-size: 2.2rem !important;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }
    .half-width {
        width: 100%;
    }

    /* Login Screen */
    .login-split-container {
        flex-direction: column;
    }
    .login-left-panel {
        display: none;
    }
    .login-right-panel {
        width: 100%;
        padding: 2rem;
    }

    /* Portals */
    .client-grid, .dashboard-container {
        display: flex;
        flex-direction: column;
    }
    .client-left, .client-right, .dashboard-left, .dashboard-right {
        width: 100%;
    }
    
    .client-nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
}

/* =========================================
   MOBILE MENU & NAVBAR CSS
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative; /* Keeps navbar structure solid */
    z-index: 10000; /* Absolute highest so burger is always clickable */
}

/* The dark background overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6); /* Slightly darker for better contrast */
    z-index: 9998; /* Stays BEHIND the navbar and menu */
}

.menu-overlay.active {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001; /* Highest priority for clicking */
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #169FB2;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   MEDIA QUERIES FOR MOBILE OPTIMIZATION
   ========================================= */
@media screen and (max-width: 768px) {
    /* --- NAVBAR & MOBILE MENU FIXES --- */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh !important; /* Forces it to match device height */
        width: 280px; /* Fixed width prevents stretching */
        max-width: 85vw; /* Keeps it from covering the whole screen */
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start; /* Align text to the left */
        justify-content: flex-start; /* Start from the top */
        transition: right 0.3s ease;
        z-index: 9999; /* Sits ON TOP of the dark overlay */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        display: flex;
        gap: 1.5rem;
        padding: 6rem 2rem 2rem 2rem; /* Pushes content below the close button */
        box-sizing: border-box;
        overflow-y: auto; /* Lets the menu scroll internally if it gets too long */
    }

    .nav-links.active {
        right: 0;
    }

    /* Format the links inside the mobile menu */
    .nav-links a {
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        font-size: 1.1rem;
        margin: 0;
        color: #333; /* Dark text for visibility */
        border-bottom: 1px solid #f0f0f0; /* Nice dividers between links */
        padding-bottom: 10px;
    }

    .nav-links .btn-login, 
    .nav-links .btn-signup {
        text-align: center;
        display: block;
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
        border-bottom: none; /* Removes the divider from buttons */
    }

    /* Burger Animation when active */
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* --- LOGIN PAGE FIXES --- */
    .login-body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
        background-color: #ffffff;
    }

    .login-split-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
    }

    .login-left-panel {
        display: none !important;
    }

    .login-right-panel {
        width: 100% !important;
        padding: 4rem 2rem 4rem 2rem !important; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .login-title {
        font-size: 2.2rem !important; 
        margin-top: 0;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .login-input-group input, 
    .login-btn-submit, 
    .login-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }

    /* --- GENERAL LAYOUT FIXES --- */
    .hero, .feature-row, .feature-row.reverse {
        flex-direction: column !important;
        text-align: center;
        padding: 2rem 5%;
    }

    .feature-image-container, .feature-text-card {
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-content h1, .tagline {
        font-size: 2.2rem !important;
    }

    .form-row {
        flex-direction: column;
    }
    
    .half-width {
        width: 100%;
    }

    .client-grid, .dashboard-container {
        display: flex;
        flex-direction: column;
    }
    
    .client-left, .client-right, .dashboard-left, .dashboard-right {
        width: 100%;
    }
    
    .client-nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
}

/* =========================================
   FINAL MOBILE STABILITY OVERRIDES
   (kept at end so these rules win)
   ========================================= */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body,
    .client-body,
    .teller-body,
    .login-body {
        min-height: 100dvh;
    }

    .hero,
    .features-section,
    section,
    .form-page,
    footer {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .hero,
    .feature-row,
    .feature-row.reverse,
    .client-grid,
    .dashboard-container,
    .form-row {
        display: flex;
        flex-direction: column !important;
        gap: 1rem;
    }

    .feature-image-container,
    .feature-text-card,
    .client-left,
    .client-right,
    .dashboard-left,
    .dashboard-right,
    .form-group.half-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    .client-widget,
    .widget,
    .form-container {
        padding: 1rem !important;
        border-radius: 12px;
    }

    .login-split-container {
        min-height: 100dvh;
        height: auto;
        display: block;
    }

    .login-left-panel {
        display: none !important;
    }

    .login-right-panel {
        width: 100% !important;
        min-height: 100dvh;
        max-height: none !important;
        padding: 1.25rem 1rem 2rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: 100% !important;
        margin: 0 auto;
        padding-bottom: 1.5rem;
    }

    .login-btn-submit,
    .login-btn-secondary,
    .btn-primary,
    .btn-secondary,
    .btn-client-primary,
    .btn-client-secondary,
    .btn-action,
    .btn-search,
    .btn-logout {
        width: 100%;
        min-height: 46px;
    }

    .client-nav {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .client-nav .logo-container {
        width: 100%;
    }

    .client-nav-links {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .client-nav-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .navbar {
        padding: 0.8rem 4%;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        right: -100% !important;
        top: 0;
        width: min(82vw, 320px) !important;
        height: 100dvh;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 5rem 1rem 1rem !important;
        overflow-y: auto;
        gap: 0.5rem !important;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 0.9rem 0.75rem;
        margin: 0 !important;
    }

    .menu-overlay.active {
        display: block;
        z-index: 1000;
    }

    /* Handle pages with large inline style values */
    .form-page[style],
    .hero[style],
    section[style] {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    .form-container[style],
    .hero-content[style] {
        max-width: 100% !important;
    }

    .form-title[style],
    .tagline[style] {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.2;
    }

    .account-id-display,
    .card-number,
    .total-funds,
    .system-title {
        word-break: break-word;
    }

    #userListContainer,
    #applicationsContainer {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .tagline,
    .form-title,
    .login-title,
    .feature-heading {
        font-size: 1.35rem !important;
    }

    .description,
    .feature-description,
    .form-subtitle,
    .login-subtitle {
        font-size: 0.88rem !important;
    }

    .client-widget,
    .widget,
    .form-container,
    .feature-text-card {
        padding: 0.9rem !important;
    }

    .client-header {
        padding: 0.9rem;
    }
}

/* =========================================
   MOBILE OPTIMIZATION FOR LOGIN PAGE
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* Allow the body to scroll freely on mobile */
    .login-body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
        background-color: #ffffff; /* Ensure background stays clean */
    }

    /* Stack the container and let it grow based on content */
    .login-split-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
    }

    /* Hide the decorative image on small screens */
    .login-left-panel {
        display: none !important;
    }

    /* Center the form nicely on mobile */
    .login-right-panel {
        width: 100% !important;
        padding: 3rem 1.5rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    /* Keep the form wrapper contained */
    .login-form-wrapper {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }

    /* Scale down the massive title so it doesn't get cut off */
    .login-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        text-align: left; /* Or center, depending on your preference */
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .login-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* Ensure buttons and inputs span full width nicely */
    .login-input-group input, 
    .login-btn-submit, 
    .login-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   MEDIA QUERIES FOR MOBILE OPTIMIZATION
   ========================================= */
@media screen and (max-width: 768px) {
    /* --- NAVBAR & MOBILE MENU FIXES --- */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed !important; 
        top: 0;
        bottom: 0; /* Anchors to bottom to fix the 100vh glitch */
        right: -100%;
        height: 100% !important; 
        width: 280px; 
        max-width: 85vw; 
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start; 
        justify-content: flex-start; 
        transition: right 0.3s ease;
        z-index: 9999; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        display: flex;
        gap: 1.5rem;
        padding: 6rem 2rem 2rem 2rem; 
        overflow-y: auto; 
    }

    .nav-links.active {
        right: 0;
    }

    .menu-overlay {
        display: none;
        position: fixed !important;
        top: 0;
        bottom: 0;
        height: 100% !important;
        width: 100vw;
        background: rgba(0,0,0,0.6); 
        z-index: 9998; 
    }

    .menu-overlay.active {
        display: block;
    }

    /* Force mobile menu links and buttons to stay inside the panel */
    .nav-links a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        font-size: 1.1rem;
        margin: 0;
        color: #333 !important;
        opacity: 1;
        visibility: visible;
    }

    .nav-links .btn-login, 
    .nav-links .btn-signup {
        display: block;
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .nav-links .btn-login {
        color: #F37021 !important;
        border: 2px solid #F37021;
        border-radius: 8px;
        text-align: center;
    }

    .nav-links .btn-signup {
        background-color: #F37021;
        color: #fff !important;
        border-radius: 8px;
        text-align: center;
    }

    /* Burger Animation when active */
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* --- LOGIN PAGE FIXES --- */
    .login-body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
    }

    .login-split-container {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
    }

    .login-left-panel {
        display: none !important;
    }

    .login-right-panel {
        width: 100% !important;
        /* Massive top padding so it doesn't stick to the browser bar */
        padding: 6rem 2rem 4rem 2rem !important; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Flows naturally from top to bottom */
        min-height: 100vh;
        box-sizing: border-box;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .login-title {
        font-size: 2.4rem !important; /* Slightly smaller to fit safely */
        margin-top: 0;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .login-input-group input, 
    .login-btn-submit, 
    .login-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }

    /* --- CENTERING & LAYOUT FIXES (Business Page & Home) --- */
    .hero, .feature-row, .feature-row.reverse, section {
        flex-direction: column !important;
        text-align: center;
        padding: 2rem 5% !important;
        width: 100% !important; /* Locks width to prevent shifting */
        overflow-x: hidden; /* Prevents side-to-side wobble */
    }

    .hero-content, .feature-text-card {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .feature-image-container {
        width: 100% !important;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .hero-content h1, .tagline {
        font-size: 2.2rem !important;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }
    .half-width {
        width: 100%;
    }

    /* Portals */
    .client-grid, .dashboard-container {
        display: flex;
        flex-direction: column;
    }
    .client-left, .client-right, .dashboard-left, .dashboard-right {
        width: 100%;
    }
    
    .client-nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
}

.recipient-feedback {
    font-size: 0.85rem;
    margin-top: -5px;
    margin-bottom: 12px;
    min-height: 20px;
    transition: all 0.3s ease;
}
.feedback-searching { color: #666; font-style: italic; }
.feedback-success { color: #2e7d32; font-weight: 600; }
.feedback-error { color: #d32f2f; }

/* TPIN & Auth Modal Styles */
.auth-qr-container {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}
.auth-status-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}
.tpin-input-display {
    font-family: 'OCR-B', monospace;
    font-size: 2rem;
    letter-spacing: 8px;
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border: 2px solid #169FB2;
    border-radius: 8px;
    padding: 0.5rem;
    color: #005b9f;
}
.btn-security-action {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    margin-top: 10px;
}

/* --- CUSTOM MODAL ICONS --- */
.custom-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
}
/* Icon Color Variants */
.icon-success { background: #e8f5e9; color: #2e7d32; }
.icon-error   { background: #ffebee; color: #d32f2f; }
.icon-info    { background: #e1f0fc; color: #005b9f; }
.icon-warning { background: #fff8e1; color: #f57f17; }

/* --- 6-CIRCLE TPIN INPUT STYLES --- */
.tpin-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.tpin-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    /* Hide number spinners */
    -moz-appearance: textfield; 
}

.tpin-circle:focus {
    border-color: #169FB2;
    box-shadow: 0 0 0 4px rgba(22, 159, 178, 0.15);
    transform: scale(1.05);
}

/* Hide number spinners for Chrome, Safari, Edge, Opera */
.tpin-circle::-webkit-outer-spin-button,
.tpin-circle::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- CUSTOM MODAL ICONS --- */
.custom-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
}
/* Icon Color Variants */
.icon-success { background: #e8f5e9; color: #2e7d32; }
.icon-error   { background: #ffebee; color: #d32f2f; }
.icon-info    { background: #e1f0fc; color: #005b9f; }
.icon-warning { background: #fff8e1; color: #f57f17; }

/* --- 6-CIRCLE TPIN INPUT STYLES (Optimized Size) --- */
.tpin-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reduced gap */
    margin: 15px 0;
}

.tpin-circle {
    width: 36px;  /* Reduced from 45px */
    height: 36px; /* Reduced from 45px */
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #ffffff;
    
    /* Font & Text Alignment */
    font-family: 'OCR-B', monospace;
    font-size: 1.2rem; /* Reduced from 1.5rem */
    font-weight: bold;
    color: #334155;
    text-align: center;
    
    /* Critical for centering dot */
    padding: 0;
    margin: 0;
    line-height: 32px; /* Height (36px) minus borders (4px) */
    
    /* Aesthetics */
    outline: none;
    transition: all 0.2s ease;
    caret-color: transparent; /* Hides blinking cursor */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    
    /* Hide default browser input styles */
    -moz-appearance: textfield; 
    -webkit-appearance: none;
    appearance: none;
}

.tpin-circle:focus {
    border-color: #169FB2;
    background-color: #f0fdfe;
    box-shadow: 0 0 0 3px rgba(22, 159, 178, 0.2);
    transform: translateY(-2px);
}

/* Hide number spinners for Chrome, Safari, Edge, Opera */
.tpin-circle::-webkit-outer-spin-button,
.tpin-circle::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- RECTANGULAR TPIN INPUT STYLE --- */
.tpin-input-display {
    font-family: 'OCR-B', monospace;
    font-size: 2rem;
    letter-spacing: 8px;
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border: 2px solid #169FB2;
    border-radius: 8px;
    padding: 0.5rem;
    color: #005b9f;
    outline: none;
    transition: all 0.3s ease;
}

.tpin-input-display:focus {
    box-shadow: 0 0 0 4px rgba(22, 159, 178, 0.2);
}

/* --- PROMO SLIDESHOW STYLES (Fixed Size & Rounded) --- */
.promo-banner {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.promo-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    
    /* ADDED: 15px rounded corners */
    border-radius: 15px; 
    
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.promo-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.promo-slide.active-slide {
    opacity: 1;
    z-index: 2;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    
    /* ADDED: Ensure image respects the corners */
    border-radius: 15px;
}

.promo-indicators {
    display: none !important;
}