/* ============================================================
   BullionVault.co.uk — Pixel-match stylesheet
   White/cream background, rounded cards, gold accents
   ============================================================ */

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

:root {
    --gold: #c9a84c;
    --gold-dark: #b8960b;
    --gold-light: #e8d48b;
    --gold-bg: #fdf6e3;
    --navy: #1a2744;
    --navy-dark: #0f1a2e;
    --white: #ffffff;
    --off-white: #f0f0f0;
    --grey-light: #e8e8e8;
    --grey: #cccccc;
    --text: #333333;
    --text-muted: #888888;
    --green: #2e7d32;
    --red: #c62828;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.10);
    --font: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: #e4e4e4; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
strong { font-weight: 600; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER — White background, two rows
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.logo-icon {
    height: 28px;
    vertical-align: -4px;
}
.svg-icon { display: inline-block; vertical-align: middle; }
.utility-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.utility-nav > a,
.utility-nav > .nav-dropdown > .nav-dropdown-trigger {
    font-size: 12.5px;
    color: var(--text) !important;
    white-space: nowrap;
}
.utility-nav > a:hover,
.utility-nav > .nav-dropdown > .nav-dropdown-trigger:hover {
    color: var(--gold-dark) !important;
}
.nav-sep { color: var(--grey); font-size: 11px; user-select: none; }

/* Main nav bar (second row) */
.main-nav-bar {
    border-top: 1px solid var(--grey-light);
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 38px;
}
.main-nav > a,
.main-nav > .nav-dropdown > .nav-dropdown-trigger {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text) !important;
    padding: 10px 24px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: block;
}
.main-nav > a:hover,
.main-nav > .nav-dropdown > .nav-dropdown-trigger:hover {
    color: var(--gold-dark) !important;
}

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.caret { font-size: 10px; margin-left: 2px; opacity: 0.5; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--grey-light);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 1001;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.nav-dropdown.open > .nav-dropdown-menu,
.nav-dropdown:hover > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text) !important;
    border-bottom: 1px solid var(--off-white);
}
.nav-dropdown-menu a:hover { background: var(--off-white); color: var(--gold-dark) !important; }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); display: block; }

.nav-mobile-menu { display: none; background: var(--white); border-bottom: 1px solid var(--grey-light); }
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--off-white);
}

/* ============================================================
   MAIN CONTENT CARD — wraps hero+intro like real BV
   ============================================================ */
.main-card {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ============================================================
   HERO — Gold bar image background
   ============================================================ */
.hero {
    background: url('/assets/img/hp_banner.jpg.jpeg') center/cover;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
    color: var(--white);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.text-gold { color: #f0d68a; }
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.btn-hero-outline {
    color: var(--white) !important;
    border: 1.5px solid rgba(255,255,255,0.7);
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* ============================================================
   INTRO SECTION — Text left, price widget + stats right
   ============================================================ */
.section-intro {
    padding: 40px 30px 30px;
    background: var(--white);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.intro-text p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 14px;
    color: var(--text);
}
.intro-text a, .link-gold { color: var(--gold-dark); font-weight: 500; }
.intro-text a:hover, .link-gold:hover { text-decoration: underline; }

.intro-right { display: flex; flex-direction: column; gap: 20px; }

/* Price Widget */
.price-widget {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.price-widget-header {
    text-align: center;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--grey-light);
}
/* Tabbed flag selector */
.price-flags {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 16px 0;
    background: var(--gold-bg);
}
.price-flag-tab {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 10px 8px;
    cursor: pointer;
    line-height: 0;
    transition: background 0.15s, box-shadow 0.15s;
    position: relative;
    top: 1px;
}
.price-flag-tab img {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 2px;
}
.price-flag-tab:hover { background: rgba(255,255,255,0.45); }
.price-flag-tab.active {
    background: var(--white);
    border-color: var(--grey-light);
    box-shadow: 0 -1px 3px rgba(0,0,0,0.06);
    padding-bottom: 10px;
}

/* Vault name + toggles row (cream band) */
.price-vault-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gold-bg);
    flex-wrap: wrap;
}
.vault-label { font-size: 16px; font-weight: 600; color: var(--text); }
.price-toggles { display: flex; gap: 10px; }
.toggle-group { display: flex; gap: 4px; }
.toggle-btn {
    padding: 4px 11px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    border-radius: 5px;
    color: var(--text);
    line-height: 1.4;
    transition: background 0.15s;
}
.toggle-btn:hover { background: rgba(255,255,255,0.5); }
.toggle-btn.active {
    background: var(--white);
    border-color: var(--grey);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Metals grid */
.price-metals { background: var(--white); padding: 0; }
.metals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.metal-col {
    padding: 16px 10px 18px;
    text-align: center;
    border-right: 1px solid var(--off-white);
}
.metal-col:last-child { border-right: none; }
.metal-head {
    font-size: 17px;
    font-weight: 600;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid currentColor;
}
.metal-gold .metal-head      { color: var(--gold-dark); }
.metal-silver .metal-head    { color: #6b7280; }
.metal-platinum .metal-head  { color: #5b7a8c; }
.metal-palladium .metal-head { color: #8c6b9c; }

.metal-cell {
    display: block;
    padding: 4px 2px;
}
.metal-cell .cell-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.metal-cell .cell-price {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}
a.metal-cell:hover .cell-price { color: var(--gold-dark); }
.metal-buy { margin-bottom: 8px; }
.metal-na {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    padding-top: 6px;
}

.price-timestamp {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--off-white);
    line-height: 1.6;
}
.price-timestamp a { color: var(--gold-dark); }

.price-latest-news {
    padding: 8px 16px 10px;
    font-size: 12px;
    color: var(--text);
    background: var(--off-white);
}
.price-latest-news a { color: var(--gold-dark); }
.more-news-link { display: inline-block; font-size: 12px; color: var(--gold-dark) !important; margin-top: 2px; }

/* Latest trades — separate card below widget */
.price-trades-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text);
}
.latest-trade-text { color: var(--text-muted); margin-left: 6px; }

/* Price widget — mobile */
@media (max-width: 480px) {
    .metal-head { font-size: 15px; }
    .metal-cell .cell-price { font-size: 16px; }
    .metal-col { padding: 12px 6px 14px; }
    .price-vault-row { gap: 10px; }
    .vault-label { font-size: 15px; }
    .toggle-btn { padding: 4px 9px; font-size: 12px; }
}

/* Stats Card */
.stats-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stats-card h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.stat-item { text-align: center; flex: 1; }
.stat-icon { margin-bottom: 6px; color: var(--gold); }
.stat-icon .svg-icon { width: 28px; height: 28px; }
.stat-img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 6px; }
.stat-number { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   CREDENTIALS ROW
   ============================================================ */
.credentials-section {
    padding: 30px 30px;
    background: var(--white);
}
.credentials-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--grey-light);
    padding-top: 20px;
}
.credential-card {
    background: transparent;
    border: none;
    border-right: 1px solid var(--grey-light);
    padding: 24px;
    text-align: center;
    box-shadow: none;
}
.credential-card:last-child { border-right: none; }
.credential-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 10px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.credential-logo .svg-icon { width: 32px; height: 32px; }
.credential-img { max-height: 40px; max-width: 120px; object-fit: contain; }
.credential-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CTA BANNER — cream/gold tint with outlined button
   ============================================================ */
.cta-banner {
    background: var(--gold-bg);
    border-top: 1px solid #e8d9b0;
    border-bottom: 1px solid #e8d9b0;
    padding: 16px 30px;
}
.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cta-banner p { font-size: 14px; color: var(--text); flex: 1; }
.btn-outline-gold {
    border: 1.5px solid var(--gold);
    color: var(--gold-dark) !important;
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    background: none;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white) !important;
}
.btn-gold {
    background: var(--gold);
    color: var(--white) !important;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-lg { padding: 14px 36px; font-size: 15px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 700px;
    margin: -10px auto 20px;
    line-height: 1.7;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.section-card {
    max-width: 1140px;
    margin: 16px auto;
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.section-reviews {
    padding: 40px 0;
    background: transparent;
}
.review-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.trustpilot-badge {
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.trustpilot-stars { flex-shrink: 0; }
.trustpilot-badge img { height: 24px; }
.review-label img { height: 18px; vertical-align: middle; }
.review-source { font-size: 13px; color: var(--text-muted); }
.review-label { font-size: 14px; color: var(--green); font-weight: 600; margin-top: 6px; }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.review-author { font-size: 13px; color: var(--text-muted); }
.review-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.review-card-new {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 20px;
}
.trustpilot-stars-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.trustpilot-stars-row img { height: 22px; width: auto; }
.review-verified { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.review-source-new { font-size: 12px; color: var(--text-muted); font-style: italic; }
.trustpilot-footer { text-align: center; padding-top: 10px; }
.trustpilot-footer img { height: 24px; width: auto; }
.trustpilot-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.trustpilot-header .tp-excellent { font-size: 18px; font-weight: 700; color: var(--text); }
.trustpilot-header .tp-stars img { height: 28px; width: auto; display: block; }
.trustpilot-header .tp-rating { font-size: 13px; color: var(--text-muted); }
.review-card-new .review-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 8px; }
.cta-banner-card { background: var(--gold-bg) !important; padding: 20px 30px !important; border: 1px solid #e8d9b0; }

/* ============================================================
   FEATURES GRID — 4 cols, rounded cards with icons
   ============================================================ */
.features-section {
    padding: 40px 0;
    background: transparent;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-card {
    text-align: center;
    padding: 32px 16px 28px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    box-shadow: none;
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}
.feature-icon .svg-icon { width: 28px; height: 28px; }
.feature-icon img { width: 56px; height: 56px; object-fit: contain; }
.feature-card h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* ============================================================
   PRESS
   ============================================================ */
.press-section {
    padding: 40px 0;
    background: transparent;
}
.press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.press-card {
    background: transparent;
    border: none;
    padding: 16px;
    box-shadow: none;
    border-right: 1px solid var(--grey-light);
}
.press-card:last-child { border-right: none; }
.press-card blockquote {
    font-size: 13px;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}
.press-card cite {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-style: normal;
}

/* ============================================================
   NAVY SECTION
   ============================================================ */
.section-navy {
    background: linear-gradient(135deg, #1a2744 0%, #2c3e5a 100%);
    padding: 60px 30px;
    text-align: center;
    max-width: 1140px;
    margin: 16px auto;
    border-radius: 16px;
    overflow: hidden;
}
.section-navy h2 {
    color: var(--gold-light);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 16px;
    font-style: italic;
}
.section-navy p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}
.navy-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.navy-text { flex: 1; }
.navy-vault-flags { display: flex; gap: 10px; margin-top: 20px; }
.navy-vault-flags img { border-radius: 2px; }
.navy-phone { text-align: center; flex-shrink: 0; }
.phone-mockup { max-height: 280px; }
.app-badges { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.app-badges img { height: 36px; }

/* ============================================================
   HOW HELPS
   ============================================================ */
.section-howhelps {
    padding: 40px 0;
    background: transparent;
}

/* ============================================================
   COST SECTION
   ============================================================ */
.cost-section {
    padding: 40px 0;
    background: transparent;
}
.cost-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.cost-feature {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 28px 16px;
    box-shadow: none;
}
.cost-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}
.cost-icon .svg-icon { width: 26px; height: 26px; }
.cost-icon img { width: 44px; height: 44px; object-fit: contain; }
.cost-feature p { font-size: 13px; color: var(--text); }

/* ============================================================
   RATES
   ============================================================ */
.rates-section {
    padding: 20px 0 40px;
    background: transparent;
}
.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rates-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.rate-card {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.rate-value { font-size: 24px; font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; }
.rate-label { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.rate-list { text-align: left; padding-left: 0; }
.rate-list li { padding: 5px 0; font-size: 14px; color: var(--text); }
.check { color: var(--green); margin-right: 6px; }
.rate-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; text-align: left; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: 40px 0;
    background: var(--white);
}
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}
.faq-tab {
    padding: 8px 20px;
    border: 1px solid var(--grey-light);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    border-radius: 20px;
    transition: all 0.2s;
}
.faq-tab.active {
    background: var(--gold-bg);
    border-color: var(--gold);
    color: var(--gold-dark);
    font-weight: 600;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--grey-light); }
.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
}
.faq-question:hover { color: var(--gold-dark); }
.faq-arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; }
.faq-answer { display: none; padding: 0 0 16px; }
.faq-answer p { font-size: 14px; color: var(--text); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ============================================================
   STEPS (bottom bar)
   ============================================================ */
.steps-section {
    padding: 30px 0;
    background: var(--white);
    border-top: 1px solid var(--grey-light);
}
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step-card {
    text-align: center;
    background: transparent;
    border: none;
    padding: 20px;
    box-shadow: none;
}
.step-number {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}
.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}
.step-icon .svg-icon { width: 28px; height: 28px; }
.step-icon img { width: 40px; height: 40px; object-fit: contain; }
.step-card h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.step-card p { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #e4e4e4;
    border-top: none;
    padding: 30px 0 20px;
    color: var(--text-muted);
}
.footer-awards-line {
    text-align: center;
    padding: 10px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--grey-light);
    margin-bottom: 20px;
}
.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}
.footer-col { display: flex; gap: 16px; }
.footer-col a { font-size: 12px; color: var(--text-muted); }
.footer-col a:hover { color: var(--gold-dark); }
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--grey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-social a:hover { color: var(--gold-dark); border-color: var(--gold); }
.footer-app-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
}
.footer-app-badges img { height: 36px; width: auto; }
.footer-contact {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-contact a { color: var(--gold-dark); }
.footer-hours { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.footer-company {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0;
}
.footer-risk {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 10px auto;
    line-height: 1.5;
}
.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ============================================================
   BUTTONS & UTILITIES
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold-dark); background: none; }
.btn-outline:hover { background: var(--gold); color: var(--white); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-10 { margin-top: 10px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: var(--off-white);
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--grey);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.15); }
.invalid-feedback { display: none; margin-top: 4px; color: #b42318; font-size: 12px; }
.form-control.is-invalid { border-color: #b42318; }
.form-control.is-invalid + .invalid-feedback { display: block; }
select.form-control { appearance: none; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-link { font-size: 13px; color: var(--gold-dark); }
.form-link:hover { text-decoration: underline; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.btn-full { width: 100%; padding: 12px; font-size: 15px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fdeaea; color: var(--red); border: 1px solid #f5c6cb; }
.alert-success { background: #eaf5ea; color: var(--green); border: 1px solid #c3e6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ============================================================
   CLIENT PORTAL
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar {
    width: 240px;
    background: var(--navy);
    padding: 20px 0;
    flex-shrink: 0;
}
.app-sidebar .sidebar-logo {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
}
.app-sidebar .sidebar-logo span { color: var(--gold); }
.sidebar-nav { padding: 16px 0; }
.sidebar-nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-left: 3px solid var(--gold);
}
.app-main { flex: 1; background: var(--off-white); padding: 24px 30px; }
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.app-header h1 { font-size: 22px; color: var(--text); }
.kyc-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.kyc-banner .btn { padding: 6px 16px; font-size: 13px; }

/* Cards & Tables */
.card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--grey-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body { padding: 20px; }
.card-body p { margin-bottom: 12px; }

table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
    background: var(--off-white);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--grey-light);
}
table.data-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--off-white);
    color: var(--text);
}
table.data-table tr:hover td { background: var(--off-white); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success { background: #eaf5ea; color: var(--green); }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #fdeaea; color: var(--red); }
.badge-info { background: #e3f2fd; color: #1565c0; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.dashboard-card .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.dashboard-card .value { font-size: 24px; font-weight: 700; color: var(--text); margin-top: 4px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #0f1520; padding: 0; flex-shrink: 0; }
.admin-sidebar .sidebar-header { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar .sidebar-header a { color: var(--white); font-size: 16px; font-weight: 700; }
.admin-sidebar .sidebar-header span { color: var(--gold); font-size: 11px; display: block; margin-top: 2px; }
.admin-nav { padding: 12px 0; }
.admin-nav a { display: block; padding: 9px 18px; color: rgba(255,255,255,0.6); font-size: 13px; transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-main { flex: 1; background: var(--off-white); padding: 24px 30px; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-light);
}
.admin-topbar h1 { font-size: 20px; color: var(--text); }

.admin-login-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.admin-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.admin-login-card h1 { font-size: 20px; color: var(--text); margin-bottom: 4px; }
.admin-login-card .subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* ============================================================
   PUBLIC CONTENT PAGES
   ============================================================ */
.page-header { background: var(--gold-bg); padding: 40px 0; text-align: center; border-bottom: 1px solid #e8d9b0; }
.page-header h1 { color: var(--text); font-size: 28px; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   SHARED INNER-PAGE SYSTEM (matches homepage white-card design)
   ============================================================ */
/* Hero banner for inner pages — gold-bar photo with dark overlay, in a rounded card */
.inner-hero {
    max-width: 1140px;
    margin: 16px auto 0;
    border-radius: 16px;
    overflow: hidden;
    background: url('/assets/img/hp_banner.jpg.jpeg') center/cover;
    position: relative;
    text-align: center;
    padding: 56px 24px;
}
.inner-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(20,20,20,0.55);
}
.inner-hero > * { position: relative; z-index: 1; }
.inner-hero h1 { color: #fff; font-size: 32px; font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.inner-hero p { color: rgba(255,255,255,0.9); font-size: 16px; margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Generic content sections wrapped as white cards on the grey body */
.inner-section {
    max-width: 1140px;
    margin: 16px auto;
    background: var(--white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.inner-section.narrow { max-width: 820px; }
.inner-section h2 { font-size: 24px; color: var(--text); margin-bottom: 16px; }
.inner-section h3 { font-size: 18px; color: var(--text); margin: 20px 0 10px; }
.inner-section p { margin-bottom: 14px; line-height: 1.7; color: var(--text); }
.inner-section ul.ticks { margin: 12px 0; }
.inner-section ul.ticks li { padding: 6px 0 6px 28px; position: relative; line-height: 1.6; }
.inner-section ul.ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.inner-lead { font-size: 17px; color: var(--text-muted); max-width: 760px; margin: 0 auto 8px; text-align: center; }

/* Two-column text + media */
.inner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

/* Info cards grid (3-up) reused across inner pages */
.inner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.inner-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.inner-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.inner-card {
    background: var(--off-white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}
.inner-card .ic-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--gold-dark); display: flex; align-items: center; justify-content: center; }
.inner-card h4 { font-size: 15px; margin-bottom: 6px; }
.inner-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) {
    .inner-hero { margin: 0; border-radius: 0; padding: 40px 16px; }
    .inner-hero h1 { font-size: 24px; }
    .inner-section { margin: 12px 0; border-radius: 0; padding: 28px 20px; }
    .inner-cols { grid-template-columns: 1fr; gap: 20px; }
    .inner-grid, .inner-grid.cols-2, .inner-grid.cols-4 { grid-template-columns: 1fr; }
}
.page-content { padding: 40px 0; }
.page-content .container { max-width: 800px; }
.page-content p { margin-bottom: 16px; line-height: 1.7; }

.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--grey-light); border-radius: 20px; font-size: 13px; color: var(--text); }
.pagination a:hover { background: var(--off-white); }
.pagination .active { background: var(--gold); color: var(--white); border-color: var(--gold); }

.divider { border: none; border-top: 1px solid var(--grey-light); margin: 12px 0; }

/* ============================================================
   CLIENT PORTAL — refined responsive account workspace
   ============================================================ */
body.client-portal { background: #f3f5f8; color: #16243a; font-size: 14px; }
.client-portal .app-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.client-portal .app-sidebar { position: sticky; top: 0; align-self: start; width: auto; height: 100vh; padding: 22px 14px 16px; display: flex; flex-direction: column; background: #14213a; box-shadow: 5px 0 22px rgba(12, 25, 45, .08); }
.client-portal .sidebar-logo { display: flex; align-items: center; gap: 11px; padding: 2px 10px 22px; color: #fff; border: 0; font-size: inherit; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: linear-gradient(145deg, #dfc271, #b89438); color: #13213a; font: 700 22px/1 Georgia, serif; box-shadow: 0 5px 12px rgba(0,0,0,.14); }
.brand-name { display: flex; flex-direction: column; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.brand-name small { margin-top: 3px; color: #aeb9ca; font-size: 9px; letter-spacing: 1.7px; }
.sidebar-account { display: flex; align-items: center; gap: 10px; margin: 0 3px 25px; padding: 14px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); }
.account-avatar, .topbar-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: #17243b; background: #e2ca83; font-size: 12px; font-weight: 700; }
.account-identity { min-width: 0; display: flex; flex-direction: column; }
.account-identity strong { overflow: hidden; color: #f7f8fb; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { overflow: hidden; margin-top: 2px; color: #aeb9ca; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.client-portal .sidebar-section-label { padding: 0 12px 8px; color: #8492a9; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.client-portal .sidebar-nav { padding: 0; display: flex; flex-direction: column; gap: 3px; }
.client-portal .sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-left: 2px solid transparent; border-radius: 8px; color: #b9c3d2; font-size: 12px; font-weight: 500; transition: background .18s ease, color .18s ease; }
.client-portal .sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.client-portal .sidebar-nav a.active { border-left-color: #d8bc70; color: #fff; background: rgba(255,255,255,.09); }
.nav-indicator { width: 6px; height: 6px; border: 1.5px solid #8794a9; border-radius: 2px; }
.sidebar-nav a.active .nav-indicator { border-color: #e1c777; background: #e1c777; }
.sidebar-bottom { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-bottom a { color: #aeb9ca; font-size: 11px; }
.sidebar-bottom a:hover { color: #fff; }
.client-portal .app-main { min-width: 0; padding: 0; background: #f3f5f8; }
.client-portal .app-header { min-height: 78px; margin: 0; padding: 0 42px; border-bottom: 1px solid #e7eaf0; background: rgba(255,255,255,.94); }
.client-portal .client-topbar { position: sticky; top: 0; z-index: 20; }
.topbar-context { color: #8a95a6; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.client-portal .app-header h1 { margin-top: 2px; color: #17243a; font-size: 19px; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-help { color: #536177; font-size: 12px; font-weight: 500; }
.topbar-help:hover { color: #9d7d2e; }
.topbar-avatar { width: 36px; height: 36px; }
.mobile-portal-header, .mobile-portal-nav { display: none; }
.client-content { width: min(100%, 1660px); margin: 0 auto; padding: 34px 42px 46px; }
.client-footer { padding: 18px 24px 24px; color: #8b95a3; text-align: center; font-size: 10px; }
.client-footer span { padding: 0 5px; color: #c5a956; }
.client-portal .kyc-banner { gap: 18px; margin-bottom: 22px; padding: 14px 18px; border: 1px solid #eedfae; border-radius: 10px; background: #fff9e8; color: #665323; font-size: 12px; }
.client-portal .kyc-banner div { display: flex; flex-direction: column; gap: 2px; }
.client-portal .kyc-banner strong { color: #594717; font-size: 12px; }
.client-portal .kyc-banner span { color: #83734b; font-size: 11px; }
.client-portal .kyc-banner .btn { flex: 0 0 auto; }
.dashboard-welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 23px; }
.section-kicker { display: block; color: #9b803b; font-size: 9px; font-weight: 750; letter-spacing: 1.65px; }
.dashboard-welcome h2 { margin-top: 7px; color: #17243a; font-size: clamp(24px, 2.3vw, 32px); font-weight: 650; letter-spacing: -.8px; }
.dashboard-welcome p { margin-top: 6px; color: #748096; font-size: 13px; }
.client-portal .welcome-action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border-radius: 8px; background: #172944; box-shadow: 0 5px 12px rgba(20,36,61,.13); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.client-portal .welcome-action:hover { background: #243d61; color: #fff; }
.account-overview-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; padding: 20px 22px; border: 1px solid #e5e9ef; border-radius: 13px; background: linear-gradient(110deg,#fff 0%,#fff 65%,#fbfaf5 100%); box-shadow: 0 4px 14px rgba(19,35,59,.035); }
.account-overview-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.account-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; background: #f7f2e3; color: #a48639; }
.account-symbol svg { width: 25px; height: 25px; }
.account-card-kicker { color: #8993a2; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.account-number { margin-top: 3px; color: #17243a; font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.account-meta { margin-top: 3px; color: #7b8698; font-size: 11px; }
.account-meta strong { color: #39475b; font-weight: 600; }
.meta-divider { padding: 0 7px; color: #c0a453; }
.account-overview-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { color: #28734d; background: #eaf5ee; }
.status-pending { color: #8b6d26; background: #f8f1df; }
.status-unavailable { color: #a54444; background: #f9eaea; }
.last-updated { color: #96a0af; font-size: 10px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { min-width: 0; padding: 18px 19px 17px; border: 1px solid #e6eaf0; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(19,35,59,.035); }
.metric-card.metric-balance { border-top: 2px solid #d4b65e; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #748095; font-size: 11px; font-weight: 550; }
.metric-icon, .metric-mini-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #f4f6f8; color: #8d7a43; font-size: 13px; }
.metric-icon { background: #f8f3e4; font-weight: 700; }
.metric-value { overflow: hidden; margin-top: 12px; color: #17243a; font-size: clamp(20px, 1.8vw, 27px); font-weight: 680; letter-spacing: -.6px; text-overflow: ellipsis; white-space: nowrap; }
.metric-caption { margin-top: 5px; color: #9aa3b0; font-size: 10px; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 16px; }
.portal-card { min-width: 0; padding: 22px; border: 1px solid #e6eaf0; border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(19,35,59,.035); }
.portal-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.portal-card h3 { margin-top: 5px; color: #1a2940; font-size: 17px; font-weight: 650; }
.platform-lockup { padding: 5px 8px; border: 1px solid #e9e3cf; border-radius: 6px; color: #947a37; font-size: 10px; font-weight: 750; letter-spacing: .8px; }
.platform-card > p { max-width: 640px; margin: 10px 0 15px; color: #7d8899; font-size: 11px; line-height: 1.65; }
.platform-links { display: grid; gap: 7px; }
.platform-links a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 11px; border: 1px solid #edf0f4; border-radius: 9px; background: #fcfcfd; transition: border-color .15s, background .15s, transform .15s; }
.platform-links a:hover { transform: translateY(-1px); border-color: #d8c482; background: #fffdf7; }
.platform-link-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #f4f1e8; color: #8c7433; font-size: 14px; }
.platform-links a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.platform-links strong { color: #26364d; font-size: 11px; font-weight: 650; }
.platform-links small { margin-top: 2px; color: #98a1ae; font-size: 10px; }
.platform-arrow { color: #9a8449; font-size: 12px; }
.account-details-card h3 { margin-bottom: 18px; }
.account-detail-list { margin: 0; }
.account-detail-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef0f3; }
.account-detail-list > div:last-child { border-bottom: 0; }
.account-detail-list dt { color: #8490a0; font-size: 11px; }
.account-detail-list dd { margin: 0; color: #26364d; font-size: 11px; font-weight: 600; text-align: right; }
.account-support-note { margin-top: 14px; padding: 11px 12px; border-radius: 8px; background: #f6f7f9; color: #7f8998; font-size: 10px; line-height: 1.55; }
.account-support-note a { color: #8b7133; font-weight: 650; }
.dashboard-footnote { display: flex; gap: 8px; margin-top: 15px; color: #929cab; font-size: 10px; line-height: 1.5; }
.dashboard-footnote span { color: #aa914b; }
.client-portal .app-main .page-header { margin: 0 0 21px; padding: 0 0 17px; border: 0; border-bottom: 1px solid #e3e7ed; background: transparent; text-align: left; }
.client-portal .app-main .page-header h1 { margin: 0 0 4px; color: #17243a; font-size: 25px; }
.client-portal .app-main .page-header p { margin: 0; color: #7b8698; font-size: 12px; }

@media (max-width: 1180px) {
    .client-portal .app-layout { grid-template-columns: 224px minmax(0,1fr); }
    .client-content { padding-right: 28px; padding-left: 28px; }
    .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
    .client-portal .app-layout { display: block; }
    .client-portal .app-sidebar, .client-portal .client-topbar { display: none; }
    .mobile-portal-header { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 18px; border-bottom: 1px solid #e7eaf0; background: #fff; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; color: #182740; font-size: 14px; }
    .mobile-brand .brand-mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 18px; }
    .mobile-signout { color: #6d788a; font-size: 11px; }
    .mobile-portal-nav { display: flex; gap: 5px; overflow-x: auto; padding: 9px 14px; border-bottom: 1px solid #e7eaf0; background: #fff; scrollbar-width: thin; }
    .mobile-portal-nav a { flex: 0 0 auto; padding: 7px 10px; border-radius: 7px; color: #657187; font-size: 10px; white-space: nowrap; }
    .mobile-portal-nav a[aria-current="page"] { background: #f4f0e3; color: #81692e; font-weight: 650; }
    .client-content { padding: 24px 18px 34px; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 14px; }
    .dashboard-welcome h2 { font-size: 25px; }
    .dashboard-lower-grid { grid-template-columns: 1fr; }
    .client-portal .kyc-banner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
    .dashboard-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric-card { padding: 13px 12px; }
    .metric-heading { align-items: flex-start; min-height: 28px; font-size: 10px; }
    .metric-value { font-size: 19px; }
    .metric-caption { min-height: 28px; font-size: 9px; }
    .account-overview-card { align-items: flex-start; flex-direction: column; padding: 16px; }
    .account-overview-status { align-items: flex-start; }
    .portal-card { padding: 17px 15px; }
    .dashboard-footnote { font-size: 9px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Prevent any element from forcing page-wide horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }

/* Mobile header action icons (Charts / Account / Menu) — hidden on desktop */
.mobile-actions { display: none; }

@media (max-width: 1024px) {
    .features-grid, .cost-features-row { grid-template-columns: repeat(3, 1fr); }
    .press-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .utility-nav { display: none; }
    .nav-hamburger { display: none; }
    .main-nav-bar { display: none; }

    /* Mobile header: logo left, three icon buttons right */
    .site-header .header-inner { height: auto; padding-top: 8px; padding-bottom: 8px; }
    .logo-icon { height: 26px; }
    .mobile-actions {
        display: flex;
        align-items: flex-start;
        gap: 18px;
    }
    .mobile-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text) !important;
        font-size: 11px;
        padding: 0;
        line-height: 1.1;
    }
    .mobile-action svg { color: var(--text); }
    .mobile-action:hover { color: var(--gold-dark) !important; }
    .mobile-action:hover svg { color: var(--gold-dark); }

    .hero h1 { font-size: 26px; line-height: 1.25; }
    .hero { padding: 48px 0; }
    .hero-content { padding: 0 16px; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .credentials-row { grid-template-columns: 1fr; }
    .features-grid, .cost-features-row { grid-template-columns: repeat(2, 1fr); }
    .press-grid, .review-cards, .rates-grid, .rates-grid-4 { grid-template-columns: 1fr; }
    .review-cards-row { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .cta-flex { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links-row { flex-direction: column; gap: 12px; align-items: center; }
    .app-sidebar, .admin-sidebar { display: none; }
    .form-row { flex-direction: column; gap: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 22px; }
    .hero-buttons { flex-direction: column; gap: 10px; align-items: center; }
    .btn-hero-outline { width: 100%; max-width: 280px; text-align: center; }
    .features-grid, .cost-features-row { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 16px; }
    .steps-row { grid-template-columns: 1fr; }
    .mobile-actions { gap: 14px; }

    /* Price widget stays 4 columns but compact so it fits the viewport */
    .price-widget-header { font-size: 14px; padding: 12px; }
    .price-flags { gap: 4px; padding: 10px 6px 0; }
    .price-flag-tab { padding: 5px 5px 7px; }
    .price-flag-tab img { height: 18px; }
    .price-flag-tab.active { padding-bottom: 9px; }
    .price-vault-row { padding: 10px 10px; gap: 8px; }
    .price-toggles { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
    .toggle-btn { padding: 3px 7px; font-size: 12px; }
    .metal-col { padding: 12px 4px 14px; }
    .metal-head { font-size: 13px; padding-bottom: 6px; margin-bottom: 8px; }
    .metal-cell .cell-price { font-size: 14px; }
    .metal-cell .cell-label { font-size: 11px; }
    .metal-na { font-size: 11px; }
    .price-trades-card .latest-trade-text { display: block; margin-left: 0; margin-top: 4px; word-break: break-word; }
}
