/* =========================================================================
   FDIC User Banking Dashboard — Production Styles
   ========================================================================= */

:root {
    --dash-bg: #f0f2f5;
    --dash-sidebar-bg: #08172e;
    --dash-sidebar-hover: rgba(255,255,255,0.06);
    --dash-sidebar-active: rgba(255,255,255,0.1);
    --dash-card-bg: #ffffff;
    --dash-border: #e4e7ec;
    --dash-text: #1d2939;
    --dash-text-dim: #667085;
    --dash-accent: #112e51;
    --dash-accent-light: #205493;
    --dash-green: #12b76a;
    --dash-green-bg: #ecfdf3;
    --dash-red: #f04438;
    --dash-red-bg: #fef3f2;
    --dash-gold: #b8923f;
    --dash-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
    --dash-shadow-md: 0 4px 10px rgba(16,24,40,0.08), 0 2px 4px rgba(16,24,40,0.04);
    --dash-card-width: 300px;
    --dash-panel-width: calc(var(--dash-card-width) * 2 + 20px);
    --radius: 10px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

.dashboard-body {
    background: var(--dash-bg);
    display: flex;
    min-height: 100vh;
    font-family: var(--font-sans);
}

/* ===== Sidebar ===== */
.dash-sidebar {
    width: 248px;
    background: var(--dash-sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dash-sidebar .user-profile {
    padding: var(--space-4) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dash-sidebar .user-avatar {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dash-sidebar-bg);
}

.dash-sidebar .user-avatar svg {
    color: var(--dash-sidebar-bg);
    stroke: var(--dash-sidebar-bg);
}

.dash-sidebar .user-info .name { font-size: 14px; font-weight: 600; color: white; }
.dash-sidebar .user-info .id { font-size: 11px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }

.dash-sidebar .nav-section { padding: var(--space-2) 0; }

.dash-sidebar .nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
    padding: var(--space-2) var(--space-4);
    margin-bottom: 2px;
    font-weight: 600;
}

.dash-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-4);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--ease) 0.15s;
    border-left: 3px solid transparent;
}

.dash-sidebar .nav-item:hover { background: var(--dash-sidebar-hover); color: white; }
.dash-sidebar .nav-item.active {
    background: var(--dash-sidebar-active);
    border-left-color: var(--dash-gold);
    color: white;
}

.dash-sidebar .nav-item svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.dash-sidebar .nav-item.active svg { color: var(--dash-gold); }

.dash-sidebar .nav-item .badge {
    margin-left: auto;
    background: var(--dash-red);
    color: white;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.dash-sidebar .sign-out {
    margin-top: auto;
    padding: 12px var(--space-4);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: color var(--ease) 0.15s;
}
.dash-sidebar .sign-out:hover { color: var(--dash-red); }
.dash-sidebar .sign-out svg { flex-shrink: 0; }

/* ===== Main Area ===== */
.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.dash-header {
    background: white;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dash-border);
    height: 60px;
    flex-shrink: 0;
}

.dash-header .greeting {
    font-size: 16px;
    font-weight: 600;
    color: var(--dash-text);
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}
.dash-header .greeting .date {
    font-size: 12px;
    color: var(--dash-text-dim);
    font-weight: 400;
}

.dash-header .header-right { display: flex; align-items: center; gap: var(--space-4); }

.dash-header .bell {
    cursor: pointer;
    color: var(--dash-text-dim);
    transition: color var(--ease) 0.15s;
    position: relative;
}
.dash-header .bell:hover { color: var(--dash-accent); }

.dash-header .profile-icon {
    width: 34px; height: 34px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-sidebar-bg);
}

.dash-header .profile-icon svg {
    color: var(--dash-sidebar-bg);
    stroke: var(--dash-sidebar-bg);
}

.dash-content { padding: var(--space-6); flex: 1; }

.account-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.summary-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dash-text-dim);
    font-weight: 600;
    margin-bottom: 6px;
}

.summary-names {
    font-size: 28px;
    font-weight: 700;
    color: var(--dash-text);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.summary-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--green-700);
    background: var(--dash-green-bg);
    border: 1px solid rgba(18,183,106,0.2);
    padding: 6px 10px;
    border-radius: 4px;
}

.account-summary-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.summary-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text);
    text-decoration: none;
}

.summary-link:hover { color: var(--dash-accent-light); }

.btn-transfer-funds {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--dash-sidebar-bg);
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-transfer-funds:hover { background: var(--dash-accent); }

.portfolio-section { margin-bottom: var(--space-5); }

.portfolio-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--dash-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.3px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.portfolio-card {
    background: white;
    border: 1px solid var(--dash-border);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--dash-shadow);
    min-height: 170px;
    display: flex;
    flex-direction: column;
}

.portfolio-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.portfolio-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-text-dim);
    flex-shrink: 0;
}

.portfolio-meta { text-align: right; margin-left: auto; }

.portfolio-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--dash-text-dim);
    text-transform: uppercase;
}

.portfolio-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--dash-text-dim);
    text-transform: uppercase;
    margin-top: 2px;
}

.portfolio-balance {
    font-size: 34px;
    font-weight: 700;
    color: var(--dash-text);
    letter-spacing: -1px;
    margin-bottom: auto;
    padding-top: var(--space-2);
}

.portfolio-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--dash-text-dim);
    text-decoration: none;
    margin-top: var(--space-4);
}

.portfolio-link:hover { color: var(--dash-accent-light); }

.recent-activity .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-text);
}

.empty-activity {
    color: var(--dash-text-dim);
    padding: 20px 0;
    font-size: 14px;
}

.officer-panel {
    background: linear-gradient(180deg, #0a1f3d 0%, #08172e 100%);
    color: white;
    border: none;
}

.officer-panel .panel-title {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.officer-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.officer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: var(--dash-sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.officer-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.officer-role {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

.btn-secure-message {
    display: block;
    text-align: center;
    padding: 11px 14px;
    background: white;
    color: var(--dash-sidebar-bg);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-secure-message:hover { background: var(--gray-100); }

/* ===== Balance Cards (credit-card size) ===== */
.account-cards {
    display: flex;
    gap: 20px;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    align-items: flex-start;
}

.account-card {
    width: var(--dash-card-width);
    max-width: 100%;
    aspect-ratio: 1.586 / 1;
    flex: 0 0 auto;
    border-radius: 12px;
    padding: 16px 18px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.18);
    transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
    display: flex;
    flex-direction: column;
}
.account-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,0.22); }

.account-card.insurance { background: #0a192f; }
.account-card.checking { background: #1b5e20; }
.account-card.savings { background: #112e51; }
.account-card.credit { background: #3b2f14; }

.account-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.account-card .acct-chip {
    width: 32px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e8d18a 0%, #b8923f 55%, #9e7e3a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
    flex-shrink: 0;
    position: relative;
}
.account-card .acct-chip::before,
.account-card .acct-chip::after {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
}
.account-card .acct-chip::before { top: 7px; }
.account-card .acct-chip::after { top: 13px; }

.account-card .acct-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    opacity: 0.72;
    font-weight: 600;
}
.account-card .acct-number {
    font-size: 11px;
    opacity: 0.72;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    letter-spacing: 1.2px;
}
.account-card .acct-balance {
    font-size: 24px;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.account-card .acct-status {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.72;
    font-weight: 600;
}

/* Physical debit card (Card Delivering + shared) */
.fdic-physical-card {
    position: relative;
    width: 100%;
    max-width: var(--dash-card-width);
    aspect-ratio: 1.586 / 1;
    border-radius: 12px;
    background: #0a192f;
    overflow: hidden;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.18);
}

.fdic-physical-card::before,
.fdic-physical-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fdic-physical-card::before {
    width: 240px;
    height: 240px;
    right: -50px;
    top: 50%;
    transform: translateY(-42%);
    background: rgba(255, 255, 255, 0.05);
}

.fdic-physical-card::after {
    width: 170px;
    height: 170px;
    right: 48px;
    top: 8%;
    background: rgba(255, 255, 255, 0.035);
}

.fdic-physical-card-brand {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 46px;
    height: 30px;
    z-index: 2;
}

.fdic-physical-card-brand::before,
.fdic-physical-card-brand::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.fdic-physical-card-brand::before {
    left: 0;
    background: rgba(255, 255, 255, 0.42);
}

.fdic-physical-card-brand::after {
    right: 0;
    background: rgba(255, 255, 255, 0.24);
}

.fdic-physical-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fdic-physical-card-chip {
    width: 36px;
    height: 26px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e8d18a 0%, #b8923f 55%, #9e7e3a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    flex-shrink: 0;
}

.fdic-physical-card-chip::before,
.fdic-physical-card-chip::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
}

.fdic-physical-card-chip::before { top: 8px; }
.fdic-physical-card-chip::after { top: 14px; }

.fdic-physical-card-info {
    margin-top: 14px;
}

.fdic-physical-card-number {
    font-size: 15px;
    letter-spacing: 1.6px;
    font-weight: 500;
    font-family: var(--font-mono);
    opacity: 0.92;
    margin-bottom: 8px;
}

.fdic-physical-card-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 4px;
}

.fdic-physical-card-expiry {
    font-size: 8px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    opacity: 0.72;
    font-weight: 600;
}

/* ===== Dashboard panel (cards + info + actions) ===== */
.dashboard-panel {
    max-width: var(--dash-panel-width);
    width: 100%;
}

.dashboard-panel .info-section {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.dashboard-panel .info-section .section-header {
    margin-bottom: 12px;
}

.dashboard-panel .info-section .section-title {
    font-size: 13px;
}

.dashboard-panel .info-section .toggle-link {
    font-size: 11px;
}

.dashboard-panel .info-grid {
    gap: 10px 20px;
}

.dashboard-panel .info-field .label {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.dashboard-panel .info-field .value {
    font-size: 12px;
    font-weight: 600;
}

.dashboard-panel .action-buttons {
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-panel .action-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 6px;
    border-radius: 12px;
}

.dashboard-panel .action-btn .action-icon {
    width: 32px;
    height: 32px;
}

.dashboard-panel .action-btn .action-label {
    font-size: 10px;
}

/* ===== Info Section ===== */
.info-section {
    background: white;
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

.info-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.info-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dash-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.info-section .section-title svg { color: var(--dash-text-dim); }

.info-section .toggle-link {
    font-size: 12px;
    color: var(--dash-accent-light);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color var(--ease) 0.15s;
}
.info-section .toggle-link:hover { color: var(--dash-accent); text-decoration: underline; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-8);
}

.info-field { display: flex; flex-direction: column; }
.info-field .label {
    font-size: 10px;
    color: var(--dash-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
    font-weight: 600;
}
.info-field .value {
    font-size: 14px;
    font-weight: 500;
    color: var(--dash-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.info-field .value .eye-icon { cursor: pointer; color: var(--dash-text-dim); transition: color var(--ease) 0.15s; }
.info-field .value .eye-icon:hover { color: var(--dash-accent); }

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 100px;
    background: white;
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--dash-border);
    transition: all var(--ease) 0.15s;
    text-decoration: none;
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}
.action-btn:hover {
    border-color: var(--dash-accent-light);
    transform: translateY(-1px);
    box-shadow: var(--dash-shadow-md);
}
.action-btn .action-icon {
    width: 40px; height: 40px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    color: var(--dash-accent);
    transition: all var(--ease) 0.15s;
}
.action-btn:hover .action-icon { background: var(--dash-accent); color: white; }
.action-btn .action-label { font-size: 12px; font-weight: 600; }

/* ===== Transactions ===== */
.transactions-section {
    background: white;
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

.txn-list .txn-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}
.txn-list .txn-item:last-child { border-bottom: none; }

.txn-item .txn-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.txn-item .txn-icon.in { background: var(--dash-green-bg); color: var(--green-600); }
.txn-item .txn-icon.out { background: var(--dash-red-bg); color: var(--dash-red); }

.txn-item .txn-info { flex: 1; min-width: 0; }
.txn-item .txn-info .title { font-size: 14px; font-weight: 600; color: var(--dash-text); }
.txn-item .txn-info .meta { font-size: 12px; color: var(--dash-text-dim); margin-top: 1px; }

.txn-item .txn-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-700);
    font-weight: 600;
    background: var(--dash-green-bg);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
}

.txn-item .txn-amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.txn-item .txn-amount.positive { color: var(--green-700); }
.txn-item .txn-amount.negative { color: var(--dash-red); }

/* ===== Right Panel ===== */
.dash-layout { display: flex; gap: var(--space-5); }
.dash-left { flex: 1; min-width: 0; }
.dash-right { width: 300px; flex-shrink: 0; }

.right-panel {
    background: white;
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

.right-panel .panel-title { font-size: 14px; font-weight: 600; color: var(--dash-text); margin-bottom: 2px; }
.right-panel .panel-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dash-text-dim);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.support-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}
.support-option:last-child { border-bottom: none; }
.support-option .so-icon {
    width: 36px; height: 36px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-accent);
    flex-shrink: 0;
}
.support-option .so-info .label { font-size: 13px; font-weight: 600; color: var(--dash-text); }
.support-option .so-info .value { font-size: 12px; color: var(--dash-text-dim); font-family: var(--font-mono); }

.deposit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
}
.deposit-row .label { font-size: 13px; color: var(--dash-text-dim); }
.deposit-row .tag {
    font-size: 11px;
    padding: 2px var(--space-2);
    border-radius: 10px;
    font-weight: 600;
}
.deposit-row .tag.processing { background: var(--amber-100); color: var(--amber-600); }
.deposit-row .tag.accepted { background: var(--dash-green-bg); color: var(--green-700); }

.msg-preview-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--gray-100); }
.msg-preview-item:last-child { border-bottom: none; }
.msg-preview-item .subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 2px;
}
.msg-preview-item .subject svg { color: var(--dash-accent-light); flex-shrink: 0; }
.msg-preview-item .time { font-size: 11px; color: var(--dash-text-dim); margin-bottom: 4px; }
.msg-preview-item .preview {
    font-size: 12px;
    color: var(--dash-text-dim);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.scheduled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}
.scheduled-item:last-child { border-bottom: none; }
.scheduled-item .name { font-size: 13px; font-weight: 500; color: var(--dash-text); }
.scheduled-item .amount { font-size: 14px; font-weight: 700; color: var(--dash-text-dim); font-variant-numeric: tabular-nums; }

.delivery-timeline { position: relative; padding-left: 24px; }
.delivery-timeline-item { position: relative; padding-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--dash-border); margin-left: 6px; }
.delivery-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.delivery-dot {
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dash-border);
    border: 2px solid white;
}
.delivery-timeline-item.today .delivery-dot { background: var(--dash-accent-light); }
.delivery-timeline-item.past .delivery-dot { background: var(--dash-green); }
.delivery-date { font-size: 11px; color: var(--dash-text-dim); margin-bottom: 4px; }
.delivery-title { font-size: 14px; font-weight: 600; color: var(--dash-text); margin-bottom: 4px; }
.delivery-desc { font-size: 13px; color: var(--dash-text-dim); line-height: 1.5; }

/* Card Delivering */
.card-delivering-page {
    width: 100%;
    max-width: 1120px;
}

.card-delivering-header {
    margin-bottom: 24px;
}

.card-delivering-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dash-text);
    letter-spacing: -0.02em;
}

.card-delivering-header p {
    margin: 0;
    font-size: 14px;
    color: var(--dash-text-dim);
}

.card-delivering-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.card-delivering-panel {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--dash-shadow);
}

.card-delivering-panel-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-text);
}

.card-delivering-progress-wrap {
    margin-bottom: 18px;
}

.card-delivering-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--dash-text-dim);
    margin-bottom: 8px;
}

.card-delivering-progress-head strong {
    color: var(--dash-text);
    font-size: 14px;
    font-weight: 700;
}

.card-delivering-progress-track {
    height: 8px;
    background: #e4e7ec;
    border-radius: 999px;
    overflow: hidden;
}

.card-delivering-progress-fill {
    height: 100%;
    background: #117aca;
    border-radius: 999px;
    transition: width 0.35s ease;
    min-width: 0;
}

.card-delivering-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-delivering-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dash-text-dim);
    background: #f8fafc;
    border: 1px solid transparent;
}

.card-delivering-step-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.card-delivering-step.is-complete {
    background: #ecfdf3;
    color: #067647;
    border-color: #abefc6;
}

.card-delivering-step.is-complete .card-delivering-step-marker {
    border-color: #12b76a;
    background: #12b76a;
}

.card-delivering-step.is-complete .card-delivering-step-marker::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.card-delivering-step.is-active {
    background: #eff6ff;
    color: #175cd3;
    border-color: #b2ddff;
}

.card-delivering-step.is-active .card-delivering-step-marker {
    border-color: #2e90fa;
    background: #2e90fa;
    box-shadow: 0 0 0 4px rgba(46, 144, 250, 0.15);
}

.card-delivering-step.is-active .card-delivering-step-marker::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #fff;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.card-delivering-arrival {
    background: #f8fafc;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    margin-bottom: 22px;
}

.card-delivering-arrival-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--dash-text);
    line-height: 1.1;
}

.card-delivering-arrival-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--dash-text-dim);
    font-weight: 600;
}

.card-delivering-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-delivering-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dash-border);
    font-size: 13px;
}

.card-delivering-details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-delivering-detail-label {
    color: var(--dash-text-dim);
    font-weight: 500;
    flex-shrink: 0;
}

.card-delivering-detail-value {
    color: var(--dash-text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.card-delivering-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--dash-green-bg);
    color: #067647;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .card-delivering-grid {
        grid-template-columns: 1fr;
    }
}

.service-panel .field-group { margin-bottom: 16px; }
.service-panel .btn-primary { margin-top: 8px; }

.action-buttons .action-btn {
    text-decoration: none;
    color: inherit;
}

/* ===== Support cards in right panel ===== */
.right-panel .panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.see-more {
    font-size: 12px;
    color: var(--dash-accent-light);
    text-decoration: none;
    font-weight: 600;
}
.see-more:hover { text-decoration: underline; }

.support-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}
.support-card:last-child { border-bottom: none; }
.support-icon {
    width: 36px; height: 36px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-accent);
    flex-shrink: 0;
}
.support-info { display: flex; flex-direction: column; }
.support-label { font-size: 13px; font-weight: 600; color: var(--dash-text); }
.support-value { font-size: 12px; color: var(--dash-text-dim); }

/* ===== Message preview items in right panel ===== */
.dash-msg-item {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
}
.dash-msg-item:last-child { border-bottom: none; }
.dash-msg-item:hover { background: var(--gray-50); margin: 0 calc(-1 * var(--space-5)); padding-left: var(--space-5); padding-right: var(--space-5); }
.dash-msg-icon {
    width: 28px; height: 28px;
    background: var(--dash-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.dash-msg-content { display: flex; flex-direction: column; min-width: 0; }
.dash-msg-subject { font-size: 12px; font-weight: 600; color: var(--dash-text); }
.dash-msg-time { font-size: 10px; color: var(--dash-text-dim); margin-bottom: 2px; }
.dash-msg-preview {
    font-size: 11px;
    color: var(--dash-text-dim);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== Payments section ===== */
.payments-section {
    margin-top: var(--space-5);
}
.payments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.payment-card {
    background: white;
    border: 1px solid var(--dash-border);
    border-radius: var(--radius);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease) 0.15s, box-shadow var(--ease) 0.15s;
}
.payment-card:hover {
    border-color: var(--dash-accent-light);
    box-shadow: var(--dash-shadow-md);
}
.payment-icon {
    width: 42px; height: 42px;
    background: var(--dash-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.payment-text { display: flex; flex-direction: column; }
.payment-title { font-size: 14px; font-weight: 600; color: var(--dash-text); }
.payment-desc { font-size: 12px; color: var(--dash-text-dim); }

/* Responsive */
@media (max-width: 968px) {
    .dash-right { width: 100%; }
    .dash-layout { flex-direction: column; }
    .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .dash-sidebar { display: none; }
    .info-grid { grid-template-columns: 1fr; }
    .account-cards { flex-direction: column; }
    .account-card { width: 100%; max-width: var(--dash-card-width); }
    .dashboard-panel { max-width: 100%; }
}
