/* ==================================================================
   BG Bank — main stylesheet
   Corporate banking-group design: navy + gold, photo-led sections.
   Mobile-first friendly; checked at 375px and 1200px.
   ================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --navy: #0b1f3a;
    --navy-2: #12305a;
    --navy-3: #1c4278;
    --gold: #c9a24b;
    --gold-dark: #a88531;
    --gold-light: #f6efdf;
    --ink: #17202e;
    --muted: #5b6678;
    --line: #dfe4ec;
    --bg: #ffffff;
    --bg-alt: #f4f6f9;
    --success: #13795b;
    --success-bg: #e5f4ee;
    --danger: #c0392b;
    --danger-dark: #9e2b20;
    --danger-bg: #fcebea;
    --info: #1d5fa8;
    --info-bg: #e8f0fa;

    --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
    --shadow: 0 8px 24px rgba(11, 31, 58, 0.1);
    --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.18);
    --container: 1200px;
    --header-h: 84px;
    --ease: 0.25s ease;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--navy);
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--navy-3);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover,
a:focus-visible {
    color: var(--gold-dark);
}

ul, ol {
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

blockquote {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.narrow {
    max-width: 640px;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    transition: top var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: var(--navy);
}

.site-main {
    flex: 1 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--navy-3);
    border-color: var(--navy-3);
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: #d8b463;
    border-color: #d8b463;
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline.is-active {
    background: var(--navy);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--navy);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--bg-alt);
    color: var(--navy);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.btn-light:hover,
.btn-light:focus-visible {
    background: var(--gold-light);
    color: var(--navy);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-success:hover,
.btn-success:focus-visible {
    background: #0e5e46;
    border-color: #0e5e46;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
    color: #fff;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 14px;
}

.btn-xs {
    padding: 5px 12px;
    font-size: 13px;
    border-width: 1px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-3);
    font-weight: 700;
    font-size: 15px;
}

.link-arrow::after {
    content: "\2192";
    transition: transform var(--ease);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
    transform: translateX(4px);
}

.pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color var(--ease);
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.topbar-tagline {
    margin: 0;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.85);
}

.topbar-link:hover,
.topbar-link:focus-visible {
    color: #fff;
}

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.lang-btn {
    min-width: 40px;
    padding: 3px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color var(--ease), color var(--ease);
}

.lang-btn:hover,
.lang-btn:focus-visible {
    color: #fff;
}

.lang-btn.is-active {
    background: var(--gold);
    color: var(--navy);
}

/* ---------- Header & navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}

.brand:hover,
.brand:focus-visible {
    color: var(--navy);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%);
    box-shadow: inset 0 -4px 0 var(--gold);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-sub {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-light,
.brand-light:hover,
.brand-light:focus-visible {
    color: #fff;
}

.brand-light .brand-sub {
    color: var(--gold);
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 24px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: block;
    white-space: nowrap;
    padding: 10px 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Alerts ---------- */
.flash-wrap {
    padding-top: 20px;
}

.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #0c5a43;
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #8a2219;
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info);
    color: #164a84;
}

.alert-close {
    flex-shrink: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover,
.alert-close:focus-visible {
    opacity: 1;
}

/* ---------- Generic sections ---------- */
.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.section-bar .section-title {
    margin: 0;
}

.section-title {
    font-size: 34px;
    letter-spacing: -0.01em;
}

.section-title-upper {
    font-size: 30px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-title-light {
    color: #fff;
}

.section-lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.title-rule {
    position: relative;
    padding-left: 22px;
}

.title-rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 4px;
    background: var(--gold);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Hero slider ---------- */
.hero-slider {
    position: relative;
    height: 640px;
    max-height: 82vh;
    min-height: 480px;
    overflow: hidden;
    background: var(--navy);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.slide.is-active .slide-img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.7) 45%, rgba(11, 31, 58, 0.15) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.slide-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-left: 4px solid var(--gold);
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.slide-title {
    max-width: 640px;
    color: #fff;
    font-size: 54px;
    letter-spacing: -0.02em;
}

.slide-text {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 92px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease);
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: width var(--ease), background-color var(--ease);
}

.slider-dot.is-active {
    width: 34px;
    background: var(--gold);
    border-color: var(--gold);
}

/* ---------- Quick access ---------- */
.quick-access {
    position: relative;
    z-index: 5;
    margin-top: -64px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
    list-style: none;
}

.quick-grid li + li {
    border-left: 1px solid var(--line);
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 26px 24px;
    color: var(--navy);
    font-weight: 700;
    transition: background-color var(--ease);
}

.quick-card:hover,
.quick-card:focus-visible {
    background: var(--gold-light);
    color: var(--navy);
}

.quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
}

.quick-label {
    flex: 1;
    line-height: 1.3;
}

.quick-arrow {
    color: var(--gold-dark);
    font-size: 20px;
    transition: transform var(--ease);
}

.quick-card:hover .quick-arrow {
    transform: translateX(4px);
}

/* ---------- News ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-media img {
    transform: scale(1.05);
}

.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.news-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-title {
    font-size: 20px;
}

.news-title a {
    color: var(--navy);
}

.news-title a:hover,
.news-title a:focus-visible {
    color: var(--gold-dark);
}

.news-text {
    flex: 1;
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Expertise tiles ---------- */
.expertise-layout {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 48px;
    align-items: center;
}

.expertise-intro .section-lead {
    margin-bottom: 28px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.image-tile {
    position: relative;
    display: block;
    min-height: 380px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    isolation: isolate;
    box-shadow: var(--shadow);
}

.image-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.image-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.15) 0%, rgba(11, 31, 58, 0.55) 45%, rgba(11, 31, 58, 0.92) 100%);
    transition: background-color var(--ease);
}

.image-tile-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 18px;
    text-align: center;
}

.image-tile-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.image-tile:hover,
.image-tile:focus-visible {
    color: #fff;
}

.image-tile:hover img,
.image-tile:focus-visible img {
    transform: scale(1.07);
}

.image-tile:hover .pill,
.image-tile:focus-visible .pill {
    background: #fff;
}

.commit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.image-tile-wide {
    min-height: 300px;
}

/* ---------- Key figures ---------- */
.figures {
    position: relative;
    padding: 80px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 162, 75, 0.18), transparent 40%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 40px;
    list-style: none;
    text-align: center;
}

.figure {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px;
}

.figure + .figure {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.figure-value {
    color: var(--gold);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.figure-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Quote banner ---------- */
.quote-banner {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
    isolation: isolate;
}

.quote-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(11, 31, 58, 0.78);
}

.quote-content {
    max-width: 900px;
}

.quote-text {
    color: #fff;
    font-size: 34px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
}

.quote-caption {
    margin: 22px 0 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- Split (text + image) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-text p {
    color: var(--muted);
    font-size: 17px;
}

.split-text .btn {
    margin-top: 10px;
}

.split-image {
    position: relative;
}

.split-image::before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 60%;
    height: 60%;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: var(--gold-light);
}

.split-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.split-media {
    position: relative;
    z-index: 0;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    padding: 16px 20px;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.mini-stat-value {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
}

.mini-stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Call to action band ---------- */
.cta-band {
    padding: 60px 0;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-title {
    color: #fff;
    font-size: 30px;
}

.cta-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 380px;
    padding: 72px 0 64px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.page-hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.65) 60%, rgba(11, 31, 58, 0.35) 100%);
}

.page-hero-content {
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gold);
    font-weight: 600;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: #fff;
}

.page-title {
    max-width: 760px;
    color: #fff;
    font-size: 46px;
    letter-spacing: -0.01em;
}

.page-lead {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

/* ---------- About ---------- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mv-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.mv-card p {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.5;
}

.mv-card-dark {
    background: var(--navy);
}

.mv-card-dark p {
    color: #fff;
}

.mv-label {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mv-card-dark .mv-label {
    color: var(--gold);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px 26px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    background: #fff;
    transition: transform var(--ease), box-shadow var(--ease);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
}

.value-title {
    font-size: 20px;
}

.value-text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.commit-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.photo-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.photo-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.photo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card-body {
    padding: 22px;
}

.photo-card-title {
    font-size: 18px;
}

.photo-card-text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.timeline {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding-left: 44px;
    padding-bottom: 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 20px;
    height: 20px;
    border: 4px solid var(--gold);
    border-radius: 50%;
    background: #fff;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.timeline-year {
    min-width: 60px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
}

/* ---------- Services ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h) + 24px);
    transition: transform var(--ease), box-shadow var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:target {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.service-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.service-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.service-title {
    font-size: 21px;
}

.service-text {
    color: var(--muted);
    font-size: 15px;
}

.check-list {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    list-style: none;
    font-size: 15px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.3em;
    width: 7px;
    height: 12px;
    border: solid var(--gold-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-body .link-arrow {
    margin-top: auto;
}

.table-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Tables ---------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table thead th {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fafbfd;
}

.data-table .text-end {
    text-align: right;
}

.compare-table tbody th {
    color: var(--navy);
    font-weight: 700;
}

.cell-stack {
    min-width: 0;
}

.cell-primary {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

.cell-secondary {
    display: block;
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

.amount {
    font-weight: 700;
    white-space: nowrap;
}

.amount-credit {
    color: var(--success);
}

.amount-debit {
    color: var(--danger);
}

.action-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.form-optional {
    color: var(--muted);
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d2df;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy-3);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.35);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background: #fffafa;
}

.form-control-sm {
    padding: 9px 12px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.field-error {
    margin: 0;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.form-card {
    padding: 40px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 26px;
    margin-bottom: 22px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.info-card {
    padding: 22px 24px;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
}

.info-card p {
    margin: 0;
}

.info-card a {
    color: #fff;
}

.info-card a:hover,
.info-card a:focus-visible {
    color: var(--gold);
}

.info-title {
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Auth pages ---------- */
.auth-body .site-main {
    background: var(--bg-alt);
}

.auth-section {
    padding: 56px 0 80px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.auth-visual img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.2) 0%, rgba(11, 31, 58, 0.9) 100%);
}

.auth-visual-content {
    padding: 40px;
}

.auth-visual-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-visual-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-visual-list {
    display: grid;
    gap: 8px;
    list-style: none;
    font-size: 15px;
}

.auth-visual-list li {
    position: relative;
    padding-left: 24px;
}

.auth-visual-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.auth-card {
    align-self: center;
    width: 100%;
    padding: 48px 44px;
}

.auth-head {
    margin-bottom: 28px;
}

.auth-title {
    font-size: 30px;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.auth-switch a {
    font-weight: 700;
}

/* ---------- Dashboards ---------- */
.dashboard-body .site-main {
    background: var(--bg-alt);
}

.dashboard {
    padding: 40px 0 72px;
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
}

.dash-greeting {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.8);
}

.dash-greeting strong {
    color: var(--gold);
}

.dash-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-info {
    background: var(--gold);
    color: var(--navy);
}

.badge-muted {
    background: #e9edf3;
    color: var(--muted);
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    margin-left: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.summary-card-primary {
    border-color: var(--gold);
    background: var(--gold-light);
}

.summary-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.summary-value {
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.summary-value-sm {
    font-size: 18px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    align-items: start;
}

.panel {
    min-width: 0;
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.dash-grid .panel {
    margin-bottom: 0;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head-split {
    flex-wrap: wrap;
}

.panel-title {
    margin: 0;
    font-size: 19px;
}

.panel-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form .form-control {
    width: 240px;
}

.empty-state {
    padding: 32px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--muted);
    text-align: center;
}

.empty-state p {
    margin: 0;
}

.summary-grid + .empty-state,
.dash-head + .empty-state {
    margin-bottom: 24px;
}

.detail-list {
    margin: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row dt {
    color: var(--muted);
    font-size: 14px;
}

.detail-row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.message-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.message-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-bottom: 6px;
}

.message-meta .cell-primary,
.message-meta .cell-secondary {
    display: inline;
}

.message-date {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.message-subject {
    margin: 0 0 4px;
    color: var(--navy);
    font-weight: 700;
}

.message-body {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ---------- Error pages ---------- */
.error-page {
    padding: 110px 0;
}

.error-page .page-title {
    margin-inline: auto;
    color: var(--navy);
}

.error-page .page-lead {
    margin: 0 auto 28px;
    color: var(--muted);
}

.error-code {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
}

.fatal-body {
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-alt);
}

.fatal-box {
    max-width: 440px;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.fatal-box .brand-mark {
    margin: 0 auto 16px;
}

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    background: #07162b;
    color: #aab6c9;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 44px;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    padding-right: 16px;
}

.footer-tagline {
    max-width: 340px;
    margin: 18px 0 0;
}

.footer-heading {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
    list-style: none;
}

.site-footer a {
    color: #aab6c9;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-note {
    color: #7e8ba0;
}

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1140px) {
    .expertise-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .figures-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }

    .figure:nth-child(4) {
        border-left: 0;
    }

    .commit-grid,
    .commit-cards,
    .value-grid,
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1080px) {
    .topbar-email {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
    }

    .nav-link {
        padding: 12px 4px;
        border-bottom: 1px solid var(--line);
    }

    .nav-link::after {
        left: 4px;
        right: auto;
        width: 40px;
        bottom: -2px;
    }

    .nav-actions {
        flex-wrap: wrap;
    }

    .nav-actions .btn,
    .nav-actions .inline-form {
        flex: 1 1 160px;
    }

    .nav-actions .inline-form .btn {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .slide-title {
        font-size: 42px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-grid li:nth-child(3) {
        border-left: 0;
    }

    .quick-grid li:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .news-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-tile {
        min-height: 300px;
    }

    .split,
    .contact-grid,
    .dash-grid,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 40px;
    }

    .split-media .split-image {
        order: -1;
    }

    .split-image::before {
        right: -10px;
        bottom: -10px;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-visual-content {
        padding: 28px;
    }

    .auth-visual-list {
        display: none;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        padding-inline: 16px;
    }

    .topbar-inner {
        min-height: 38px;
    }

    .topbar-tagline {
        display: none;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    :root {
        --header-h: 70px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .brand-name {
        font-size: 19px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-title-upper {
        font-size: 23px;
    }

    .section-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-lead,
    .page-lead,
    .slide-text {
        font-size: 16px;
    }

    .hero-slider {
        height: 600px;
        max-height: none;
    }

    .slide {
        align-items: flex-start;
        padding-top: 64px;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.75) 60%, rgba(11, 31, 58, 0.55) 100%);
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-actions .btn {
        flex: 1 1 100%;
    }

    .slider-controls {
        bottom: 84px;
    }

    .quick-access {
        margin-top: -56px;
    }

    .quick-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 16px;
        font-size: 14px;
    }

    .quick-icon {
        width: 42px;
        height: 42px;
    }

    .quick-arrow {
        display: none;
    }

    .news-grid,
    .service-grid,
    .tile-grid,
    .commit-grid,
    .commit-cards,
    .value-grid,
    .mv-grid,
    .summary-grid,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .image-tile {
        min-height: 240px;
    }

    .figures {
        padding: 60px 0;
    }

    .figures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
    }

    .figure + .figure {
        border-left: 0;
    }

    .figure-value {
        font-size: 34px;
    }

    .figure-label {
        font-size: 12px;
    }

    .quote-banner {
        padding: 80px 0;
    }

    .quote-text {
        font-size: 23px;
    }

    .mv-card {
        padding: 28px 24px;
    }

    .mv-card p {
        font-size: 18px;
    }

    .page-hero {
        min-height: 300px;
        padding: 56px 0 44px;
    }

    .page-title {
        font-size: 30px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 2px;
    }

    .form-card {
        padding: 28px 20px;
    }

    .auth-section {
        padding: 24px 0 56px;
    }

    .auth-layout {
        border-radius: var(--radius);
    }

    .auth-visual {
        min-height: 170px;
    }

    .auth-visual-title {
        font-size: 22px;
        margin: 0;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 26px;
    }

    .cta-band {
        padding: 48px 0;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-inner .btn {
        width: 100%;
    }

    .dash-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .dash-title {
        font-size: 24px;
    }

    .panel {
        padding: 18px 16px;
    }

    .search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-form .form-control {
        width: auto;
        flex: 1 1 160px;
    }

    .error-code {
        font-size: 80px;
    }

    /* Stacked tables on phones */
    .responsive-table thead,
    .compare-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td,
    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr,
    .compare-table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--line);
    }

    .responsive-table tbody tr:last-child,
    .compare-table tbody tr:last-child {
        border-bottom: 0;
    }

    .responsive-table td,
    .compare-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 6px 0;
        border-bottom: 0;
        text-align: right;
    }

    .compare-table th {
        padding: 4px 0 8px;
        border-bottom: 0;
    }

    .responsive-table td::before,
    .compare-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-align: left;
        text-transform: uppercase;
    }

    .cell-stack {
        text-align: right;
    }

    .message-date {
        width: 100%;
        margin-left: 0;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-row dd {
        text-align: left;
    }

    .footer-grid {
        gap: 30px;
        padding-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar,
    .site-header,
    .site-footer,
    .cta-band,
    .hero-slider,
    .action-group,
    .search-form {
        display: none;
    }
}

/* =================================================================
 * Dashboards v2 (customer + admin)
 * ================================================================= */
.icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.db {
    padding-bottom: 72px;
}

.db-hero {
    position: relative;
    padding: 40px 0 124px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% -10%, rgba(201, 162, 75, 0.28) 0, rgba(201, 162, 75, 0) 45%),
        radial-gradient(circle at 0% 120%, rgba(28, 66, 120, 0.9) 0, rgba(28, 66, 120, 0) 55%),
        linear-gradient(135deg, #081831 0%, #0b1f3a 45%, #12305a 100%);
    color: #fff;
}

.db-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 60px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.db-hero > .container {
    position: relative;
    z-index: 1;
}

.db-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.db-hero-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-top: 36px;
}

.db-hero-intro {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.db-eyebrow {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.db-title {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.db-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.db-subtitle .icon {
    width: 16px;
    height: 16px;
}

.db-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(201, 162, 75, 0.6);
    border-radius: 999px;
    background: rgba(201, 162, 75, 0.12);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.db-role-pill .icon {
    width: 18px;
    height: 18px;
}

.db-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-3), var(--navy));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.db-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.db-avatar-lg {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #e3c27a, var(--gold-dark));
    color: var(--navy);
    font-size: 22px;
}

.db-avatar-xl {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e3c27a, var(--gold-dark));
    color: var(--navy);
    font-size: 24px;
}

.db-avatar-muted {
    background: #c3cad6;
}

.db-body {
    position: relative;
    z-index: 2;
    margin-top: -84px;
}

/* KPI cards (admin) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    transition: transform var(--ease), box-shadow var(--ease);
}

.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-card-gold {
    background: linear-gradient(135deg, #fffaf0 0%, var(--gold-light) 100%);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(201, 162, 75, 0.45);
}

.kpi-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.kpi-icon .icon {
    width: 24px;
    height: 24px;
}

.kpi-icon-navy {
    background: var(--info-bg);
    color: var(--navy-3);
}

.kpi-icon-green {
    background: var(--success-bg);
    color: var(--success);
}

.kpi-icon-red {
    background: var(--danger-bg);
    color: var(--danger);
}

.kpi-icon-gold {
    background: var(--gold);
    color: var(--navy);
}

.kpi-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kpi-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kpi-value {
    color: var(--navy);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.kpi-value-money {
    font-size: 22px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.kpi-sub {
    color: var(--muted);
    font-size: 13px;
}

.kpi-up {
    color: var(--success);
    font-weight: 800;
}

/* Panels */
.db-grid {
    display: grid;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.db-grid-chart {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: stretch;
}

.db-grid-half {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.db-grid-main {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}

.db-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.db-panel {
    min-width: 0;
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(223, 228, 236, 0.8);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.07);
}

.db-grid > .db-panel,
.db-stack > .db-panel {
    margin-bottom: 0;
}

.db-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.db-panel-head-wrap {
    flex-wrap: wrap;
    align-items: center;
}

.db-panel-title {
    margin: 0;
    color: var(--navy);
    font-size: 19px;
}

.db-panel-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.db-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.db-chip .icon {
    width: 16px;
    height: 16px;
}

/* Charts */
.bar-chart-svg {
    display: block;
    width: 100%;
    height: 200px;
}

.chart-grid {
    stroke: #e3e8ef;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.bar-track {
    fill: #f2f4f8;
}

.bar {
    fill: var(--navy-3);
    transition: opacity var(--ease);
}

.bar-gold {
    fill: var(--gold);
}

.bar:hover {
    opacity: 0.8;
}

.bar-labels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 10px;
    text-align: center;
}

.bar-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--muted);
    font-size: 13px;
}

.bar-label strong {
    color: var(--navy);
    font-size: 15px;
}

.donut-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 22px;
}

.donut {
    display: block;
    width: 100%;
    height: 100%;
}

.donut-track {
    fill: none;
    stroke: #e9edf3;
    stroke-width: 5;
}

.donut-value {
    fill: none;
    stroke: var(--success);
    stroke-width: 5;
    stroke-linecap: round;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-center strong {
    color: var(--navy);
    font-size: 32px;
    line-height: 1;
}

.donut-center span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legend {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.legend li strong {
    margin-left: auto;
    color: var(--navy);
}

.legend-inline {
    display: flex;
    gap: 16px;
}

.legend-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot-green {
    background: var(--success);
}

.legend-dot-muted {
    background: #c3cad6;
}

.legend-dot-gold {
    background: var(--gold);
}

.legend-dot-navy {
    background: var(--navy-3);
}

/* Search */
.db-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-search-icon {
    position: absolute;
    top: 11px;
    left: 14px;
    display: inline-flex;
    color: var(--muted);
    pointer-events: none;
}

.db-search-icon .icon {
    width: 18px;
    height: 18px;
}

.db-search-input {
    width: 280px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.db-search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

/* Table */
.db-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.db-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

.db-table th,
.db-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
}

.db-table thead th {
    border-bottom: 0;
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.db-table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.db-table thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.db-table tbody tr {
    transition: background-color var(--ease);
}

.db-table tbody tr:hover {
    background: #fafbfd;
}

.db-table tbody tr:last-child td {
    border-bottom: 0;
}

.db-table .text-end {
    text-align: right;
}

.person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mono {
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.amount-strong {
    color: var(--navy);
    font-weight: 800;
    white-space: nowrap;
}

.cell-muted {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill-on {
    background: var(--success-bg);
    color: var(--success);
}

.status-pill-off {
    background: #eef1f5;
    color: var(--muted);
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.act-btn .icon {
    width: 15px;
    height: 15px;
}

.act-btn-warn:hover,
.act-btn-warn:focus-visible {
    border-color: #d9a441;
    background: #fff6e5;
    color: #8a5a00;
}

.act-btn-ok {
    border-color: rgba(19, 121, 91, 0.4);
    color: var(--success);
}

.act-btn-ok:hover,
.act-btn-ok:focus-visible {
    background: var(--success-bg);
}

.act-btn-danger {
    color: var(--danger);
}

.act-btn-danger:hover,
.act-btn-danger:focus-visible {
    border-color: var(--danger);
    background: var(--danger-bg);
}

/* Transaction + message lists */
.tx-list,
.msg-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}

.tx-item:last-child {
    border-bottom: 0;
}

.tx-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.tx-icon-in {
    background: var(--success-bg);
    color: var(--success);
}

.tx-icon-out {
    background: var(--danger-bg);
    color: var(--danger);
}

.tx-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tx-desc {
    overflow: hidden;
    color: var(--ink);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.tx-amount {
    font-weight: 800;
    white-space: nowrap;
}

.msg-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
}

.msg-item:last-child {
    border-bottom: 0;
}

.msg-main {
    flex: 1;
    min-width: 0;
}

.msg-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.msg-top .cell-primary {
    display: inline;
}

.msg-date {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.msg-email {
    display: block;
    color: var(--navy-3);
    font-size: 13px;
    word-break: break-all;
}

.msg-subject {
    margin: 6px 0 2px;
    color: var(--navy);
    font-weight: 700;
}

.msg-body {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.db-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--muted);
    text-align: center;
}

.db-empty p {
    margin: 0;
}

.db-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--gold-dark);
    box-shadow: var(--shadow-sm);
}

.db-empty-hero {
    margin-top: 28px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

/* Customer hero: card + balance */
.bank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1.586;
    padding: 24px 26px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 110% -20%, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at -10% 120%, rgba(11, 31, 58, 0.35) 0, rgba(11, 31, 58, 0) 50%),
        linear-gradient(135deg, #e3c27a 0%, #c9a24b 40%, #9c7a2c 100%);
    color: var(--navy);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.bank-card:hover {
    transform: rotate(0) translateY(-4px);
}

.bank-card::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -60px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.bank-card > * {
    position: relative;
}

.bank-card-top,
.bank-card-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bank-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
}

.bank-card-brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.bank-card-type {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(11, 31, 58, 0.12);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bank-card-chip {
    width: 46px;
    height: 34px;
    border-radius: 7px;
    background:
        linear-gradient(90deg, transparent 30%, rgba(11, 31, 58, 0.25) 30%, rgba(11, 31, 58, 0.25) 34%, transparent 34%, transparent 66%, rgba(11, 31, 58, 0.25) 66%, rgba(11, 31, 58, 0.25) 70%, transparent 70%),
        linear-gradient(180deg, transparent 45%, rgba(11, 31, 58, 0.25) 45%, rgba(11, 31, 58, 0.25) 55%, transparent 55%),
        linear-gradient(135deg, #f8e7b8, #c9a24b);
    box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.2);
}

.bank-card-number {
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.bank-card-cap {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.bank-card-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.balance-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.balance-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.balance-value {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.balance-acct {
    color: var(--gold);
}

.flow-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.flow-item > div {
    min-width: 0;
}

.flow-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.flow-icon-in {
    background: rgba(19, 121, 91, 0.3);
    color: #6fe0b4;
}

.flow-icon-out {
    background: rgba(192, 57, 43, 0.3);
    color: #ff9a8f;
}

.flow-icon-neutral {
    background: rgba(201, 162, 75, 0.2);
    color: var(--gold);
}

.flow-label {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.flow-value {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Quick tiles */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.quick-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease);
}

.quick-tile:hover,
.quick-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(11, 31, 58, 0.22);
    color: var(--ink);
}

.quick-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gold-light);
    color: var(--gold-dark);
    transition: background-color var(--ease), color var(--ease);
}

.quick-tile:hover .quick-icon,
.quick-tile:focus-visible .quick-icon {
    background: var(--navy);
    color: var(--gold);
}

.quick-icon .icon {
    width: 24px;
    height: 24px;
}

.quick-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-text strong {
    color: var(--navy);
}

.quick-text span {
    color: var(--muted);
    font-size: 13px;
}

/* Profile + security */
.profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.profile-head .cell-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.profile-name {
    color: var(--navy);
    font-size: 19px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.security-card {
    position: relative;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.security-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    border: 26px solid rgba(201, 162, 75, 0.15);
    border-radius: 50%;
}

.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(201, 162, 75, 0.18);
    color: var(--gold);
}

.security-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.security-card p {
    margin: 0 0 14px;
}

.link-arrow-light {
    position: relative;
    z-index: 1;
    color: var(--gold);
}

.link-arrow-light:hover,
.link-arrow-light:focus-visible {
    color: #e8c87f;
}

.db-hero .alert {
    margin-top: 20px;
}

/* Dashboards: responsive */
@media (max-width: 1140px) {
    .kpi-grid,
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .db-hero-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 32px;
    }

    .balance-value {
        font-size: 40px;
    }

    .flow-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 18px;
    }
}

@media (max-width: 960px) {
    .db-grid-chart,
    .db-grid-half,
    .db-grid-main,
    .db-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bank-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .flow-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .db-hero {
        padding: 28px 0 110px;
    }

    .db-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-hero-grid {
        margin-top: 24px;
    }

    .db-hero-intro {
        align-items: flex-start;
        gap: 14px;
    }

    .db-avatar-lg {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .db-title {
        font-size: 24px;
    }

    .kpi-grid,
    .quick-grid,
    .flow-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .kpi-card {
        padding: 18px;
    }

    .quick-tile {
        padding: 16px;
    }

    .balance-value {
        font-size: 34px;
    }

    .bank-card {
        padding: 18px 20px;
        transform: none;
    }

    .bank-card-number {
        font-size: 17px;
    }

    .db-panel,
    .security-card {
        padding: 20px 16px;
        border-radius: var(--radius);
    }

    .db-panel-head {
        flex-direction: column;
    }

    .db-search {
        flex-wrap: wrap;
        width: 100%;
    }

    .db-search-input {
        flex: 1 1 100%;
        width: 100%;
    }

    .db-table tr {
        padding: 14px 0;
        border-bottom: 1px solid #edf0f5;
    }

    .db-table td {
        padding: 6px 0;
        border-bottom: 0;
    }

    .db-table td .cell-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .person {
        justify-content: flex-end;
    }

    .bar-chart-svg {
        height: 160px;
    }

    .bar-label {
        font-size: 11px;
    }

    .bar-label strong {
        font-size: 13px;
    }

    .tx-item {
        gap: 10px;
    }

    .tx-icon {
        width: 36px;
        height: 36px;
    }

    .tx-amount {
        font-size: 14px;
    }

    .msg-top {
        flex-direction: column;
        gap: 0;
    }
}

@media print {
    .db-search,
    .quick-grid {
        display: none;
    }
}

.bar-chart {
    min-width: 0;
}

.db-table .person {
    min-width: 230px;
}

.db-table .cell-primary,
.db-table .cell-secondary {
    white-space: nowrap;
    word-break: normal;
}

.db-table .action-group {
    flex-wrap: nowrap;
}

.db-table th,
.db-table td {
    padding-inline: 12px;
}

@media (max-width: 640px) {
    .db-table .person {
        min-width: 0;
    }

    .db-table .cell-primary,
    .db-table .cell-secondary {
        white-space: normal;
        word-break: break-all;
    }

    .db-table .action-group {
        flex-wrap: wrap;
    }
}

.db-table .act-btn {
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
}

.db-table .act-btn .icon {
    width: 17px;
    height: 17px;
}

.db-table .act-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.db-panel .detail-row {
    flex-direction: column;
    gap: 2px;
}

.db-panel .detail-row dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.db-panel .detail-row dd {
    color: var(--navy);
    text-align: left;
    word-break: break-word;
}
