/* ════════════════════════════════════════════════════════════
   ENTERPRISE NET BANKING CUSTOM BRANDED DESIGN SYSTEM (netbanking.css)
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --nb-navy-900: #0a2140;
    --nb-navy-800: #0f2d54;
    --nb-navy-700: #123a6b;
    --nb-navy-600: #1e4e8c;
    --nb-gold-500: #c9932e;
    --nb-gold-400: #e0ab45;
    --nb-gold-100: #f6ead0;
    --nb-bg: #f3f5f8;
    --nb-card: #ffffff;
    --nb-text-dark: #1a202c;
    --nb-text-muted: #64748b;
    --nb-border: #e2e8f0;
    --nb-success: #10b981;
    --nb-warning: #f59e0b;
    --nb-warning-bg: #fffbeb;
    --nb-warning-border: #fef3c7;
    --nb-danger: #ef4444;
    --nb-font: 'Inter', sans-serif;
}

body.netbanking-body {
    font-family: var(--nb-font) !important;
    margin: 0;
    padding: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ══════════ THEME ENGINE (PERSISTENT LIGHT / DARK MODE) ══════════ */
body.theme-dark,
[data-theme="dark"] body {
    background-color: #0c1a30 !important;
    color: #ffffff !important;
}

body.theme-light,
[data-theme="light"] body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Global Dark Mode Helper Overrides */
body.theme-dark .bg-light {
    background-color: #153159 !important;
    border-color: #23497d !important;
    color: #cbd5e1 !important;
}
body.theme-dark .text-muted {
    color: #94a3b8 !important;
}
body.theme-dark .text-dark {
    color: #ffffff !important;
}
body.theme-dark .border {
    border-color: #1e3a66 !important;
}

/* Light Mode Theme Overrides for Text & Headings */
body.theme-light .nb-welcome-title,
body.theme-light .nb-accounts-title,
body.theme-light .nb-deposits-title,
body.theme-light .nb-loans-title,
body.theme-light .nb-shares-title,
body.theme-light .nb-statement-title,
body.theme-light .nb-profile-title,
body.theme-light .nb-section-header,
body.theme-light .nb-fav-header-title,
body.theme-light .nb-recharge-tab-link,
body.theme-light .nb-service-tile-title,
body.theme-light .nb-ql-header,
body.theme-light .scheme-title,
body.theme-light h1:not(.modal-title):not(.text-white),
body.theme-light h2:not(.modal-title):not(.text-white),
body.theme-light h3:not(.modal-title):not(.text-white),
body.theme-light h4:not(.modal-title):not(.text-white),
body.theme-light h5:not(.modal-title):not(.text-white),
body.theme-light h6:not(.modal-title):not(.text-white) {
    color: #0f172a !important;
}

/* Modal headers always have a dark navy background — keep title text white in BOTH themes */
.modal-header .modal-title,
.modal-header h5,
.modal-header h4,
.modal-title.text-white {
    color: #ffffff !important;
}

body.theme-light .nb-welcome-subtitle,
body.theme-light .nb-balance-toggle-area span,
body.theme-light .scheme-subtitle,
body.theme-light .nb-service-tile-subtitle {
    color: #475569 !important;
}

body.theme-light .nb-tabs-list-wrapper {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.theme-light .nb-tab-pill-large {
    background-color: #ffffff !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

body.theme-light .nb-tab-pill-large .title-lbl {
    color: #0f172a !important;
}

body.theme-light .nb-tab-pill-large .sub-lbl {
    color: #64748b !important;
}

body.theme-light .nb-tab-pill-small {
    background-color: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.theme-light .nb-tab-pill-small:hover {
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

body.theme-light .nb-top-search-header {
    background-color: #0b3c95 !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

body.theme-light .nb-sub-navbar {
    background-color: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .nb-sub-nav-link {
    color: #475569 !important;
}

body.theme-light .nb-sub-nav-link.active,
body.theme-light .nb-sub-nav-link:hover {
    color: #0b3c95 !important;
    border-bottom-color: #0b3c95 !important;
}

/* Footer Theme Rules */
.nb-portal-footer,
body.theme-dark .nb-portal-footer {
    background-color: #071527;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.nb-footer-link,
body.theme-dark .nb-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.nb-footer-link:hover,
body.theme-dark .nb-footer-link:hover {
    color: #ffffff;
}

body.theme-light .nb-portal-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

body.theme-light .nb-footer-text {
    color: #64748b !important;
}

body.theme-light .nb-footer-link {
    color: #64748b !important;
    text-decoration: none;
}

body.theme-light .nb-footer-link:hover {
    color: #0b3c95 !important;
}

/* ══════════ COMMON LAYOUTS ══════════ */
.nb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 15px;
}

.nb-card {
    background: var(--nb-card);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--nb-border);
    margin-bottom: 24px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nb-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* ══════════ NAVBAR & HEADER ══════════ */
.nb-header {
    background: var(--nb-navy-900);
    color: #ffffff;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.nb-brand img {
    height: 40px;
}

.nb-brand span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nb-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nb-nav-link:hover,
.nb-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nb-nav-link.active {
    border-bottom: 3px solid var(--nb-gold-500);
    border-radius: 4px 4px 0 0;
}

.nb-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.nb-user-menu .logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.nb-user-menu .logout-btn:hover {
    background: var(--nb-danger);
    border-color: var(--nb-danger);
}

/* ══════════ LOGIN PAGE (SPLIT-SCREEN) ══════════ */
.nb-login-container {
    min-height: 100vh;
    display: flex;
    background: #ffffff;
}

.nb-login-left {
    flex: 1.6;
    background: linear-gradient(135deg, #091e36 0%, #12355b 100%);
    color: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-y: auto;
}

.nb-login-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.nb-login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
    background: #ffffff;
    min-height: 100vh;
    overflow-y: auto;
}

.nb-login-box {
    width: 100%;
    max-width: 380px;
}

.nb-tab-group {
    display: flex;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 20px;
}

.nb-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.nb-tab-btn.active {
    color: #1e40af;
    font-weight: 600;
}

.nb-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1e40af;
}

/* Alert Boxes & Stay Alert Card */
.nb-stay-alert-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.nb-stay-alert-card .nb-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nb-stay-alert-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.nb-stay-alert-card p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 0;
}

/* QR Code Click Box */
.nb-qr-scan-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.nb-qr-scan-box:hover {
    border-color: #1e40af;
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.05);
}

.nb-qr-scan-box .nb-qr-icon-circle {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    margin-right: 12px;
}

.nb-qr-scan-box .nb-qr-text {
    flex: 1;
    text-align: left;
}

.nb-qr-scan-box .nb-qr-text .nb-qr-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.nb-qr-scan-box .nb-qr-text .nb-qr-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.nb-qr-scan-box .nb-badge-new {
    background-color: #16a34a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Input Fields Styling */
.nb-input-group {
    margin-bottom: 16px;
    position: relative;
}

.nb-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.nb-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s;
}

.nb-input-wrapper:focus-within {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.nb-input-wrapper input {
    border: none;
    background: none;
    flex: 1;
    height: 38px;
    padding: 0 12px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
}

.nb-input-wrapper i {
    padding: 10px;
    color: #64748b;
    cursor: pointer;
}

.nb-field-link {
    display: inline-block;
    font-size: 12px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    margin-top: 6px;
}

.nb-field-link:hover {
    text-decoration: underline;
}

/* Digicert Promotion Banner */
.nb-digicert-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nb-digicert-banner .text-content {
    text-align: left;
}

.nb-digicert-banner .nb-digi-title {
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 2px;
}

.nb-digicert-banner .nb-digi-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.nb-digicert-banner .lock-graphic {
    color: #0284c7;
    opacity: 0.85;
}

/* ══════════ VIRTUAL KEYPAD ══════════ */
.nb-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--nb-border);
    border: 1px solid var(--nb-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nb-keypad.show {
    height: 160px;
    opacity: 1;
    visibility: visible;
}

.nb-key {
    background: #fff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--nb-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    outline: none;
}

.nb-key:hover {
    background: #f8fafc;
}

.nb-key:active {
    background: #f1f5f9;
}

.nb-key.back {
    color: var(--nb-navy-600);
}

.nb-key.ok {
    color: var(--nb-success);
    font-size: 14px;
    font-weight: 700;
}

/* ══════════ DASHBOARD DESIGN ══════════ */
.nb-welcome-header {
    background: linear-gradient(135deg, var(--nb-navy-900) 0%, var(--nb-navy-800) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nb-welcome-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.nb-welcome-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    margin: 0;
}

.nb-balance-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 20px;
}

.nb-balance-toggle span {
    font-size: 14px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--nb-gold-500);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Balance Grid */
.nb-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.nb-account-card {
    background: #fff;
    border: 1px solid var(--nb-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.nb-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--nb-navy-600);
}

.nb-account-card.savings::before {
    background-color: var(--nb-navy-600);
}

.nb-account-card.current::before {
    background-color: var(--nb-gold-500);
}

.nb-account-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--nb-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.nb-account-no {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--nb-text-dark);
}

.nb-balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--nb-text-dark);
    margin: 10px 0;
}

/* Sidebar Favorite links */
.nb-fav-links-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--nb-border);
    padding: 0;
    overflow: hidden;
}

.nb-fav-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid var(--nb-border);
    font-size: 16px;
    font-weight: 700;
}

.nb-fav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-fav-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--nb-border);
    color: var(--nb-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.nb-fav-item a:hover {
    background: #f8fafc;
}

.nb-fav-item:last-child a {
    border-bottom: none;
}

.nb-fav-item i.link-icon {
    color: var(--nb-navy-600);
    margin-right: 12px;
}

.nb-fav-footer {
    padding: 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid var(--nb-border);
}

.nb-fav-footer a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nb-navy-600);
    text-decoration: none;
}

/* ══════════ MY PROFILE PAGE ══════════ */
.nb-profile-header-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--nb-border);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

.nb-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.nb-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 2px solid var(--nb-border);
}

.nb-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--nb-navy-900);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.nb-avatar-edit:hover {
    background: var(--nb-gold-500);
}

.nb-profile-meta h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.nb-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.nb-meta-item {
    font-size: 13px;
    color: var(--nb-text-muted);
}

.nb-meta-item strong {
    display: block;
    font-size: 15px;
    color: var(--nb-text-dark);
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   PROFILE PAGE — PREMIUM DESIGN SYSTEM
   ════════════════════════════════════════════════════════════ */

/* Sub-tabs */
.nb-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--nb-border);
}

.nb-subtab-btn {
    background: none;
    border: none;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nb-text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
}

.nb-subtab-btn:hover {
    color: var(--nb-navy-900);
    background: rgba(11,60,149,0.04);
}

.nb-subtab-btn.active {
    color: var(--nb-navy-900);
}

.nb-subtab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b3c95, #1d4ed8);
    border-radius: 2px 2px 0 0;
}

/* Profile Avatar */
.nb-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3c95 0%, #1e40af 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    border: 3px solid rgba(11,60,149,0.15);
    box-shadow: 0 6px 20px rgba(11,60,149,0.25);
    letter-spacing: -1px;
}

.nb-profile-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
}

/* Profile meta name */
.nb-profile-meta h2 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 0;
}

/* Profile info chips below name */
.nb-profile-info-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nb-profile-info-lbl {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.nb-profile-info-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

/* Contact field groups */
.nb-profile-field-group {
    margin-bottom: 4px;
}

.nb-profile-field-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.nb-profile-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.nb-profile-field-row:hover {
    border-color: #cbd5e1;
}

.nb-profile-field-val {
    font-size: 13.5px;
    font-weight: 600;
    flex: 1;
    word-break: break-word;
}

.nb-profile-edit-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nb-profile-edit-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Alert toggle rows */
.nb-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.nb-alert-row-border {
    border-bottom: 1px solid var(--nb-border);
}

.nb-alert-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.nb-alert-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nb-alert-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nb-alert-sub {
    font-size: 12px;
    color: #64748b;
}

/* Alert sub-panel */
.nb-alert-sub-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 4px;
}

.nb-alert-through-lbl {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

/* Toggle switch */
.nb-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.nb-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nb-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.25s;
}

.nb-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.nb-toggle-switch input:checked + .nb-toggle-slider {
    background: #0b3c95;
}

.nb-toggle-switch input:checked + .nb-toggle-slider::before {
    transform: translateX(20px);
}

/* Secure lock service cards */
.nb-lock-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.nb-lock-service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nb-lock-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.nb-lock-service-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nb-lock-service-desc {
    font-size: 12px;
    color: #64748b;
}

.nb-lock-status-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nb-lock-status-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Info / warning banners */
.nb-profile-info-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 18px;
    color: #1e40af;
}

.nb-profile-warning-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 18px;
    color: #92400e;
}

/* Note box */
.nb-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
}

/* Undo link */
.nb-profile-undo-link {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.nb-profile-undo-link:hover {
    color: #0b3c95;
}

/* ═══ Dark theme: profile ═══ */
body.theme-dark .nb-profile-info-val { color: #e2e8f0 !important; }
body.theme-dark .nb-profile-field-row { background: #153159 !important; border-color: #23497d !important; }
body.theme-dark .nb-profile-field-val { color: #ffffff !important; }
body.theme-dark .nb-profile-edit-btn { background: #1a3a69 !important; border-color: #23497d !important; color: #60a5fa !important; }
body.theme-dark .nb-alert-title { color: #ffffff !important; }
body.theme-dark .nb-alert-sub { color: #94a3b8 !important; }
body.theme-dark .nb-alert-sub-panel { background: #153159 !important; border-color: #23497d !important; }
body.theme-dark .nb-alert-through-lbl { color: #94a3b8 !important; }
body.theme-dark .nb-lock-service-card { background: #153159 !important; border-color: #23497d !important; }
body.theme-dark .nb-lock-service-name { color: #ffffff !important; }
body.theme-dark .nb-lock-service-desc { color: #94a3b8 !important; }
body.theme-dark .nb-lock-status-btn { border-color: #23497d !important; color: #60a5fa !important; }
body.theme-dark .nb-lock-status-btn:hover { background: #1a3a69 !important; }
body.theme-dark .nb-profile-info-banner { background: rgba(37,99,235,0.15) !important; border-color: #2563eb !important; color: #93c5fd !important; }
body.theme-dark .nb-profile-warning-banner { background: rgba(245,158,11,0.12) !important; border-color: rgba(245,158,11,0.3) !important; color: #fde68a !important; }
body.theme-dark .nb-profile-note { background: #153159 !important; border-color: #23497d !important; color: #94a3b8 !important; }
body.theme-dark .nb-profile-info-lbl { color: #64748b !important; }
body.theme-dark .nb-profile-field-lbl { color: #64748b !important; }
body.theme-dark .nb-profile-avatar-badge { border-color: #0f2747 !important; }
body.theme-dark .nb-toggle-slider { background: #334155; }
body.theme-dark .nb-toggle-switch input:checked + .nb-toggle-slider { background: #2563eb; }

/* ═══ Light theme: profile ═══ */
body.theme-light .nb-profile-info-val { color: #0f172a !important; }
body.theme-light .nb-profile-meta h2 { color: #0f172a !important; }
body.theme-light .nb-alert-title { color: #0f172a !important; }
body.theme-light .nb-lock-service-name { color: #0f172a !important; }
body.theme-light .nb-profile-undo-link { color: #64748b; }


/* Contact information edit forms */
.contact-section-title {
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1.5px solid var(--nb-border);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.contact-field-box {
    margin-bottom: 16px;
}

.contact-label {
    font-size: 12px;
    color: var(--nb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.contact-val {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--nb-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-edit-pencil {
    color: var(--nb-navy-600);
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}

.contact-edit-pencil:hover {
    color: var(--nb-gold-500);
}

/* Warning Alerts */
.nb-warning-alert {
    background-color: var(--nb-warning-bg);
    border: 1px solid var(--nb-warning-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.nb-warning-alert i {
    color: var(--nb-warning);
    font-size: 18px;
    margin-top: 2px;
}

.nb-warning-title {
    font-weight: 700;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 4px;
}

.nb-warning-desc {
    font-size: 13px;
    color: #b45309;
    line-height: 1.5;
}

.nb-warning-desc a {
    color: var(--nb-navy-900);
    font-weight: 700;
    text-decoration: underline;
}

/* Info Box */
.nb-info-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.nb-info-alert i {
    color: var(--nb-success);
    font-size: 18px;
    margin-top: 2px;
}

.nb-info-desc {
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

.nb-info-desc a {
    color: #15803d;
    font-weight: 700;
    text-decoration: underline;
}

/* ══════════ LOGOUT SUCCESS VIEW ══════════ */
.nb-logout-card {
    text-align: center;
    padding: 40px 24px;
    max-width: 480px;
    margin: 40px auto;
}

.nb-logout-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: var(--nb-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.nb-logout-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.nb-logout-desc {
    font-size: 14px;
    color: var(--nb-text-muted);
    margin-bottom: 24px;
}

.nb-logout-btn {
    width: 100%;
    background-color: var(--nb-navy-900);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.nb-logout-btn:hover {
    background-color: var(--nb-navy-700);
    color: #fff;
}

.nb-feedback-card {
    background: #f8fafc;
    border: 1px solid var(--nb-border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.nb-feedback-card p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.nb-feedback-btn {
    background: #fff;
    border: 1px solid var(--nb-navy-600);
    color: var(--nb-navy-600);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nb-feedback-btn:hover {
    background: var(--nb-navy-600);
    color: #fff;
}

/* ══════════ FORM COMPONENT ELEMENTS ══════════ */
.btn-nb-primary {
    background-color: var(--nb-navy-900);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 24px;
    transition: background 0.2s;
    border: none;
}

.btn-nb-primary:hover {
    background-color: var(--nb-navy-700);
    color: #fff;
}

.btn-nb-secondary {
    background-color: transparent;
    color: var(--nb-navy-900);
    border: 1.5px solid var(--nb-navy-900);
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 22px;
    transition: all 0.2s;
}

.btn-nb-secondary:hover {
    background-color: rgba(10, 33, 64, 0.05);
}

.badge-nb-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--nb-success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Modal header/footer custom themes */
.nb-modal-header {
    background-color: var(--nb-navy-900);
    color: #fff;
}

.nb-modal-header .btn-close {
    filter: invert(1);
}

/* ══════════ MICRO-ANIMATIONS ══════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .nb-login-left {
        display: none !important;
    }

    .nb-login-right {
        width: 100% !important;
        flex: 1 !important;
    }
}

.nb-error-box {
    background-color: #fcdede !important;
    color: #7f1d1d !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    margin-bottom: 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* ══════════ MODERN DASHBOARD & SEARCH HEADER ══════════ */
.nb-top-search-header {
    background-color: #071527;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

.nb-search-input-wrapper {
    position: relative;
    max-width: 450px;
    width: 100%;
}

.nb-search-input-wrapper input {
    width: 100%;
    background-color: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 4px;
    padding: 8px 16px 8px 40px;
    font-size: 13.5px;
    outline: none;
}

.nb-search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.nb-header-quick-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.nb-header-quick-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.nb-header-quick-links a:hover {
    color: #ffffff;
}

.nb-sub-navbar {
    background-color: #0a1727;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 0;
}

.nb-sub-nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 2.5px solid transparent;
    display: inline-block;
}

.nb-sub-nav-link.active {
    color: #ffffff !important;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.nb-sub-nav-link:hover:not(.active) {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Welcome Section */
.nb-welcome-section {
    padding: 30px 0 15px 0;
}

.nb-welcome-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.nb-welcome-subtitle {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.nb-offer-pill-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.nb-offer-pill-card:hover {
    transform: translateY(-2px);
}

.nb-offer-gift-box {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
}

/* Tab Pills Styling */
.nb-tabs-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.nb-tab-pill-large {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1.5px solid #2563eb;
    border-radius: 30px;
    padding: 10px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.nb-tab-pill-large .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.nb-tab-pill-large .text-group {
    text-align: left;
}

.nb-tab-pill-large .title-lbl {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
}

.nb-tab-pill-large .sub-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.nb-tab-pill-small {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nb-tab-pill-small:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Balance Section */
.nb-balance-toggle-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Cards Alignment */
.nb-dashboard-row-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.nb-dashboard-col-card {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
}

.nb-dashboard-col-card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Card 1: Account Card */
.nb-account-card-modern {
    background: linear-gradient(135deg, #eef2f6 0%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 24px;
    color: #0f172a;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nb-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.nb-card-top-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.nb-card-chevron {
    color: #64748b;
    font-size: 14px;
}

.nb-card-middle-data {
    margin: 20px 0;
    text-align: left;
}

.nb-card-middle-data .lbl {
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nb-card-middle-data .val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}

.nb-card-balance-lbl {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 10px;
}

.nb-card-action-btn-blue {
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 100%;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
}

.nb-card-action-btn-blue:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* Card 2 & 3: Promo Cards */
.nb-promo-card-indigo {
    background: linear-gradient(135deg, #5b21b6 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nb-promo-card-top-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.nb-promo-card-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    margin: 20px 0;
}

.nb-promo-action-btn-white {
    background-color: #ffffff;
    color: #3b82f6;
    border: none;
    border-radius: 6px;
    width: 100%;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
}

.nb-promo-action-btn-white:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Card 4: Favourite Links Card */
.nb-favorite-links-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nb-fav-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.nb-fav-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    color: #1e3a8a !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.nb-fav-item-row:hover {
    background-color: #f8fafc;
}

.nb-fav-footer-container {
    background-color: #f8fafc;
    padding: 18px;
    text-align: center;
}

.nb-fav-link-action {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
}

.nb-fav-link-action:hover {
    text-decoration: underline;
}

/* ══════════ PROFILE DROPDOWN MENU ══════════ */
.nb-profile-dropdown {
    background-color: #1e293b !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    min-width: 230px !important;
    margin-top: 10px !important;
}

.nb-dropdown-header {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    padding: 10px 20px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nb-profile-dropdown hr.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 4px 0 !important;
}

.nb-profile-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    transition: background-color 0.15s;
}

.nb-profile-dropdown .dropdown-item i {
    font-size: 15px;
    width: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.nb-profile-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.nb-profile-dropdown .dropdown-item.nb-logout-item {
    color: #fca5a5 !important;
}

.nb-profile-dropdown .dropdown-item.nb-logout-item i {
    color: #fca5a5 !important;
}

/* ══════════ DASHBOARD CONTINUATION & SERVICES ══════════ */
.nb-recharge-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nb-recharge-left {
    flex: 1;
    max-width: 60%;
    z-index: 2;
}

.nb-recharge-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nb-recharge-tab-link {
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
}

.nb-recharge-tab-link.active {
    color: #1e3a8a;
    border-bottom-color: #2563eb;
}

.nb-recharge-right-img {
    position: absolute;
    right: 10px;
    bottom: 0;
    height: 90%;
    max-width: 40%;
    object-fit: contain;
    z-index: 1;
}

.nb-bills-footer-box {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: #ffffff;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nb-bills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nb-bills-icons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nb-bill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    flex: 1;
}

.nb-bill-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s;
}

.nb-bill-icon-item:hover .nb-bill-icon-circle {
    transform: translateY(-3px);
}

.nb-bill-lbl {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Services 3x3 Grid */
.nb-services-grid-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    color: #0f172a;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nb-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nb-service-tile-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a !important;
    transition: background-color 0.2s;
}

.nb-service-tile-item:hover {
    background-color: #f8fafc;
}

.nb-service-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nb-service-tile-text {
    text-align: left;
}

.nb-service-tile-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nb-service-tile-subtitle {
    font-size: 11px;
    color: #64748b;
}

/* ══════════ STATEMENT VIEW MODULE ══════════ */
.nb-statement-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nb-statement-account-selector {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}

.nb-statement-account-selector:hover {
    border-color: #94a3b8;
}

.nb-statement-account-info {
    text-align: left;
}

.nb-statement-account-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.nb-statement-account-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.nb-statement-account-balance {
    text-align: right;
}

.nb-statement-account-bal-val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.nb-statement-account-bal-lbl {
    font-size: 11px;
    color: #64748b;
}

.nb-period-row {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    gap: 12px;
    margin-top: 16px;
}

.nb-period-dropdown {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    background-color: #ffffff;
    outline: none;
    color: #0f172a;
}

.nb-date-input-wrapper {
    position: relative;
}

.nb-date-input-wrapper input {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 35px 0 12px;
    font-size: 13px;
    outline: none;
    background-color: #ffffff;
    color: #0f172a;
}

.nb-date-input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.nb-download-statement-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nb-download-dropdown {
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    min-width: 120px;
    background-color: #ffffff;
    color: #0f172a;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL DARK MODE — CARDS, INPUTS, MODALS, TABLES
   These rules apply across ALL pages when body.theme-dark is set
   ══════════════════════════════════════════════════════════════ */

/* All card / panel types */
body.theme-dark .nb-acc-card,
body.theme-dark .nb-nominee-card,
body.theme-dark .nb-quick-links-card,
body.theme-dark .nb-dep-card,
body.theme-dark .nb-loan-card,
body.theme-dark .nb-share-card,
body.theme-dark .nb-bill-card,
body.theme-dark .nb-card,
body.theme-dark .send-money-card,
body.theme-dark .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Headings inside cards */
body.theme-dark .nb-acc-card h1,
body.theme-dark .nb-acc-card h2,
body.theme-dark .nb-acc-card h3,
body.theme-dark .nb-acc-card h4,
body.theme-dark .nb-acc-card h5,
body.theme-dark .nb-acc-card h6,
body.theme-dark .send-money-card h1,
body.theme-dark .send-money-card h2,
body.theme-dark .send-money-card h3,
body.theme-dark .send-money-card h4,
body.theme-dark .send-money-card h5,
body.theme-dark .send-money-card h6,
body.theme-dark .card h1,
body.theme-dark .card h2,
body.theme-dark .card h3,
body.theme-dark .card h4,
body.theme-dark .card h5,
body.theme-dark .card h6 {
    color: #f8fafc !important;
}

body.theme-dark .nb-ql-header,
body.theme-dark .nb-ql-row {
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}

body.theme-dark .nb-ql-row:hover {
    background-color: #0f172a !important;
}

/* Form controls */
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark textarea.form-control {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.theme-dark .form-control::placeholder {
    color: #64748b !important;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2) !important;
}

/* Input group addons */
body.theme-dark .input-group-text {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* Labels */
body.theme-dark .form-label {
    color: #cbd5e1 !important;
}

body.theme-dark .form-check-label {
    color: #94a3b8 !important;
}

/* Text helpers */
body.theme-dark .text-muted,
body.theme-dark .text-secondary {
    color: #94a3b8 !important;
}

body.theme-dark .text-dark {
    color: #151515 !important;
}

/* Account card meta */
body.theme-dark .nb-acc-badge-pill {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

body.theme-dark .nb-acc-meta-label {
    color: #94a3b8 !important;
}

body.theme-dark .nb-acc-meta-value {
    color: #f8fafc !important;
}

/* Modals */
body.theme-dark .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.theme-dark .modal-header {
    border-bottom-color: #334155 !important;
}

body.theme-dark .modal-footer {
    border-top-color: #334155 !important;
}

body.theme-dark .modal-title {
    color: #f8fafc !important;
}

body.theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Tables */
body.theme-dark .table {
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.theme-dark .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.theme-dark .table-light,
body.theme-dark thead.table-light,
body.theme-dark thead th {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

body.theme-dark .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

body.theme-dark .table-hover>tbody>tr:hover>* {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Dropdown menus */
body.theme-dark .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark .dropdown-item {
    color: #f8fafc !important;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    background-color: #0f172a !important;
    color: #38bdf8 !important;
}

body.theme-dark .dropdown-divider {
    border-color: #334155 !important;
}

/* HR dividers */
body.theme-dark hr {
    border-color: #334155 !important;
    opacity: 0.5;
}

/* Download dropdown */
body.theme-dark .nb-download-dropdown {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* ════════════════════════════════════════════════════════════
   UNIFIED RETAIL BANKING GLOBAL DESIGN SYSTEM (LIGHT & DARK)
   ════════════════════════════════════════════════════════════ */

/* Page Layout Containers */
.nb-page-container,
.nb-accounts-container,
.nb-deposits-container,
.nb-loans-container,
.nb-shares-container,
.nb-statement-container,
.nb-profile-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.nb-page-title,
.nb-accounts-title,
.nb-deposits-title,
.nb-loans-title,
.nb-shares-title,
.nb-statement-title,
.nb-profile-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    text-align: left;
}

.nb-page-subtitle,
.nb-accounts-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
    text-align: left;
}

/* Base Cards & Headers */
.nb-section-card,
.nb-acc-card,
.nb-deposit-section-card,
.nb-loans-section-card,
.nb-shares-section-card,
.nb-statement-card,
.nb-st-card,
.nb-quick-links-card,
.fav-box-card {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: left;
    transition: all 0.2s ease;
}

.nb-section-header,
.nb-shares-header,
.nb-loans-header,
.nb-ql-header,
.fav-box-title,
.nb-st-card-title {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.nb-ql-header {
    padding: 20px 24px;
    margin-bottom: 0;
}

/* Data Rows & Sub-cards */
.nb-data-row,
.nb-deposit-row,
.nb-loan-row,
.nb-share-row {
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nb-data-row:hover,
.nb-deposit-row:hover,
.nb-loan-row:hover,
.nb-share-row:hover {
    transform: translateY(-2px);
}

.nb-data-no,
.nb-deposit-no,
.nb-loan-no,
.nb-share-no,
.nb-acc-no {
    font-size: 14.5px;
    font-weight: 700;
}

.nb-data-scheme,
.nb-deposit-scheme,
.nb-loan-scheme,
.nb-share-scheme {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.nb-data-lbl,
.nb-deposit-lbl,
.nb-loan-lbl,
.nb-share-lbl,
.nb-acc-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nb-data-val,
.nb-deposit-val,
.nb-loan-val,
.nb-share-val,
.nb-acc-val {
    font-size: 14px;
    font-weight: 700;
}

.nb-data-amt,
.nb-deposit-amt,
.nb-loan-amt,
.nb-share-amt,
.nb-acc-bal {
    font-size: 17.5px;
    font-weight: 800;
    color: #10b981;
}

/* Quick Links Sidebar Items */
.nb-ql-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nb-ql-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.12);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nb-ql-text {
    flex: 1;
    text-align: left;
}

/* Status Badges & Pills */
.nb-badge-pending {
    background-color: #fff7ed !important;
    color: #c2410c !important;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.nb-badge-active {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.nb-badge-closed {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.nb-empty-state-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
}

/* Statement Page Components System */
.nb-statement-account-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

.nb-statement-account-selector:hover {
    border-color: #cbd5e1;
}

.nb-statement-account-title {
    font-size: 14.5px;
    font-weight: 700;
}

.nb-statement-account-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.nb-statement-account-bal-val {
    font-size: 16px;
    font-weight: 800;
    color: #0b3c95;
}

.nb-statement-account-bal-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.nb-dropdown-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.nb-dropdown-item-sub {
    font-size: 11px;
    color: #64748b;
}

.nb-dropdown-item-val {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

/* Suspicious Alert Banner */
.nb-suspicious-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    margin-top: 24px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.nb-suspicious-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nb-suspicious-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.nb-suspicious-btn {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nb-suspicious-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Custom Progress Bar for Statement Modal */
.progress-bar-animated-custom {
    height: 8px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill-custom {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0b3c95, #3b82f6);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* ══════════ DARK MODE GLOBAL OVERRIDES ══════════ */
body.theme-dark,
body.theme-dark .netbanking-body {
    background-color: #091e36 !important;
    color: #ffffff !important;
}

body.theme-dark .nb-page-title,
body.theme-dark .nb-accounts-title,
body.theme-dark .nb-deposits-title,
body.theme-dark .nb-loans-title,
body.theme-dark .nb-shares-title,
body.theme-dark .nb-statement-title,
body.theme-dark .nb-profile-title,
body.theme-dark .nb-section-header,
body.theme-dark .nb-shares-header,
body.theme-dark .nb-loans-header,
body.theme-dark .nb-ql-header,
body.theme-dark .fav-box-title,
body.theme-dark .nb-st-card-title,
body.theme-dark .nb-data-no,
body.theme-dark .nb-deposit-no,
body.theme-dark .nb-loan-no,
body.theme-dark .nb-share-no,
body.theme-dark .nb-acc-no,
body.theme-dark .nb-data-val,
body.theme-dark .nb-deposit-val,
body.theme-dark .nb-loan-val,
body.theme-dark .nb-share-val,
body.theme-dark .nb-acc-val,
body.theme-dark .nb-statement-account-title,
body.theme-dark .nb-dropdown-item-title,
body.theme-dark .nb-suspicious-text {
    color: #ffffff !important;
}

body.theme-dark .nb-page-subtitle,
body.theme-dark .nb-accounts-subtitle,
body.theme-dark .nb-data-scheme,
body.theme-dark .nb-deposit-scheme,
body.theme-dark .nb-loan-scheme,
body.theme-dark .nb-share-scheme,
body.theme-dark .nb-data-lbl,
body.theme-dark .nb-deposit-lbl,
body.theme-dark .nb-loan-lbl,
body.theme-dark .nb-share-lbl,
body.theme-dark .nb-acc-lbl,
body.theme-dark .nb-acc-type,
body.theme-dark .nb-statement-account-sub,
body.theme-dark .nb-dropdown-item-sub {
    color: #94a3b8 !important;
}

body.theme-dark .nb-statement-account-bal-val,
body.theme-dark .nb-dropdown-item-val {
    color: #60a5fa !important;
}

body.theme-dark .nb-subtab-btn {
    color: #94a3b8 !important;
}

body.theme-dark .nb-subtab-btn:hover {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

body.theme-dark .nb-subtab-btn.active {
    color: #ffffff !important;
}

body.theme-dark .nb-subtab-btn.active::after {
    background: linear-gradient(90deg, #2563eb, #60a5fa) !important;
}

body.theme-dark .nb-statement-account-selector,
body.theme-dark button.nb-statement-account-selector,
body.theme-dark .nb-suspicious-alert {
    background-color: #153159 !important;
    border: 1px solid #23497d !important;
    color: #ffffff !important;
}

body.theme-dark .nb-section-card,
body.theme-dark .nb-acc-card,
body.theme-dark .nb-deposit-section-card,
body.theme-dark .nb-loans-section-card,
body.theme-dark .nb-shares-section-card,
body.theme-dark .nb-statement-card,
body.theme-dark .nb-st-card,
body.theme-dark .nb-quick-links-card,
body.theme-dark .fav-box-card {
    background-color: #0f2747 !important;
    border: 1px solid #1e3a66 !important;
    color: #ffffff !important;
}

body.theme-dark .nb-section-header,
body.theme-dark .nb-shares-header,
body.theme-dark .nb-loans-header,
body.theme-dark .nb-ql-header {
    border-bottom: 1.5px solid #1e3a66 !important;
}

body.theme-dark .nb-data-row,
body.theme-dark .nb-deposit-row,
body.theme-dark .nb-loan-row,
body.theme-dark .nb-share-row,
body.theme-dark .nb-empty-state-card,
body.theme-dark .fav-link-item-card,
body.theme-dark .fav-added-item {
    background-color: #153159 !important;
    border: 1px solid #23497d !important;
    color: #ffffff !important;
}

body.theme-dark .nb-ql-row {
    color: #ffffff !important;
    border-bottom: 1px solid #1e3a66 !important;
}

body.theme-dark .nb-ql-row:hover {
    background-color: #1a3a69 !important;
}

body.theme-dark .modal-content {
    background-color: #0f2747 !important;
    color: #ffffff !important;
    border: 1px solid #1e3a66 !important;
}

body.theme-dark .modal-header {
    background-color: #091e36 !important;
    border-bottom: 1px solid #1e3a66 !important;
}

body.theme-dark .modal-body {
    background-color: #0f2747 !important;
    color: #ffffff !important;
}

body.theme-dark .modal-footer {
    background-color: #091e36 !important;
    border-top: 1px solid #1e3a66 !important;
}

body.theme-dark .modal-body label,
body.theme-dark .form-label {
    color: #cbd5e1 !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark select.form-select {
    background-color: #153159 !important;
    border: 1px solid #23497d !important;
    color: #ffffff !important;
}

body.theme-dark select option,
body.theme-dark .form-select option {
    background-color: #0f2747 !important;
    color: #ffffff !important;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background-color: #1a3a69 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

body.theme-dark .form-control[readonly],
body.theme-dark .form-control:disabled,
body.theme-dark .form-select:disabled {
    background-color: #1a3a69 !important;
    color: #60a5fa !important;
}

.nb-profile-header-card {
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

body.theme-dark .nb-profile-header-card {
    background-color: #0f2747 !important;
    border: 1px solid #1e3a66 !important;
    color: #ffffff !important;
}

body.theme-dark .nb-profile-meta h2,
body.theme-dark .nb-profile-meta strong {
    color: #ffffff !important;
}

body.theme-light .nb-profile-header-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .nb-profile-meta h2,
body.theme-light .nb-profile-meta strong {
    color: #0f172a !important;
}

body.theme-dark .nb-summary-banner,
body.theme-dark .modal-body .border.rounded-3 {
    background-color: #153159 !important;
    border-color: #23497d !important;
    color: #cbd5e1 !important;
}

/* ══════════ LIGHT MODE GLOBAL OVERRIDES ══════════ */
body.theme-light,
body.theme-light .netbanking-body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

body.theme-light .nb-page-title,
body.theme-light .nb-accounts-title,
body.theme-light .nb-deposits-title,
body.theme-light .nb-loans-title,
body.theme-light .nb-shares-title,
body.theme-light .nb-statement-title,
body.theme-light .nb-profile-title,
body.theme-light .nb-section-header,
body.theme-light .nb-shares-header,
body.theme-light .nb-loans-header,
body.theme-light .nb-ql-header,
body.theme-light .fav-box-title,
body.theme-light .nb-st-card-title,
body.theme-light .nb-data-no,
body.theme-light .nb-deposit-no,
body.theme-light .nb-loan-no,
body.theme-light .nb-share-no,
body.theme-light .nb-acc-no,
body.theme-light .nb-data-val,
body.theme-light .nb-deposit-val,
body.theme-light .nb-loan-val,
body.theme-light .nb-share-val,
body.theme-light .nb-acc-val,
body.theme-light .nb-statement-account-title,
body.theme-light .nb-dropdown-item-title,
body.theme-light .nb-suspicious-text {
    color: #0f172a !important;
}

body.theme-light .nb-page-subtitle,
body.theme-light .nb-accounts-subtitle,
body.theme-light .nb-data-scheme,
body.theme-light .nb-deposit-scheme,
body.theme-light .nb-loan-scheme,
body.theme-light .nb-share-scheme,
body.theme-light .nb-data-lbl,
body.theme-light .nb-deposit-lbl,
body.theme-light .nb-loan-lbl,
body.theme-light .nb-share-lbl,
body.theme-light .nb-acc-lbl,
body.theme-light .nb-acc-type,
body.theme-light .nb-statement-account-sub,
body.theme-light .nb-dropdown-item-sub {
    color: #64748b !important;
}

body.theme-light .nb-statement-account-bal-val {
    color: #0b3c95 !important;
}

body.theme-light .nb-dropdown-item-val {
    color: #2563eb !important;
}

body.theme-light .nb-subtab-btn {
    color: #64748b !important;
}

body.theme-light .nb-subtab-btn:hover {
    color: #0b3c95 !important;
    background: rgba(11, 60, 149, 0.04) !important;
}

body.theme-light .nb-subtab-btn.active {
    color: #0b3c95 !important;
}

body.theme-light .nb-subtab-btn.active::after {
    background: linear-gradient(90deg, #0b3c95, #1d4ed8) !important;
}

body.theme-light .nb-statement-account-selector,
body.theme-light button.nb-statement-account-selector,
body.theme-light .nb-suspicious-alert {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .nb-section-card,
body.theme-light .nb-acc-card,
body.theme-light .nb-deposit-section-card,
body.theme-light .nb-loans-section-card,
body.theme-light .nb-shares-section-card,
body.theme-light .nb-statement-card,
body.theme-light .nb-st-card,
body.theme-light .nb-quick-links-card,
body.theme-light .fav-box-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .nb-section-header,
body.theme-light .nb-shares-header,
body.theme-light .nb-loans-header,
body.theme-light .nb-ql-header {
    border-bottom: 1.5px solid #f1f5f9 !important;
}

body.theme-light .nb-data-row,
body.theme-light .nb-deposit-row,
body.theme-light .nb-loan-row,
body.theme-light .nb-share-row,
body.theme-light .nb-empty-state-card,
body.theme-light .fav-link-item-card,
body.theme-light .fav-added-item {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .nb-ql-row {
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-light .nb-ql-row:hover {
    background-color: #f8fafc !important;
}

body.theme-light .modal-content {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

body.theme-light .modal-header {
    background-color: #091e36 !important;
}

body.theme-light .modal-body {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.theme-light .modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.theme-light .modal-body label,
body.theme-light .form-label {
    color: #475569 !important;
}

body.theme-light .form-control,
body.theme-light .form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .form-control[readonly],
body.theme-light .form-control:disabled,
body.theme-light .form-select:disabled {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Configure Favourite Links Specific Components */
/* fav-box-title inherits from nb-section-header group via global list — border-bottom here */
.fav-box-title {
    border-bottom: 1.5px solid transparent;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

body.theme-dark .fav-added-banner {
    background-color: rgba(37, 99, 235, 0.2);
    border: 1px solid #2563eb;
    border-radius: 10px;
    padding: 14px 16px;
    color: #93c5fd;
    font-size: 12.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

body.theme-light .fav-added-banner {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    color: #1e40af;
    font-size: 12.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

body.theme-dark .fav-box-title {
    border-bottom-color: #1e3a66;
}

body.theme-light .fav-box-title {
    border-bottom-color: #f1f5f9;
}

.fav-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 991px) {
    .fav-links-grid { grid-template-columns: 1fr; }
}

/* Each available link card row */
.fav-link-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.fav-link-item-card:hover {
    transform: translateY(-1px);
}

/* Each added link row in right panel */
.fav-added-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.fav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding-right: 10px;
}

.fav-link-title-text {
    font-size: 13.5px;
    font-weight: 600;
}

.fav-link-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.fav-info-btn {
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.fav-info-btn:hover { color: #3b82f6; }

.btn-add-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-add-circle:hover { transform: scale(1.12); background-color: #1e40af; }

.badge-added-text {
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fav-added-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-remove-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e11d48;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-remove-circle:hover { transform: scale(1.12); background-color: #be123c; }

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 8px;
}

.btn-order-arrow {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    padding: 0;
    cursor: pointer;
    line-height: 1.2;
    transition: color 0.2s;
}

.btn-order-arrow:hover { color: #3b82f6; }

/* Dashboard Promo Cards System */
.nb-scheme-promo-card {
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
}

.nb-scheme-promo-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.fd-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}

.mis-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
}

.rd-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}

.pigmy-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
    border-color: #a5f3fc;
}

.loan-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border-color: #fecaca;
}

.share-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
}

.scheme-title {
    font-size: 15px;
    font-weight: 750;
    margin-bottom: 2px;
    color: #0f172a;
    text-align: left;
}

.scheme-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    text-align: left;
}

.scheme-rate-badge {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.rate-val {
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
}

.text-warning-shade {
    color: #d97706;
}

.text-danger-shade {
    color: #dc2626;
}

.rate-lbl {
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

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

/* Send Money Page Custom Components */
.sm-payee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 6px;
    flex-shrink: 0;
}

.sm-payee-tile {
    min-width: 88px;
    max-width: 88px;
    text-align: center;
    cursor: pointer;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    transition: all 0.2s;
}

.sm-payee-tile:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

body.theme-dark .sm-payee-tile {
    border-color: #334155;
    color: #f8fafc;
}

.sm-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    color: #334155;
}

.sm-type-card input[type="radio"] {
    display: none;
}

.sm-type-card:has(input[type="radio"]:checked) {
    border-color: #1d4ed8;
    background: rgba(29, 78, 216, 0.07);
}

body.theme-dark .sm-type-card {
    border-color: #334155;
    color: #f8fafc;
}

body.theme-dark .sm-type-card:has(input[type="radio"]:checked) {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
}

.nb-tab-nav .nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 8px 16px;
    background: transparent;
}

.nb-tab-nav .nav-link.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

body.theme-dark .nb-tab-nav .nav-link {
    color: #94a3b8;
}

body.theme-dark .nb-tab-nav .nav-link.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.sm-otp-summary {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

body.theme-dark .sm-otp-summary {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Accounts Page Action Buttons & Custom Card Components */
.nb-acc-bank-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nb-acc-badge-pill {
    background-color: #f1f5f9;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
}

.nb-acc-meta-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.nb-acc-meta-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.nb-btn-outline-blue {
    border: 1.5px solid #1d4ed8;
    color: #1d4ed8;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nb-btn-outline-blue:hover {
    background-color: #eff6ff;
    color: #1e40af;
}

.nb-btn-solid-blue {
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nb-btn-solid-blue:hover {
    background-color: #1e40af;
    color: #ffffff;
}

.nb-nominee-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f172a;
    margin-bottom: 20px;
}

/* Dark Mode Overrides for Accounts Card Elements */
body.theme-dark .nb-acc-bank-icon-circle {
    background-color: #153159 !important;
    color: #60a5fa !important;
}

body.theme-dark .nb-acc-meta-value {
    color: #ffffff !important;
}

body.theme-dark .nb-acc-meta-label {
    color: #94a3b8 !important;
}

body.theme-dark .nb-btn-outline-blue {
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

body.theme-dark .nb-btn-outline-blue:hover {
    background-color: #1a3a69 !important;
    color: #ffffff !important;
}

body.theme-dark .nb-nominee-card {
    background-color: #0f2747 !important;
    border: 1px solid #1e3a66 !important;
    color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════
   NEXT-GEN 3D TEXTURED DASHBOARD CARDS SYSTEM
   ════════════════════════════════════════════════════════════ */

.nb-3d-card {
    position: relative;
    border-radius: 20px;
    padding: 24px;
    min-height: 220px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    isolation: isolate;
}

.nb-3d-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 35%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.nb-3d-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-2deg) scale(1.02);
}

.nb-3d-card > * {
    position: relative;
    z-index: 2;
}

/* ── LIGHT MODE 3D CARDS (Vibrant Electric Royal Palette) ── */
body.theme-light .nb-3d-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.theme-light .nb-3d-card-savings {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

body.theme-light .nb-3d-card-savings::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.15) 10px), repeating-linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.28));
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

body.theme-light .nb-3d-card-shares {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    box-shadow: 0 16px 36px -6px rgba(29, 78, 216, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

body.theme-light .nb-3d-card-shares::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 12px),
        radial-gradient(circle at 20% 80%, rgba(147, 197, 253, 0.25) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

body.theme-light .nb-3d-card-loans {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    box-shadow: 0 16px 36px -6px rgba(30, 58, 138, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

body.theme-light .nb-3d-card-loans::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 15px, transparent 15px, transparent 30px),
        linear-gradient(60deg, rgba(147, 197, 253, 0.2) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

body.theme-light .nb-3d-card:hover {
    box-shadow: 0 24px 50px -8px rgba(37, 99, 235, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}


/* ── DARK MODE 3D CARDS (Luxury Obsidian Midnight Palette) ── */
body.theme-dark .nb-3d-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.theme-dark .nb-3d-card-savings {
    background: linear-gradient(135deg, #092359 0%, #153e8a 50%, #1d54bd 100%);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

body.theme-dark .nb-3d-card-savings::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.12) 10px), repeating-linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.22));
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

body.theme-dark .nb-3d-card-shares {
    background: linear-gradient(135deg, #0a1b3b 0%, #122f63 50%, #1a4287 100%);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.theme-dark .nb-3d-card-shares::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 2px, transparent 2px, transparent 12px),
        radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.18) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

body.theme-dark .nb-3d-card-loans {
    background: linear-gradient(135deg, #071530 0%, #0d234d 50%, #15387a 100%);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.theme-dark .nb-3d-card-loans::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 15px, transparent 15px, transparent 30px),
        linear-gradient(60deg, rgba(147, 197, 253, 0.15) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

body.theme-dark .nb-3d-card:hover {
    box-shadow: 0 24px 50px -8px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}


/* ── 3D GLASS ICON CONTAINER ── */
.nb-3d-icon-glass {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}


/* ── 3D ACTION BUTTONS ── */
.nb-3d-btn-white {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.nb-3d-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.nb-3d-card-savings .nb-3d-btn-white { color: #1d4ed8 !important; }
.nb-3d-card-shares .nb-3d-btn-white { color: #1e40af !important; }
.nb-3d-card-loans .nb-3d-btn-white { color: #1e3a8a !important; }


/* Bright high-contrast text helpers */
.nb-3d-title-bright {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px;
    font-size: 12px;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.nb-3d-sub-bright {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* ══════════ MOBILE RESPONSIVE ENHANCEMENTS (MAX-WIDTH: 768PX) ══════════ */
@media (max-width: 768px) {
    .nb-page-container, .nb-accounts-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Secondary Navigation Bar: Single row horizontal scroll on mobile */
    .nb-sub-navbar .container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: 6px;
        padding-bottom: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nb-sub-navbar .container::-webkit-scrollbar {
        display: none;
    }

    .nb-sub-nav-link {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    /* Account Statement Selector Mobile Stack */
    .nb-statement-account-selector {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    .nb-statement-account-selector > div:last-child {
        text-align: left !important;
        width: 100%;
        border-top: 1px border-subtle var(--nb-border, #e2e8f0);
        padding-top: 8px;
    }

    /* Accounts Listing Card Mobile Responsive */
    .nb-acc-card {
        padding: 16px !important;
    }

    .nb-acc-card .d-flex.justify-content-between.align-items-start {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .nb-acc-card .text-end {
        text-align: left !important;
    }

    /* Keep title and eye icon strictly horizontal on mobile */
    .nb-acc-card .d-flex.align-items-center.gap-2 {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    /* Bottom action buttons row on mobile */
    .nb-acc-card .d-flex.justify-content-between.align-items-center.pt-3 .d-flex.gap-2,
    .nb-acc-card .nb-acc-action-buttons {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .nb-acc-card .btn, .nb-acc-card .nb-btn-outline-blue {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Page Header */
    .nb-page-title, .nb-accounts-title {
        font-size: 20px !important;
    }

    .nb-page-subtitle {
        font-size: 12px !important;
    }

    /* Section Cards & Header Alignment */
    .nb-section-card {
        padding: 16px !important;
    }

    .nb-section-card .d-flex.align-items-center.justify-content-between.pb-3 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .nb-section-card .d-flex.justify-content-between.align-items-start {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .nb-data-amt {
        font-size: 22px !important;
    }

    /* Grid layout on mobile */
    .nb-section-card .row.g-3 > [class*="col-"] {
        width: 50% !important;
        margin-bottom: 6px;
    }

    /* Subtabs scrollable container on mobile */
    .nb-subtabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--nb-border, #e2e8f0);
        scrollbar-width: none;
    }

    .nb-subtabs::-webkit-scrollbar {
        display: none;
    }

    .nb-subtab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* Table styling for mobile */
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
    }

    .table th, .table td {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Quick Links Sidebar */
    .nb-quick-links-card {
        padding: 16px !important;
    }
}