:root {
    --ink: #1b1e24;
    --midnight-charcoal: #161826;
    --midnight-charcoal-dark: #0f111a;
    --midnight-porcelain: #fff9f0;
    --midnight-cream: #fffdf8;
    --midnight-panel: #f8f4ed;
    --midnight-panel-soft: #fbf8f4;
    --midnight-teal: #1a8c99;
    --midnight-teal-soft: #57b4c1;
    --midnight-gold-soft: rgba(201, 161, 85, 0.24);
    --ink-soft: #4c5461;
    --muted: #8a8fa1;
    --glass-panel: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(21, 24, 36, 0.15);
    --radius: 22px;
    --shadow: 0 40px 80px rgba(15, 18, 34, 0.14);
    --line: rgba(21, 24, 36, 0.1);
    --panel: var(--midnight-panel);
    --panel-alt: var(--midnight-panel-soft);
    --charcoal: var(--midnight-charcoal);
    --charcoal-dark: var(--midnight-charcoal-dark);
    --brand-red: var(--midnight-gold);
    --brand-blue: var(--midnight-teal);
    --gold: var(--midnight-gold);
    --gold-soft: var(--midnight-gold-soft);
    --primary-blue: var(--midnight-teal);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", "Poppins", "Nunito Sans", system-ui, -apple-system, sans-serif;
    color: var(--midnight-charcoal);
    background:
        radial-gradient(1400px 600px at 10% -20%, rgba(26, 140, 153, 0.18), transparent 50%),
        radial-gradient(1400px 550px at 110% -10%, rgba(21, 24, 36, 0.12), transparent 45%),
        linear-gradient(180deg, var(--midnight-cream) 0%, var(--midnight-porcelain) 60%, #f1ecdf 100%);
    min-height: 100vh;
}
.container { width: min(1160px, 92%); margin: 0 auto; }
.page { padding: 20px 0 48px; }
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: linear-gradient(180deg, rgba(25, 29, 38, 0.95), rgba(23, 26, 34, 0.9));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 161, 85, 0.15);
    box-shadow: 0 15px 30px rgba(10, 12, 20, 0.3);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { font-weight: 700; color: #fff8ef; text-decoration: none; letter-spacing: 0.2px; font-size: 1.1rem; }
.brand span { color: var(--midnight-gold); }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--gold); text-decoration: none; font-size: 0.92rem; }
.hero { padding: 64px 0; }
.eyebrow { color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
h1,h2,h3 { margin-top: 0; line-height: 1.2; }
.section { padding: 22px 0; }
.card {
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.panel {
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.panel-header h2 {
    margin: 0;
    color: var(--charcoal-dark);
    font-size: 1.4rem;
}
.panel-header .panel-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.auth-card {
    width: min(760px, 100%);
    margin: 0 auto;
}
.auth-card h1 {
    margin-bottom: 6px;
}
.auth-card > p {
    margin-top: 0;
    color: #5e6f89;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.agent-dashboard {
    display: grid;
    gap: 18px;
}
.agent-hero-card,
.agent-hero-surface {
    border-radius: 32px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(21, 24, 36, 0.95), rgba(34, 44, 67, 0.95));
    color: #fdfdfb;
    border: 1px solid rgba(201, 161, 85, 0.35);
    box-shadow: 0 35px 70px rgba(5, 9, 19, 0.45);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 26px;
}
.agent-hero-card .btn-outline,
.agent-hero-surface .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
}
.agent-hero-card .btn-outline:hover,
.agent-hero-surface .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}
.agent-hero-card.agent-hero-surface.agent-header-sales {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(auto, 0.8fr);
    gap: 20px;
    align-items: flex-start;
    padding: 26px 30px;
    margin-bottom: 24px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.hero-actions-right {
    justify-content: flex-end;
    align-items: flex-start;
}
.iapp-panel {
    border-radius: 28px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 24, 36, 0.12);
    box-shadow: 0 20px 50px rgba(5, 9, 19, 0.12);
}
.iapp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}
.toolbar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(21, 24, 36, 0.15);
    box-shadow: 0 20px 45px rgba(5, 9, 19, 0.12);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.iapp-filter-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.iapp-filter-row .iapp-filter-field {
    width: 100%;
}
.iapp-filter-row .iapp-filter-actions {
    justify-content: flex-end;
}
.iapp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.iapp-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.iapp-field-label {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}
.iapp-filter-field select,
.iapp-filter-field input {
    border-radius: 12px;
    border: 1px solid rgba(21, 24, 36, 0.15);
    padding: 10px 14px;
    font-size: 0.95rem;
}
.iapp-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.lead-hero-copy {
    display: grid;
    gap: 12px;
    max-width: 520px;
}
.lead-hero-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    flex: 0 0 auto;
    justify-self: end;
    align-self: center;
}
.lead-hero-metric {
    min-width: 110px;
    flex: 0 0 auto;
    max-width: 130px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(4px);
    text-align: center;
}
.lead-hero-metric .metric-title {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}
.lead-hero-metric .metric-secondary {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}
.lead-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}
.lead-hero-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.lead-hero-metric .metric-value {
    font-size: 2rem;
    display: block;
    margin: 8px 0;
    line-height: 1;
}
.iapp-table-card {
    border-radius: 26px;
    border: 1px solid rgba(21, 24, 36, 0.15);
    background: rgba(255, 255, 255, 0.95);
    padding: 18px;
    box-shadow: 0 15px 40px rgba(5, 9, 19, 0.1);
    margin-top: 8px;
}
.iapp-table-card .table-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.iapp-table-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(21, 24, 36, 0.2);
    margin-bottom: 12px;
}
.iapp-table-note {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.iapp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.iapp-status-new-leads {
    background: rgba(21, 24, 36, 0.2);
    color: var(--charcoal-dark);
}
.iapp-status-documents-in-review {
    background: rgba(201, 161, 85, 0.18);
    color: #3b2d13;
}
.iapp-status-documents-approved,
.iapp-status-documents-rejected {
    background: rgba(92, 68, 147, 0.15);
    color: #34235e;
}
.iapp-status-application-in-processing,
.iapp-status-bdm-pending {
    background: rgba(26, 140, 153, 0.15);
    color: #0f4349;
}
.iapp-status-agent-signed-the-agreement,
.iapp-status-agent-activated {
    background: rgba(86, 142, 70, 0.15);
    color: #31552c;
}
.agent-hero-card.agent-hero-surface.agent-header-sales .lead-view-toggle {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
}
.agent-hero-card.agent-hero-surface.agent-header-sales .lead-view-toggle-btn {
    border-radius: 10px;
    padding: 8px 18px;
}
.agent-hero-card.agent-hero-surface.agent-header-sales .lead-view-toggle-btn.is-active {
    color: #0b1225;
    background: #fffdfc;
}
@media (max-width: 1024px) {
    .agent-hero-card.agent-hero-surface.agent-header-sales {
        grid-template-columns: 1fr;
    }
    .lead-hero-top {
        grid-template-columns: 1fr;
    }
    .lead-hero-stats-row {
        flex-wrap: wrap;
        justify-content: flex-start;
        display: none;
    }
}
@media (max-width: 768px) {
    .agent-hero-card.agent-hero-surface.agent-header-sales {
        text-align: left;
    }
    .lead-hero-stats-row {
        flex-direction: column;
        display: none;
    }
    .lead-hero-actions {
        justify-content: space-between;
    }
}
.portal-shell,
.portal-app,
.portal-content,
.portal-wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.portal-shell {
    justify-items: stretch;
}
.portal-app {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .toolbar-card {
        justify-content: flex-start;
    }
}
.agent-hero-surface .portal-title,
.agent-hero-surface .hero-heading,
.hero-heading {
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.45);
}
.agent-hero-surface .portal-subtitle,
.agent-hero-surface .hero-subtitle {
    color: rgba(255,255,255,0.8);
}
.agent-hero-card.agent-hero-surface.agent-header-sales.is-list-view .lead-hero-stats-row {
    display: none;
}
.agent-hero-card .portal-title,
.portal-body .agent-hero-card .portal-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.agent-hero-card .portal-subtitle,
.portal-body .agent-hero-card .portal-subtitle {
    color: rgba(255,255,255,0.85);
}
.agent-header-sales .portal-title {
    color: var(--charcoal-dark);
}
.agent-header-sales .portal-subtitle {
    color: var(--ink-soft);
}
.agent-hero-premium .agent-hero-actions a.btn-outline {
    border-color: rgba(255,255,255,0.4);
}
.agent-hero-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 14px;
    border: 1px solid rgba(26, 140, 153, 0.4);
    margin-right: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--midnight-teal);
}
.agent-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.agent-status-grid.stat-focus {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.agent-status-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #dfe7f9;
    box-shadow: 0 6px 18px rgba(19, 30, 58, 0.04);
}
.agent-status-label {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7f9f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.agent-status-value {
    margin: 6px 0 0;
    font-size: 2rem;
    font-weight: 700;
    color: #151f46;
}
.status-progress {
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(26, 140, 153, 0.2);
}
.status-progress > div {
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 140, 153, 0.9), rgba(201, 161, 85, 0.9));
    border-radius: inherit;
}
.agent-lead-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.agent-lead-modern .agent-lead-list {
    background: var(--midnight-panel-soft);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.1);
    box-shadow: 0 15px 30px rgba(5, 9, 19, 0.08);
}
.agent-lead-list header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.agent-lead-list h2 {
    margin: 0;
    font-size: 1.2rem;
}
.lead-snip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(21, 24, 36, 0.1);
}
.lead-snip:last-child {
    border-bottom: none;
}
.lead-name {
    margin: 0;
    font-weight: 700;
}
.lead-meta {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.lead-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lead-badge {
    font-size: 0.75rem;
    background: rgba(26, 140, 153, 0.18);
    color: #0f4349;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(26, 140, 153, 0.4);
}
.agent-lead-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.agent-panel {
    padding: 20px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(248, 244, 237, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(26, 140, 153, 0.12);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(5, 9, 19, 0.18);
}
.agent-panel a.btn-primary {
    margin-top: 8px;
}
.agent-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.agent-source-card {
    background: var(--midnight-panel-soft);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.12);
}
.agent-source-card header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.agent-source-note {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.agent-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    align-items: center;
}
.agent-hero-meta small {
    color: rgba(255, 255, 255, 0.7);
}
.agent-hero-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}
.agent-hero-value {
    margin: 4px 0 0;
    font-size: 1.9rem;
    font-weight: 700;
}
.agent-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.agent-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.agent-status-card {
    background: var(--midnight-panel);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.12);
    box-shadow: 0 6px 18px rgba(5, 9, 19, 0.08);
}
.agent-status-label {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.agent-status-value {
    margin: 6px 0 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--charcoal-dark);
}

.agent-lead-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.agent-lead-list {
    background: var(--midnight-panel-soft);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.1);
    box-shadow: 0 15px 30px rgba(5, 9, 19, 0.08);
}
.agent-lead-list header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.agent-lead-list h2 {
    margin: 0;
    font-size: 1.2rem;
}
.agent-lead-list span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.lead-snip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(21, 24, 36, 0.1);
}
.lead-snip:last-child {
    border-bottom: none;
}
.lead-meta {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.lead-badge {
    font-size: 0.75rem;
    background: rgba(26, 140, 153, 0.18);
    color: #0f4349;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(26, 140, 153, 0.4);
}
.agent-lead-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.agent-panel {
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(26, 140, 153, 0.15);
    color: var(--charcoal);
    box-shadow: 0 12px 30px rgba(5, 9, 19, 0.15);
}
.agent-panel-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.agent-panel-value {
    margin: 6px 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal-dark);
}
.agent-panel-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
}
.agent-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.agent-source-card {
    background: var(--midnight-panel-soft);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.12);
    box-shadow: 0 12px 24px rgba(5, 9, 19, 0.08);
}
.agent-source-card header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(26, 140, 153, 0.15);
    overflow: hidden;
}
.progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 140, 153, 0.95), rgba(201, 161, 85, 0.9));
}
.link-button {
    font-size: 0.85rem;
    color: #8f7e53;
}
.admin-dashboard {
    display: grid;
    gap: 26px;
}
.admin-hero-surface {
    border-radius: 26px;
    padding: 32px;
    background:
        radial-gradient(700px 260px at -5% 20%, rgba(214, 182, 108, 0.25), transparent 55%),
        linear-gradient(135deg, rgba(12, 29, 61, 0.95), rgba(9, 20, 52, 0.92));
    color: #fff;
    box-shadow: 0 35px 70px rgba(8, 6, 30, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.hero-copy h1, .hero-heading {
    margin: 0 0 6px;
    font-size: clamp(2rem, 3vw, 2.4rem);
}
.hero-copy .hero-eyebrow {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.82);
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    margin-top: 6px;
    max-width: 520px;
}
.hero-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.hero-stats article {
    padding: 16px 14px;
    border-radius: 18px;
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(26, 140, 153, 0.12);
    text-align: center;
    box-shadow: 0 15px 40px rgba(5, 9, 19, 0.08);
}
.hero-stats h3 {
    margin: 6px 0 2px;
    font-size: 1.95rem;
    font-weight: 700;
}
.hero-stats small {
    color: rgba(255, 255, 255, 0.7);
}
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.metric-card {
    padding: 22px;
    border-radius: 18px;
    background: var(--midnight-panel);
    border: 1px solid rgba(21, 24, 36, 0.1);
    box-shadow: 0 18px 50px rgba(9, 12, 40, 0.08);
}
.metric-card header span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}
.metric-card h2 {
    margin: 12px 0 6px;
    font-size: 2.2rem;
    color: var(--charcoal-dark);
}
.metric-card p {
    margin: 0;
    color: var(--muted);
}
.metric-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.metric-actions a {
    color: var(--midnight-teal);
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}
.panel {
    border-radius: 22px;
    padding: 22px 26px 28px;
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(26, 140, 153, 0.15);
    box-shadow: 0 20px 60px rgba(5, 9, 19, 0.15);
}
.agent-status-panel,
.agent-leads-panel,
.agent-source-panel {
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 237, 0.95));
    border: 1px solid rgba(26, 140, 153, 0.1);
    box-shadow: 0 18px 45px rgba(5, 9, 19, 0.12);
    margin-top: 18px;
}
.marketing-hero-panel {
    border-radius: 26px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 237, 0.95));
    border: 1px solid rgba(26, 140, 153, 0.15);
    box-shadow: 0 20px 50px rgba(5, 9, 19, 0.15);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.agent-lead-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.lead-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}
.panel header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.panel-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.panel h2 {
    margin: 0;
    font-size: 1.2rem;
}
.panel-note {
    font-size: 0.85rem;
    color: var(--muted);
}
.panel-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.panel-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(21, 24, 36, 0.12);
}
.panel-row:last-child {
    border-bottom: none;
}
.panel-row strong {
    font-size: 1rem;
}
.panel-row span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge-status {
    background: rgba(26, 140, 153, 0.15);
    border: 1px solid rgba(26, 140, 153, 0.4);
    color: #0f4349;
}
.badge-gold {
    background: rgba(201, 161, 85, 0.2);
    border: 1px solid rgba(201, 161, 85, 0.6);
    color: #3c2e16;
}
.panel-transactions .panel-content {
    margin-top: 24px;
}
.agent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(21, 24, 36, 0.12);
}
.agent-row:last-child {
    border-bottom: none;
}
.admin-transactions table {
    font-size: 0.9rem;
}
.admin-transactions th {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #5b6378;
}
.admin-transactions td {
    font-weight: 600;
    color: #1b2449;
}
.feature-list {
    margin: 10px 0 14px;
    padding-left: 18px;
    color: #c6cbe0;
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
}
.store-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-radius: 20px;
    border: 1px solid rgba(201, 161, 85, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 237, 0.9)),
        radial-gradient(circle at 15% 20%, rgba(26, 140, 153, 0.22), transparent 45%);
    margin-bottom: 22px;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--ink);
}
.store-hero-meta {
    display: flex;
    gap: 20px;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.store-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.store-package-card {
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.95));
    border: 1px solid rgba(201, 161, 85, 0.25);
    box-shadow: 0 20px 45px rgba(5, 9, 19, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 260px;
}
.store-package-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.store-package-card h3 {
    margin: 0;
    font-size: 1.33rem;
    color: var(--charcoal-dark);
}
.store-package-credit {
    margin: 6px 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.store-package-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--midnight-teal);
}
.store-package-action {
    margin-top: auto;
}
.store-create-panel {
    display: none;
    margin-bottom: 20px;
}
.store-create-panel.is-open {
    display: block;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1/-1; }
.form-label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
label { margin-bottom: 6px; }
input, select, textarea {
    border: 1px solid rgba(21, 24, 36, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    width: 100%;
    background: var(--midnight-panel-soft);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--midnight-teal-soft); border-color: var(--midnight-teal); }
.field-help {
    font-size: 0.8rem;
    color: #5e6f89;
    font-weight: 500;
}
.field-error {
    font-size: 0.8rem;
    color: #9a1616;
    font-weight: 700;
}
.required-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #ffe7e7;
    color: #9a1616;
}
.form-section {
    border: 1px solid #e4ebf7;
    border-radius: 12px;
    padding: 14px;
    background: #fcfdff;
}
.form-section h3 {
    margin: 0 0 6px;
}
.form-section .section-note {
    margin: 0 0 12px;
    font-size: 0.86rem;
    color: #5e6f89;
}
.upload-card {
    border: 1px solid #e4ebf7;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
}
.upload-card.is-required {
    border-color: #f2c0c0;
    background: #fff5f5;
}
.signature-box {
    border: 1px solid #e4ebf7;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.signature-box.is-required {
    border-color: #f2c0c0;
    background: #fff5f5;
}
.btn-primary, .btn-outline, .btn-danger, .link-button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-whatsapp {
    border: 1px solid rgba(26, 140, 153, 0.6);
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(26, 140, 153, 1), rgba(201, 161, 85, 0.85));
    color: #fff;
    box-shadow: 0 10px 22px rgba(5, 9, 19, 0.25);
}
.btn-whatsapp:hover {
    filter: brightness(1.05);
}
.btn-icon {
    width: 16px;
    height: 16px;
}
.btn-primary {
    background: linear-gradient(135deg, rgba(26, 140, 153, 0.95), rgba(201, 161, 85, 0.95));
    color: #fff;
    box-shadow: 0 10px 22px rgba(5, 9, 19, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { border: 1px solid rgba(26, 140, 153, 0.35); background: transparent; color: var(--charcoal-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.link-button { background: transparent; padding: 0; color: var(--ink); }
.alert { border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.alert.success { background: #e7f8ef; border: 1px solid #baebcd; color: var(--ok); }
.alert.danger { background: #ffecec; border: 1px solid #f7bcbc; color: #8e1313; }
.portal-wide {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
    min-width: 0;
}
.portal-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}
.sidebar, .portal-content {
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
}
.sidebar {
    display: grid;
    gap: 10px;
    align-content: flex-start;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(22, 24, 36, 0.85), rgba(22, 24, 36, 0.65));
    border: 1px solid rgba(255,255,255,0.18);
}
.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-group-label {
    margin: 10px 6px 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,204,153,0.18);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,215,180,0.85);
}
.sidebar a {
    position: relative;
    padding: 12px 18px;
    margin-left: -2px;
    border-radius: 14px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.96rem;
    border: 1px solid transparent;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
}
.sidebar a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.sidebar a::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    transition: background .18s ease;
}
.sidebar a.active {
    background: rgba(25, 140, 153, 0.2);
    border-color: var(--midnight-teal);
    box-shadow: inset 0 0 0 1px rgba(201, 161, 85, 0.25);
    font-weight: 700;
    color: #fff;
}
.sidebar a.active::after {
    background: linear-gradient(180deg, #ffe69f, #d89619);
}
.portal-content {
    padding: 20px;
}
.portal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #5d6f8c;
    margin-bottom: 10px;
}
.portal-title {
    margin: 0;
    letter-spacing: 0.01em;
    color: var(--charcoal-dark);
}
.portal-subtitle {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.section-stack {
    display: grid;
    gap: 14px;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}
.iappointment-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.iappointment-header {
    padding: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 250, 255, 0.96) 100%);
    border: 1px solid #d9e4f6;
}
.iappointment-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.iappointment-head-counter {
    display: flex;
    justify-content: flex-end;
}
.iappointment-head-copy .portal-title {
    font-size: 1.28rem;
}
.iappointment-head-copy .portal-subtitle {
    margin-top: 4px;
}
.iappointment-head-meta {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.iappointment-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1def3;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #35507a;
    background: #f5f9ff;
}
.approval-toolbar {
    gap: 8px;
    align-items: stretch;
}
.approval-control-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.approval-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: center;
}
.approval-filter-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
}
.approval-filter-form select,
.approval-filter-form input {
    border-radius: 12px;
    border: 1px solid rgba(21, 24, 36, 0.18);
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    color: var(--charcoal-dark);
}
.approval-filter-form button {
    justify-self: end;
    padding: 10px 18px;
}
.approval-bottom-actions {
    display: flex;
    justify-content: flex-end;
}
.approval-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.distribution-stats-grid .approval-stat-card {
    padding: 9px 12px;
}
.distribution-top-actions {
    display: flex;
    justify-content: flex-end;
}
.distribution-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(21, 24, 36, 0.12);
}
.distribution-tab {
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.distribution-tab.is-active {
    border-color: rgba(26, 140, 153, 0.45);
    background: #fff;
    color: var(--charcoal-dark);
    box-shadow: 0 4px 12px rgba(5, 9, 19, 0.08);
}
.distribution-panel {
    display: none;
}
.distribution-panel.is-active {
    display: block;
}
.distribution-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 8px;
    align-items: end;
}
.distribution-filter-form label:first-child {
    min-width: 170px;
}
.distribution-filter-form label:nth-child(2) {
    min-width: 180px;
}
.distribution-section-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.12);
    background: var(--midnight-panel-soft);
    box-shadow: 0 10px 26px rgba(5, 9, 19, 0.08);
}
.distribution-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.distribution-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.approval-stat-card {
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: 12px;
    background: var(--midnight-panel);
    padding: 12px 14px;
    box-shadow: 0 6px 14px rgba(5, 9, 19, 0.08);
}
.approval-stat-label {
    margin: 0;
    color: #647a9b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.approval-stat-value {
    margin: 4px 0 0;
    color: #152a48;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}
.approval-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 8px;
    align-items: end;
}
.approval-filter-form label {
    min-width: 140px;
}
.approval-filter-form label:nth-child(2) {
    min-width: 220px;
}
.approval-bulk-bar {
    gap: 8px;
    align-items: end;
    justify-content: space-between;
}
.approval-bulk-bar label {
    min-width: 220px;
}
.toolbar .inline-form {
    margin-right: 0;
}
.inline-form.toolbar-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 14px rgba(19, 30, 58, 0.05);
}
.lead-control-bar {
    border: 1px solid rgba(21, 24, 36, 0.12);
    background: var(--midnight-panel-soft);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(5, 9, 19, 0.08);
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
}
.lead-view-toggle {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(21, 24, 36, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}
.lead-view-toggle-btn {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 9px;
    border: 1px solid transparent;
    padding: 7px 14px;
    line-height: 1;
}
.lead-view-toggle-btn.is-active {
    color: var(--charcoal-dark);
    background: #fff;
    border-color: rgba(26, 140, 153, 0.3);
    box-shadow: 0 4px 10px rgba(5, 9, 19, 0.08);
}
.lead-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}
.lead-filter-form label {
    display: grid;
    gap: 4px;
    min-width: 170px;
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}
.lead-control-panel {
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 161, 85, 0.25);
    box-shadow: 0 20px 45px rgba(5, 9, 19, 0.08);
    margin-top: 18px;
}
.lead-control-panel .lead-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lead-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.lead-filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.lead-filter-single-row {
    flex-wrap: nowrap;
    overflow-x: auto;
}
.lead-filter-actions-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.lead-view-toggle-rt {
    margin-left: auto;
}
.lead-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.lead-field-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(15, 23, 45, 0.8);
}
.lead-filter-field select {
    border-radius: 12px;
    border: 1px solid rgba(21, 24, 36, 0.18);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    color: var(--charcoal-dark);
    transition: border-color 0.2s ease;
}
.lead-filter-field select:focus {
    outline: none;
    border-color: rgba(201, 161, 85, 0.7);
    box-shadow: 0 0 0 3px rgba(201, 161, 85, 0.15);
}
.lead-control-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.lead-filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.lead-filter-actions .btn-primary {
    background: linear-gradient(135deg, rgba(201, 161, 85, 0.9), rgba(201, 161, 85, 0.65));
    border: none;
}
.lead-filter-actions .btn-outline {
    border-color: rgba(21, 24, 36, 0.3);
    color: var(--charcoal-dark);
}
.lead-control-panel .lead-filter-actions .btn-outline:hover {
    border-color: rgba(21, 24, 36, 0.6);
}
.lead-control-panel .lead-filter-actions .btn-primary:hover {
    filter: brightness(1.05);
}
.lead-control-panel .lead-filter-actions a.btn-outline {
    text-decoration: none;
}
.lead-control-panel + .kanban-board,
.lead-control-panel + .table-shell {
    margin-top: 12px;
}
.table-shell {
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: 14px;
    overflow: auto;
    background: var(--midnight-panel-soft);
    box-shadow: 0 12px 35px rgba(5, 9, 19, 0.08);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th, .table td { border-bottom: 1px solid rgba(21, 24, 36, 0.08); text-align: left; padding: 12px; vertical-align: top; }
.table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--midnight-panel);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.table tbody tr:nth-child(even) { background: var(--midnight-panel-soft); }
.table tbody tr:hover { background: #fffdf8; }
.inline-form { display: inline-flex; gap: 8px; align-items: end; margin-right: 6px; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 16px; }
.action-stack {
    display: grid;
    gap: 8px;
    justify-items: start;
}
.action-stack form {
    margin: 0;
}
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sort-link:hover { color: var(--midnight-teal); }
.lead-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.badge-premium { background: rgba(201,161,85,0.15); color: #3b2d13; border-color: rgba(201,161,85,0.35); }
.badge-ads { background: rgba(26, 140, 153, 0.15); color: #0f4349; border-color: rgba(26, 140, 153, 0.4); }
.badge-diamond { background: rgba(92, 68, 147, 0.15); color: #34235e; border-color: rgba(92, 68, 147, 0.4); }
.badge-default { background: rgba(95, 105, 131, 0.15); color: #2f3747; border-color: rgba(95, 105, 131, 0.35); }
.builder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.builder-panel { display: grid; gap: 12px; align-content: start; }
.builder-preview { min-height: 420px; }
.landing-preview {
    min-height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.95));
    border-radius: 14px;
    color: var(--charcoal-dark);
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(26, 140, 153, 0.1);
}
.landing-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}
.cropper-dialog {
    width: min(820px, 92vw);
    border: 1px solid #d7def2;
    border-radius: 12px;
    padding: 18px;
}
.cropper-dialog::backdrop { background: rgba(10, 20, 48, 0.46); }
.cropper-dialog canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d4def5;
    display: block;
    margin-bottom: 10px;
    cursor: move;
}
.lead-detail-modal {
    width: min(960px, 92vw);
    border: 1px solid rgba(21, 24, 36, 0.2);
    border-radius: 26px;
    padding: 0;
    background: var(--glass-panel);
    box-shadow: 0 30px 70px rgba(5, 9, 19, 0.3);
}
.lead-detail-modal::backdrop { background: rgba(5, 9, 19, 0.55); }
.lead-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 24px 28px 10px;
}
.lead-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 0 28px 24px;
}
.lead-detail-grid .card {
    box-shadow: 0 12px 25px rgba(5, 9, 19, 0.1);
    border-color: rgba(21, 24, 36, 0.12);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 16px;
}
.lead-detail-grid p {
    margin: 0 0 10px;
}
.event-list {
    max-height: 420px;
    overflow: auto;
    display: grid;
    gap: 8px;
}
.event-item {
    border: 1px solid #e7ecf8;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfcff;
}
.modal-label-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
.kanban-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 26px;
    border: 1px solid rgba(21, 24, 36, 0.18);
    box-shadow: 0 25px 60px rgba(5, 9, 19, 0.16);
    padding: 22px;
    margin-top: 18px;
}
.kanban-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.kanban-panel-head p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.lead-panel-note {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 340px);
    gap: 18px;
    align-items: start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
}
.kanban-column {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 237, 0.92));
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: 18px;
    min-height: 460px;
    display: grid;
    grid-template-rows: auto 1fr;
    scroll-snap-align: start;
}
.kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(21, 24, 36, 0.1);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px 18px 0 0;
}
.kanban-column-head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--charcoal-dark);
}
.kanban-count {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(201, 161, 85, 0.18);
    border: 1px solid rgba(201, 161, 85, 0.45);
    color: #3b2d13;
}
.kanban-column-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.kanban-sort-toggle {
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(21, 24, 36, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--charcoal-dark);
    border-radius: 10px;
    cursor: pointer;
}
.kanban-sort-toggle:hover {
    background: rgba(201, 161, 85, 0.15);
}
.kanban-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 35;
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(21, 24, 36, 0.15);
    border-radius: 14px;
    min-width: 190px;
    display: grid;
    box-shadow: 0 10px 30px rgba(5, 9, 19, 0.15);
}
.kanban-sort-menu[hidden] {
    display: none !important;
}
.kanban-sort-menu button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--charcoal-dark);
    cursor: pointer;
}
.kanban-sort-menu button:hover {
    background: rgba(201, 161, 85, 0.15);
}
.kanban-dropzone {
    padding: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 420px;
}
.kanban-dropzone.is-over {
    background: rgba(201, 161, 85, 0.08);
    border-radius: 0 0 18px 18px;
}
.kanban-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(21, 24, 36, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 6px;
    box-shadow: 0 10px 25px rgba(5, 9, 19, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(5, 9, 19, 0.2);
}
.kanban-card-premium {
    background: linear-gradient(180deg, rgba(201, 161, 85, 0.18), rgba(255, 255, 255, 0.95));
    border-color: rgba(201, 161, 85, 0.45);
}
.kanban-card-ads {
    background: linear-gradient(180deg, rgba(26, 140, 153, 0.18), rgba(255, 255, 255, 0.95));
    border-color: rgba(26, 140, 153, 0.35);
}
.kanban-card-diamond {
    background: linear-gradient(180deg, rgba(92, 68, 147, 0.18), rgba(255, 255, 255, 0.95));
    border-color: rgba(92, 68, 147, 0.35);
}
.kanban-card-default {
    background: rgba(255, 255, 255, 0.96);
}
.kanban-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.kanban-card-title {
    margin: 0;
    font-weight: 700;
    color: var(--charcoal-dark);
}
.kanban-card-meta {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.kanban-card-arrow {
    justify-self: end;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink-soft);
    line-height: 1;
}
.kanban-empty {
    border: 1px dashed rgba(21, 24, 36, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}
.lead-control-panel {
    border-radius: 22px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 140, 153, 0.18);
    box-shadow: 0 20px 45px rgba(5, 9, 19, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.lead-list-panel {
    border-radius: 24px;
    padding: 20px;
    background: var(--midnight-panel-soft);
    border: 1px solid rgba(26, 140, 153, 0.15);
    box-shadow: 0 20px 50px rgba(5, 9, 19, 0.12);
    margin-top: 18px;
}
.profile-head-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #d9e2f4;
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
}
.profile-avatar-wrap {
    width: 92px;
    height: 92px;
}
.profile-avatar-wrap.profile-avatar-wrap-lg {
    width: 124px;
    height: 124px;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #c7d5ef;
    background: #fff;
}
.profile-avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #1f3358;
    background: linear-gradient(135deg, #e8efff, #f4f8ff);
}
.profile-head-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}
.rank-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7c491;
    background: linear-gradient(180deg, #fffdf7, #fff7e5);
    color: #5c4821;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.profile-crop-dialog {
    width: min(740px, 92vw);
    border-radius: 14px;
}
.profile-crop-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    align-items: start;
}
.profile-crop-preview h3 {
    margin: 0 0 8px;
}
.profile-crop-preview canvas {
    width: 100%;
    max-width: 390px;
    background: #f7faff;
    border-radius: 12px;
}
.profile-crop-controls {
    border: 1px solid #d6e0f1;
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
}
.profile-crop-controls h4 {
    margin: 0 0 8px;
}
.agent-card-head {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    align-items: center;
}
.agent-mini-avatar {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ccd9ef;
}
.agent-mini-avatar-fallback {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    border: 1px solid #ccd9ef;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #1f3358;
    background: linear-gradient(135deg, #e8efff, #f4f8ff);
}
.agent-directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 28px;
    border: 1px solid rgba(26, 140, 153, 0.18);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 237, 0.92));
    box-shadow: 0 25px 50px rgba(5, 9, 19, 0.12);
}
.agent-directory-counter {
    font-weight: 700;
    color: var(--charcoal);
    border-radius: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 140, 153, 0.25);
}
.agent-directory-toolbar {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 24, 36, 0.12);
    box-shadow: 0 22px 50px rgba(5, 9, 19, 0.08);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}
.agent-directory-toolbar label {
    margin: 0;
}
.agent-directory-toolbar input,
.agent-directory-toolbar select {
    border-radius: 12px;
    border: 1px solid rgba(21, 24, 36, 0.15);
    padding: 12px 14px;
}
.agent-directory-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: center;
}
.agent-directory-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.agent-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.agent-directory-card {
    position: relative;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(21, 24, 36, 0.1);
    box-shadow: 0 22px 40px rgba(5, 9, 19, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agent-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(5, 9, 19, 0.15);
}
.agent-directory-card .agent-card-head {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
}
.agent-directory-card .agent-mini-avatar,
.agent-directory-card .agent-mini-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.15);
    box-shadow: 0 10px 30px rgba(5, 9, 19, 0.12);
}
.agent-card-info h3 {
    margin: 0;
    font-size: 1.1rem;
}
.agent-card-line {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}
.agent-directory-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.agent-directory-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--charcoal-dark);
    border: 1px solid rgba(26, 140, 153, 0.2);
    background: rgba(255, 255, 255, 0.92);
}
.agent-directory-modal {
    border: none;
    border-radius: 26px;
    padding: 0;
    background: transparent;
    box-shadow: 0 18px 55px rgba(10, 14, 32, 0.35);
}
.agent-directory-modal::backdrop {
    background: rgba(5, 8, 20, 0.6);
}
.agent-modal-resume {
    background: #fff;
    border-radius: 26px;
    min-width: clamp(360px, 80vw, 820px);
    padding: 32px;
    box-shadow: 0 18px 45px rgba(9, 11, 33, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.agent-modal-resume-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}
.agent-modal-avatar {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(26, 140, 153, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--midnight-teal);
}
.agent-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.agent-modal-title h3 {
    margin: 0;
}
.agent-modal-rank {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #92a0c8;
}
.agent-modal-subtitle {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 45, 0.6);
}
.agent-modal-subtext {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: rgba(15, 23, 45, 0.55);
}
.agent-modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.agent-modal-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 24, 36, 0.1);
    background: rgba(244, 243, 239, 0.9);
}
.agent-modal-section-title {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.agent-modal-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.agent-profile-actions {
    display: flex;
    gap: 10px;
    padding: 0 24px 24px;
}
.agent-profile-actions .btn-primary,
.agent-profile-actions .btn-outline {
    flex: 1;
}
.agent-directory-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(21, 24, 36, 0.08);
    display: grid;
    gap: 6px;
}
.agent-directory-meta p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
}
.getb-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.getb-header-logo {
    width: auto;
    height: 72px;
    max-width: min(320px, 70vw);
    object-fit: contain;
    justify-self: end;
}
.getb-hero-card {
    border: 1px solid rgba(21, 24, 36, 0.12);
    background:
        radial-gradient(800px 280px at 5% 10%, rgba(26, 140, 153, 0.25), transparent 55%),
        radial-gradient(900px 260px at 110% -20%, rgba(201, 161, 85, 0.2), transparent 55%),
        linear-gradient(180deg, #fffdfa 0%, #f8f5ef 100%);
}
.getb-brand-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}
.getb-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--charcoal-dark);
    text-wrap: balance;
}
.getb-description {
    margin: 8px 0 0;
    color: var(--ink-soft);
    max-width: 72ch;
    font-size: 0.95rem;
    line-height: 1.55;
}
.getb-introducer-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: 14px;
    padding: 12px;
    background: var(--midnight-panel-soft);
}
.getb-introducer-avatar-wrap {
    width: 82px;
    height: 82px;
}
.getb-introducer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(21, 24, 36, 0.2);
    background: #fff;
}
.getb-introducer-avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--charcoal);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 244, 237, 0.95));
}
.getb-introducer-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.getb-introducer-name {
    margin: 3px 0 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--charcoal-dark);
}
.getb-introducer-chips {
    margin-top: 7px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.getb-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(26, 140, 153, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: var(--charcoal-dark);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}
.getb-chip-rank {
    border-color: rgba(201, 161, 85, 0.35);
    background: rgba(201, 161, 85, 0.2);
    color: #4a3812;
}
.getb-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.getb-meta-card {
    border: 1px solid rgba(21, 24, 36, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
    background: var(--midnight-panel-soft);
    box-shadow: 0 8px 20px rgba(5, 9, 19, 0.08);
}
.getb-meta-label {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
}
.getb-meta-value {
    margin: 4px 0 0;
    color: var(--charcoal-dark);
    font-size: 1rem;
    font-weight: 800;
}
.getb-form-card {
    border: 1px solid rgba(21, 24, 36, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 237, 0.9));
}
.getb-form-card .form-section {
    border: 1px solid rgba(21, 24, 36, 0.12);
    background: var(--midnight-panel-soft);
    border-radius: 16px;
    padding: 16px;
}
.getb-form-card .form-section h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--charcoal-dark);
}
.getb-form-card .section-note {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 0.86rem;
}
.getb-form-card label {
    color: var(--ink-soft);
}
.getb-form-card input,
.getb-form-card select,
.getb-form-card textarea {
    border-color: rgba(21, 24, 36, 0.15);
    background: var(--midnight-panel-soft);
}
.getb-form-card input:focus,
.getb-form-card select:focus,
.getb-form-card textarea:focus {
    border-color: var(--midnight-teal);
    box-shadow: 0 0 0 4px rgba(26, 140, 153, 0.15);
}
.portal-body {
    --portal-bg: #fdfaf7;
    --portal-panel: rgba(255, 255, 255, 0.97);
    --portal-ink: var(--charcoal-dark);
    --portal-muted: var(--ink-soft);
    --portal-line: rgba(21, 24, 36, 0.15);
    --portal-strong: var(--charcoal);
    --portal-accent: var(--midnight-teal);
    --portal-accent-2: var(--midnight-gold);
    --portal-accent-soft: rgba(26, 140, 153, 0.2);
    margin: 0;
    font-family: "Sora", "Manrope", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--portal-ink);
    background:
        linear-gradient(180deg, #fffdfa 0%, #f8f5ef 40%, #f3ede3 100%);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}
.portal-app {
    padding: 20px 0 30px;
}
.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(201, 161, 85, 0.25);
    background:
        linear-gradient(180deg, rgba(24, 28, 40, 0.98), rgba(16, 21, 32, 0.95)),
        linear-gradient(90deg, rgba(201, 161, 85, 0.15), rgba(201, 161, 85, 0));
    box-shadow: 0 20px 45px rgba(5, 9, 19, 0.35);
    backdrop-filter: blur(18px);
}
.portal-topbar-inner {
    min-height: 64px;
    width: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.portal-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.portal-brand {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.portal-brand-logo {
    height: 36px;
    margin-right: 8px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25));
}
.portal-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
}
.portal-context {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.portal-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.portal-topbar .icon-button {
    border-radius: 50%;
    padding: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.portal-topbar .icon-button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.65);
}
.portal-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.portal-role-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--midnight-charcoal-dark);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 161, 85, 0.7);
}
.notifications-menu {
    position: relative;
}
.notifications-menu summary {
    list-style: none;
}
.notifications-menu summary::-webkit-details-marker {
    display: none;
}
.notifications-trigger {
    gap: 8px;
}
.notifications-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    background: #c02626;
    color: #fff;
    padding: 0 5px;
}
.notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, 88vw);
    max-height: 70vh;
    overflow: auto;
    border: 1px solid rgba(162, 180, 210, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(18, 33, 62, 0.18);
    padding: 10px;
    z-index: 200;
}
.notifications-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.notifications-panel-head h4 {
    margin: 0;
    font-size: 0.95rem;
}
.notifications-mark-all {
    color: #264371;
    font-size: 0.8rem;
    font-weight: 700;
}
.notifications-list {
    display: grid;
    gap: 7px;
}
.notification-item {
    border: 1px solid rgba(190, 203, 224, 0.72);
    border-radius: 10px;
    background: #fff;
}
.notification-item.is-unread {
    border-color: rgba(37, 86, 154, 0.5);
    box-shadow: inset 2px 0 0 #285a9e;
    background: rgba(241, 247, 255, 0.76);
}
.notification-open {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    cursor: pointer;
}
.notification-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #1e3558;
}
.notification-body {
    font-size: 0.8rem;
    color: #496389;
}
.notification-time {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #6d809f;
}
.notifications-empty {
    margin: 6px 0;
    font-size: 0.82rem;
    color: #607495;
}
.portal-body .portal-wide {
    padding: 0 20px;
}
.portal-body .portal-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}
.portal-body .sidebar,
.portal-body .portal-content {
    border-radius: var(--radius);
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(6, 12, 40, 0.25);
    padding: 26px;
    backdrop-filter: blur(32px);
}
.portal-body .sidebar {
    display: grid;
    gap: 12px;
    align-content: flex-start;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(22, 24, 36, 0.95), rgba(22, 24, 36, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 35px 80px rgba(5, 7, 18, 0.35);
    backdrop-filter: blur(26px);
}
.portal-body .sidebar-group-label {
    margin: 10px 6px 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,204,153,0.18);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,215,180,0.85);
}
.portal-body .sidebar a {
    position: relative;
    padding: 12px 18px;
    margin-left: -2px;
    border-radius: 14px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
}
.portal-body .sidebar a::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    transition: background .18s ease;
}
.portal-body .sidebar a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}
.portal-body .sidebar a.active {
    background: rgba(25, 140, 153, 0.2);
    border-color: var(--midnight-teal);
    box-shadow: inset 0 0 0 1px rgba(201, 161, 85, 0.25);
    font-weight: 700;
    color: #fff;
}
.portal-body .sidebar a.active::after {
    background: linear-gradient(180deg, rgba(255, 215, 148, 0.8), rgba(201, 161, 85, 0.8));
}
.portal-body .portal-content {
    border-radius: var(--radius);
    padding: 30px;
    background: var(--glass-panel);
}
.portal-body .portal-breadcrumb {
    font-weight: 700;
    color: var(--ink-soft);
}
.portal-body .portal-title {
    color: var(--portal-strong);
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(26, 140, 153, 0.2);
}
.portal-body .portal-subtitle {
    color: var(--portal-muted);
}
.portal-body .card {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(6, 12, 40, 0.15);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}
.portal-body .table-shell {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(6, 12, 40, 0.18);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);
}
.portal-body .table thead th {
    background: rgba(15, 43, 120, 0.08);
    color: #2b3d7b;
    border-bottom: 1px solid rgba(15, 43, 120, 0.2);
}
.portal-body .table tbody tr:hover {
    background: rgba(15, 43, 120, 0.04);
}
.portal-body .inline-form.toolbar-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}
.portal-body input,
.portal-body select,
.portal-body textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 43, 120, 0.3);
    color: #0f1f3a;
}
.portal-body input::placeholder,
.portal-body textarea::placeholder {
    color: rgba(15, 43, 120, 0.4);
}
.portal-body input:focus,
.portal-body select:focus,
.portal-body textarea:focus {
    outline: 2px solid rgba(15, 43, 120, 0.35);
    border-color: rgba(15, 43, 120, 0.8);
}
.portal-body .iappointment-header {
    border-color: rgba(158, 181, 213, 0.72);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.96) 100%);
}
.portal-body .iappointment-chip {
    color: #2f4a72;
    border-color: rgba(167, 146, 104, 0.35);
    background: rgba(255, 252, 246, 0.88);
}
.portal-body .agent-directory-header {
    border-color: rgba(26, 140, 153, 0.2);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.95));
}
.portal-body .agent-directory-counter,
.portal-body .agent-directory-chip {
    color: var(--charcoal-dark);
    border-color: rgba(26, 140, 153, 0.3);
    background: rgba(255, 255, 255, 0.88);
}
.portal-body .lead-control-bar {
    background: var(--midnight-panel-soft);
    border-color: rgba(26, 140, 153, 0.25);
}
.portal-body .lead-view-toggle {
    border-color: rgba(26, 140, 153, 0.25);
    background: rgba(26, 140, 153, 0.1);
}
.portal-body .lead-view-toggle-btn {
    color: var(--ink-soft);
}
.portal-body .lead-view-toggle-btn.is-active {
    color: var(--charcoal-dark);
    border-color: rgba(201, 161, 85, 0.45);
    box-shadow: 0 4px 12px rgba(5, 9, 19, 0.12);
}
.portal-body .portal-topbar .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.portal-body .portal-topbar .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.portal-body .portal-topbar .portal-public-link {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}
.portal-body .portal-topbar .portal-public-link:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}
.portal-body .portal-topbar .btn-primary {
    background: linear-gradient(135deg, rgba(26, 140, 153, 0.9), rgba(201, 161, 85, 0.9));
    color: #0b090f;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    box-shadow: 0 10px 30px rgba(5, 9, 19, 0.3);
}
.portal-topbar .notifications-trigger {
    padding: 0;
}
.portal-topbar .notifications-trigger {
    padding: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.notifications-menu summary {
    padding: 0;
}
.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}
.icon-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}
.icon-button .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.notifications-badge {
    transform: translate(6px, -6px);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.portal-topbar .notifications-menu {
    position: relative;
}
.portal-body .lead-badge {
    border-width: 1px;
}
.portal-body .badge-premium {
    background: rgba(201, 161, 85, 0.20);
    color: #3d2d12;
    border-color: rgba(201, 161, 85, 0.45);
}
.portal-body .badge-ads {
    background: rgba(26, 140, 153, 0.18);
    color: #0f4349;
    border-color: rgba(26, 140, 153, 0.45);
}
.portal-body .badge-diamond {
    background: rgba(92, 68, 147, 0.18);
    color: #34235e;
    border-color: rgba(92, 68, 147, 0.45);
}
.portal-body .lead-detail-modal {
    border-radius: 18px;
    border-color: rgba(26, 140, 153, 0.3);
    box-shadow: 0 20px 50px rgba(5, 9, 19, 0.2);
    background: var(--midnight-panel-soft);
}
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-body .portal-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .portal-body .portal-content { width: 100%; padding: 0; }
    body.menu-open .portal-body .portal-shell { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; }
    .portal-wide { padding: 0 14px; }
    .portal-body .portal-wide { padding: 0 8px; }

    .portal-body,
    .portal-body .portal-wide,
    .portal-body .portal-shell,
    .portal-body .portal-content {
        width: 100%;
        max-width: none;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        max-width: 320px;
        height: 100%;
        padding-top: 80px;
        margin: 0;
        border-radius: 0 24px 24px 0;
        transform: translateX(-110%);
        transition: transform 0.3s ease;
        z-index: 110;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.35);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .menu-overlay.active {
        display: block;
    }
    .portal-content {
        width: 100%;
        padding: 0;
    }
    .builder { grid-template-columns: 1fr; }
    .lead-detail-grid { grid-template-columns: 1fr; }
    .kanban-board { grid-auto-columns: minmax(240px, 280px); }
    .approval-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .distribution-top-actions {
        justify-content: flex-start;
    }
    .distribution-tabs {
        width: 100%;
    }
    .distribution-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .distribution-filter-form label:first-child,
    .distribution-filter-form label:nth-child(2) {
        min-width: 0;
    }
    .approval-control-grid {
        grid-template-columns: 1fr;
    }
    .approval-bottom-actions {
        justify-content: flex-start;
    }
    .approval-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .approval-filter-form label,
    .approval-filter-form label:nth-child(2),
    .approval-filter-form label:nth-child(3) {
        min-width: 0;
    }
    .approval-filter-form button {
        justify-self: stretch;
    }
    .approval-bulk-bar {
        grid-template-columns: 1fr;
    }
    .lead-filter-form {
        flex-direction: column;
    }
    .lead-filter-field {
        width: 100%;
    }
    .lead-filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    .lead-filter-actions button,
    .lead-filter-actions .btn-outline {
        width: auto;
    }
    .agent-directory-grid {
        grid-template-columns: 1fr;
    }
    .agent-directory-toolbar {
        width: 100%;
    }
    .agent-directory-toolbar label {
        min-width: 0;
        flex: 1 1 160px;
    }
    .agent-directory-toolbar-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .lead-view-toggle,
    .lead-filter-form {
        width: 100%;
    }
    .lead-view-toggle-btn {
        flex: 1 1 50%;
        text-align: center;
    }
    .lead-filter-form label {
        min-width: 0;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .kanban-board { grid-auto-columns: minmax(230px, 260px); }
    .approval-stats-grid {
        grid-template-columns: 1fr;
    }
    .distribution-section-card {
        padding: 10px;
    }
    .distribution-filter-form {
        grid-template-columns: 1fr;
    }
    .distribution-tab {
        width: 100%;
        text-align: left;
    }
    .approval-filter-form {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .approval-bulk-bar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .iappointment-toolbar .button-row,
    .iappointment-toolbar .toolbar-card {
        width: 100%;
    }
    .iappointment-header {
        padding: 12px;
    }
    .iappointment-head-top {
        flex-direction: column;
    }
    .iappointment-head-counter {
        width: 100%;
        justify-content: flex-start;
    }
    .agent-directory-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .agent-directory-grid {
        grid-template-columns: 1fr;
    }
    .agent-directory-toolbar {
        width: 100%;
    }
    .agent-directory-toolbar-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .lead-view-toggle,
    .lead-filter-form {
        width: 100%;
    }
    .lead-view-toggle-btn {
        flex: 1 1 50%;
        text-align: center;
    }
    .lead-filter-form label {
        min-width: 0;
        width: 100%;
    }
    .lead-filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
@media (max-width: 768px) {
    .cards-grid, .form-grid.two-col { grid-template-columns: 1fr; }
    .nav-wrap { flex-direction: column; align-items: flex-start; padding: 10px 0; }
    .form-section { padding: 12px; }
    .upload-card { padding: 9px; }
    .auth-card { padding: 16px; }
    .profile-head-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .profile-head-actions {
        justify-items: start;
    }
    .profile-crop-layout {
        grid-template-columns: 1fr;
    }
    .profile-crop-preview canvas {
        max-width: 100%;
    }
    .portal-topbar-inner {
        padding: 10px 14px;
        min-height: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .portal-topbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .portal-user {
        width: 100%;
        order: -1;
        white-space: normal;
    }
    .notifications-panel {
        left: 0;
        right: auto;
        width: min(520px, 94vw);
    }
    .portal-body .portal-wide {
        padding: 0 12px;
    }
    .getb-brand-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .getb-header-logo {
        justify-self: start;
    }
    .getb-title {
        font-size: 1.34rem;
    }
    .getb-meta-grid {
        grid-template-columns: 1fr;
    }
}
