/**
 * ============================================================
 * INSTITUTIONAL BANKING SYSTEM — Premium Theme 2025–2026
 * ============================================================
 *
 * Inspired by: JPMorgan Chase · HSBC · Morgan Stanley
 * Philosophy: Calm · Minimal · Trustworthy · Timeless · Precise
 *
 * Color Architecture:
 *   Primary       #0A2540  Deep Institutional Navy
 *   Secondary     #003366  Rich Authority Blue
 *   Accent        #C5A880  Muted Premium Gold (sparingly)
 *   Background    #FFFFFF  Pure White
 *   Panel BG      #F8F9FA  Light Warm Gray
 *   Soft Panel    #EEF2F6  Subtle Cool Gray
 *   Text          #1A1F36  Deep Slate — near-black
 *
 * Typeface: Inter → SF Pro → Helvetica Neue → system-ui
 * ============================================================
 */

/* ============================================================
   0. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ============================================================ */
:root {
    /* Brand Colors */
    --blue-900:    #0A2540;   /* Primary: deep institutional navy */
    --blue-800:    #003366;   /* Secondary: authority blue */
    --blue-700:    #0D3B6E;   /* Navigation hover background */
    --blue-600:    #1A4A8A;   /* Lighter variant for gradients */
    --blue-100:    #EBF2FB;   /* Tint for highlighted backgrounds */
    --blue-050:    #F3F7FD;   /* Very light blue tint */

    /* Accent — used sparingly */
    --gold-500:    #C5A880;   /* Primary accent: muted premium gold */
    --gold-400:    #D4BC99;   /* Light gold for hover */
    --gold-600:    #A88B5E;   /* Dark gold for active / press */

    /* Neutral Scale */
    --white:       #FFFFFF;
    --gray-50:     #F8F9FA;   /* Light panel background */
    --gray-100:    #EEF2F6;   /* Soft panel / alternate rows */
    --gray-150:    #E4E9F0;   /* Borders, dividers */
    --gray-200:    #D0D7E2;   /* Strong border */
    --gray-400:    #8B96A8;   /* Placeholder, tertiary text */
    --gray-600:    #4A5568;   /* Secondary text */
    --gray-900:    #1A1F36;   /* Primary text — deep slate */

    /* Status */
    --green-700:   #1A6B3C;   /* Success — positive transactions */
    --green-100:   #D4F0E2;
    --red-700:     #B91C1C;   /* Danger — error, critical */
    --red-100:     #FEE2E2;
    --amber-700:   #B45309;   /* Warning */
    --amber-100:   #FEF3C7;
    --sky-700:     #0369A1;   /* Info */
    --sky-100:     #E0F2FE;

    /* Sidebar (Admin) */
    --sidebar-bg:       #0A2540;
    --sidebar-hover:    #0D3B6E;
    --sidebar-active:   rgba(197, 168, 128, 0.12);
    --sidebar-border:   rgba(255,255,255,0.07);
    --sidebar-text:     rgba(255,255,255,0.72);
    --sidebar-text-active: #C5A880;

    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs:   0.75rem;    /* 12px */
    --font-size-sm:   0.875rem;   /* 14px */
    --font-size-base: 0.9375rem;  /* 15px */
    --font-size-md:   1rem;       /* 16px */
    --font-size-lg:   1.125rem;   /* 18px */
    --font-size-xl:   1.375rem;   /* 22px */
    --font-size-2xl:  1.75rem;    /* 28px */
    --font-size-3xl:  2.25rem;    /* 36px */
    --font-size-4xl:  2.875rem;   /* 46px */

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border radius */
    --radius-sm:  4px;
    --radius-md:  6px;
    --radius-lg:  8px;
    --radius-xl:  12px;

    /* Shadows — always navy-tinted, never black */
    --shadow-xs:  0 1px 2px rgba(10,37,64,0.04);
    --shadow-sm:  0 1px 4px rgba(10,37,64,0.07), 0 1px 2px rgba(10,37,64,0.05);
    --shadow-md:  0 4px 12px rgba(10,37,64,0.10), 0 1px 4px rgba(10,37,64,0.06);
    --shadow-lg:  0 8px 24px rgba(10,37,64,0.12), 0 2px 8px rgba(10,37,64,0.08);
    --shadow-xl:  0 16px 40px rgba(10,37,64,0.14), 0 4px 12px rgba(10,37,64,0.08);

    /* Transitions */
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 120ms var(--ease);
    --transition:      250ms var(--ease);
    --transition-slow: 400ms var(--ease);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-base);
    color: var(--blue-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
}

h1 { font-size: var(--font-size-4xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--font-size-3xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--font-size-2xl); font-weight: 700; }
h4 { font-size: var(--font-size-xl);  font-weight: 600; }
h5 { font-size: var(--font-size-lg);  font-weight: 600; }
h6 { font-size: var(--font-size-md);  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.75;
    font-size: var(--font-size-base);
}

a {
    color: var(--blue-800);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--gold-500); }

a:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 2px;
}

strong, b {
    color: var(--gray-900);
    font-weight: 600;
}

small, .text-muted {
    color: var(--gray-400) !important;
    font-size: var(--font-size-sm);
}

blockquote {
    border-left: 3px solid var(--gold-500);
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    color: var(--gray-600);
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

/* Override Bootstrap — full institutional navbar */
.navbar {
    background: var(--blue-600) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0 !important;
    min-height: 64px;
    box-shadow: var(--shadow-md);
}

.navbar .container-lg,
.navbar .container-fluid {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--gold-500) !important;
    font-size: 1.1rem;
}

.navbar-brand:hover {
    color: var(--gray-50) !important;
    text-decoration: none;
}

/* Nav links */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255,255,255,0.07);
}

.navbar-nav .nav-link.active {
    color: var(--gold-500) !important;
    font-weight: 600;
}

/* Mobile toggler */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 0.4rem 0.6rem !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown */
.navbar-nav .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--gray-150);
    border-top: 2px solid var(--gold-500);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 0;
    min-width: 200px;
    margin-top: 2px !important;
}

.navbar-nav .dropdown-item {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.6rem 1.25rem;
    transition: background var(--transition-fast), color var(--transition-fast), padding var(--transition-fast);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: var(--gray-50);
    color: var(--blue-900) !important;
    padding-left: 1.5rem;
}

/* Navbar CTA button */
.navbar .btn-nav-cta {
    background: var(--gold-500);
    color: var(--blue-900) !important;
    font-weight: 700;
    font-size: var(--font-size-sm);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar .btn-nav-cta:hover {
    background: var(--gold-400);
    color: var(--blue-900) !important;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    font-family: var(--font-base);
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.5rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary — Navy */
.btn-primary {
    background: var(--blue-900);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--blue-800);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-primary:active { background: var(--blue-700); }

/* Secondary — outlined navy */
.btn-secondary {
    background: transparent;
    color: var(--blue-900);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    border-color: var(--blue-900);
    background: var(--blue-050);
    color: var(--blue-900);
    transform: translateY(-1px);
}

/* Accent — gold (use sparingly) */
.btn-accent {
    background: var(--gold-500);
    color: var(--blue-900);
    font-weight: 700;
}
.btn-accent:hover {
    background: var(--gold-400);
    color: var(--blue-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-accent:active { background: var(--gold-600); }

/* Ghost — white/transparent for dark backgrounds */
.btn-ghost {
    background: rgba(255,255,255,0.10);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

/* Outline light — for hero on dark bg */
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.55);
    font-weight: 600;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

/* Danger */
.btn-danger {
    background: var(--red-700);
    color: var(--white);
}
.btn-danger:hover {
    background: #991b1b;
    color: var(--white);
    transform: translateY(-1px);
}

/* Sizes */
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: var(--font-size-md);
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 1rem 2.75rem;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ============================================================
   6. CARDS & PANELS
   ============================================================ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-150);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-150);
    padding: 1.1rem 1.5rem;
}

.card-header h5,
.card-header h4 {
    margin: 0;
    font-size: var(--font-size-md);
    color: var(--blue-900);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-150);
    padding: 1rem 1.5rem;
}

/* Panel Card — elevated version */
.card-panel {
    border: 1px solid var(--gray-150);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    background: var(--white);
}

/* Card with left accent line */
.card-accent {
    border-left: 3px solid var(--gold-500);
}

/* Stat / metric card */
.card-stat {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-150);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card-stat:hover {
    box-shadow: var(--shadow-md);
}

.card-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: -0.03em;
    line-height: 1;
}

.card-stat .stat-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-top: var(--space-2);
}

.card-stat .stat-change {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--space-3);
}

.stat-change.positive { color: var(--green-700); }
.stat-change.negative { color: var(--red-700); }

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero-section {
    background: var(--blue-900);
    color: var(--white);
    padding: 14rem 0 12rem;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric texture */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 60% 50%, rgba(13,59,110,0.55) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 95% 10%, rgba(197,168,128,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section .container-lg,
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(197,168,128,0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat-item .value {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero-stat-item .label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
}

/* ============================================================
   8. SECTIONS
   ============================================================ */
.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-white  { background: var(--white); }
.section-soft   { background: var(--gray-50); }
.section-panel  { background: var(--gray-100); }

.section-dark {
    background: var(--blue-900);
    color: var(--white);
}
.section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }

/* Section header */
.section-header {
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--blue-900);
    margin-bottom: 0;
}

.section-title .section-rule {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold-500);
    margin: 1.25rem auto 0;
    border-radius: 1px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: var(--font-size-md);
    margin-top: 1.1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   9. FORMS
   ============================================================ */
.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    display: block;
    letter-spacing: 0.01em;
}

.form-control,
.form-select,
textarea {
    font-family: var(--font-base);
    font-size: var(--font-size-sm);
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    line-height: 1.5;
}

.form-control::placeholder { color: var(--gray-400); }

.form-control:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-800);
    box-shadow: 0 0 0 3px rgba(0,51,102,0.08);
    background: var(--white);
}

.form-control:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.form-text {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    margin-top: var(--space-1);
}

.form-group {
    margin-bottom: var(--space-5);
}

/* Input group */
.input-group .form-control { border-radius: var(--radius-md); }
.input-group-text {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    padding: 0.7rem 1rem;
}

/* Checkbox & Radio */
.form-check-input:checked {
    background-color: var(--blue-900);
    border-color: var(--blue-900);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(10,37,64,0.08);
}

/* ============================================================
   10. TABLES
   ============================================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    background: var(--white);
}

.table thead th {
    background: var(--blue-900);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1rem;
    border: none;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.85rem 1rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-150);
    vertical-align: middle;
    font-size: var(--font-size-sm);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.table tbody tr:hover {
    background: var(--blue-050);
}

.table-bordered td,
.table-bordered th {
    border: 1px solid var(--gray-150) !important;
}

/* ============================================================
   11. BADGES & STATUS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    white-space: nowrap;
}

.badge-primary   { background: var(--blue-100); color: var(--blue-900); }
.badge-accent    { background: rgba(197,168,128,0.15); color: var(--gold-600); border: 1px solid rgba(197,168,128,0.3); }
.badge-success   { background: var(--green-100); color: var(--green-700); }
.badge-danger    { background: var(--red-100); color: var(--red-700); }
.badge-warning   { background: var(--amber-100); color: var(--amber-700); }
.badge-info      { background: var(--sky-100); color: var(--sky-700); }
.badge-neutral   { background: var(--gray-100); color: var(--gray-600); }

/* ============================================================
   12. ALERTS
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 3px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
}

.alert-success  { background: var(--green-100); border-left-color: var(--green-700); color: var(--green-700); }
.alert-danger   { background: var(--red-100);   border-left-color: var(--red-700);   color: var(--red-700); }
.alert-warning  { background: var(--amber-100); border-left-color: var(--amber-700); color: var(--amber-700); }
.alert-info     { background: var(--sky-100);   border-left-color: var(--sky-700);   color: var(--sky-700); }
.alert-primary  { background: var(--blue-100);  border-left-color: var(--blue-900);  color: var(--blue-900); }

/* ============================================================
   13. MODALS
   ============================================================ */
.modal-header {
    background: var(--blue-900);
    padding: 1.25rem 1.5rem;
    border: none;
}
.modal-header h5, .modal-header .modal-title {
    color: var(--white);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0;
}
.modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.75; }
.modal-header .btn-close:hover { opacity: 1; }

.modal-body {
    padding: 2rem;
    background: var(--white);
    color: var(--gray-600);
}

.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-150);
    padding: 1.25rem 1.5rem;
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ============================================================
   14. PAGE HEADER BANNER
   ============================================================ */
.page-header {
    background: var(--blue-900);
    padding: 1rem 0 0.85rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-500);
}

/* Layered background — diagonal gradient + grid texture */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,30,70,0.9) 0%, rgba(10,37,64,0.6) 50%, rgba(26,74,138,0.4) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.015) 40px,
            rgba(255,255,255,0.015) 41px
        );
    pointer-events: none;
}

/* Large watermark icon on the right */
.page-header::after {
    content: '';
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(197,168,128,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .container-lg {
    position: relative;
    z-index: 1;
}

/* Gold eyebrow tag above title */
.page-header-eyebrow {
    display: none;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

/* Gold underline accent under title */
.page-header h1::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
    margin-top: 0.35rem;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-xs);
    margin-bottom: 0;
    max-width: 540px;
    line-height: 1.5;
    margin-top: 0.35rem;
}

/* Decorative right-side icon watermark */
.page-header-icon {
    display: none;
}

.breadcrumb-item a { color: rgba(255,255,255,0.55); font-size: var(--font-size-sm); }
.breadcrumb-item.active { color: var(--gold-500); font-size: var(--font-size-sm); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.25); }

/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
    background: var(--blue-900);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 3.5rem 0 0;
}

footer .footer-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer .footer-brand i { color: var(--gold-500); }

footer .footer-tagline {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.5);
    max-width: 240px;
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

footer h5 {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.6rem;
}

footer a {
    color: rgba(255,255,255,0.65);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    text-decoration: none;
}

footer a:hover { color: var(--gold-500); }

footer .footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 2.5rem 0 0;
}

footer .footer-bottom {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .footer-bottom p,
footer .footer-bottom span {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
    margin: 0;
}

footer .footer-legal {
    display: flex;
    gap: 1.5rem;
}

footer .footer-legal a {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
}

footer .footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* Social icons */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-4);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
    background: rgba(197,168,128,0.15);
    color: var(--gold-500);
    border-color: rgba(197,168,128,0.2);
}

/* ============================================================
   16. ADMIN SIDEBAR
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-100);
}

.admin-sidebar {
    width: 248px;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 200;
    box-shadow: 2px 0 16px rgba(10,37,64,0.18);
}

/* Custom scrollbar for sidebar */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.admin-sidebar-logo {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.admin-sidebar-logo .brand {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.admin-sidebar-logo .brand i {
    color: var(--gold-500);
    font-size: 1rem;
}

.admin-sidebar-logo .back-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: color var(--transition-fast);
}

.admin-sidebar-logo .back-link:hover { color: rgba(255,255,255,0.7); }

/* Sidebar nav section label */
.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.28);
    padding: 1.25rem 1.5rem 0.4rem;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--sidebar-text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.admin-sidebar-nav a i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.admin-sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: rgba(255,255,255,0.15);
}

.admin-sidebar-nav a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: var(--gold-500);
    font-weight: 600;
}

.admin-sidebar-nav a.active i {
    opacity: 1;
    color: var(--gold-500);
}

.admin-sidebar-nav hr {
    border: none;
    border-top: 1px solid var(--sidebar-border);
    margin: 0.75rem 1.5rem;
}

/* Admin main content */
.admin-main {
    margin-left: 248px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-150);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.admin-topbar h4 {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--blue-900);
    margin: 0;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

/* Admin section header */
.admin-page-header {
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-page-header h1 {
    font-size: var(--font-size-2xl);
    margin: 0;
}

.admin-page-header p {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    margin: 0.3rem 0 0;
}

/* Admin card */
.admin-card {
    background: var(--white);
    border: 1px solid var(--gray-150);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--gray-150);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--white);
}

.admin-card-header h5 {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--blue-900);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-card-body {
    padding: 1.5rem;
}

/* ============================================================
   17. UTILITY CLASSES
   ============================================================ */

/* Colors */
.text-primary     { color: var(--blue-900)  !important; }
.text-secondary   { color: var(--blue-800)  !important; }
.text-accent      { color: var(--gold-500)  !important; }
.text-muted       { color: var(--gray-400)  !important; }
.text-body        { color: var(--gray-600)  !important; }
.text-heading     { color: var(--gray-900)  !important; }
.text-success     { color: var(--green-700) !important; }
.text-danger      { color: var(--red-700)   !important; }
.text-warning     { color: var(--amber-700) !important; }
.text-info        { color: var(--sky-700)   !important; }
.text-white       { color: var(--white)     !important; }

/* Backgrounds */
.bg-primary     { background: var(--blue-900)  !important; color: var(--white); }
.bg-secondary   { background: var(--blue-800)  !important; color: var(--white); }
.bg-white       { background: var(--white)     !important; }
.bg-light       { background: var(--gray-50)   !important; }
.bg-panel       { background: var(--gray-100)  !important; }
.bg-accent-tint { background: rgba(197,168,128,0.1) !important; }

/* Borders */
.border-soft     { border-color: var(--gray-150)  !important; }
.border-primary  { border-color: var(--blue-900)  !important; }
.border-accent   { border-color: var(--gold-500)  !important; }

/* Dividers */
hr {
    border: none;
    border-top: 1px solid var(--gray-150);
    margin: var(--space-6) 0;
}

/* ============================================================
   18. TABS (Bootstrap overrides)
   ============================================================ */
.nav-tabs {
    border-bottom: 2px solid var(--gray-150);
}

.nav-tabs .nav-link {
    color: var(--gray-400) !important;
    font-weight: 500;
    font-size: var(--font-size-sm);
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 0.7rem 1.25rem;
    border-radius: 0 !important;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--blue-900) !important;
    border-bottom-color: var(--gray-200) !important;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--blue-900) !important;
    border-bottom-color: var(--gold-500) !important;
    font-weight: 600;
    background: transparent;
}

/* ============================================================
   19. ACCORDION (Bootstrap overrides)
   ============================================================ */
.accordion-button {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    background: var(--white);
    border-bottom: 1px solid var(--gray-150);
}

.accordion-button:not(.collapsed) {
    background: var(--blue-050);
    color: var(--blue-900);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(10,37,64,0.08);
}

.accordion-button::after {
    filter: none;
}

.accordion-item {
    border: 1px solid var(--gray-150);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

/* ============================================================
   20. ANIMATIONS — subtle, professional only
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up  { animation: fadeUp 0.4s var(--ease) forwards; }
.animate-fade-in  { animation: fadeIn 0.3s var(--ease) forwards; }

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .section { padding: var(--space-16) 0; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    .hero-section { padding: 7rem 0 6rem; }
}

@media (max-width: 768px) {
    :root { --font-size-base: 0.9rem; }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section { padding: var(--space-12) 0; }
    .section-sm { padding: var(--space-8) 0; }

    .hero-section { padding: 5rem 0 4rem; }
    .hero-title { font-size: 1.875rem; }
    .hero-subtitle { font-size: var(--font-size-md); }

    .page-header { padding: 1.25rem 0 1rem; }
    .page-header h1 { font-size: 1.375rem; }
    .page-header-icon { font-size: 5rem; right: 4%; }

    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
    .admin-content { padding: 1.25rem; }
    .admin-topbar { padding: 0.85rem 1.25rem; }

    .card-body { padding: 1.25rem; }
    .card-header { padding: 0.9rem 1.25rem; }

    .section-title { margin-bottom: 2rem; }
    .hero-buttons { flex-direction: row; align-items: center; justify-content: center; }

    .hero-content { text-align: center; }
    .hero-subtitle { max-width: 100%; }
}

@media (max-width: 576px) {
    :root { --font-size-base: 0.875rem; }

    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }

    .btn { padding: 0.6rem 1.25rem; font-size: var(--font-size-xs); }
    .btn-lg { padding: 0.75rem 1.75rem; font-size: var(--font-size-sm); }

    .section { padding: var(--space-10) 0; }
    .hero-section { padding: 4rem 0 3.5rem; }

    .admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }

    footer { padding: 2.5rem 0 0; }
}

/* ============================================================
   22. ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --gray-400: #4A5568;
        --gray-600: #1A202C;
    }
}

/* ============================================================
   23. PRINT
   ============================================================ */
@media print {
    .admin-sidebar,
    .navbar,
    footer,
    .btn { display: none !important; }

    .admin-main { margin-left: 0; }
    body { background: white; color: black; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}
