/* ──────────────────────────────────────────────────────────────
   Bricks Funding — Design System v2
   Tokens · Layout · Components
   ────────────────────────────────────────────────────────────── */

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #155DFC;
    --blue-hover: #1250D4;
    --blue-light: #DBEAFE;
    --blue-50: #EFF6FF;

    --navy: #0F172B;
    --navy-light: #1E293B;

    --gray-700: #334155;
    --gray-600: #45556C;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50:  #F8FAFC;
    --white:    #FFFFFF;

    --green:       #16A34A;
    --green-light: #DCFCE7;
    --green-dark:  #166534;
    --amber:       #D97706;
    --amber-light: #FEF3C7;
    --red:         #DC2626;
    --red-light:   #FEE2E2;

    --radius-sm: 8px;
    --radius-md: 14px;

    --shadow-sm: 0 1px 2px rgba(15,23,43,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,43,0.06);

    --topbar-h: 60px;
    --sidebar-w: 230px;
}

html, body { height: 100%; }
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--navy);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 { color: var(--navy); font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

hr { border: 0; border-top: 1px solid var(--gray-100); margin: 12px 0; }

/* ── Topbar ── */
.navbar {
    background: var(--white);
    height: var(--topbar-h);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar__left, .navbar__right { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__box {
    background: var(--navy); color: var(--white);
    padding: 3px 8px; border-radius: 5px;
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
}
.logo__text { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: .5px; }

.nav-link { font-size: 13px; font-weight: 500; color: var(--gray-600); text-decoration: none; }
.nav-link:hover { color: var(--blue); }

.nav-balance {
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--navy);
}

.nav-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    border: none;
    user-select: none;
}
.nav-avatar:hover { background: var(--blue-hover); }

/* ── Layout (topbar + sidebar + main) ── */
.layout {
    display: flex;
    min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--gray-100);
    padding: 20px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
}
.sidebar__section { padding: 0 12px; margin-bottom: 8px; }
.sidebar__title {
    font-size: 10px; font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 12px 6px;
}
.sidebar__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
}
.sidebar__item:hover { background: var(--gray-50); color: var(--navy); }
.sidebar__item.active { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.sidebar__item svg, .sidebar__item .icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__spacer { flex: 1; }

.sidebar-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 6px;
    align-items: center; justify-content: center;
    color: var(--gray-600);
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--navy); }
.sidebar-overlay { display: none; }

.main {
    flex: 1;
    padding: 28px 36px;
    min-width: 0;
}

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px; flex-wrap: wrap;
}
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--navy); }
.breadcrumb { font-size: 13px; color: var(--gray-400); }
.breadcrumb span { color: var(--navy); font-weight: 600; }

/* ── Cards ── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.card__title {
    font-size: 16px; font-weight: 700; color: var(--navy);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.card__title--plain { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.card__footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-100); }

/* ── Buttons ── */
.btn-blue, .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-blue   { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-blue svg, .btn-outline svg { width: 16px; height: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-blue:disabled, .btn-outline:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ── */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    font-size: 14px; font-weight: 500;
    color: var(--navy-light);
    margin-bottom: 6px;
}
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit; font-size: 15px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21,93,252,.12);
}
.input-group textarea { resize: vertical; min-height: 120px; }
.input-group .hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.input-group .error-message { font-size: 12px; color: var(--red); margin-top: 4px; }
.input-group.has-error input,
.input-group.has-error select,
.input-group.has-error textarea {
    border-color: var(--red);
}
.input-group.has-error input:focus,
.input-group.has-error select:focus,
.input-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Tables ── */
.table-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
}
.table-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: -24px -24px 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.table-header h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.table-header a { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }

table { width: 100%; border-collapse: collapse; }
table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px; font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase; letter-spacing: .5px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}
table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-50);
}
table tr:last-child td { border-bottom: 0; }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-state svg { width: 40px; height: 40px; color: var(--gray-200); margin-bottom: 12px; }
.empty-state p { font-size: 14px; color: var(--gray-400); }

/* ── Tabs ── */
.tabs-header,
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab,
.tab-button {
    padding: 10px 20px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    font-family: inherit;
}
.tab:hover, .tab-button:hover { color: var(--navy); }
.tab.active, .tab-button.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Badges ── */
.badge-green, .badge-amber, .badge-blue, .badge-gray, .badge-red {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-blue  { background: var(--blue-light);  color: var(--blue); }
.badge-gray  { background: var(--gray-100);    color: var(--gray-600); }
.badge-red   { background: var(--red-light);   color: var(--red); }

/* ── Progress ── */
.progress {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress__bar {
    height: 100%;
    background: var(--blue);
    border-radius: 4px;
    transition: width .3s;
}

/* ── Info box ── */
.info-box {
    background: var(--blue-50);
    border: 1px solid var(--blue-light);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--navy-light);
    margin-bottom: 20px;
}
.info-box strong { font-weight: 700; }
.info-box--error { background: var(--red-light); border-color: var(--red-light); color: var(--red); }

/* ── Stats ── */
.stat-row {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.stat-row--total { border-top: 1px solid var(--gray-100); padding-top: 12px; margin-top: 4px; }
.stat-row__label { color: var(--gray-500); }
.stat-row__value { font-weight: 600; color: var(--navy); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 22px 20px;
}
.stat-card--blue  { border-top: 3px solid var(--blue); }
.stat-card--green { border-top: 3px solid var(--green); }
.stat-card--amber { border-top: 3px solid var(--amber); }
.stat-card__label {
    font-size: 13px; font-weight: 500;
    color: var(--gray-500);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 8px;
}
.stat-card__label .info-icon {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: help;
}
.stat-card__value { font-size: 30px; font-weight: 700; color: var(--navy); }
.stat-card__unit  { font-size: 18px; font-weight: 400; color: var(--gray-400); margin-left: 2px; }
.stat-card__sub   { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ── Section title ── */
.section-title {
    font-size: 16px; font-weight: 700; color: var(--navy);
    margin-bottom: 14px;
}

/* ── Cards grid (opportunities) ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.card-photo {
    width: 100%; height: 160px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400);
    font-size: 13px;
    overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Filter section ── */
.filters-section {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; gap: 12px;
}
.filter-tabs { display: flex; gap: 8px; }
.filter-right { display: flex; gap: 12px; align-items: center; }
.select-input {
    padding: 8px 14px;
    font-family: inherit; font-size: 13px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: var(--white);
    outline: none;
}
.select-input:focus { border-color: var(--blue); }

/* ── Vertical stepper ── */
.v-stepper { display: flex; flex-direction: column; gap: 0; min-width: 220px; }
.v-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.v-step:last-child { padding-bottom: 0; }
.v-step::before {
    content: ''; position: absolute; left: 15px; top: 34px;
    width: 2px; height: calc(100% - 34px);
    background: var(--gray-200);
}
.v-step:last-child::before { display: none; }
.v-step.done::before { background: var(--blue); }
.v-step__circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    border: 2px solid var(--gray-200);
    color: var(--gray-400);
    background: var(--white);
    position: relative; z-index: 1;
}
.v-step.done .v-step__circle { background: var(--blue); border-color: var(--blue); color: var(--white); }
.v-step.active .v-step__circle { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.v-step__info { padding-top: 5px; }
.v-step__label { font-size: 13px; font-weight: 600; color: var(--navy); }
.v-step.pending .v-step__label { color: var(--gray-400); }
.v-step__desc { font-size: 11px; color: var(--gray-400); margin-top: 1px; }

/* ── Onboarding panel (dashboard) ── */
.onboarding {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px;
}
.onboarding__left h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.onboarding__left p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; max-width: 360px; }

/* ── Fund boxes ── */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.fund-box {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
}
.fund-box__header {
    font-size: 14px; font-weight: 700; color: var(--navy);
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: 8px;
}
.fund-box__dot { width: 8px; height: 8px; border-radius: 50%; }
.fund-box--blue  .fund-box__dot { background: var(--blue); }
.fund-box--green .fund-box__dot { background: var(--green); }
.fund-box--amber .fund-box__dot { background: var(--amber); }
.fund-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 13px;
}
.fund-row__label { color: var(--gray-500); }
.fund-row__value { font-weight: 600; color: var(--navy-light); }
.fund-row.total {
    border-top: 1.5px solid var(--gray-100);
    margin-top: 6px; padding-top: 10px;
    font-weight: 700;
}
.fund-row.total .fund-row__label { color: var(--navy); }

/* ── Dropdown (used by topbar avatar / language) ── */
.dropdown { position: relative; }
.dropdown__panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    z-index: 200;
    opacity: 0; visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Guest language switcher */
.lang-switch__toggle {
    cursor: pointer;
    background: none;
    border: 0;
    font-weight: 600;
    text-transform: uppercase;
}
.lang-switch__panel { min-width: 160px; }
.dropdown__header {
    padding: 10px 12px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--gray-400);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}
.dropdown__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.dropdown__item:hover { background: var(--gray-50); color: var(--navy); }
.dropdown__item--profile {
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px;
}
.dropdown__item--profile strong { font-size: 14px; color: var(--navy); }
.dropdown__item--profile small { font-size: 12px; color: var(--gray-400); }

/* ── HTMX loader (preserve existing IDs/classes) ── */
.htmx-indicator {
    display: none;
    text-align: center;
    padding: 24px;
}
.htmx-request .htmx-indicator { display: block; }
.custom-loader-container { display: flex; justify-content: center; padding: 16px; }
.custom-loader {
    width: 24px; height: 24px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll-to-top (preserve existing #scrollUpBtn id used by globalScripts.js) ── */
#scrollUpBtn {
    position: fixed; bottom: 24px; right: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy); color: var(--white);
    border: none; cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 90;
}
#scrollUpBtn::before {
    content: '↑'; font-size: 18px; font-weight: 700;
}
#scrollUpBtn:hover { background: var(--blue); }

/* ── Password eye toggle (preserve existing class hook used by site.js) ── */
.password-field { position: relative; }
.hiddenEye-bg-img {
    background-repeat: no-repeat;
    background-size: contain;
    height: 17px;
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 21px;
    cursor: pointer;
}

/* ── Utilities ── */
.text-muted { color: var(--gray-500); }
.text-navy  { color: var(--navy); }
.text-bold  { font-weight: 600; }
.required-marker { color: var(--red); }
.flex       { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.mb-0       { margin-bottom: 0; }
.mb-16      { margin-bottom: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ── Opportunity card (campaigns grid) ── */
.opportunity-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.opportunity-card__photo {
    width: 100%; height: 180px;
    background: var(--gray-100) center/cover;
    position: relative;
}
.opportunity-card__time {
    position: absolute; top: 12px; right: 12px;
    background: rgba(15,23,43,.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.opportunity-card__offers {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.opportunity-card__offer {
    background: var(--blue);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px; font-weight: 600;
    display: inline-flex; gap: 6px;
}
.opportunity-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.opportunity-card__title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.opportunity-card__location { font-size: 13px; color: var(--gray-500); margin: 0; }
.opportunity-card__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.opportunity-card__stat-label { font-size: 11px; color: var(--gray-500); }
.opportunity-card__stat-value { font-size: 14px; font-weight: 600; color: var(--navy); }
.opportunity-card__stat-value--accent { color: var(--blue); }
.opportunity-card__progress-row {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--gray-500); margin-bottom: 4px;
}
.opportunity-card__investors { font-size: 12px; color: var(--gray-500); }
.opportunity-card__actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: auto;
}
.opportunity-card__actions .btn-blue,
.opportunity-card__actions .btn-outline {
    justify-content: center; padding: 9px 14px; font-size: 13px;
}

/* ── Transactions table ── */
.transaction-amount { font-weight: 600; }
.transaction-amount--in  { color: var(--green); }
.transaction-amount--out { color: var(--red); }
.transaction-row__date { font-size: 13px; color: var(--gray-700); }
.transaction-row__sub  { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ── Active sort bar ── */
.active-sort-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}
.active-sort-bar__label { color: var(--navy-light); }
.active-sort-bar__label strong { color: var(--blue); font-weight: 700; }
.active-sort-bar__clear {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); font-weight: 600;
    text-decoration: none;
}
.active-sort-bar__clear:hover { color: var(--blue-hover); text-decoration: underline; }

/* ── Investments table ── */
.investments-table { table-layout: auto; }
.investments-table tbody tr.investment-row:hover { background: var(--gray-50); }
.investments-table .th-sort {
    display: inline-flex; align-items: center; gap: 4px;
    color: inherit; text-decoration: none;
}
.investments-table .th-sort__arrow { color: var(--gray-500); font-size: 12px; }
.investments-table .th-sort--active .th-sort__arrow { color: var(--blue); }
.investments-table .num-cell { font-weight: 600; color: var(--navy); white-space: nowrap; }
.investments-table .text-blue  { color: var(--blue); }
.investments-table .text-green { color: var(--green); }

.investment-title { display: flex; align-items: flex-start; gap: 12px; min-width: 240px; }
.investment-title__img {
    width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
    flex-shrink: 0; border: 1px solid var(--gray-100);
}
.investment-title__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.investment-title__name {
    color: var(--navy); font-size: 13px; font-weight: 600;
    text-decoration: none; line-height: 1.3;
}
.investment-title__name:hover { color: var(--blue); }
.investment-title__meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 11px;
}
.investment-title__date { color: var(--gray-500); }
.investment-title__toggle {
    font-size: 11px; font-weight: 600; color: var(--blue);
    text-decoration: none; align-self: flex-start;
}
.investment-title__toggle:hover { text-decoration: underline; }

.amount-stack { display: flex; flex-direction: column; gap: 2px; font-size: 12px; white-space: nowrap; }
.amount-stack > div { color: var(--navy); font-weight: 600; }
.amount-stack__lbl {
    color: var(--gray-400); font-weight: 500;
    font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
    margin-right: 4px;
}

.tx-mini-list {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 4px 0;
}
.tx-mini-list__title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--gray-500);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.tx-mini-row {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
    font-size: 12px;
}
.tx-mini-row + .tx-mini-row { border-top: 1px solid var(--gray-200); }
.tx-mini-row__date { color: var(--gray-500); }
.tx-mini-row__title { color: var(--navy); font-weight: 500; }
.tx-mini-row__amount { font-weight: 600; white-space: nowrap; }

/* ── Pagination ── */
.pagination-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; border-top: 1px solid var(--gray-100);
}
.table-card > .pagination {
    margin: 16px -24px -24px;
}
.pagination__pages { display: flex; gap: 6px; }
.pagination__page {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    color: var(--gray-600); font-size: 13px; font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}
.pagination__page:hover { background: var(--gray-50); color: var(--navy); }
.pagination__page--current { background: var(--blue); color: var(--white); }
.pagination__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: var(--gray-600); font-size: 13px; font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    background: var(--white);
}
.pagination__link:hover { background: var(--gray-50); color: var(--navy); }
.pagination__icon { width: 12px; height: 12px; }

/* ── Wallet payment details ── */
.wallet-bank-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
}
.wallet-bank-row:last-child { border-bottom: 0; }
.wallet-bank-row__label { font-weight: 600; color: var(--navy); }
.wallet-bank-row__value {
    font-family: 'Courier New', monospace;
    font-weight: 600; color: var(--navy-light);
    text-align: right; word-break: break-all;
}

/* ── Reports row ── */
.report-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
}
.report-row:last-child { border-bottom: 0; }
.report-row__title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.report-row__sub { font-size: 12px; color: var(--gray-500); }

/* ── Filter card ── */
.filter-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.filter-card__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}
.filter-card__row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px; font-weight: 500;
    color: var(--navy-light);
}

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    transition: box-shadow .2s, border-color .2s;
}
.faq-item__button {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px;
    background: none; border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.faq-item__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.faq-item__icon {
    font-size: 24px; line-height: 1;
    color: var(--gray-400);
    transition: transform .2s, color .2s;
    flex-shrink: 0;
}
.faq-item__content {
    padding: 0 20px 20px;
    font-size: 14px; line-height: 1.6;
    color: var(--gray-600);
}

/* ── Referral page ── */
.referral-link-row {
    display: flex; gap: 8px; align-items: stretch;
    margin-top: 12px;
}
.referral-link-row input {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--navy);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}
.referral-code {
    font-size: 22px; font-weight: 700;
    color: var(--blue);
    text-align: center;
    padding: 12px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ── Documents row ── */
.document-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
}
.document-row:last-child { border-bottom: 0; }
.document-row__title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.document-row__sub { font-size: 12px; color: var(--gray-500); }

/* ── Stat tile (smaller stat cards) ── */
.stat-tile {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-align: center;
}
.stat-tile__value { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.stat-tile__label { font-size: 12px; color: var(--gray-500); }

/* ── Charts container ── */
.chart-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    height: 320px;
    display: flex; flex-direction: column;
}
.chart-card__title {
    font-size: 14px; font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    text-align: center;
}
.chart-card canvas { flex: 1; min-height: 0; }
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ── VIP tier card ── */
.vip-tier {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.vip-tier--active { border-color: var(--blue); border-width: 2px; box-shadow: 0 0 0 3px rgba(21,93,252,.08); }
.vip-tier__name {
    font-size: 16px; font-weight: 700; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
}
.vip-tier__rate {
    font-size: 13px; color: var(--gray-500);
}
.vip-tier__active-badge { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .5px; }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,43,.5);
    z-index: 300;
}
.modal {
    position: fixed; inset: 0;
    z-index: 310;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal__container {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    max-width: 540px; width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.modal__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.modal__body { padding: 20px 24px; flex: 1; }
.modal__footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
}
.modal__close {
    background: none; border: none;
    font-size: 22px; line-height: 1;
    cursor: pointer; color: var(--gray-500);
    padding: 4px 8px;
}
.modal__close:hover { color: var(--navy); }

/* Response modal (#responseModal) — compact, centered notification style (ported from Fintown's dedicated #responseModal CSS, adapted to v2 tokens) */
#responseModal .modal__container {
    position: relative;
    width: 378px;
    max-width: calc(100% - 40px);
    padding: 64px 40px 32px;
    text-align: center;
}
#responseModal .modal__header { border-bottom: none; padding: 0; }
#responseModal .modal-title {
    width: 100%;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
#responseModal .modal-title.model-title--success { color: var(--green); }
#responseModal .modal-title.model-title--error   { color: var(--red); }
#responseModal .modal__body {
    padding: 16px 0 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}
#responseModal .modal__close {
    position: absolute;
    top: 12px; right: 16px;
}
#responseModal > .custom-loader {
    position: relative;
    z-index: 2;
    width: 32px; height: 32px;
    border-width: 3px;
}

/* ── Select2 skin (transactions filter, KYC, etc.) ── */
.filter-card .select2-container,
.filter-card__row .select2-container,
.input-group .select2-container { width: 100% !important; }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 36px;
    padding: 1px 30px 1px 4px;     /* room for the chevron */
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    position: relative;
    cursor: pointer;
}
/* Reserve room on the right so wrapped chips never sit under the clear-× / chevron */
.select2-container--default .select2-selection--multiple {
    padding-right: 48px;
}
/* Custom chevron for multi-select (single-select has its own .select2-selection__arrow) */
.select2-container--default .select2-selection--multiple::after {
    content: '';
    position: absolute;
    right: 14px; top: 15px;        /* anchored to the first chip row (not box centre) */
    transform: translateY(-50%) rotate(45deg);
    width: 7px; height: 7px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    pointer-events: none;
    transition: transform .15s;
}
.select2-container--default.select2-container--open .select2-selection--multiple::after {
    transform: translateY(-50%) rotate(-135deg);
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21,93,252,.12);
    outline: 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--navy);
    line-height: 30px;
    padding: 0 8px;
    font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--gray-400);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gray-500) transparent transparent transparent;
}
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-radius: var(--radius-sm);
}

/* Multi-select: tags */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 4px;
    display: flex; flex-wrap: wrap; gap: 4px;
    align-items: center;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--blue-50);
    border: 1px solid var(--blue-light);
    border-radius: 4px;
    color: var(--blue);
    font-size: 12px; font-weight: 500;
    padding: 2px 8px;
    margin: 2px;
    line-height: 1.4;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--blue);
    margin-right: 6px;
    font-weight: 600;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--blue-hover);
}
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    margin-left: 6px;
    padding: 6px 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--navy);
    line-height: 1.4;
    height: auto;
}
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: var(--gray-400);
}
/* Match .select-input height when empty */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    min-height: 30px;
    line-height: 1.4;
}
/* Allow-clear "x" inside multi-select */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 28px; top: 15px;        /* anchored to the first chip row, aligned with the chevron */
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    color: var(--gray-400);
    background: none;
    border: 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    /* select2's CDN css loads AFTER main.css and sets margin-top:5px on the clear-x,
       pushing it below the chip; !important is required to win that ordering. */
    margin-top: 0 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
    color: var(--red);
}

/* Dropdown panel */
.select2-dropdown {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    background: var(--white);
    margin-top: 4px;
}
.select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    outline: 0;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21,93,252,.12);
}
.select2-results__option {
    padding: 9px 14px;
    color: var(--gray-700);
    font-size: 14px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--blue-50);
    color: var(--blue);
}
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background: var(--gray-50);
    color: var(--navy);
    font-weight: 600;
}

/* ── HTMX loader inline ── */
#loader.htmx-indicator { display: none; }
#loader.htmx-indicator.htmx-request { display: flex; }

/* ── Auth split layout (guest pages) ── */
.auth-shell {
    min-height: calc(100vh - 57px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hero-panel {
    background: linear-gradient(135deg, rgba(15,23,43,.85), rgba(15,23,43,.7)),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&q=80') center/cover;
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px 64px;
    color: var(--white);
}
.hero-panel h2 {
    font-size: 44px; font-weight: 700; line-height: 1.15;
    margin-bottom: 20px; letter-spacing: -.5px;
    color: var(--white);
}
.hero-panel p {
    font-size: 17px; line-height: 1.7;
    color: rgba(255,255,255,.75);
    max-width: 440px; margin-bottom: 48px;
}
.hero-steps { display: flex; flex-direction: column; gap: 16px; }
.hero-step {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}
.hero-step__num {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: rgba(21,93,252,.3);
    border: 1.5px solid rgba(21,93,252,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #93B4FD;
}
.hero-step__text { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }

.form-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 60px;
    background: var(--gray-50);
    overflow-y: auto;
}
.form-container { width: 100%; max-width: 460px; }
.form-container h1 {
    font-size: 30px; font-weight: 700; color: var(--navy);
    margin-bottom: 8px;
}
.form-container .subtitle {
    font-size: 15px; color: var(--gray-600); margin-bottom: 32px;
}
.form-container .input-group input::placeholder { color: var(--gray-400); }
.form-container .btn-blue { width: 100%; justify-content: center; padding: 12px 20px; margin-top: 8px; font-size: 15px; }

.form-links {
    text-align: center; margin-top: 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.form-links a {
    font-size: 14px; font-weight: 500;
    color: var(--gray-600); text-decoration: none;
}
.form-links a:hover { color: var(--blue); }
.form-links .hl { color: var(--blue); font-weight: 600; }

.form-separator {
    text-align: center; display: block;
    margin: 24px 0; font-size: 13px; color: var(--gray-400);
}

.footer-text {
    text-align: center; margin-top: 36px;
    font-size: 12px; color: var(--gray-400); line-height: 1.6;
}

/* ── Guest topbar ── */
.guest-nav {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    padding: 12px 40px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; z-index: 100;
}
.btn-nav-outline {
    font-size: 14px; font-weight: 500; color: var(--navy);
    border: 1px solid var(--gray-200); background: var(--white);
    padding: 8px 16px; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-outline:hover { background: var(--gray-50); }
.btn-nav-blue {
    font-size: 14px; font-weight: 500; color: var(--white);
    background: var(--blue); border: none;
    padding: 8px 16px; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none;
}
.btn-nav-blue:hover { background: var(--blue-hover); color: var(--white); }
.guest-nav-links { display: flex; align-items: center; gap: 24px; }
.guest-nav-toggle {
    display: none;
    background: none; border: none;
    cursor: pointer;
    width: 32px; height: 32px;
    color: var(--gray-700);
}

/* ── Checkbox ── */
.checkbox-group {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: var(--blue); flex-shrink: 0;
}
.checkbox-group label {
    font-size: 13px; font-weight: 500; color: var(--gray-600); line-height: 1.4;
    margin: 0;
}
.checkbox-group a { color: var(--blue); text-decoration: underline; font-weight: 600; }

.invest-panel__agreement {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
}

.invest-panel__agreement-error {
    display: none;
    margin-top: 4px;
    color: var(--red);
    font-size: 13px;
}

/* ── Select wrapper (custom chevron) ── */
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 36px; }
.select-wrap::after {
    content: ''; position: absolute; right: 14px; top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 7px; height: 7px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    pointer-events: none;
}

/* ── Password input affix (eye icon hook) ── */
.input-group--password { position: relative; }
.input-group--password input { padding-right: 44px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .stats-grid, .funds-grid, .cards-grid, .row-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .navbar__right { gap: 8px; }
    .nav-balance { padding: 5px 10px; font-size: 12px; }

    .sidebar-toggle { display: inline-flex; }
    .sidebar {
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        height: calc(100vh - var(--topbar-h));
        z-index: 95;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-md);
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: var(--topbar-h);
        left: 0; right: 0; bottom: 0;
        background: rgba(15,23,43,.4);
        opacity: 0; visibility: hidden;
        transition: opacity .2s, visibility .2s;
        z-index: 94;
    }
    .sidebar-overlay.is-open { opacity: 1; visibility: visible; }

    .main { padding: 20px 16px; }
    .page-header h1 { font-size: 20px; }

    .stats-grid, .funds-grid, .cards-grid, .row-2, .row-3 { grid-template-columns: 1fr; }

    .onboarding { flex-direction: column; align-items: stretch; padding: 20px; }
    .v-stepper { min-width: 0; }

    .table-card { overflow-x: auto; }
    table th, table td { padding: 10px 12px; font-size: 12px; }

    .filters-section { flex-direction: column; align-items: stretch; }

    .opportunity-card__photo { height: 160px; }
    .opportunity-card__actions { grid-template-columns: 1fr; }
    .filter-card__row { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .form-panel { padding: 40px 24px; }
}

@media (max-width: 768px) {
    .guest-nav { padding: 12px 16px; }
    .guest-nav-links { gap: 12px; }
    .guest-nav .nav-link { display: none; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 12px; }
    .navbar__left .logo__text { display: none; }
    .nav-balance { display: none; }
    .main { padding: 16px 12px; }
    .form-panel { padding: 32px 16px; }
    .form-container h1 { font-size: 24px; }
}
