/* =================================================================
   Capital Minds Investment Portal — Professional UI v2
   Brand-aligned with capitalminds.io (cyan/slate dark theme)
   Mobile-first, fully responsive.
   ================================================================= */

:root {
    --cm-cyan:        #06b6d4;
    --cm-cyan-dark:   #0891b2;
    --cm-cyan-light:  #67e8f9;
    --cm-blue:        #3b82f6;
    --cm-purple:      #8b5cf6;
    --cm-slate-950:   #020617;
    --cm-slate-900:   #0f172a;
    --cm-slate-800:   #1e293b;
    --cm-slate-700:   #334155;
    --cm-slate-600:   #475569;
    --cm-slate-500:   #64748b;
    --cm-slate-400:   #94a3b8;
    --cm-slate-300:   #cbd5e1;
    --cm-slate-200:   #e2e8f0;
    --cm-slate-100:   #f1f5f9;
    --cm-slate-50:    #f8fafc;

    --success:  #10b981;
    --success-light: #d1fae5;
    --danger:   #ef4444;
    --danger-light:  #fee2e2;
    --warning:  #f59e0b;
    --warning-light: #fef3c7;
    --info:     #3b82f6;
    --info-light:    #dbeafe;

    --primary:        var(--cm-cyan);
    --primary-dark:   var(--cm-cyan-dark);
    --primary-light:  var(--cm-cyan-light);
    --dark:           var(--cm-slate-900);
    --gray-50:  var(--cm-slate-50);
    --gray-100: var(--cm-slate-100);
    --gray-200: var(--cm-slate-200);
    --gray-300: var(--cm-slate-300);
    --gray-500: var(--cm-slate-500);
    --gray-700: var(--cm-slate-700);
    --gray-800: var(--cm-slate-800);
    --gray-900: var(--cm-slate-900);

    --sidebar-width: 260px;
    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 6px rgba(15,23,42,.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 10px 25px -5px rgba(15,23,42,.06);
    --shadow-lg: 0 25px 50px -12px rgba(2,6,23,.25);
    --transition: 200ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    margin: 0; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--cm-cyan-dark); text-decoration: none; }
a:hover { color: var(--cm-cyan); text-decoration: underline; }

/* Sidebar */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-width); height: 100vh;
    background: linear-gradient(180deg, var(--cm-slate-950) 0%, var(--cm-slate-900) 100%);
    color: #fff;
    overflow-y: auto;
    z-index: 1040;
    transition: transform var(--transition);
    border-right: 1px solid rgba(6,182,212,.1);
}
.sidebar-brand {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(135deg, rgba(6,182,212,.08), transparent);
}
.sidebar-brand h4 {
    font-weight: 800; font-size: 17px; margin: 0;
    background: linear-gradient(135deg, #fff 0%, var(--cm-cyan-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.01em;
}
.sidebar-brand small {
    color: var(--cm-cyan); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    display: block; margin-top: 2px;
}
.sidebar-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-link {
    color: var(--cm-slate-400);
    padding: 11px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    transition: all var(--transition);
}
.sidebar-nav .nav-link i { font-size: 18px; opacity: .9; }
.sidebar-nav .nav-link:hover { background: rgba(6,182,212,.08); color: #fff; }
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--cm-cyan) 0%, var(--cm-cyan-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6,182,212,.35);
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 26px 32px;
    min-height: 100vh;
}

/* Mobile topbar */
.mobile-topbar {
    display: none;
    position: sticky; top: 0; z-index: 1030;
    background: var(--cm-slate-900);
    color: #fff;
    padding: 12px 16px;
    align-items: center; justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.mobile-topbar .brand {
    font-weight: 700; font-size: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--cm-cyan-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mobile-topbar .toggler {
    background: rgba(6,182,212,.15);
    border: 1px solid rgba(6,182,212,.3);
    color: var(--cm-cyan-light);
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer;
}
.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(2,6,23,.5);
    backdrop-filter: blur(2px);
    z-index: 1035;
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.4); }
    .main-content { margin-left: 0; padding: 16px; }
    .mobile-topbar { display: flex; }
    .sidebar-backdrop.is-open { display: block; }
}

/* Stat cards */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--cm-cyan), var(--cm-blue));
    opacity: 0; transition: opacity var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-card .label {
    color: var(--gray-500); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
}
.stat-card .value {
    font-size: 22px; font-weight: 800; color: var(--gray-900); margin-top: 4px;
    letter-spacing: -.02em; line-height: 1.15; word-break: break-word;
}
.stat-card .icon-wrap {
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cm-cyan), var(--cm-cyan-dark));
    color: #fff; font-size: 18px; margin-bottom: 10px;
    box-shadow: 0 6px 14px rgba(6,182,212,.25);
}

/* Page header */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.page-header h2 {
    margin: 0; font-weight: 800; font-size: 22px;
    color: var(--gray-900); letter-spacing: -.02em;
}
.page-header h2 i { color: var(--cm-cyan); }
.page-header small { display: block; color: var(--gray-500); font-weight: 500; margin-top: 2px; }

/* Card boxes / tables */
.card-box {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-box .card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
    flex-wrap: wrap; gap: 8px;
}
.card-box .card-head h5 {
    margin: 0; font-weight: 700; font-size: 15px;
    color: var(--gray-900); letter-spacing: -.01em;
}
.card-box .card-head h5 i { color: var(--cm-cyan); margin-right: 4px; }
.card-box .card-head .small, .card-box .card-head a {
    color: var(--cm-cyan-dark); font-weight: 600; font-size: 13px;
}

.table-clean { margin: 0; width: 100%; }
.table-clean th {
    background: var(--gray-50);
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--gray-500); font-weight: 700;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 16px; text-align: left;
}
.table-clean td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle; font-size: 14px;
    color: var(--gray-800);
}
.table-clean tr:last-child td { border-bottom: 0; }
.table-clean tbody tr { transition: background var(--transition); }
.table-clean tbody tr:hover { background: var(--gray-50); }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Badges */
.badge-pill {
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    text-transform: capitalize; letter-spacing: .2px;
}
.badge-active   { background: var(--success-light); color: #065f46; }
.badge-inactive { background: var(--danger-light);  color: #991b1b; }
.badge-refunded { background: var(--warning-light); color: #92400e; }
.badge-pending  { background: var(--info-light);    color: #1e40af; }
.badge-paid     { background: var(--success-light); color: #065f46; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--cm-cyan) 0%, var(--cm-cyan-dark) 100%);
    color: #fff !important; border: 0;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(6,182,212,.3);
    transition: all var(--transition);
}
.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6,182,212,.4);
    text-decoration: none;
}
.btn-outline-secondary {
    border: 1px solid var(--gray-300) !important;
    color: var(--gray-700) !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition);
}
.btn-outline-secondary:hover {
    background: var(--gray-100) !important;
    color: var(--gray-900) !important;
}
.btn { border-radius: var(--radius-sm); font-weight: 500; transition: all var(--transition); }

/* Auth */
.auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(6,182,212,.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(139,92,246,.18) 0%, transparent 45%),
        linear-gradient(135deg, var(--cm-slate-950) 0%, var(--cm-slate-900) 50%, var(--cm-slate-800) 100%);
    padding: 24px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.auth-card::before {
    content: '';
    position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
    background: linear-gradient(90deg, var(--cm-cyan), var(--cm-blue), var(--cm-purple));
    border-radius: 0 0 4px 4px;
}
.auth-card h3 { font-weight: 800; margin-bottom: 6px; color: var(--gray-900); letter-spacing: -.02em; }
.auth-card p.lead { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.auth-card .form-control:focus {
    border-color: var(--cm-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.auth-card .icon-wrap {
    background: linear-gradient(135deg, var(--cm-cyan), var(--cm-cyan-dark));
    color: #fff;
}

/* Profile header */
.profile-header {
    background:
        radial-gradient(circle at 100% 0%, rgba(103,232,249,.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--cm-slate-950) 0%, var(--cm-cyan-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 22px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.profile-header::after {
    content: '';
    position: absolute; right: -40px; top: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(6,182,212,.3) 0%, transparent 70%);
    pointer-events: none;
}
.profile-header h2 { color: #fff; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.profile-header .meta { color: rgba(255,255,255,.85); font-size: 13px; margin-top: 4px; }
.avatar-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.detail-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 13.5px; gap: 16px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .label { color: var(--gray-500); font-weight: 500; }
.detail-row .value { color: var(--gray-900); font-weight: 600; text-align: right; word-break: break-all; }

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
}
.topbar strong { color: var(--gray-900); font-weight: 700; }
.topbar strong i { color: var(--cm-cyan); }

.navbar.bg-dark {
    background: linear-gradient(135deg, var(--cm-slate-950), var(--cm-slate-800)) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.navbar.bg-dark .navbar-brand {
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--cm-cyan-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar.bg-dark .navbar-brand i { color: var(--cm-cyan); -webkit-text-fill-color: var(--cm-cyan); }

/* Performance chart */
.chart-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    padding: 12px 16px 16px;
}
@media (max-width: 575.98px) {
    .chart-wrap { height: 240px; padding: 8px 8px 12px; }
}
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 14px 16px 4px;
}
.kpi-strip .kpi {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
}
.kpi-strip .kpi .lbl { color: var(--gray-500); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.kpi-strip .kpi .val { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-top: 2px; }
.kpi-strip .kpi .val.up { color: var(--success); }
.kpi-strip .kpi .val.down { color: var(--danger); }

/* Mobile tweaks */
@media (max-width: 767.98px) {
    .page-header h2 { font-size: 18px; }
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 18px; }
    .stat-card .icon-wrap { width: 34px; height: 34px; font-size: 15px; margin-bottom: 6px; }
    .table-clean th, .table-clean td { padding: 10px 12px; font-size: 13px; }
    .auth-card { padding: 28px 22px; }
    .profile-header { padding: 20px 18px; border-radius: var(--radius); }
    .profile-header h2 { font-size: 19px; }
    .avatar-circle { width: 52px; height: 52px; font-size: 22px; }
    .card-box .card-head { padding: 12px 16px; }
}
@media (max-width: 575.98px) {
    .main-content { padding: 12px; }
    .stat-card .label { font-size: 10px; }
    .detail-row { font-size: 12.5px; padding: 8px 0; }
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    transition: all var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--cm-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.form-label { font-weight: 600; font-size: 13px; color: var(--gray-700); }
.alert { border-radius: var(--radius-sm); border: 0; box-shadow: var(--shadow-sm); }
.alert-success { background: var(--success-light); color: #065f46; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; }
.alert-info    { background: var(--info-light);    color: #1e40af; }

@media print {
    .no-print, .sidebar, .mobile-topbar, .topbar { display: none !important; }
    body, .auth-wrap { background: #fff !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .stat-card, .card-box, .profile-header {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    .profile-header {
        background: var(--cm-slate-900) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* =================================================================
   STATEMENT-STYLE LAYOUT (matches printed PDF + member modal)
   ================================================================= */

/* Document banner */
.statement-banner {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.statement-banner::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--cm-cyan), var(--cm-blue), var(--cm-purple));
}
.statement-banner .doc-eyebrow {
    color: var(--cm-cyan-dark); font-size: 10.5px; font-weight: 800;
    letter-spacing: 4px; text-transform: uppercase;
}
.statement-banner .doc-title {
    font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 4px 0 0;
    letter-spacing: -.02em;
}
.statement-banner .doc-period {
    color: var(--gray-500); font-size: 13px; font-weight: 500; margin-top: 2px;
}
.statement-banner .brand-mark {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--gray-900);
}
.statement-banner .brand-mark .logo {
    width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cm-cyan), var(--cm-cyan-dark));
    color: #fff; font-size: 18px;
    box-shadow: 0 6px 14px rgba(6,182,212,.3);
}

/* Member info row in statement */
.member-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    background: linear-gradient(180deg, #fff, var(--gray-50));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 18px;
}
.member-strip .field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-strip .field .lbl {
    color: var(--gray-500); font-size: 9.5px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
}
.member-strip .field .val {
    color: var(--gray-900); font-size: 15px; font-weight: 700;
    word-break: break-word;
    display: flex; align-items: center; gap: 6px;
}
.member-strip .field .val i { color: var(--cm-cyan); }

/* Coloured stat tiles (matches "Member Details" modal screenshot + PDF) */
.stat-tile {
    border-radius: var(--radius);
    padding: 14px 16px;
    border: 1px solid transparent;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-tile .tile-lbl {
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; opacity: .75;
}
.stat-tile .tile-val {
    font-size: 19px; font-weight: 800; margin-top: 4px;
    letter-spacing: -.02em; line-height: 1.15; word-break: break-word;
}
.stat-tile .tile-sub {
    font-size: 11.5px; margin-top: 2px; opacity: .75; font-weight: 500;
}
.stat-tile.t-blue    { background: #eff6ff; color: #1e3a8a; }
.stat-tile.t-blue    .tile-val { color: #1d4ed8; }
.stat-tile.t-cyan    { background: #ecfeff; color: #155e75; }
.stat-tile.t-cyan    .tile-val { color: var(--cm-cyan-dark); }
.stat-tile.t-amber   { background: #fff7ed; color: #9a3412; }
.stat-tile.t-amber   .tile-val { color: #c2410c; }
.stat-tile.t-green   { background: #ecfdf5; color: #065f46; }
.stat-tile.t-green   .tile-val { color: #047857; }
.stat-tile.t-red     { background: #fef2f2; color: #991b1b; }
.stat-tile.t-red     .tile-val { color: #b91c1c; }
.stat-tile.t-slate   { background: var(--cm-slate-100); color: var(--cm-slate-900); }
.stat-tile.t-slate   .tile-val { color: var(--cm-slate-900); }
.stat-tile.t-violet  { background: #f5f3ff; color: #5b21b6; }
.stat-tile.t-violet  .tile-val { color: #6d28d9; }

/* Status pill on tiles */
.tile-pill {
    display: inline-block; font-size: 10px; font-weight: 800;
    padding: 3px 9px; border-radius: 999px;
    letter-spacing: .8px; text-transform: uppercase;
    background: var(--success-light); color: #047857;
}

/* Withdrawal account info card (matches modal) */
.account-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 18px;
}
.account-card h6 {
    color: #6d28d9; font-size: 14px; font-weight: 800; margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.account-card .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.account-card .field .lbl {
    color: #6b7280; font-size: 11px; font-weight: 600;
    text-transform: capitalize;
}
.account-card .field .val {
    color: var(--gray-900); font-weight: 700; font-size: 14px;
    margin-top: 2px; word-break: break-all;
}
.account-card .field .val.mono { font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 13px; }

/* Transaction history table — printable */
.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-table thead th {
    background: var(--gray-50); color: var(--gray-500);
    font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; padding: 11px 14px; text-align: left;
    border-bottom: 2px solid var(--gray-200);
}
.tx-table thead th.text-end { text-align: right; }
.tx-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800); vertical-align: middle;
}
.tx-table tbody tr:hover { background: var(--gray-50); }
.tx-table .ratio-pos { color: var(--success); font-weight: 700; }
.tx-table .ratio-neg { color: var(--danger); font-weight: 700; }
.tx-table .amt-pos   { color: var(--success); font-weight: 700; }
.tx-table .amt-neg   { color: var(--danger); font-weight: 700; }
.tx-table .row-rejected { background: #fef2f2; }
.tx-table .row-rejected:hover { background: #fee2e2; }
.tx-table .row-pending  { background: #fffbeb; }
.tx-table .tx-tag {
    font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
    letter-spacing: .6px; text-transform: uppercase; margin-left: 6px;
}
.tx-table .tx-tag.tag-rejected { background: #fee2e2; color: #991b1b; }
.tx-table .tx-tag.tag-pending  { background: #fef3c7; color: #92400e; }

/* Closing balance row */
.closing-row td {
    background: linear-gradient(180deg, #ecfeff, #f0f9ff) !important;
    font-weight: 800 !important; color: var(--gray-900) !important;
    border-top: 2px solid var(--cm-cyan) !important;
    font-size: 14px !important;
    padding: 14px !important;
}
.closing-row td.lbl-cell {
    letter-spacing: 1.2px; text-transform: uppercase;
    font-size: 11px !important; color: var(--cm-cyan-dark) !important;
}

/* Doc footer */
.doc-footer {
    text-align: center; color: var(--gray-500);
    font-size: 11.5px; padding: 18px 0 6px;
}
.doc-footer strong { color: var(--gray-900); }

/* =================================================================
   SPLIT-SCREEN LOGIN (unique + professional)
   ================================================================= */
.split-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--gray-50);
}
.split-login__brand {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 60px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(circle at 0% 0%, rgba(6,182,212,.4) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(139,92,246,.4) 0%, transparent 50%),
        linear-gradient(135deg, var(--cm-slate-950) 0%, var(--cm-slate-900) 100%);
}
.split-login__brand::before {
    content: '';
    position: absolute; right: -120px; top: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.18), transparent 70%);
    pointer-events: none;
}
.split-login__brand::after {
    content: '';
    position: absolute; left: -80px; bottom: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.18), transparent 70%);
    pointer-events: none;
}
.split-login__logo {
    display: inline-flex; align-items: center; gap: 12px;
    position: relative; z-index: 2;
}
.split-login__logo .mark {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--cm-cyan), var(--cm-cyan-dark));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    box-shadow: 0 8px 24px rgba(6,182,212,.4);
}
.split-login__logo .name {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--cm-cyan-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.split-login__logo .name small {
    display: block;
    color: var(--cm-cyan); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    -webkit-text-fill-color: var(--cm-cyan);
}
.split-login__hero { position: relative; z-index: 2; max-width: 480px; }
.split-login__hero h1 {
    font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #fff 0%, var(--cm-cyan-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.split-login__hero p {
    color: rgba(255,255,255,.75); font-size: 15.5px; line-height: 1.65;
    max-width: 440px; margin: 0 0 28px;
}
.split-login__features {
    display: grid; gap: 14px; max-width: 420px;
}
.split-login__features .feat {
    display: flex; gap: 14px; align-items: flex-start;
}
.split-login__features .feat .ico {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.25);
    color: var(--cm-cyan-light); font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.split-login__features .feat .txt { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.5; }
.split-login__features .feat .txt b { color: #fff; font-weight: 700; display: block; margin-bottom: 2px; }

.split-login__foot {
    position: relative; z-index: 2;
    color: rgba(255,255,255,.5); font-size: 12px;
}

.split-login__panel {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
    background: #fff;
}
.split-login__form {
    width: 100%; max-width: 400px;
}
.split-login__form .eyebrow {
    color: var(--cm-cyan-dark); font-size: 11px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.split-login__form h2 {
    font-size: 28px; font-weight: 800; color: var(--gray-900);
    margin: 0 0 8px; letter-spacing: -.02em;
}
.split-login__form .sub {
    color: var(--gray-500); font-size: 14px; line-height: 1.55; margin: 0 0 28px;
}
.split-login__form .form-control {
    padding: 13px 14px 13px 42px;
    font-size: 14.5px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
}
.split-login__form .form-control:focus {
    background: #fff;
    border-color: var(--cm-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.split-login__form .input-icon {
    position: relative;
}
.split-login__form .input-icon .bi {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--gray-500); font-size: 17px;
    pointer-events: none;
}
.split-login__form .form-label { font-weight: 700; font-size: 12px; color: var(--gray-700); margin-bottom: 6px; letter-spacing: .3px; }
.split-login__form .btn-primary-custom { padding: 13px; font-size: 14.5px; font-weight: 700; }
.split-login__form .alt-links {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 13px; margin-top: 22px;
    color: var(--gray-500);
}
.split-login__form .alt-links a { color: var(--cm-cyan-dark); font-weight: 600; }

@media (max-width: 991.98px) {
    .split-login { grid-template-columns: 1fr; }
    .split-login__brand { padding: 32px 24px 28px; min-height: auto; }
    .split-login__brand::before { width: 220px; height: 220px; right: -80px; top: -80px; }
    .split-login__brand::after { display: none; }
    .split-login__hero h1 { font-size: 26px; }
    .split-login__hero p { font-size: 14px; margin-bottom: 18px; }
    .split-login__features { grid-template-columns: 1fr; gap: 10px; }
    .split-login__features .feat { gap: 10px; }
    .split-login__features .feat .ico { width: 34px; height: 34px; font-size: 15px; }
    .split-login__foot { display: none; }
    .split-login__panel { padding: 28px 22px 40px; }
    .split-login__form h2 { font-size: 22px; }
}

/* Polish member modal-like cards on mobile (track view) */
@media (max-width: 575.98px) {
    .stat-tile { padding: 12px 14px; }
    .stat-tile .tile-val { font-size: 16px; }
    .member-strip { padding: 14px 16px; gap: 10px; }
    .statement-banner { padding: 18px 18px; }
    .statement-banner .doc-title { font-size: 18px; }
    .account-card { padding: 14px 16px; }
    .account-card .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tx-table thead th, .tx-table tbody td { padding: 9px 10px; font-size: 12px; }
}

/* ===== Phone input group (country code + number) ===== */
.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-input-group .cc-select {
  flex: 0 0 168px;
  max-width: 168px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}
.phone-input-group .cc-select:focus {
  outline: none;
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 4px rgba(6,182,212,.15);
}
.phone-input-group .input-icon {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 480px) {
  .phone-input-group { flex-direction: column; gap: 6px; }
  .phone-input-group .cc-select { flex: 1 1 auto; max-width: 100%; height: 46px; }
}

/* ===== Homepage option cards (clear, separated buttons) ===== */
.choice-cards { display: grid; gap: 14px; margin-top: 6px; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--cm-cyan);
  box-shadow: 0 14px 30px -18px rgba(6,182,212,.45);
  color: inherit;
}
.choice-card .cc-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
}
.choice-card.cc-track .cc-icon  { background: linear-gradient(135deg, var(--cm-cyan), var(--cm-blue)); }
.choice-card.cc-member .cc-icon { background: linear-gradient(135deg, #10b981, #06b6d4); }
.choice-card.cc-admin .cc-icon  { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.choice-card .cc-body { flex: 1 1 auto; min-width: 0; }
.choice-card .cc-title {
  font-weight: 800;
  font-size: 15.5px;
  color: #0f172a;
  letter-spacing: -.01em;
}
.choice-card .cc-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}
.choice-card .cc-arrow {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 20px;
  transition: transform .15s ease, color .15s ease;
}
.choice-card:hover .cc-arrow { color: var(--cm-cyan); transform: translateX(3px); }
.choice-card.cc-track {
  border-color: rgba(6,182,212,.35);
  background: linear-gradient(135deg, rgba(6,182,212,.06), rgba(59,130,246,.04));
}
.choice-card.cc-track .cc-title { color: var(--cm-cyan-dark); }
