/* MDGC design system — mobile-first. Navy + Green + White + Light Grey. */
:root {
  --navy-900: #071528;
  --navy-800: #0b1f3a;
  --navy-700: #12305a;
  --navy-600: #1b4275;
  --navy-100: #e6edf6;
  --green-700: #0b6341;
  --green-600: #0f7a4f;
  --green-500: #139a63;
  --green-100: #e3f4ec;
  --grey-50: #f7f9fb;
  --grey-100: #f1f4f8;
  --grey-200: #e3e8ef;
  --grey-300: #cfd7e2;
  --grey-500: #6b7a8f;
  --grey-600: #526076;
  --grey-700: #3a475a;
  --ink: #152238;
  --white: #fff;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --warning: #9a5b00;
  --warning-bg: #fff5e0;
  --info: #1e5aa8;
  --info-bg: #e8f0fb;
  --attention: #7a3fb0;
  --attention-bg: #f3ebfb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow: 0 4px 16px rgba(11, 31, 58, .08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, .14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --focus: 0 0 0 3px rgba(19, 154, 99, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy-800); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.muted { color: var(--grey-600); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; word-break: break-all; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--radius-sm); border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: .01em; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; line-height: 1.2; text-align: center; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { background: transparent; border-color: var(--grey-300); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--grey-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.btn-sm { min-height: 36px; padding: .4rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--green-600); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--grey-200); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy-800); text-decoration: none !important; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; }
.dash-sidebar .brand-logo, .site-footer .brand-logo { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .6rem; letter-spacing: .02em; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); opacity: .9; }
.brand-mark span { position: relative; z-index: 1; }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .04em; line-height: 1.1; }
.brand-text small { display: block; font-size: .68rem; color: var(--grey-600); letter-spacing: .02em; line-height: 1.2; }
.main-nav { display: none; }
.main-nav a { white-space: nowrap; color: var(--grey-700); font-weight: 500; font-size: .9rem; padding: .5rem .55rem; border-radius: 6px; text-decoration: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-800); background: var(--grey-100); }
.header-actions { display: none; gap: .5rem; align-items: center; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--grey-200); border-radius: 10px; background: #fff; color: var(--navy-800); cursor: pointer; }
@media (min-width: 1180px) {
  .main-nav { display: flex; gap: .1rem; align-items: center; }
  .header-actions { display: flex; }
  .header-actions .btn { white-space: nowrap; }
  .site-header .nav-toggle { display: none; }
}
@media (max-width: 1399px) { .header-actions .hide-lg { display: none; } }
.mobile-nav { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(7,21,40,.5); }
.mobile-nav-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: #fff; padding: 16px; display: flex; flex-direction: column; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-nav-panel .flex-between { margin-bottom: 1rem; }
.mobile-nav-panel nav a { display: flex; justify-content: space-between; align-items: center; padding: .95rem .5rem; border-bottom: 1px solid var(--grey-100); color: var(--navy-800); font-weight: 600; text-decoration: none; }
.mobile-nav-panel .btn { margin-top: .75rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% 10%, rgba(19,154,99,.22), transparent 60%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 5rem; padding-bottom: 5rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-500); margin-bottom: 1rem; }
.hero .eyebrow { color: #7fe0b3; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: .8rem; }
.hero .company-name { font-size: .95rem; font-weight: 700; letter-spacing: .18em; color: #bcd0e6; margin-bottom: 1rem; text-transform: uppercase; }
.hero p.lead { font-size: 1.1rem; color: #cfdcec; max-width: 38em; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-visual { position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; background: var(--navy-700); box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-visual svg { width: 100%; height: auto; }

/* Photo hero: photo sits on the right on desktop, behind the text on phones; navy overlay keeps text legible. */
.hero-photo { background: var(--navy-800); }
.hero-photo::before { display: none; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,31,58,.80) 0%, rgba(11,31,58,.86) 55%, rgba(11,31,58,.96) 100%), var(--hero-bg) center 20% / cover no-repeat; }
.hero-photo .container { z-index: 1; min-height: 520px; align-content: center; }
.hero-copy { max-width: 640px; }
@media (min-width: 960px) {
  .hero-photo .container { grid-template-columns: 1fr; min-height: 600px; }
  .hero-photo::after { left: auto; right: 0; width: min(46%, 560px);
    background: linear-gradient(90deg, rgba(11,31,58,1) 0%, rgba(11,31,58,.45) 28%, rgba(11,31,58,.1) 60%, rgba(11,31,58,.25) 100%), var(--hero-bg) right center / cover no-repeat; }
  .hero-photo-custom::after { left: 0; background: linear-gradient(90deg, rgba(11,31,58,.96) 0%, rgba(11,31,58,.85) 45%, rgba(11,31,58,.35) 100%), var(--hero-bg) center / cover no-repeat; }
}
.page-hero { background: var(--navy-800); color: #fff; padding: 3rem 0 2.75rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0, rgba(19,154,99,.2), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #cfdcec; max-width: 44em; margin: 0; font-size: 1.05rem; }
.breadcrumbs { font-size: .85rem; color: #9fb3c8; margin-bottom: .75rem; }
.breadcrumbs a { color: #cfe3f5; }

/* ---------------------------------------------------------------- sections */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-grey { background: var(--grey-50); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.section-navy { background: var(--navy-800); color: #cfdcec; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--grey-600); font-size: 1.05rem; }
.section-navy .section-head p { color: #b9c9dc; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------------------------------------------------------------- cards */
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--grey-300); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-600); margin-bottom: 1rem; }
.card-icon .icon { width: 24px; height: 24px; }
.card-icon.navy { background: var(--navy-100); color: var(--navy-700); }
.card-num { font-size: .8rem; font-weight: 700; color: var(--grey-500); letter-spacing: .08em; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.1rem; }
.section-navy .card { background: var(--navy-700); border-color: rgba(255,255,255,.08); color: #cfdcec; box-shadow: none; }
.section-navy .card h3 { color: #fff; }
.section-navy .card-icon { background: rgba(19,154,99,.18); color: #6ee0ad; }

.value-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 0; margin: 0; list-style: none; }
.value-list li { display: flex; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--grey-200); border-radius: 10px; padding: .75rem 1rem; font-weight: 600; color: var(--navy-800); }
.value-list .icon { color: var(--green-600); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }

.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps .step-card { position: relative; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.25rem; }
.step-card .num { font-size: 1.6rem; font-weight: 800; color: var(--green-600); line-height: 1; margin-bottom: .6rem; display: block; }
.step-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.step-card p { color: var(--grey-600); margin: 0; font-size: .92rem; }

.cta-band { background: var(--navy-800); border-radius: 18px; padding: 2rem; color: #cfdcec; display: grid; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(19,154,99,.18); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 2.75rem; } }

.notice { border-left: 4px solid var(--green-600); background: var(--green-100); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--navy-800); font-size: .95rem; }
.notice.navy { border-color: var(--navy-600); background: var(--navy-100); }
.notice.warn { border-color: var(--warning); background: var(--warning-bg); }

.sector-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector { display: flex; align-items: center; gap: .6rem; padding: 1rem; border: 1px dashed var(--grey-300); border-radius: 10px; font-weight: 600; color: var(--navy-800); background: #fff; font-size: .95rem; }
.sector .icon { color: var(--green-600); }

/* ---------------------------------------------------------------- opportunity / project cards */
.opp-card { display: flex; flex-direction: column; gap: .75rem; }
.opp-card .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--grey-600); }
.opp-card .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.opp-card .meta .icon { width: 16px; height: 16px; }
.opp-card .actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .5rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-100); padding: .25rem .55rem; border-radius: 6px; }
.filter-bar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.filter-bar a { white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--grey-200); color: var(--grey-700); font-size: .88rem; font-weight: 500; text-decoration: none; background: #fff; }
.filter-bar a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.project-photo { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 10px; background: var(--grey-100); }
.gallery-card { min-width: 0; }
.gallery-image { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery-lightbox { width: min(96vw, 1200px); max-width: 96vw; max-height: 92vh; padding: 1rem; border: 1px solid #526274; border-radius: 8px; background: #111b28; color: #fff; }
.gallery-lightbox::backdrop { background: rgb(0 0 0 / 82%); }
.gallery-lightbox img { display: block; width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.gallery-lightbox p { margin: .75rem 0 0; color: #e5e7eb; text-align: center; }
.gallery-close { display: block; margin: 0 0 .75rem auto; }
.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1fr 340px; align-items: start; } }
.detail-grid aside .card { position: sticky; top: 88px; }
.kv { display: grid; grid-template-columns: 1fr; gap: .1rem .75rem; margin: 0; }
.kv dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-500); margin-top: .75rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
@media (min-width: 640px) { .kv.kv-inline { grid-template-columns: 200px 1fr; } .kv.kv-inline dt { margin-top: .6rem; } .kv.kv-inline dd { margin-top: .55rem; } }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- forms */
.form-card { max-width: 760px; margin: 0 auto; }
.form-group { margin-bottom: 1.1rem; }
.form-group label, .label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: .4rem; }
.req { color: var(--danger); }
.optional { color: var(--grey-500); font-weight: 400; font-size: .82rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526076' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center/18px no-repeat; padding-right: 2.5rem; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: var(--focus); }
input[disabled], select[disabled] { background: var(--grey-100); color: var(--grey-500); }
.has-error input, .has-error select, .has-error textarea, .has-error .combo-input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: .35rem 0 0; font-weight: 500; }
.hint { color: var(--grey-600); font-size: .83rem; margin: .35rem 0 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; color: var(--grey-600); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.pw-strength { height: 6px; border-radius: 4px; background: var(--grey-200); overflow: hidden; margin-top: .5rem; }
.pw-strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-strength-label { font-size: .82rem; margin-top: .3rem; color: var(--grey-600); }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--grey-200); border-radius: 10px; margin-bottom: .75rem; cursor: pointer; background: #fff; }
.checkbox input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--green-600); flex-shrink: 0; }
.checkbox:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }
.form-actions { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap-reverse; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--grey-200); }
.form-actions .btn { flex: 1 1 160px; }
@media (min-width: 640px) { .form-actions .btn { flex: 0 0 auto; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 700; color: var(--navy-800); font-size: 1.05rem; margin-bottom: .75rem; padding: 0; }
.form-section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); font-weight: 700; margin: 1.5rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--grey-200); }
.inline-form { display: inline; }
.filters { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 1.25rem; }
.filters .form-group { margin: 0; }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.filters .btn { min-height: 48px; }

/* searchable combobox */
.combo { position: relative; }
.combo select { position: absolute; opacity: 0; pointer-events: none; height: 0; min-height: 0; padding: 0; border: 0; }
.combo-input { padding-right: 2.5rem !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526076' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center/18px no-repeat !important; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--grey-300); border-radius: 10px; box-shadow: var(--shadow-lg); margin: 0; padding: 4px; list-style: none; }
.combo-list li { padding: .7rem .8rem; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.combo-list li[aria-selected=true], .combo-list li:hover { background: var(--green-100); color: var(--navy-800); }
.combo-list li.combo-empty { color: var(--grey-500); cursor: default; background: none; }

/* stepper */
.stepper { display: flex; list-style: none; margin: 0 0 .75rem; padding: 0; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 34px; text-align: center; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; border: 2px solid var(--grey-300); color: var(--grey-500); background: #fff; }
.step-dot .icon { width: 16px; height: 16px; }
.step-label { font-size: .72rem; color: var(--grey-500); font-weight: 600; line-height: 1.2; display: none; }
@media (min-width: 720px) { .step-label { display: block; } }
.step-done .step-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.step-current .step-dot { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.step-current .step-label { color: var(--navy-800); }
.step-done .step-label { color: var(--green-700); }
.progress { height: 6px; background: var(--grey-200); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-600); border-radius: 4px; transition: width .3s; }
.step-count { font-size: .88rem; color: var(--grey-600); margin: .6rem 0 1.5rem; }

/* account type chooser */
.type-cards { display: grid; gap: 1rem; }
@media (min-width: 860px) { .type-cards { grid-template-columns: repeat(3, 1fr); } }
.type-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 2px solid var(--grey-200); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.type-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow); }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(19,154,99,.15); }
.type-card:has(input:focus-visible) { box-shadow: var(--focus); }
.type-card .check { position: absolute; top: 1rem; right: 1rem; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--grey-300); display: grid; place-items: center; color: transparent; }
.type-card:has(input:checked) .check { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.type-card .check .icon { width: 14px; height: 14px; }
.type-card h3 { margin: .25rem 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.type-card p { margin: 0; color: var(--grey-600); font-size: .92rem; }
.type-card ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--grey-600); }

/* upload widget */
.upload-item { border: 1.5px dashed var(--grey-300); border-radius: 12px; padding: 1rem; margin-bottom: .85rem; background: var(--grey-50); }
.upload-item.is-done { border-style: solid; border-color: var(--green-600); background: var(--green-100); }
.upload-item.is-error { border-color: var(--danger); background: var(--danger-bg); }
.upload-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.upload-head strong { color: var(--navy-800); font-size: .95rem; display: block; }
.upload-status { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.upload-status .icon { width: 16px; height: 16px; }
.upload-item.is-done .upload-status { color: var(--green-700); }
.upload-item.is-error .upload-status { color: var(--danger); }
.upload-file { font-size: .85rem; color: var(--grey-600); margin-top: .35rem; word-break: break-all; }
.upload-bar { height: 6px; border-radius: 4px; background: var(--grey-200); margin-top: .75rem; overflow: hidden; display: none; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--green-600); transition: width .1s; }
.upload-item.is-uploading .upload-bar { display: block; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---------------------------------------------------------------- alerts / badges */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .95rem; border: 1px solid transparent; }
.alert .icon { margin-top: .1rem; }
.alert > div > :last-child { margin-bottom: 0; }
.alert-success { background: var(--green-100); color: #0a4d33; border-color: #bfe6d3; }
.alert-danger { background: var(--danger-bg); color: #7a1a12; border-color: #f5c7c1; }
.alert-warning { background: var(--warning-bg); color: #6b3f00; border-color: #f7ddb0; }
.alert-info { background: var(--info-bg); color: #163f73; border-color: #c9dbf3; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--green-100); color: var(--green-700); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-attention { background: var(--attention-bg); color: var(--attention); }
.badge-neutral { background: var(--grey-100); color: var(--grey-600); }
.test-banner { background: #fff3cd; color: #6b4a00; border-bottom: 1px solid #f0d78c; font-size: .85rem; font-weight: 600; text-align: center; padding: .5rem 1rem; }

/* ---------------------------------------------------------------- empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--grey-600); }
.empty-state .empty-icon { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--grey-300); stroke-width: 1.4; }
.empty-state h3 { color: var(--navy-800); font-size: 1.05rem; }
.empty-state p { max-width: 30em; margin: 0 auto 1.25rem; font-size: .95rem; }

/* ---------------------------------------------------------------- tables (become cards on mobile) */
.table-wrap { width: 100%; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); font-weight: 700; padding: .75rem; border-bottom: 1px solid var(--grey-200); background: var(--grey-50); white-space: nowrap; }
.table td { padding: .85rem .75rem; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--navy-800); }
@media (max-width: 760px) {
  table.table.responsive thead { display: none; }
  table.table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border: 1px solid var(--grey-200); border-radius: 10px; margin-bottom: .75rem; padding: .5rem .85rem; background: #fff; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--grey-100); text-align: right; }
  .table.responsive td:last-child { border-bottom: 0; }
  .table.responsive td::before { content: attr(data-label); font-weight: 600; color: var(--grey-500); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex-shrink: 0; }
  .table.responsive td[data-label=""]::before { display: none; }
  .table.responsive td.td-actions { justify-content: flex-start; }
}
@media (min-width: 761px) { .table-wrap { overflow-x: auto; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #9fb3c8; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #cfdcec; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #9fb3c8; }
.site-footer .brand-mark { background: var(--navy-700); }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--green-500); margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.footer-legal-note { font-size: .78rem; color: #7f93ab; margin-top: 1rem; max-width: 60em; }

/* ---------------------------------------------------------------- auth pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; padding: 2rem 16px 3rem; background: var(--grey-50); }
@media (min-width: 768px) { .auth-wrap { align-items: center; padding: 3rem 16px; } }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 980px; }
.auth-card h1 { font-size: 1.6rem; }

/* ---------------------------------------------------------------- dashboard shell */
.dash { display: flex; min-height: 100vh; background: var(--grey-50); }
.dash-sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; background: var(--navy-800); color: #b9c9dc; z-index: 70; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; overflow-y: auto; }
.dash-sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .dash-sidebar { position: sticky; top: 0; height: 100vh; transform: none; flex-shrink: 0; } }
.dash-sidebar .brand { padding: 1.1rem 1.25rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.dash-sidebar .brand-text strong { color: #fff; }
.dash-sidebar .brand-text small { color: #8aa1bb; }
.dash-sidebar .brand-mark { background: var(--navy-700); }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f86a1; padding: 1.1rem 1.25rem .4rem; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; color: #c3d2e3; font-size: .92rem; font-weight: 500; text-decoration: none; border-left: 3px solid transparent; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-nav a.is-active { background: rgba(19,154,99,.14); color: #fff; border-left-color: var(--green-500); }
.side-nav a .icon { width: 18px; height: 18px; opacity: .85; }
.side-nav .count { margin-left: auto; background: var(--green-600); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; }
.side-foot button { width: 100%; }
.dash-backdrop { position: fixed; inset: 0; background: rgba(7,21,40,.45); z-index: 65; display: none; }
.dash-backdrop.is-open { display: block; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--grey-200); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 1rem; }
@media (min-width: 1024px) { .dash-top { padding: 0 28px; } .dash-top .nav-toggle { display: none; } }
.dash-top-title { font-weight: 700; color: var(--navy-800); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-top-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--navy-800); border: 1px solid var(--grey-200); background: #fff; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-content { padding: 20px 16px 48px; width: 100%; max-width: 1240px; }
@media (min-width: 1024px) { .dash-content { padding: 28px; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
.page-head p { margin: 0; color: var(--grey-600); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem; }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat-label { font-size: .78rem; color: var(--grey-600); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.stat-label .icon { width: 16px; height: 16px; color: var(--green-600); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--navy-800); margin-top: .3rem; line-height: 1.2; word-break: break-word; }
.stat-sub { font-size: .78rem; color: var(--grey-500); margin-top: .15rem; }
.dash-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: .85rem 0; border-bottom: 1px solid var(--grey-100); }
.list-plain > li:last-child { border-bottom: 0; }
.notif { display: flex; gap: .75rem; }
.notif.unread { background: var(--green-100); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 8px; }
.notif .icon { color: var(--green-600); margin-top: .15rem; }
.notif-title { font-weight: 600; color: var(--navy-800); }
.notif-time { font-size: .78rem; color: var(--grey-500); }
.status-panel { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; border-radius: 12px; border: 1px solid var(--grey-200); background: #fff; margin-bottom: 1.25rem; flex-wrap: wrap; }
.status-panel .icon { width: 32px; height: 32px; }
.status-panel.ok { border-color: #bfe6d3; background: var(--green-100); }
.status-panel.ok .icon { color: var(--green-600); }
.status-panel.warn { border-color: #f7ddb0; background: var(--warning-bg); }
.status-panel.warn .icon { color: var(--warning); }
.status-panel.bad { border-color: #f5c7c1; background: var(--danger-bg); }
.status-panel.bad .icon { color: var(--danger); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--grey-200); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--grey-600); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.is-active { color: var(--navy-800); border-bottom-color: var(--green-600); }
.tabs a .count { font-size: .72rem; background: var(--grey-100); padding: .05rem .45rem; border-radius: 999px; margin-left: .3rem; }
.thread { display: flex; flex-direction: column; gap: .75rem; }
.bubble { max-width: 85%; padding: .85rem 1rem; border-radius: 12px; background: var(--grey-100); }
.bubble.mine { align-self: flex-end; background: var(--navy-800); color: #e6edf6; }
.bubble.mine .muted { color: #9fb3c8; }
.bubble p { margin: 0 0 .35rem; white-space: pre-wrap; }
.admin-badge { font-size: .7rem; background: var(--green-600); color: #fff; padding: .1rem .45rem; border-radius: 4px; font-weight: 700; letter-spacing: .04em; }
.progress-lg { height: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--grey-200); }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); }
.doc-row { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--grey-100); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .doc-meta { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.doc-row .doc-meta .icon { color: var(--navy-600); width: 28px; height: 28px; }

/* ---------------------------------------------------------------- PDF viewer */
.pdf-viewer { border: 1px solid var(--grey-200); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 1.25rem; }
.pdf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .85rem; background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.pdf-toolbar strong { color: var(--navy-800); font-size: .92rem; }
.pdf-pages { max-height: 70vh; overflow-y: auto; background: #525659; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdf-pages canvas { max-width: 100%; height: auto !important; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pdf-loading { color: #fff; padding: 2rem; font-size: .9rem; }

/* ---------------------------------------------------------------- invest */
.invest-summary { display: grid; gap: .1rem; }
.invest-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--grey-100); }
.invest-row span:first-child { color: var(--grey-600); }
.invest-row strong { color: var(--navy-800); text-align: right; }
.invest-row.total { border-bottom: 0; font-size: 1.15rem; }
.invest-row.total strong { color: var(--green-700); }
.qty { display: flex; align-items: stretch; max-width: 260px; }
.qty button { width: 52px; border: 1.5px solid var(--grey-300); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--navy-800); }
.qty button:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.qty button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.qty input { border-radius: 0; text-align: center; font-weight: 700; font-size: 1.1rem; }
.certificate { border: 6px double var(--navy-800); padding: 2rem; background: #fff; text-align: center; max-width: 800px; margin: 0 auto; }
.certificate h1 { font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; }
@media print { .no-print, .dash-sidebar, .dash-top, .site-header, .site-footer { display: none !important; } .dash-content { padding: 0; } body, .dash { background: #fff; } }

/* ---------------------------------------------------------------- error pages */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 16px; }
.error-code { font-size: 4.5rem; font-weight: 800; color: var(--navy-100); line-height: 1; letter-spacing: -.03em; }
.error-page h1 { font-size: 1.8rem; margin-top: .5rem; }
.error-page p { color: var(--grey-600); max-width: 32em; margin: 0 auto 1.5rem; }

/* ---------------------------------------------------------------- admin tweaks */
.admin .dash-sidebar { background: #0a1a30; }
.admin-2fa-secret { font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .12em; background: var(--grey-100); padding: .75rem 1rem; border-radius: 8px; word-break: break-all; }
details.card summary { cursor: pointer; font-weight: 700; color: var(--navy-800); }
details.card[open] summary { margin-bottom: 1rem; }
.action-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .action-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 480px) { .hide-sm { display: none; } .site-header .brand-text small { display: none; } }

/* ---------------------------------------------------------------- programmes showcase (homepage) */
.program-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .program-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .program-featured { grid-column: 1 / -1; } }
.program-card { background: #fff; border: 1px solid var(--grey-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.program-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.program-media { display: block; background: var(--navy-800); }
.program-media img { width: 100%; height: auto; aspect-ratio: 1280 / 853; object-fit: cover; }
.program-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.program-body h3 { margin: 0; font-size: 1.1rem; }
.program-body p { margin: 0; color: var(--grey-600); font-size: .95rem; }
.program-link { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.program-link .icon { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .program-featured { flex-direction: row; }
  .program-featured .program-media { flex: 0 0 64%; }
  .program-featured .program-body { justify-content: center; padding: 2rem; }
  .program-featured .program-body h3 { font-size: 1.5rem; }
  .program-featured .program-body p { font-size: 1.02rem; }
  .program-featured-reverse { flex-direction: row-reverse; }
}

/* ---------------------------------------------------------------- MDGC Global Feed / ecosystem v3 */
.opp-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--grey-100); }
.opp-card .opp-image { margin: -1.4rem -1.4rem 0; width: calc(100% + 2.8rem); max-width: none; }
form .opp-image { margin: 0 0 .5rem; width: auto; max-width: 100%; border-radius: 8px; aspect-ratio: auto; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart { width: 100%; height: auto; max-width: 560px; color: var(--navy-800); overflow: visible; }
.form-builder > li { gap: .75rem; flex-wrap: wrap; }
[data-gps] .btn { margin: .25rem 0; }
@media print { .filters, .tabs, .filter-bar, .btn { display: none !important; } .card { box-shadow: none; break-inside: avoid; } }

/* ---------------------------------------------------------------- Investment v4 */
.invest-hero { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .invest-hero { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.invest-hero h2 { font-size: 1.5rem; }
.invest-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .invest-figures { grid-template-columns: repeat(4, 1fr); } }
.invest-figures > div { background: var(--grey-100, #f3f4f6); border-radius: 10px; padding: .75rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.invest-figures span { font-size: .75rem; color: var(--grey-600); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.invest-figures strong { font-size: 1.15rem; color: var(--navy-800); }
.invest-figures small { color: var(--grey-500); font-size: .75rem; }
.invest-card { border: 1px solid var(--grey-200); border-radius: 12px; padding: 1rem 1.1rem; }
.invest-card .right { text-align: right; }
.invest-statuses { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .6rem; }
.result-banner { display: flex; gap: .9rem; align-items: flex-start; border-radius: 12px; padding: 1rem 1.1rem; }
.result-banner .icon { width: 28px; height: 28px; flex: 0 0 28px; }
.result-banner.success { background: #e8f5ee; color: #0b5c3b; }
.result-banner.info { background: #eef4fb; color: #1b3a6b; }
.result-banner.danger { background: #fdecec; color: #8a1c1c; }
.pdf-frame { width: 100%; aspect-ratio: 1.414; border: 1px solid var(--grey-200); border-radius: 8px; background: #fff; }

/* ---- v5 Investment admin: expandable sidebar group, setup wizard, publish checklist ---- */
.side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding-right: 1.25rem; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ''; margin-left: auto; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.side-group[open] > summary::after { transform: rotate(45deg); }
.side-group > summary .count { margin-left: .4rem; background: var(--green-600); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; letter-spacing: 0; }
.side-group > summary:focus-visible { outline: 2px solid var(--green-500); outline-offset: -2px; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .75rem; padding: 0; counter-reset: ws; }
.wizard-steps li { counter-increment: ws; }
.wizard-steps a, .wizard-steps span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--grey-300); font-size: .85rem; color: var(--navy-800); background: #fff; text-decoration: none; }
.wizard-steps a::before, .wizard-steps span::before { content: counter(ws); display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--grey-200); font-size: .75rem; font-weight: 700; }
.wizard-steps .is-current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.wizard-steps .is-current::before { background: var(--green-600); color: #fff; }
.wizard-steps .is-done::before { background: var(--green-600); color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--grey-200); font-size: .92rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: 0 0 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; }
.checklist .ok .mark { background: var(--green-600); }
.checklist .bad .mark { background: #b91c1c; }
.checklist .warn .mark { background: #b45309; }
.checklist a { margin-left: auto; white-space: nowrap; font-size: .85rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.calc-grid div { background: var(--grey-100, #f5f7fa); border-radius: 10px; padding: .7rem .85rem; }
.calc-grid span { display: block; font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.calc-grid strong { font-size: 1.05rem; color: var(--navy-800); }
.preview-banner { position: sticky; top: 0; z-index: 60; background: #b45309; color: #fff; text-align: center; padding: .55rem 1rem; font-weight: 600; font-size: .9rem; }
.agreement-edit { border: 1px solid var(--grey-200); border-radius: 10px; padding: .85rem 1rem; margin-bottom: .85rem; }
.json-cell { max-width: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; white-space: pre-wrap; word-break: break-word; color: #334155; }
@media (max-width: 640px) { .wizard-steps a, .wizard-steps span { font-size: .78rem; padding: .35rem .6rem; } .checklist li { flex-wrap: wrap; } .checklist a { margin-left: 2rem; } }
.h-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 1.25rem 0 .5rem; font-weight: 700; }
.offer-actions .inline-form, .offer-actions .inline-form .btn { display: block; width: 100%; }

/* ---- v6 Communications: composer, recipient picker, preview ---- */
.rte { border: 1px solid var(--grey-300); border-radius: 10px; background: #fff; overflow: hidden; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-bottom: 1px solid var(--grey-200); background: #f8fafc; }
.rte-toolbar button { min-width: 36px; min-height: 34px; border: 1px solid var(--grey-300); background: #fff; border-radius: 6px; font-size: .85rem; cursor: pointer; padding: 0 .5rem; }
.rte-toolbar button:hover { background: #eef4fb; }
.rte-editor { min-height: 240px; padding: .85rem 1rem; outline: none; font-size: .95rem; line-height: 1.6; }
.rte-editor:focus { box-shadow: inset 0 0 0 2px var(--green-500); }
.rte-editor table { border-collapse: collapse; width: 100%; } .rte-editor td, .rte-editor th { border: 1px solid #d9e0e8; padding: 6px 8px; }
.rte textarea { border: 0; width: 100%; }
.comm-vars { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .5rem 0; }
.comm-vars .tag { cursor: pointer; border: 1px solid var(--grey-300); font-family: ui-monospace, Menlo, monospace; font-size: .75rem; }
.comm-results { max-height: 320px; overflow: auto; border: 1px solid var(--grey-200); border-radius: 10px; margin-top: .5rem; }
.comm-result { display: block; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--grey-200); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.comm-result:hover:not([disabled]) { background: #eef4fb; } .comm-result[disabled] { opacity: .55; cursor: default; }
.comm-selected { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #e8f5ee; color: #0b5c3b; border-radius: 999px; padding: .25rem .35rem .25rem .75rem; font-size: .85rem; }
.chip button { border: 0; background: rgba(0,0,0,.08); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.email-preview { width: 100%; min-height: 520px; border: 1px solid var(--grey-200); border-radius: 10px; background: #f4f6f9; }
@media (max-width: 640px) { .email-preview { min-height: 420px; } .rte-editor { min-height: 200px; } }

/* ---- v7 Project Management ---- */
.pm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.pm-tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.progress-lg { height: 12px; }
details > summary h2 { cursor: pointer; }

/* IPO-style subscription UI */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chip { border: 1px solid var(--grey-200); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--green-600); color: var(--green-700); }
.amount-help { margin-top: .6rem; }
.amount-help input { width: 100%; margin-top: .25rem; }
.text-danger { color: #b42318; }
.ipo-progress .progress-lg { height: 12px; }
@media (max-width: 899px) { #buy .card { position: static !important; } }

/* ---------------------------------------------------------------- homepage v2: hero, motion, scroll reveals */
.hero-v2 { isolation: isolate; }
.hero-v2 .hero-copy { max-width: 700px; }
.hero-v2 h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.12; }
.grad-text { background: linear-gradient(90deg, #7fe0b3, #4cc9f0 60%, #7fe0b3); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: gradShift 7s linear infinite; }
@keyframes gradShift { to { background-position: 200% center; } }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none; }
.hero-orb-1 { width: 380px; height: 380px; background: #139a63; top: -120px; right: 8%; animation: floatA 14s ease-in-out infinite; }
.hero-orb-2 { width: 320px; height: 320px; background: #1b6fd1; bottom: -140px; left: 4%; opacity: .4; animation: floatB 17s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translate(-50px, 60px) scale(1.12); } }
@keyframes floatB { 50% { transform: translate(70px, -40px) scale(1.08); } }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.hero-v2 .company-name { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); font-size: .78rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero-in { opacity: 0; transform: translateY(24px); animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1rem; }
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-glow { position: relative; box-shadow: 0 8px 24px rgba(19,154,99,.4); }
.btn-glow:hover { box-shadow: 0 12px 32px rgba(19,154,99,.55); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(4px); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 2rem 0 0; }
.hero-chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: #cfdcec; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.hero-chips .icon { width: 16px; height: 16px; color: #7fe0b3; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 24px; height: 40px; margin-left: -12px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* stats strip overlaps the hero */
.stats-strip { position: relative; z-index: 3; margin-top: -42px; }
.stats-strip .container { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1px solid var(--grey-200); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
@media (min-width: 800px) { .stats-strip .container { grid-template-columns: repeat(4, 1fr); } }
.stats-strip .stat { padding: 1.4rem 1.25rem; text-align: center; border-right: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); transition: background .2s; }
.stats-strip .stat:hover { background: var(--green-100); }
.stats-strip .stat strong { display: block; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.stats-strip .stat strong::after { content: "+"; color: var(--green-500); }
.stats-strip .stat:last-child strong::after { content: ""; }
.stats-strip .stat span { font-size: .85rem; color: var(--grey-600); font-weight: 600; }

/* services marquee */
.marquee { overflow: hidden; padding: 2.25rem 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .5rem 1.1rem; border-radius: 999px; background: var(--grey-100); color: var(--navy-800); font-weight: 600; font-size: .92rem; }
.marquee-track .icon { width: 16px; height: 16px; color: var(--green-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* scroll reveals: only active when JS has added .js-reveal to <html> */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
.js-reveal [data-reveal="left"] { transform: translateX(-36px); }
.js-reveal [data-reveal="right"] { transform: translateX(36px); }
.js-reveal [data-reveal="zoom"] { transform: scale(.94); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* richer cards and section polish */
.card-hover, .program-card, .sector, .value-list li { transition: box-shadow .25s, transform .25s, border-color .25s, background .25s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-500); }
.card-hover:hover .card-icon { background: var(--green-600); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card-icon { transition: background .25s, color .25s, transform .25s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-media { overflow: hidden; }
.program-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.program-card:hover .program-media img { transform: scale(1.06); }
.value-list li:hover, .sector:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow); }
.section-navy .card:hover { background: var(--navy-600); transform: translateY(-4px); }
.section-navy .card { transition: background .25s, transform .25s; }
.section-head h2 { position: relative; }
.section-head.center h2::after, .section-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem; border-radius: 4px; background: linear-gradient(90deg, var(--green-500), #4cc9f0); }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #0e5a45); }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(76,201,240,.12); animation: floatA 12s ease-in-out infinite; }
.cta-band::after { animation: floatB 15s ease-in-out infinite; }
.site-header { transition: box-shadow .25s, height .25s, background .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11,31,58,.12); }

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green-500), #4cc9f0); z-index: 100; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-in, .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track, .hero-orb, .grad-text, .pulse-dot, .scroll-cue span, .cta-band::before, .cta-band::after { animation: none !important; }
}

/* ---------------------------------------------------------------- homepage v3: professional polish */
@media (min-width: 960px) { .hero-v2 .container { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.hero-card { position: relative; z-index: 2; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 1.4rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(3,12,28,.45); color: #fff; transition: transform .25s ease-out; will-change: transform; }
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(135deg, rgba(127,224,179,.7), transparent 40%, rgba(76,201,240,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (max-width: 959px) { .hero-card { max-width: 520px; } }
.hero-card-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.hero-card-head em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe0b3; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.flow li { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: 14px; background: rgba(7,21,40,.45); border: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(20px); animation: flowIn .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(900ms + var(--i) * 450ms); }
@keyframes flowIn { to { opacity: 1; transform: none; } }
.flow-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #139a63, #0b6341); }
.flow-ico .icon { width: 20px; height: 20px; }
.flow strong { display: block; font-size: .95rem; line-height: 1.25; }
.flow small { color: #b9c9dc; font-size: .8rem; }
.flow-ok { margin-left: auto; flex: none; opacity: 0; transform: scale(.4); animation: popIn .5s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: calc(1300ms + var(--i) * 450ms); }
.flow li:nth-child(n) .flow-ok { animation-delay: calc(1300ms + var(--i) * 450ms); }
.flow-ok .icon { width: 22px; height: 22px; color: #3ddc97; }
@keyframes popIn { to { opacity: 1; transform: none; } }
.flow-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); margin-top: 1.1rem; overflow: hidden; }
.flow-bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #139a63, #4cc9f0); animation: fill 2.4s .9s ease-out forwards; }
@keyframes fill { to { width: 100%; } }

/* shine sweep on primary buttons */
.btn-glow { overflow: hidden; }
.btn-glow::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 4.5s 2s infinite; }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }

/* section rhythm */
.section-grey { background: linear-gradient(180deg, var(--grey-50), #fff 140%); }
.eyebrow { padding: .3rem .8rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .72rem; }
.eyebrow::before { width: 14px; }
.hero .eyebrow, .section-navy .eyebrow { background: rgba(255,255,255,.1); color: #7fe0b3; }
.section-navy { background: radial-gradient(900px 400px at 100% 0, rgba(19,154,99,.22), transparent 60%), radial-gradient(700px 400px at 0 100%, rgba(27,111,209,.2), transparent 60%), var(--navy-800); }
.section-navy .card { backdrop-filter: blur(6px); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section-navy .card:hover { background: rgba(255,255,255,.1); border-color: rgba(127,224,179,.5); }

/* process steps with connecting line */
.steps .step-card { transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.steps .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-500); }
.steps .step-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--green-500), #4cc9f0); transition: width .5s; }
.steps .step-card:hover::before { width: 100%; }
.step-card .num { background: linear-gradient(135deg, var(--green-600), #1b6fd1); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.2rem; }

/* images in news/project cards */
.project-photo { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .project-photo { transform: scale(1.04); }
.card a:has(> .project-photo) { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.card h3 a { color: var(--navy-800); }
.card h3 a:hover { color: var(--green-600); text-decoration: none; }

.site-footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--green-500), #4cc9f0) 1; }
::selection { background: var(--green-500); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .flow li, .flow-ok { opacity: 1 !important; transform: none !important; animation: none !important; }
  .flow-bar span { width: 100% !important; animation: none !important; }
  .btn-glow::after { animation: none !important; }
}
/* hero card: entrance must not pin transform, so the JS tilt can apply */
.hero-card.hero-in { opacity: 1; transform: none; animation: cardIn .9s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* ---------------------------------------------------------------- dashboards (all roles): professional shell */
.dash { background: linear-gradient(180deg, #f3f6fb, #eef2f8); }
.dash-sidebar { background: linear-gradient(190deg, #0d2547 0%, #091a33 55%, #071528 100%); border-right: 1px solid rgba(255,255,255,.05); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.admin .dash-sidebar { background: linear-gradient(190deg, #0a1a30 0%, #07111f 100%); }
.dash-sidebar .brand { padding: 1.25rem; }
.side-label { padding-top: 1.3rem; }
.side-nav { padding: 0 .75rem; }
.side-nav a { border-left: 0; border-radius: 10px; margin: 2px 0; padding: .62rem .85rem; position: relative; transition: background .2s, color .2s, transform .2s, padding .2s; }
.side-nav a:hover { background: rgba(255,255,255,.07); transform: translateX(3px); }
.side-nav a.is-active { background: linear-gradient(90deg, rgba(19,154,99,.32), rgba(19,154,99,.08)); box-shadow: inset 0 0 0 1px rgba(19,154,99,.35); }
.side-nav a.is-active::before { content: ""; position: absolute; left: -12px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: #3ddc97; }
.side-nav a.is-active .icon { color: #3ddc97; opacity: 1; }
.side-nav .count { background: linear-gradient(135deg, #139a63, #0f7a4f); box-shadow: 0 2px 8px rgba(19,154,99,.45); }
.side-foot { background: rgba(255,255,255,.04); margin: .75rem; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }

.dash-top { background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(207,215,226,.7); }
.icon-btn { transition: transform .2s, box-shadow .2s, border-color .2s; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green-500); text-decoration: none; }
.avatar { background: linear-gradient(135deg, var(--green-600), #1b6fd1); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--grey-200); transition: transform .2s; }
.avatar:hover { transform: scale(1.06); text-decoration: none; }

/* greeting banner on overview pages */
.page-head-hero { position: relative; overflow: hidden; padding: 1.6rem 1.75rem; border-radius: 20px; color: #cfdcec; align-items: center;
  background: radial-gradient(500px 220px at 95% 0, rgba(19,154,99,.45), transparent 65%), radial-gradient(400px 220px at 0 120%, rgba(27,111,209,.4), transparent 60%), linear-gradient(120deg, #0b1f3a, #12305a); box-shadow: 0 14px 34px rgba(11,31,58,.22); }
.page-head-hero::after { content: ""; position: absolute; right: 12%; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); animation: floatA 12s ease-in-out infinite; pointer-events: none; }
.page-head-hero h1, .page-head-hero p { color: #fff; position: relative; z-index: 1; }
.page-head-hero p { color: #b9c9dc; }
.page-head-hero .btn { position: relative; z-index: 1; }
.page-head-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.page-head-hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.page-head:not(.page-head-hero) h1 { position: relative; padding-left: .9rem; }
.page-head:not(.page-head-hero) h1::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--green-500), #4cc9f0); }

/* stat cards */
.dash .stat { position: relative; overflow: hidden; border: 1px solid var(--grey-200); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.dash .stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-500), #4cc9f0); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .4s; }
.dash .stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-500); }
.dash .stat:hover::before { transform: scaleX(1); }
.dash .stat-label { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.dash .stat-label .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--green-100); color: var(--green-600); order: -1; }
.dash .stat-value { font-size: 1.75rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .55rem; }

/* cards, tables, forms */
.dash .card { border-radius: 16px; border-color: var(--grey-200); box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s; }
.dash .card:hover { box-shadow: var(--shadow); }
.dash .card-header h2, .dash .card-header h3 { font-size: 1.05rem; }
.dash .table tbody tr { transition: background .15s; }
.dash .table tbody tr:hover { background: var(--grey-50); }
.dash .table th { background: var(--grey-50); }
.dash .btn-primary { box-shadow: 0 4px 14px rgba(19,154,99,.28); }
.dash .btn-primary:hover { box-shadow: 0 8px 22px rgba(19,154,99,.4); }
.dash input:not([type=checkbox]):not([type=radio]), .dash select, .dash textarea { transition: border-color .2s, box-shadow .2s; }
.dash .badge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.dash .status-panel { border-radius: 16px; box-shadow: var(--shadow-sm); }
.dash .alert { border-radius: 12px; }

/* entrance motion: only when JS marks the dashboard */
.js-dash .dash-content > *, .js-dash .stats > .stat, .js-dash .dash-grid > *, .js-dash .stack > * { animation: dashIn .55s cubic-bezier(.2,.7,.2,1) backwards; }
.js-dash .stats > .stat:nth-child(2), .js-dash .dash-grid > :nth-child(2) { animation-delay: 70ms; }
.js-dash .stats > .stat:nth-child(3) { animation-delay: 140ms; }
.js-dash .stats > .stat:nth-child(4) { animation-delay: 210ms; }
.js-dash .stats > .stat:nth-child(n+5) { animation-delay: 260ms; }
@keyframes dashIn { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .js-dash * { animation: none !important; } .page-head-hero::after { animation: none; } }
@media (max-width: 600px) { .page-head-hero { padding: 1.25rem; border-radius: 16px; } }
.stats-finance { grid-template-columns: 1fr; }
@media (min-width: 760px) { .stats-finance { grid-template-columns: repeat(3, 1fr); } }
.stats-finance .stat { color: #fff; border: 0; background: linear-gradient(135deg, #0b1f3a, #12305a); }
.stats-finance .stat-income { background: linear-gradient(135deg, #0b6341, #139a63); }
.stats-finance .stat-shares { background: linear-gradient(135deg, #12305a, #1b6fd1); }
.stats-finance .stat-payout { background: linear-gradient(135deg, #3b2a6b, #7a3fb0); }
.dash .stats-finance .stat-label, .stats-finance .stat-value, .stats-finance .stat-sub { color: #fff; }
.stats-finance .stat-sub { opacity: .85; }
.dash .stats-finance .stat-label .icon { background: rgba(255,255,255,.18); color: #fff; }
.stats-finance .stat:hover { border-color: transparent; }
.wallet-pill { display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, #0f7a4f, #139a63); box-shadow: 0 4px 14px rgba(19,154,99,.35); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.wallet-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19,154,99,.45); }
.wallet-pill .icon { width: 18px; height: 18px; }
@media (max-width: 420px) { .wallet-pill span { display: none; } .wallet-pill { width: 42px; padding: 0; justify-content: center; } }

/* ---------------------------------------------------------------- investment page */
.inv-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 3.5rem 0 5rem; background: radial-gradient(900px 420px at 85% 0, rgba(19,154,99,.35), transparent 60%), linear-gradient(135deg, #071528, #0b1f3a 55%, #0e3a5c); }
.inv-hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .inv-hero-grid { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; } .inv-hero { padding: 5rem 0 6.5rem; } }
.inv-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.1; }
.inv-hero .lead { color: #cfdcec; font-size: 1.1rem; max-width: 38em; }
.inv-hero .company-name { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #bcd0e6; font-weight: 700; }
.inv-hero .btn-row { margin-top: 1.5rem; }
.inv-price-card { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 1.6rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(3,12,28,.45); display: grid; gap: .8rem; }
.inv-price-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #7fe0b3; font-weight: 700; }
.inv-price { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
.inv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.inv-mini > div { background: rgba(7,21,40,.45); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: .7rem .85rem; }
.inv-mini span { display: block; font-size: .72rem; color: #b9c9dc; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.inv-mini b { font-size: 1.1rem; color: #fff; }
.inv-price-card .progress { background: rgba(255,255,255,.15); }
.inv-price-card .progress span { background: linear-gradient(90deg, #139a63, #4cc9f0); animation: fill 1.8s .6s ease-out backwards; }
.stats-strip .stat strong.plain::after { content: ""; }
.stats-strip .stat strong.plain { font-size: clamp(1.4rem, 3vw, 2rem); }
.faq details { border-bottom: 1px solid var(--grey-100); padding: .85rem 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-600); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .6rem 0 0; color: var(--grey-600); animation: dashIn .35s ease; }
#buy .card { border-radius: 18px; border: 1px solid var(--grey-200); box-shadow: var(--shadow-lg); border-top: 4px solid var(--green-500); }
.chip[data-set] { cursor: pointer; transition: transform .15s, background .15s; }
.chip[data-set]:hover { transform: translateY(-2px); background: #d3efe1; }
.invest-row.total strong { font-size: 1.4rem; }
.ol-steps li::marker { color: var(--green-600); font-weight: 700; }

/* ---------------------------------------------------------------- share purchase wizard (IPO-style) */
.dash-content .card:has(> .stepper) { background: linear-gradient(135deg, #0b1f3a, #12305a); border: 0; border-radius: 18px; padding: 1.4rem 1.5rem; color: #cfdcec; box-shadow: 0 14px 34px rgba(11,31,58,.2); }
.dash-content .card > .stepper { position: relative; }
.dash-content .card > .stepper .step { position: relative; }
.dash-content .card > .stepper .step + .step::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: rgba(255,255,255,.18); z-index: 0; }
.dash-content .card > .stepper .step-done + .step::before, .card > .stepper .step-done + .step-current::before { background: #3ddc97; }
.dash-content .card > .stepper .step-dot { position: relative; z-index: 1; width: 34px; height: 34px; background: #12305a; border-color: rgba(255,255,255,.3); color: #b9c9dc; transition: all .3s; }
.dash-content .card > .stepper .step-done .step-dot { background: #139a63; border-color: #3ddc97; color: #fff; }
.dash-content .card > .stepper .step-current .step-dot { background: #fff; border-color: #fff; color: #0b1f3a; box-shadow: 0 0 0 6px rgba(255,255,255,.18); animation: pulse 2s infinite; }
.dash-content .card > .stepper .step-label { color: #9fb3c8; }
.dash-content .card > .stepper .step-current .step-label { color: #fff; }
.dash-content .card > .stepper .step-done .step-label { color: #7fe0b3; }
.dash-content .card > .progress { background: rgba(255,255,255,.15); margin-top: .5rem; }
.dash-content .card > .progress span { background: linear-gradient(90deg, #139a63, #4cc9f0); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.dash-content .card > .step-count { color: #b9c9dc; margin: .6rem 0 0; font-size: .85rem; }
.dash-content .card > .step-count strong { color: #fff; }

.timeline { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--grey-200); }
.timeline li { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: .6rem 0; }
.tl-dot { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: #fff; border: 2px solid var(--grey-300); color: var(--grey-500); }
.tl-dot .icon { width: 16px; height: 16px; }
.timeline .done .tl-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.timeline .now .tl-dot { border-color: var(--green-500); color: var(--green-700); box-shadow: 0 0 0 5px rgba(19,154,99,.15); animation: pulse 2s infinite; }
.timeline strong { color: var(--navy-800); }

.success-burst { width: 84px; height: 84px; margin: 0 auto 1rem; }
.success-burst svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-burst circle { stroke: var(--green-500); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s ease-out forwards; }
.success-burst path { stroke: var(--green-600); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .success-burst circle, .success-burst path { animation: none; stroke-dashoffset: 0; } }

/* wallet deposit dialog */
.deposit-cta { border-left: 4px solid var(--green-500); }
dialog.modal { border: 0; border-radius: 20px; padding: 1.4rem; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(7,21,40,.45); }
dialog.modal::backdrop { background: rgba(7,21,40,.6); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: dashIn .3s cubic-bezier(.2,.7,.2,1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.bank-card { background: linear-gradient(135deg, #0b1f3a, #12305a); color: #fff; border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; display: grid; gap: .6rem; }
.bank-row { display: flex; align-items: center; gap: .75rem; justify-content: space-between; flex-wrap: wrap; }
.bank-row span { color: #9fb3c8; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.bank-row strong { color: #fff; }
.bank-num { font-size: 1.35rem; letter-spacing: .08em; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: rgba(255,255,255,.2); }
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn.is-copied { background: #139a63; border-color: #3ddc97; }
.fund-btn { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--navy-800); background: #fff; border: 2px solid var(--green-500); text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.fund-btn:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.fund-btn .icon { width: 16px; height: 16px; }
@media (max-width: 560px) { .fund-btn span { display: none; } .fund-btn { width: 42px; padding: 0; justify-content: center; } }

/* support mailbox */
.mail-list { padding: .5rem 0; }
.mail-list .list-plain > li { padding: 0; }
.mail-row { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem; text-decoration: none !important; color: inherit; transition: background .15s; border-left: 3px solid transparent; }
.mail-row:hover { background: var(--grey-50); }
.mail-row.is-unread { background: #f4faf7; border-left-color: var(--green-500); }
.mail-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--green-600), #1b6fd1); }
.mail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.mail-top { display: flex; justify-content: space-between; gap: 1rem; }
.mail-top strong { color: var(--navy-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row.is-unread .mail-subject { font-weight: 700; }
.mail-subject, .mail-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mail-badges { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .mail-badges { display: none; } }
.mail-body { white-space: normal; word-break: break-word; line-height: 1.7; }
.mail-sent { border-left: 4px solid var(--green-500); background: #f7fcf9; }
.withdraw-cta { border-left: 4px solid #7a3fb0; }
.withdraw-btn { border-color: #7a3fb0; }
.withdraw-btn:hover { background: #7a3fb0; }
.wallet-admin { border-top: 4px solid var(--green-500); }
.wallet-admin h2 { display: flex; align-items: center; gap: .5rem; }
.wallet-admin h2 .icon { width: 20px; height: 20px; color: var(--green-600); }
.wallet-admin-bal { background: linear-gradient(135deg, #0b6341, #139a63); color: #fff; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .75rem; }
.wallet-admin-bal span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.wallet-admin-bal strong { font-size: 1.7rem; letter-spacing: -.02em; }

/* Dashboard posts (admin updates with likes & comments) */
.post-card { padding: 1.2rem; }
.post-card + .post-card { margin-top: 1rem; }
.post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.post-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-weight: 700; font-size: .8rem; }
.post-title { font-size: 1.08rem; margin: 0 0 .4rem; }
.post-body { white-space: pre-line; overflow-wrap: anywhere; }
.post-image { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px; margin-top: .8rem; background: var(--grey-100); }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--grey-100); font-size: .9rem; color: var(--grey-600); }
.like-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .35rem .8rem; border: 1px solid var(--grey-300); border-radius: 999px; background: #fff; color: var(--grey-700); font: inherit; font-weight: 600; cursor: pointer; }
.like-btn .icon { width: 18px; height: 18px; }
.like-btn.is-liked { background: var(--green-100); border-color: var(--green-500); color: var(--green-700); }
.like-btn.is-liked .icon { fill: currentColor; }
.post-comments { list-style: none; margin: .8rem 0 0; padding: 0; }
.post-comment { padding: .6rem .8rem; background: var(--grey-50); border-radius: var(--radius-sm); margin-bottom: .5rem; overflow-wrap: anywhere; }
.post-comment.is-admin { background: var(--navy-100); }
.post-comment.is-hidden { opacity: .55; }
.post-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; margin-bottom: .15rem; }
.post-comment-form { display: flex; gap: .5rem; margin-top: .6rem; }
.post-comment-form textarea { flex: 1; min-height: 42px; resize: vertical; }
.link-btn { background: none; border: 0; padding: 0; color: var(--grey-600); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.check-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.check-row label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }

/* ---------------------------------------------------------------- premium investment page (navy + gold) */
.inv-premium { --gold-300: #f3d58b; --gold-400: #e6bd5c; --gold-500: #d4a03a; --gold-600: #b5832a; --gold-ink: #3a2a06; background: #f6f7fb; }
.gold-text { background: linear-gradient(100deg, #f8e3a6, #e6bd5c 45%, #c9922f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-gold { background: linear-gradient(135deg, #f3d58b, #d4a03a); color: #2b1f05 !important; border: 0; font-weight: 800; box-shadow: 0 10px 26px rgba(212,160,58,.35); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212,160,58,.45); filter: brightness(1.04); text-decoration: none; }
.btn-gold:disabled { opacity: .55; transform: none; box-shadow: none; }
.inv-hero-premium { background: radial-gradient(800px 400px at 90% -10%, rgba(212,160,58,.28), transparent 60%), radial-gradient(700px 380px at 0% 110%, rgba(19,154,99,.22), transparent 60%), linear-gradient(140deg, #050d1a, #0a1a33 50%, #0d2a4a); }
.inv-hero-premium .company-name { border-color: rgba(230,189,92,.4); background: rgba(230,189,92,.08); color: #f3d58b; }
.inv-trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #cfdcec; font-size: .9rem; }
.inv-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.inv-trust .icon { width: 18px; height: 18px; color: #e6bd5c; }
.inv-hero-premium .inv-price-card { border-color: rgba(230,189,92,.45); background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: 0 30px 70px rgba(2,8,20,.55), inset 0 1px 0 rgba(255,255,255,.12); }
.inv-hero-premium .inv-price-label { color: #f3d58b; }
.inv-hero-premium .inv-price-card .progress span { background: linear-gradient(90deg, #d4a03a, #f3d58b); }
.inv-soft { color: #b9c9dc; }
.inv-countdown { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #f3d58b; font-size: .9rem; }
.inv-countdown .icon { width: 16px; height: 16px; }
.inv-status-pill { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.inv-status-pill.is-open { background: rgba(61,220,151,.18); color: #7ff0bf; }
.inv-status-pill.is-closing_soon, .inv-status-pill.is-coming_soon { background: rgba(230,189,92,.2); color: #f3d58b; }
.inv-stats { margin-top: -2.6rem; position: relative; z-index: 2; }
.inv-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 860px) { .inv-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.inv-stat { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 12px 30px rgba(11,31,58,.1); border: 1px solid #eef1f6; min-width: 0; }
.inv-stat > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, #fff6df, #f6e3b0); color: #b5832a; }
.inv-stat strong { display: block; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--navy-800); line-height: 1.2; overflow-wrap: anywhere; }
.inv-stat span { font-size: .78rem; color: var(--grey-600); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.inv-body { padding-top: 2.2rem; }
.inv-card { border-radius: 18px; border: 1px solid #e9edf3; box-shadow: 0 6px 20px rgba(11,31,58,.05); padding: 1.4rem; }
.inv-card h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.12rem; margin-bottom: 1rem; }
.inv-card h2 .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--navy-800); color: #f3d58b; }
.inv-facts { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 560px) { .inv-facts { grid-template-columns: 1fr 1fr; } }
.inv-facts > div { background: #f8f9fc; border: 1px solid #eef1f6; border-radius: 12px; padding: .7rem .9rem; min-width: 0; }
.inv-facts span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); font-weight: 700; }
.inv-facts strong { display: block; color: var(--navy-800); overflow-wrap: anywhere; }
.inv-facts small { color: var(--grey-600); }
.inv-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .8rem; }
.inv-steps li { counter-increment: s; position: relative; padding: .2rem 0 .2rem 3.1rem; min-height: 2.4rem; }
.inv-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2b1f05; background: linear-gradient(135deg, #f3d58b, #d4a03a); box-shadow: 0 4px 12px rgba(212,160,58,.3); }
.inv-steps b { display: block; color: var(--navy-800); }
.inv-steps span { color: var(--grey-600); font-size: .9rem; }
.inv-risk { border-left: 4px solid #d4a03a; background: #fffcf4; }
.inv-buy { position: sticky; top: 84px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(11,31,58,.18); border: 1px solid rgba(212,160,58,.35); }
.inv-buy-head { padding: 1.3rem 1.4rem; color: #fff; background: radial-gradient(400px 200px at 100% 0, rgba(212,160,58,.35), transparent 60%), linear-gradient(140deg, #071528, #12305a); }
.inv-buy-head .inv-price-label { color: #f3d58b; display: block; }
.inv-buy-head strong { font-size: 1.9rem; letter-spacing: -.02em; }
.inv-buy-head small { font-size: .9rem; color: #b9c9dc; font-weight: 500; }
.inv-pay-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.inv-pay-chips span { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(243,213,139,.45); color: #f3d58b; }
.inv-buy-body { padding: 1.3rem 1.4rem 1.4rem; }
.inv-buy .qty input { font-weight: 800; font-size: 1.15rem; }
.inv-buy .chip[data-set]:hover { background: #fbefcf; }
.inv-buy .invest-summary { background: #f8f9fc; border: 1px solid #eef1f6; border-radius: 14px; }
.inv-buy .invest-row.total strong { color: #b5832a; }
.inv-secure { display: flex; gap: .4rem; align-items: flex-start; }
.inv-secure .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--green-600); }
@media (max-width: 959px) { .inv-buy { position: static; } .inv-grid aside#buy { order: -1; } }

/* Main-dashboard feed: admin updates + project posts with apply, like, comment */
.dash-feed-list { max-width: 760px; }
.dash-feed .post-card { border-radius: 16px; box-shadow: 0 6px 18px rgba(11,31,58,.06); }
.opp-post { border-top: 3px solid var(--green-500); }
.opp-post .post-meta { flex-wrap: nowrap; }
.opp-post-status { margin-left: auto; flex: none; }
.opp-post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .7rem; font-size: .85rem; color: var(--grey-600); }
.opp-post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.opp-post-meta .icon { width: 16px; height: 16px; }
.opp-post-cta { margin-left: auto; }
a.like-btn { text-decoration: none; }
@media (max-width: 560px) { .opp-post-cta { margin-left: 0; width: 100%; } .opp-post-cta .btn { width: 100%; justify-content: center; } }

/* Admin investor register */
.ireg-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .ireg-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ireg-kpis { grid-template-columns: repeat(6, 1fr); } }
.ireg-kpi { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--grey-200); box-shadow: 0 4px 14px rgba(11,31,58,.05); color: var(--ink); text-decoration: none !important; min-width: 0; transition: transform .15s, box-shadow .15s; }
a.ireg-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,31,58,.1); }
.ireg-kpi span { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-600); }
.ireg-kpi span .icon { width: 16px; height: 16px; }
.ireg-kpi strong { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.15; color: var(--navy-800); overflow-wrap: anywhere; }
.ireg-kpi small { color: var(--grey-600); font-size: .78rem; }
.ireg-kpi.is-navy { background: linear-gradient(135deg, #0b1f3a, #12305a); border: 0; }
.ireg-kpi.is-green { background: linear-gradient(135deg, #0b6341, #139a63); border: 0; }
.ireg-kpi.is-gold { background: linear-gradient(135deg, #8a5a12, #d4a03a); border: 0; }
.ireg-kpi.is-navy *, .ireg-kpi.is-green *, .ireg-kpi.is-gold * { color: #fff; }
.ireg-kpi.is-navy small, .ireg-kpi.is-green small, .ireg-kpi.is-gold small, .ireg-kpi.is-navy span, .ireg-kpi.is-green span, .ireg-kpi.is-gold span { opacity: .88; }
.ireg-kpi.is-alert { border-color: #f0c36b; background: #fff8e8; }
.ireg-kpi.is-alert strong { color: var(--warning); }
.ireg-split { display: grid; gap: 1rem; }
@media (min-width: 900px) { .ireg-split { grid-template-columns: 1.3fr 1fr; } }
.ireg-split .card-header h2, .ireg-table-card .card-header h2 { display: flex; align-items: center; gap: .45rem; }
.ireg-top { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ireg-top li { display: flex; gap: .75rem; align-items: center; }
.ireg-top-main { flex: 1; min-width: 0; }
.ireg-rank { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--grey-100); color: var(--grey-700); }
.ireg-rank.r1 { background: linear-gradient(135deg, #f3d58b, #d4a03a); color: #2b1f05; }
.ireg-rank.r2 { background: linear-gradient(135deg, #e9edf2, #b9c3cf); color: #1d2733; }
.ireg-rank.r3 { background: linear-gradient(135deg, #f0c9a5, #c07a3e); color: #2e1704; }
.ireg-bar { height: 8px; border-radius: 999px; background: var(--grey-100); overflow: hidden; margin-top: .35rem; }
.ireg-bar.sm { height: 5px; max-width: 140px; }
.ireg-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b1f3a, #1b6fd1); }
.ireg-top .ireg-bar span { background: linear-gradient(90deg, #d4a03a, #f3d58b); }
.ireg-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ireg-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--grey-100); color: var(--grey-700); white-space: nowrap; }
.ireg-chip.m-wallet { background: var(--green-100); color: var(--green-700); }
.ireg-chip.m-bank_transfer { background: var(--info-bg); color: var(--info); }
.ireg-chip.m-paystack { background: var(--attention-bg); color: var(--attention); }
.ireg-bar.m-wallet span { background: linear-gradient(90deg, #0b6341, #139a63); }
.ireg-bar.m-bank_transfer span { background: linear-gradient(90deg, #12305a, #1e5aa8); }
.ireg-bar.m-paystack span { background: linear-gradient(90deg, #3b2a6b, #7a3fb0); }
.ireg-who { display: flex; gap: .7rem; align-items: flex-start; }
.ireg-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #0b1f3a, #1b6fd1); }
.ireg-avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; background: linear-gradient(135deg, #d4a03a, #f3d58b); color: #2b1f05; box-shadow: 0 0 0 4px rgba(243,213,139,.25); }
.ireg-status { display: flex; flex-wrap: wrap; gap: .25rem; }
.ireg-table td { vertical-align: top; }
.ireg-profile { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-radius: 20px; color: #cfdcec; background: radial-gradient(500px 220px at 100% 0, rgba(212,160,58,.3), transparent 60%), linear-gradient(135deg, #071528, #12305a); box-shadow: 0 16px 40px rgba(11,31,58,.2); }
.ireg-profile-main { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.ireg-profile h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .2rem; }
.ireg-profile p { margin: 0 0 .3rem; overflow-wrap: anywhere; }
