/* =========================================================
   NovaBank styles
   Bootstrap 5 does most of the work. This file holds the brand
   colours and the custom parts (landing page, sidebars, cards).
   ========================================================= */

:root {
    --nb-navy: #0B1F3A;
    --nb-navy-2: #132B4F;
    --nb-emerald: #10B981;
    --nb-emerald-dark: #059669;
    --nb-teal: #0EA5A4;
    --nb-coral: #F43F5E;
    --nb-amber: #F59E0B;
    --nb-bg: #F7F9FC;
    --nb-border: #E6EBF2;
    --nb-text: #0B1F3A;
    --nb-muted: #64748B;
    --nb-radius: 16px;
    --nb-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
    --nb-shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.12);
    --bs-primary: #10B981;
    --bs-primary-rgb: 16, 185, 129;
    --bs-body-font-family: 'Inter', system-ui, sans-serif;
    --bs-body-color: #0B1F3A;
    --bs-link-color: #059669;
    --bs-link-hover-color: #047857;
}

body { background: var(--nb-bg); color: var(--nb-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.text-muted { color: var(--nb-muted) !important; }
.text-emerald { color: var(--nb-emerald) !important; }
.text-coral { color: var(--nb-coral) !important; }
.bg-navy { background: var(--nb-navy) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .7rem 1.3rem; }
.btn-sm { padding: .4rem .8rem; border-radius: 10px; }
.btn-lg { padding: .9rem 1.6rem; border-radius: 14px; }
.btn-primary { background: var(--nb-emerald); border-color: var(--nb-emerald); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--nb-emerald-dark); border-color: var(--nb-emerald-dark); color: #fff; }
.btn-navy { background: var(--nb-navy); color: #fff; }
.btn-navy:hover { background: var(--nb-navy-2); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--nb-border); color: var(--nb-navy); background: #fff; }
.btn-outline-navy:hover { border-color: var(--nb-navy); color: var(--nb-navy); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 12px; border-color: var(--nb-border); padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--nb-emerald); box-shadow: 0 0 0 .25rem rgba(16,185,129,.15); }
.form-label { font-weight: 600; font-size: .9rem; }
.input-group-text { border-radius: 12px; border-color: var(--nb-border); background: #fff; }

/* ---------- Cards ---------- */
.nb-card { background: #fff; border: 1px solid var(--nb-border); border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); }
.nb-card-body { padding: 1.5rem; }
.nb-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.nb-icon-emerald { background: rgba(16,185,129,.12); color: var(--nb-emerald-dark); }
.nb-icon-navy { background: rgba(11,31,58,.08); color: var(--nb-navy); }
.nb-icon-coral { background: rgba(244,63,94,.1); color: var(--nb-coral); }
.nb-icon-amber { background: rgba(245,158,11,.12); color: #B45309; }
.nb-icon-teal { background: rgba(14,165,164,.12); color: var(--nb-teal); }

/* =========================================================
   Landing page
   ========================================================= */
.nb-nav { padding: 1rem 0; transition: all .25s; }
.nb-nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--nb-border); padding: .6rem 0; }
.nb-nav .nav-link { color: var(--nb-navy); font-weight: 500; padding: .5rem 1rem !important; }
.nb-nav .nav-link:hover { color: var(--nb-emerald-dark); }
.nb-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--nb-navy); text-decoration: none; letter-spacing: -0.03em; }
.nb-brand img { width: 36px; height: 36px; }
.nb-brand .nb-word { color: inherit; }
.nb-brand .nb-word span { color: var(--nb-emerald); }
.nb-nav .nav-link, .nb-nav .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) { .nb-nav .nav-link { padding: .5rem .6rem !important; font-size: .92rem; } }

.hero { position: relative; padding: 9.5rem 0 5rem; overflow: hidden; background:
    radial-gradient(800px 400px at 85% 10%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(600px 400px at 0% 90%, rgba(14,165,164,.10), transparent 60%), #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--nb-border); border-radius: 999px; padding: .4rem .9rem .4rem .45rem; font-size: .85rem; font-weight: 500; box-shadow: var(--nb-shadow); }
.hero-badge .dot { background: var(--nb-emerald); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; margin: 1.4rem 0 1.2rem; }
.hero h1 .hl { background: linear-gradient(90deg, var(--nb-emerald), var(--nb-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--nb-muted); font-size: 1.15rem; max-width: 540px; }
.hero-trust { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; color: var(--nb-muted); font-size: .9rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }

/* Hero visual made with CSS only */
.hero-visual { position: relative; min-height: 480px; }
.phone { position: absolute; right: 8%; top: 0; width: 290px; height: 560px; background: var(--nb-navy); border-radius: 44px; padding: 12px; box-shadow: var(--nb-shadow-lg); transform: rotate(4deg); }
.phone-screen { background: var(--nb-bg); border-radius: 34px; height: 100%; padding: 1.4rem 1.1rem; overflow: hidden; }
.phone-notch { width: 90px; height: 22px; background: var(--nb-navy); border-radius: 0 0 14px 14px; margin: -1.4rem auto 1rem; }
.phone-balance { background: linear-gradient(135deg, var(--nb-navy), #1E3A64); color: #fff; border-radius: 20px; padding: 1.1rem; }
.phone-balance small { opacity: .7; font-size: .72rem; }
.phone-balance .amt { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.6rem; }
.phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1rem 0; text-align: center; font-size: .62rem; color: var(--nb-muted); }
.phone-actions i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto .25rem; border-radius: 12px; background: #fff; color: var(--nb-emerald-dark); font-size: 1rem; box-shadow: var(--nb-shadow); }
.phone-row { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 14px; padding: .6rem .7rem; margin-bottom: .5rem; font-size: .75rem; }
.phone-row .ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.phone-row b { display: block; font-size: .78rem; }
.phone-row .ms-auto { font-weight: 700; }

.bank-card { position: absolute; left: 0; bottom: 40px; width: 320px; height: 195px; border-radius: 22px; padding: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--nb-emerald) 0%, var(--nb-teal) 55%, #0E7490 100%); box-shadow: var(--nb-shadow-lg); transform: rotate(-6deg); overflow: hidden; z-index: 2; }
.bank-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); right: -90px; top: -110px; }
.bank-card .chip { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #FDE68A, #F59E0B); margin: 1.1rem 0 1rem; }
.bank-card .num { font-family: 'Plus Jakarta Sans'; letter-spacing: .18em; font-weight: 600; }

.float-chip { position: absolute; background: #fff; border-radius: 16px; padding: .75rem 1rem; box-shadow: var(--nb-shadow-lg); display: flex; align-items: center; gap: .7rem; font-size: .85rem; z-index: 3; animation: floaty 5s ease-in-out infinite; }
.float-chip b { display: block; }
.float-chip.one { top: 60px; left: 4%; }
.float-chip.two { bottom: -10px; right: 2%; animation-delay: 1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats-bar { margin-top: -2.5rem; position: relative; z-index: 5; }
.stats-bar .nb-card { padding: 1.6rem 1rem; }
.stat-value { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 2rem; color: var(--nb-navy); }

.section { padding: 6rem 0; }
.section-white { background: #fff; }
.eyebrow { display: inline-block; color: var(--nb-emerald-dark); background: rgba(16,185,129,.1); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 1rem; }
.section-sub { color: var(--nb-muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

.feature-card { height: 100%; padding: 2rem; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--nb-shadow-lg); }
.feature-card h5 { margin: 1.2rem 0 .6rem; }

.step { position: relative; padding-left: 4.2rem; margin-bottom: 2.2rem; }
.step-num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--nb-navy); color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 56px; bottom: -28px; width: 2px; background: repeating-linear-gradient(var(--nb-border) 0 6px, transparent 6px 12px); }

.dark-panel { background: var(--nb-navy); color: #fff; border-radius: 28px; padding: 2.5rem; position: relative; overflow: hidden; }
.dark-panel::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.35), transparent 65%); right: -120px; top: -120px; }
.dark-panel > * { position: relative; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 1.5rem; }
.mini-bars div { flex: 1; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.15); }
.mini-bars div.on { background: linear-gradient(180deg, var(--nb-emerald), var(--nb-teal)); }

.nav-pills-nb { background: #fff; border: 1px solid var(--nb-border); border-radius: 14px; padding: .35rem; display: inline-flex; gap: .25rem; }
.nav-pills-nb .nav-link { border-radius: 10px; color: var(--nb-muted); font-weight: 600; padding: .55rem 1.2rem; }
.nav-pills-nb .nav-link.active { background: var(--nb-navy); color: #fff; }

.plan-card { padding: 2rem; height: 100%; position: relative; transition: transform .2s; }
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured { background: var(--nb-navy); color: #fff; border-color: var(--nb-navy); }
.plan-card.featured .text-muted { color: rgba(255,255,255,.65) !important; }
.plan-card.featured .plan-list li { border-color: rgba(255,255,255,.12); }
.plan-tag { position: absolute; top: 1.3rem; right: 1.3rem; background: var(--nb-emerald); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.plan-rate { font-family: 'Plus Jakarta Sans'; font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 1rem 0 .3rem; }
.plan-rate small { font-size: 1rem; font-weight: 600; opacity: .7; }
.plan-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan-list li { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px dashed var(--nb-border); font-size: .95rem; }

.calc-result { background: var(--nb-bg); border-radius: 14px; padding: 1.2rem; }
.calc-result .big { font-family: 'Plus Jakarta Sans'; font-size: 2rem; font-weight: 800; color: var(--nb-emerald-dark); }
input[type=range] { accent-color: var(--nb-emerald); }

.testimonial { padding: 2rem; height: 100%; }
.testimonial .stars { color: var(--nb-amber); }
.testimonial .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; }
.testimonial .ava { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

.accordion-nb .accordion-item { border: 1px solid var(--nb-border); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-nb .accordion-button { font-weight: 600; padding: 1.2rem 1.4rem; color: var(--nb-navy); }
.accordion-nb .accordion-button:not(.collapsed) { background: #fff; color: var(--nb-emerald-dark); box-shadow: none; }
.accordion-nb .accordion-button:focus { box-shadow: none; }
.accordion-nb .accordion-body { color: var(--nb-muted); padding: 0 1.4rem 1.3rem; }

.app-banner { background: linear-gradient(120deg, var(--nb-emerald), var(--nb-teal)); border-radius: 28px; color: #fff; padding: 3rem; overflow: hidden; position: relative; }
.app-banner::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.1); }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--nb-navy); color: #fff; padding: .7rem 1.2rem; border-radius: 12px; text-decoration: none; font-size: .8rem; line-height: 1.15; }
.store-btn i { font-size: 1.6rem; }
.store-btn b { display: block; font-size: 1rem; }
.store-btn:hover { color: #fff; background: var(--nb-navy-2); }

.cta-band { background: var(--nb-navy); border-radius: 28px; padding: 3.5rem; color: #fff; }

.footer { background: var(--nb-navy); color: rgba(255,255,255,.7); padding: 4.5rem 0 2rem; }
.footer h6 { color: #fff; margin-bottom: 1.2rem; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: var(--nb-emerald); }
.footer .nb-brand { color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.footer .form-control::placeholder { color: rgba(255,255,255,.5); }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; margin-right: .4rem; }

/* =========================================================
   Login and register pages
   ========================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--nb-navy); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.35), transparent 65%); right: -160px; top: -160px; }
.auth-side > * { position: relative; }
.auth-side .nb-brand { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-form .inner { width: 100%; max-width: 430px; }
.auth-admin { background: var(--nb-navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
@media (max-width: 991px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* =========================================================
   Dashboards (customer and admin)
   ========================================================= */
.dash { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--nb-border); position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1040; transition: transform .25s; }
.sidebar .brand-box { padding: 1.4rem 1.5rem; }
.side-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94A3B8; padding: 1.2rem 1.5rem .5rem; }
.side-link { display: flex; align-items: center; gap: .8rem; margin: .1rem .8rem; padding: .7rem .9rem; border-radius: 12px; color: #475569; font-weight: 500; text-decoration: none; font-size: .94rem; }
.side-link i { font-size: 1.1rem; }
.side-link:hover { background: var(--nb-bg); color: var(--nb-navy); }
.side-link.active { background: rgba(16,185,129,.1); color: var(--nb-emerald-dark); font-weight: 600; }
.side-link .badge { margin-left: auto; }
.side-link.soon { opacity: .55; }

.sidebar-dark { background: var(--nb-navy); border-right: 0; }
.sidebar-dark .nb-brand { color: #fff; }
.sidebar-dark .side-label { color: rgba(255,255,255,.4); }
.sidebar-dark .side-link { color: rgba(255,255,255,.72); }
.sidebar-dark .side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-dark .side-link.active { background: var(--nb-emerald); color: #fff; }

.dash-main { flex: 1; margin-left: 264px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(247,249,252,.9); backdrop-filter: blur(10px); padding: 1rem 2rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--nb-border); }
.topbar .icon-btn { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--nb-border); display: inline-flex; align-items: center; justify-content: center; color: var(--nb-navy); position: relative; }
.topbar .icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--nb-coral); }
.user-chip { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--nb-border); border-radius: 14px; padding: .3rem .8rem .3rem .3rem; color: var(--nb-navy); text-decoration: none; }
.user-chip .ava { width: 34px; height: 34px; border-radius: 10px; background: var(--nb-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.dash-content { padding: 2rem; }
.profile-ava { width: 96px; height: 96px; border-radius: 28px; background: var(--nb-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; }
.page-title { font-size: 1.6rem; margin-bottom: .2rem; }

.balance-card { background: linear-gradient(135deg, var(--nb-navy) 0%, #1E3A64 100%); color: #fff; border-radius: 22px; padding: 1.8rem; position: relative; overflow: hidden; height: 100%; }
.balance-card::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.4), transparent 65%); right: -80px; top: -100px; }
.balance-card > * { position: relative; z-index: 1; }
.balance-card .amount { font-family: 'Plus Jakarta Sans'; font-size: 2.4rem; font-weight: 800; }
.balance-card .acct { background: rgba(255,255,255,.1); border-radius: 10px; padding: .35rem .7rem; font-size: .85rem; display: inline-flex; gap: .5rem; align-items: center; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: 14px; text-decoration: none; color: var(--nb-navy); font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid var(--nb-border); transition: all .2s; }
.quick-action:hover { border-color: var(--nb-emerald); color: var(--nb-emerald-dark); transform: translateY(-2px); }

.stat-card { padding: 1.3rem; display: flex; align-items: center; gap: 1rem; height: 100%; }
.stat-card .v { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.4rem; line-height: 1.2; }
.stat-card .l { color: var(--nb-muted); font-size: .85rem; }

.table-nb { margin: 0; }
.table-nb th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-muted); font-weight: 600; background: var(--nb-bg); border-bottom: 0; padding: .9rem 1.2rem; }
.table-nb td { padding: .95rem 1.2rem; vertical-align: middle; border-color: var(--nb-border); }
.trx-icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.badge-soft { padding: .4em .75em; border-radius: 8px; font-weight: 600; font-size: .75rem; }
.badge-soft-success { background: rgba(16,185,129,.12); color: var(--nb-emerald-dark); }
.badge-soft-warning { background: rgba(245,158,11,.14); color: #B45309; }
.badge-soft-danger { background: rgba(244,63,94,.12); color: #BE123C; }
.badge-soft-info { background: rgba(14,165,164,.12); color: #0F766E; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--nb-muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .6rem; opacity: .5; }

.alert { border-radius: 14px; border: 0; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--nb-shadow-lg); }
    .dash-main { margin-left: 0; }
    .dash-content, .topbar { padding: 1rem; }
    .hero { padding-top: 7.5rem; }
    .hero-visual { min-height: 520px; margin-top: 3rem; }
    .phone { right: 50%; transform: translateX(50%) rotate(3deg); }
    .bank-card { left: 50%; transform: translateX(-62%) rotate(-6deg); width: 270px; }
    .float-chip.one { left: 0; }
    .section { padding: 4.5rem 0; }
    .app-banner, .cta-band, .dark-panel { padding: 2rem; }
}

.method-card { transition: border-color .2s, transform .2s; }
.method-card:hover { border-color: var(--nb-emerald); transform: translateY(-2px); }
.table-ava { width: 36px; height: 36px; border-radius: 10px; background: var(--nb-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.doc-img { width: 100%; max-height: 360px; object-fit: contain; background: var(--nb-bg); border-radius: 14px; border: 1px solid var(--nb-border); }
.impersonate-bar { background: var(--nb-amber); color: var(--nb-navy); padding: .55rem 1.5rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .75rem; }
.ticket-msg { max-width: 78%; padding: 1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--nb-border); box-shadow: var(--nb-shadow); }
.ticket-msg.staff { background: var(--nb-navy); color: #fff; border-color: var(--nb-navy); }
.ticket-msg.staff .text-muted { color: rgba(255,255,255,.6) !important; }
.ticket-msg.staff a { color: #6EE7B7; }
.ticket-msg.customer { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); }
.ref-link { background: var(--nb-bg); border: 1.5px dashed var(--nb-border); border-radius: 14px; padding: .8rem 1rem; font-family: ui-monospace, monospace; word-break: break-all; }
/* Big gutters are too wide for phones and cause sideways scrolling */
@media (max-width: 991px) { .g-5 { --bs-gutter-x: 1.5rem; } }
/* The logo square is navy, so outline it on navy backgrounds */
.sidebar-dark .nb-brand img, .footer .nb-brand img, .auth-side .nb-brand img { box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 11px; }

/* Phone menu: give the open menu a white card so it never sits on top of the page text */
.nb-nav .navbar-toggler { border: 1px solid var(--nb-border) !important; border-radius: 12px; padding: .35rem .6rem; background: #fff; }
.nb-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(16,185,129,.2); }
@media (max-width: 991px) {
    .nb-nav { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--nb-border); }
    .nb-nav .navbar-collapse { background: #fff; border: 1px solid var(--nb-border); border-radius: 16px; box-shadow: var(--nb-shadow-lg); padding: .75rem; margin-top: .75rem; max-height: calc(100vh - 90px); overflow-y: auto; }
    .nb-nav .nav-link { padding: .75rem 1rem !important; border-radius: 10px; }
    .nb-nav .nav-link:hover { background: var(--nb-bg); }
    .nb-nav .navbar-collapse .d-flex { padding: .5rem; }
    .nb-nav .navbar-collapse .d-flex .btn { flex: 1; }
}
