/* McLeod Insurance CRM - Agency portal */
:root {
    --primary: #252c47;
    --primary-light: #3a4366;
    --primary-dark: #171c2e;
    --accent: #d4a24c;
    --accent-light: #e8c074;
    --accent-dark: #b58534;
    --success: #2a9d4f;
    --warning: #e4a829;
    --danger: #c62828;
    --info: #1976d2;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --text: #1f2433;
    --text-muted: #6c7589;
    --border: #e4e7ee;
    --sidebar-width: 250px;
    --topbar-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Icons */
.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -2px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    padding: 20px;
}
.login-container { width: 100%; max-width: 430px; }
.login-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-header .logo-wrap { text-align: center; margin-bottom: 18px; padding: 8px 0 14px; border-bottom: 3px solid var(--accent); }
.login-logo { max-width: 240px; height: auto; display: block; margin: 0 auto; }
.login-header .logo-wrap .login-sub { color: var(--primary); margin-top: 10px; font-weight: 700; }
.login-sub { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.login-error { background: #fdecea; color: #7a1a16; padding: 11px 14px; border-radius: 7px; margin-bottom: 18px; font-size: 13.5px; border-left: 3px solid var(--danger); }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafbfd;
}
.login-form input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,44,71,0.12); }
.login-footer { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.login-footer p { font-size: 11.5px; color: var(--text-muted); font-family: ui-monospace, Menlo, monospace; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); border-color: var(--text-muted); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1e7a3a; color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }

/* Layout */
.portal-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.25s;
}
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sidebar-subtitle,
.sidebar.collapsed .nav-menu a span,
.sidebar.collapsed .user-info > div,
.sidebar.collapsed .logout-link span { display: none; }
.sidebar.collapsed .sidebar-logo { max-width: 32px; }

.sidebar-header { padding: 22px 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center; }
.sidebar-header .logo-box { background: #fff; border-radius: 8px; padding: 10px 12px 6px; margin-bottom: 10px; display: inline-block; }
.sidebar-logo { display: block; max-width: 170px; height: auto; }
.sidebar-subtitle { font-size: 10.5px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }

.nav-menu { list-style: none; flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    font-weight: 500;
}
.nav-menu li a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-menu li.active a { color: #fff; background: rgba(212,162,76,0.12); border-left-color: var(--accent); }
.nav-menu li a .icon { width: 18px; height: 18px; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.92); }
.user-info .icon { width: 28px; height: 28px; flex-shrink: 0; padding: 5px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.5); }
.logout-link { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 12px; padding-top: 2px; }
.logout-link:hover { color: #fff; }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    transition: margin-left 0.25s;
}
.sidebar.collapsed ~ .main-content { margin-left: 64px; }

.top-bar {
    height: var(--topbar-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 26px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.top-bar h1 { font-size: 19px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.sidebar-toggle { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 6px; border-radius: 6px; display: flex; }
.sidebar-toggle:hover { background: var(--bg); }
.top-bar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top-search { margin: 0; min-width: 260px; }

.connection-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.connection-badge.connected { background: #e1f5e7; color: #1e6e34; }
.connection-badge .icon { width: 13px; height: 13px; }

.content-area { padding: 26px; max-width: 1600px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { background: var(--card-bg); border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.stat-icon .icon { width: 24px; height: 24px; }
.stat-icon.navy { background: var(--primary); }
.stat-icon.gold { background: var(--accent); }
.stat-icon.green { background: var(--success); }
.stat-icon.red { background: var(--danger); }
.stat-icon.blue { background: var(--info); }
.stat-icon.purple { background: #7b3fa0; }
.stat-info h3 { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--primary); }
.stat-info p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.stat-info .delta { font-size: 11.5px; font-weight: 600; margin-left: 6px; }
.stat-info .delta.up { color: var(--success); }
.stat-info .delta.down { color: var(--danger); }

/* Card / Panel */
.card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 20px; }
.card-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-header h2 { font-size: 15px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.card-header h2 .icon { color: var(--accent); }
.card-header .actions { display: flex; gap: 8px; }
.card-body { padding: 20px 22px; }
.card-body.no-pad { padding: 0; }

/* Hero cross-sell card */
.hero-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(37,44,71,0.18);
}
.hero-card .hero-text h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hero-card .hero-text h2 .icon { color: var(--accent); width: 22px; height: 22px; }
.hero-card .hero-text p { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.hero-card .hero-stats { display: flex; gap: 28px; }
.hero-card .hero-stat { text-align: right; }
.hero-card .hero-stat .num { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.hero-card .hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
    text-align: left;
    padding: 12px 18px;
    background: #fafbfd;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: 13px 18px; border-bottom: 1px solid #f1f3f7; }
.data-table tr:hover td { background: #fafbfd; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .customer-cell { display: flex; align-items: center; gap: 10px; }
.data-table .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.data-table .cust-name { font-weight: 600; color: var(--primary); }
.data-table .cust-meta { font-size: 11.5px; color: var(--text-muted); }

/* Product / coverage pills */
.product-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-right: 4px; background: #eef1f6; color: var(--primary); }
.product-pill .icon { width: 11px; height: 11px; }
.product-pill.has { background: #e1f5e7; color: #1e6e34; }
.product-pill.missing { background: #fdecea; color: #7a1a16; border: 1px dashed #e9a8a5; }
.product-pill.missing.flag { background: #fff4e1; color: #8c5300; border: 1px solid var(--accent); }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-open { background: #e1f5e7; color: #1e6e34; }
.badge-active { background: #e1f5e7; color: #1e6e34; }
.badge-contacted { background: #d7e7f8; color: #0f3e75; }
.badge-quoted { background: #fff4e1; color: #8c5300; }
.badge-bound { background: #e8defc; color: #4a1f8f; }
.badge-flagged { background: #fde9e9; color: #7a1a16; }
.badge-renewal { background: #fff4e1; color: #8c5300; }
.badge-hot { background: var(--accent); color: #fff; }

/* Cross-sell opportunity card (hero element) */
.xs-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.15s;
}
.xs-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); }
.xs-card .xs-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.xs-card .xs-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0; background: var(--accent);
}
.xs-card .xs-icon .icon { width: 22px; height: 22px; }
.xs-card .xs-title { flex: 1; }
.xs-card .xs-title h4 { font-size: 14.5px; font-weight: 700; color: var(--primary); }
.xs-card .xs-title p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.xs-card .xs-confidence {
    background: #f4f6f9; border-radius: 6px; padding: 4px 9px;
    font-size: 11px; font-weight: 700; color: var(--success);
    display: flex; align-items: center; gap: 4px;
}
.xs-card .xs-confidence .icon { width: 12px; height: 12px; }
.xs-card .xs-body { font-size: 13px; color: var(--text); line-height: 1.55; }
.xs-card .xs-body strong { color: var(--primary); }
.xs-card .xs-reason { background: #fafbfd; padding: 9px 12px; border-radius: 6px; font-size: 12.5px; color: var(--text-muted); margin-top: 10px; border-left: 2px solid var(--accent); }
.xs-card .xs-reason strong { color: var(--primary); }
.xs-card .xs-metrics { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.xs-card .xs-metric { font-size: 11.5px; }
.xs-card .xs-metric .lbl { color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.4px; font-size: 10px; }
.xs-card .xs-metric .val { font-size: 16px; font-weight: 700; color: var(--primary); }
.xs-card .xs-metric .val.green { color: var(--success); }
.xs-card .xs-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Talk track reveal */
.xs-talk {
    margin-top: 14px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff4df 100%);
    border: 1px solid #f0d9a8;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #4a3512;
    line-height: 1.6;
    display: none;
}
.xs-talk.open { display: block; }
.xs-talk .xs-talk-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #8c5300; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.xs-talk .xs-talk-head .icon { color: var(--accent); width: 13px; height: 13px; }
.xs-talk p { font-style: italic; }

/* Customer detail */
.cust-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.cust-header { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cust-header .avatar-lg { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.cust-header .cust-name-lg { font-size: 22px; font-weight: 700; color: var(--primary); }
.cust-header .cust-meta-lg { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.cust-header .cust-meta-lg span { display: flex; align-items: center; gap: 5px; }
.cust-header .cust-actions { margin-left: auto; display: flex; gap: 8px; }
.cust-header .lifetime-value { text-align: right; padding-left: 22px; border-left: 1px solid var(--border); }
.cust-header .lifetime-value .num { font-size: 22px; font-weight: 700; color: var(--success); }
.cust-header .lifetime-value .lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f3f7; font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--text-muted); }
.info-row .val { font-weight: 600; color: var(--primary); }

/* Policy list in customer view */
.policy-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f3f7; }
.policy-item:last-child { border-bottom: none; }
.policy-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.policy-icon .icon { width: 20px; height: 20px; }
.policy-info { flex: 1; }
.policy-info h4 { font-size: 14px; font-weight: 700; color: var(--primary); }
.policy-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.policy-value { text-align: right; }
.policy-value .amount { font-weight: 700; color: var(--primary); }
.policy-value .period { font-size: 11px; color: var(--text-muted); }

/* Pipeline board */
.pipeline-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.pipeline-column { min-width: 280px; flex: 1; background: #fafbfd; border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.pipeline-column-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.pipeline-column-header h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); }
.pipeline-column-header .pipeline-count { font-size: 12px; color: var(--text-muted); background: #fff; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); }
.pipeline-card {
    background: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid var(--border);
    cursor: pointer; transition: all 0.15s;
    border-left: 3px solid var(--accent);
}
.pipeline-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); transform: translateY(-1px); }
.pipeline-card h4 { font-size: 13.5px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.pipeline-card .meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.pipeline-card .prod { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; background: #fff4e1; color: #8c5300; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.pipeline-card .value { font-size: 13px; font-weight: 700; color: var(--success); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.pipeline-card .conf { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }

/* Activity feed */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f7; font-size: 13px; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.activity-icon .icon { width: 15px; height: 15px; }
.activity-icon.green { background: var(--success); }
.activity-icon.blue { background: var(--info); }
.activity-icon.red { background: var(--danger); }
.activity-icon.orange { background: var(--accent); }
.activity-icon.teal { background: #00897b; }
.activity-text { flex: 1; }
.activity-text .val { float: right; font-weight: 700; color: var(--success); font-size: 12px; }
.activity-time { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

/* Agent leaderboard */
.leader-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f1f3f7; }
.leader-item:last-child { border-bottom: none; }
.leader-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.leader-rank.gold { background: var(--accent); color: #fff; }
.leader-info { flex: 1; }
.leader-info h4 { font-size: 13.5px; font-weight: 700; color: var(--primary); }
.leader-info p { font-size: 11.5px; color: var(--text-muted); }
.leader-stats { text-align: right; }
.leader-stats .main { font-size: 14px; font-weight: 700; color: var(--success); }
.leader-stats .sub { font-size: 11px; color: var(--text-muted); }

/* Search bar */
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; margin-bottom: 16px; }
.search-bar .icon { color: var(--text-muted); }
.search-bar input { border: none; background: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; color: var(--text); }
.search-bar input::placeholder { color: var(--text-muted); }

/* Progress bar */
.progress-bar { height: 7px; background: #eef1f6; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress-bar .fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.progress-bar .fill.gold { background: var(--accent); }
.progress-bar .fill.green { background: var(--success); }
.progress-bar .fill.navy { background: var(--primary); }

/* Filters bar */
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filter-chip { padding: 7px 13px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Responsive */
@media (max-width: 960px) {
    .grid-2, .grid-2-even, .grid-3 { grid-template-columns: 1fr; }
    .cust-detail-grid { grid-template-columns: 1fr; }
    .hero-card { flex-direction: column; align-items: flex-start; }
    .hero-card .hero-stats { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
    .sidebar { width: 64px; }
    .sidebar .sidebar-subtitle, .sidebar .nav-menu a span, .sidebar .user-info > div, .sidebar .logout-link span { display: none; }
    .sidebar .sidebar-logo { max-width: 32px; }
    .main-content { margin-left: 64px; }
    .top-search { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .content-area { padding: 18px; }
    .pipeline-board { flex-direction: column; }
    .pipeline-column { min-width: auto; }
}
