/* ============================================
   Lawyer Portal – UI & Responsive Styles
   ============================================ */

:root {
    --lp-bg-dark: #090b12;
    --lp-bg-card: #111725;
    --lp-bg-input: #0d1220;
    --lp-border: #23293a;
    --lp-border-light: #2b3246;
    --lp-border-panel: #273048;
    --lp-text: #e7eaf3;
    --lp-text-muted: #aeb5c8;
    --lp-text-dim: #bbc2d5;
    --lp-accent: #f5c86a;
    --lp-accent-dark: #d5a953;
    --lp-radius: 12px;
    --lp-radius-sm: 10px;
    --lp-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --lp-shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.42);
    --lp-sidebar-width: 280px;
    --lp-touch-min: 44px;
    --lp-transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--lp-text);
    background: radial-gradient(ellipse 120% 80% at 20% 10%, #1b2440 0%, #0b1020 40%, #070a12 100%);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ---------- Global API loader ---------- */
[ng\:cloak], [ng-cloak], .ng-cloak { display: none !important; }

.lp-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(9, 11, 18, 0.85);
    backdrop-filter: blur(4px);
}

.lp-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--lp-border);
    border-top-color: var(--lp-accent);
    border-radius: 50%;
    animation: lp-spin 0.8s linear infinite;
}

.lp-loader-text {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--lp-text-muted);
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Login (standalone) ---------- */
.lp-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    gap: 0;
}

.lp-left {
    /* padding: clamp(20px, 4vw, 40px); */
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(139, 156, 204, 0.15);
}

.lp-brand {
    margin: 0 0 5px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.lp-subtitle {
    margin: 0;
    max-width: 420px;
    line-height: 1.65;
    color: var(--lp-text-muted);
    font-size: clamp(14px, 2vw, 16px);
}

.lp-right {
    /* padding: clamp(20px, 4vw, 40px); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--lp-border-panel);
    border-radius: 16px;
    background: rgba(17, 23, 37, 0.97);
    box-shadow: var(--lp-shadow-lg);
    padding: 20px;
}

.lp-title {
    margin: 0 0 8px;
    color: #fff;
    text-align: center;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
}

.lp-sub {
    margin: 0 0 15px;
    color: var(--lp-text-muted);
    text-align: center;
    font-size: 14px;
}

.lp-label {
    display: block;
    margin-bottom: 8px;
    color: #d7dded;
    font-size: 14px;
    font-weight: 600;
}

.lp-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 16px;
    transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(245, 200, 106, 0.2);
}

.lp-btn {
    width: 100%;
    border: 0;
    border-radius: var(--lp-radius-sm);
    padding: 14px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    cursor: pointer;
    transition: filter var(--lp-transition), transform 0.1s ease;
}

.lp-btn:hover {
    filter: brightness(1.08);
}

.lp-btn:active {
    transform: scale(0.98);
}

.lp-error {
    margin: 0 0 16px;
    border: 1px solid #8d3a4b;
    background: rgba(79, 26, 36, 0.5);
    color: #ffc7d0;
    border-radius: var(--lp-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
}

.lp-login-field-error {
    margin: 4px 0 12px;
    font-size: 13px;
    color: #ffc7d0;
}

/* ---------- Shell layout (dashboard, lawyers, leads) ---------- */
.lp-shell-inner {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--lp-sidebar-width) 1fr;
    background: var(--lp-bg-dark);
    color: var(--lp-text);
}

.lp-sidebar {
    padding: clamp(16px, 2.5vw, 24px);
    border-right: 1px solid var(--lp-border);
    background: linear-gradient(180deg, #070912 0%, #0e1322 100%);
    display: flex;
    height: 100%;
    flex-direction: column;
}

.lp-shell-inner .lp-brand {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: #fff;
}

.lp-tagline {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--lp-text-muted);
}

.lp-user {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border-light);
    background: rgba(255, 255, 255, 0.03);
}

.lp-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.lp-email {
    font-size: 13px;
    color: var(--lp-text-muted);
    word-break: break-all;
}

.lp-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--lp-radius-sm);
    color: #d2d8e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--lp-transition), color var(--lp-transition);
    min-height: var(--lp-touch-min);
    display: flex;
    align-items: center;
}

.lp-nav a:hover,
.lp-nav a.lp-active {
    background: #171d2d;
    color: var(--lp-accent);
}

.lp-content {
    padding: 10px;
    overflow-x: hidden;
    min-width: 0;
    margin: 10px;
    scrollbar-width: none;
}

.lp-topbar {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-heading {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #fff;
}

.lp-btn-logout {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--lp-radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    transition: filter var(--lp-transition);
    white-space: nowrap;
}

.lp-btn-logout:hover {
    filter: brightness(1.08);
}

/* ---------- Main panel & dashboard cards ---------- */
.lp-main-panel {
    max-width: 100%;
}

.lp-cards {
    margin-bottom: 24px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lp-card-dash {
    padding: 20px;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border-panel);
    background: var(--lp-bg-card);
    box-shadow: var(--lp-shadow);
    transition: border-color var(--lp-transition);
}

.lp-card-dash:hover {
    border-color: rgba(245, 200, 106, 0.2);
}

.lp-card-dash h3 {
    margin: 0 0 12px;
    color: var(--lp-text-dim);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-card-dash .lp-value {
    color: var(--lp-accent);
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 700;
}

.lp-card-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.lp-card-clickable:hover {
    border-color: var(--lp-accent);
}

.lp-muted {
    color: var(--lp-text-muted);
    font-size: 14px;
}

.lp-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lp-text-muted);
}

.lp-heygen-row {
    margin-bottom: 8px;
}

.lp-heygen-upload-line {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

/* ---------- Panel (lawyers, leads) ---------- */
.lp-panel {
    border: 1px solid var(--lp-border-panel);
    border-radius: 14px;
    background: var(--lp-bg-card);
    padding: clamp(16px, 3vw, 24px);
    box-shadow: var(--lp-shadow);
}

.lp-panel-head {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.lp-panel-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.lp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    /* flex-wrap: wrap; */
}

.lp-firm-leads-filters { gap: 12px; }
.lp-filter-label { font-size: 14px; font-weight: 500; color: var(--lp-text-muted, #9ca3af); white-space: nowrap; }
.lp-select, .lp-select-filter {
    padding: 10px 14px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 14px;
    min-width: 180px;
}
.lp-select:focus, .lp-select-filter:focus { outline: none; border-color: var(--lp-accent); }

.lp-search-input {
    width: 100%;
    min-width: 200px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 15px;
    transition: border-color var(--lp-transition);
}

.lp-search-input:focus {
    outline: none;
    border-color: var(--lp-accent);
}

.lp-search-input::placeholder {
    color: #6f7891;
}

.lp-btn-add {
    border: 0;
    border-radius: var(--lp-radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    transition: filter var(--lp-transition);
    white-space: nowrap;
}

.lp-btn-add:hover {
    filter: brightness(1.08);
}

/* ---------- Messages (success, error, info) ---------- */
.lp-msg {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
}

.lp-msg-success {
    color: #94f7b5;
    background: rgba(26, 54, 41, 0.5);
    border-color: #2c6d49;
}

.lp-msg-error {
    color: #ffb0b0;
    background: rgba(78, 31, 39, 0.45);
    border-color: #8b3b49;
}

.lp-msg-info {
    color: #c7d3f5;
    background: rgba(43, 56, 92, 0.35);
    border-color: #465683;
}

/* ---------- Tables ---------- */
.lp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--lp-radius-sm);
    margin-top: 8px;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.lp-table th,
.lp-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #283149;
    color: #d5dbec;
    font-size: 14px;
}

.lp-table th {
    color: var(--lp-accent);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-table tbody tr {
    transition: background 0.15s ease;
}

.lp-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lp-chip,
.lp-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #42507b;
    background: #1c2440;
    color: #d6ddff;
    font-size: 12px;
    font-weight: 500;
}

.lp-btn-chat {
    display: inline-block;
    border-radius: 8px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    transition: filter var(--lp-transition);
}

.lp-btn-chat:hover {
    filter: brightness(1.08);
}

/* ---------- Modal ---------- */
.lp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    overflow-y: auto;
}

.lp-modal-overlay.show {
    display: flex;
}

.lp-modal {
    width: 100%;
    max-width: 80%;
    border: 1px solid var(--lp-border-panel);
    border-radius: 14px;
    background: var(--lp-bg-card);
    box-shadow: var(--lp-shadow-lg);
    padding: 24px;
    margin: auto;
}

.lp-modal-head {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-modal-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.lp-btn-close {
    border: 0;
    background: transparent;
    color: #aeb7cc;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color var(--lp-transition);
}

.lp-btn-close:hover {
    color: #fff;
}

.lp-form-group {
    margin-bottom: 16px;
}

.lp-form-group label {
    display: block;
    margin-bottom: 6px;
   
    font-size: 14px;
    font-weight: 600;
}

.lp-required {
    color: #fca5a5;
}

.lp-form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 15px;
}

.lp-form-group input:focus {
    outline: none;
    border-color: var(--lp-accent);
}

.lp-form-group input:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.lp-form-group .lp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--lp-text-dim);
}

.lp-form-group .lp-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ---------- Profile page ---------- */
.lp-page-profile {
    /* padding: 10px; */
    /* max-width: 720px; */
}

.lp-profile-form .lp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lp-profile-form .lp-address-fields {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Profile photo (lawyer avatar/headshot) */
.lp-profile-photo-wrap {
    margin-bottom: 10px;
}
.lp-profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lp-bg-input);
    border: 2px solid var(--lp-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lp-profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lp-profile-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--lp-border-panel) 0%, var(--lp-bg-card) 100%);
    border: 2px solid var(--lp-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--lp-accent);
}

/* File upload zones (lawyer banner, firm logo, HeyGen background) */
.lp-upload-zone {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lp-border-light);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}



.lp-upload-preview {
    width: 100%;
    max-width: 320px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-upload-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px;
}
.lp-upload-icon {
    font-size: 32px;
    line-height: 1;
    opacity: 0.7;
}
.lp-upload-placeholder-text {
    font-size: 13px;
    font-weight: 500;
}

.lp-upload-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.lp-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    background: linear-gradient(135deg, #d4a855 0%, #f5c86a 100%);
    border: 1px solid rgba(245, 200, 106, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}


.lp-upload-filename {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Uploaded documents list (banner / logo / HeyGen) */
/* ---------- Profile tabs ---------- */
.lp-profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--lp-border);
}
.lp-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--lp-text-muted);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: -1px;
    transition: var(--lp-transition);
}
.lp-tab-btn:hover {
    color: var(--lp-text);
}
.lp-tab-btn.active {
    color: var(--lp-accent);
    border-bottom-color: var(--lp-accent);
}

/* Doc details tab */
.lp-doc-details {
    padding: 0 0 24px;
}
.lp-validation-error {
    margin: 8px 0 0;
    padding: 8px 12px;
    font-size: 13px;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.lp-required .lp-required-mark { color: #f87171; }
.lp-input-block { width: 100%; max-width: 100%; margin-top: 4px; margin-bottom: 8px; display: block; box-sizing: border-box; }
.lp-upload-docs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}
.lp-doc-upload-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.lp-doc-upload-card .lp-upload-zone {
    flex: 1;
    padding: 16px;
    border-radius: var(--lp-radius);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--lp-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.lp-doc-upload-label { font-weight: 600; font-size: 15px; margin-bottom: 12px; display: block; color: var(--lp-text); }
@media (max-width: 640px) {
    .lp-upload-docs-row { grid-template-columns: 1fr; }
}
.lp-docs-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}
.lp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lp-bg-card);
    border-radius: var(--lp-radius);
    overflow: hidden;
}
.lp-table th,
.lp-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--lp-border);
}
.lp-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--lp-text-muted);
    font-weight: 600;
    font-size: 13px;
}
.lp-table td .lp-doc-btn {
    margin-right: 8px;
}
.lp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--lp-border);
    color: var(--lp-text-muted);
}
.lp-badge-video {
    background: rgba(245, 200, 106, 0.2);
    color: var(--lp-accent);
}
.lp-primary-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.lp-primary-check input { margin: 0; }
.lp-btn-sm { padding: 6px 12px; font-size: 13px; }
.lp-input-inline { max-width: 240px; }
.lp-doc-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: var(--lp-border);
}
.lp-no-thumb { color: var(--lp-text-muted); }
.lp-field-label {
    display: block;
    font-size: 13px;
    color: var(--lp-text-muted);
    margin-top: 8px;
    margin-bottom: 4px;
}
.lp-chunk-progress-wrap {
    height: 6px;
    background: var(--lp-border);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}
.lp-chunk-progress-bar {
    height: 100%;
    background: var(--lp-accent);
    transition: width 0.2s ease;
}

.lp-docs-zone {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lp-border-light);
    border-radius: 12px;
}
.lp-docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lp-docs-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}
.lp-docs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 50px;
}
.lp-doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.lp-doc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(245, 200, 106, 0.12);
    border: 1px solid rgba(245, 200, 106, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-doc-icon-pdf {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}
.lp-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.lp-doc-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-doc-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(245, 200, 106, 0.2);
    color: #f5c86a;
}
.lp-doc-size {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.lp-doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.lp-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    transition: opacity 0.2s;
}
.lp-doc-btn:hover {
    opacity: 0.9;
}
.lp-doc-btn-view {
    color: #f5c86a;
    border-color: rgba(245, 200, 106, 0.5);
    background: transparent;
}
.lp-doc-btn-view::before {
    content: '👁';
    font-size: 14px;
}
.lp-doc-btn-remove {
    color: #f9a8d4;
    border-color: rgba(249, 168, 212, 0.5);
    background: transparent;
}
.lp-doc-btn-remove::before {
    content: '🗑';
    font-size: 12px;
}

/* ---------- Profile photo & banner in one row ---------- */
.lp-profile-images-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}
@media (max-width: 640px) {
    .lp-profile-images-row {
        grid-template-columns: 1fr;
    }
}
.lp-profile-photo-col .lp-uploader-section-label,
.lp-banner-col .lp-uploader-section-label {
    margin-bottom: 10px;
}
.lp-uploader-card.lp-uploader-profile-single {
    padding: 20px;
    display: flex;
    height: 202px;
    justify-content: center;
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
}
.lp-uploader-profile-single .lp-uploader-avatar-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lp-uploader-profile-single .lp-uploader-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lp-bg-input);
    flex-shrink: 0;
}
.lp-uploader-profile-single .lp-profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-uploader-profile-single .lp-btn-remove-below {
    margin-top: 4px;
}
/* Cross (×) overlay to remove image — keeps box full for image */
.lp-uploader-has-remove-cross {
    position: relative;
}
.lp-remove-cross {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.lp-remove-cross:hover {
    background: rgba(200, 60, 60, 0.9);
    transform: scale(1.08);
}
.lp-uploader-banner-single .lp-banner-preview-wrap {
    position: relative;
}
.lp-uploader-banner-single .lp-remove-cross {
    top: 10px;
    right: 10px;
}
.lp-uploader-avatar-outer {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.lp-uploader-avatar-outer .lp-remove-cross {
    top: 2px;
    right: 2px;
}
.lp-uploader-profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 0;
}
.lp-uploader-profile-empty .lp-profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--lp-accent);
    background: linear-gradient(160deg, #1a2238 0%, #0f1420 100%);
    border: 2px solid rgba(245, 200, 106, 0.25);
}
.lp-uploader-choose-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lp-uploader-choose-link:hover {
    color: #f2d06a;
}
.lp-uploader-card.lp-uploader-banner-single {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lp-uploader-banner-single .lp-banner-preview-wrap {
    min-height: 140px;
    border-radius: 0;
}
.lp-uploader-banner-single .lp-banner-preview-img {
    min-height: 140px;
    max-height: 200px;
}
.lp-uploader-banner-single .lp-btn-remove-below {
    margin: 12px 16px;
    align-self: flex-start;
}
.lp-uploader-banner-empty .lp-uploader-drop-zone-compact {
    min-height: 140px;
    padding: 20px;
}
.lp-btn-remove-below {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Premium uploader (profile photo & banner) ---------- */
.lp-uploader-group {
    margin-bottom: 24px;
}
.lp-profile-images-row .lp-uploader-group {
    margin-bottom: 0;
}
.lp-uploader-group .lp-uploader-section-label {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.lp-uploader-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--lp-text-muted);
    line-height: 1.45;
}

.lp-uploader-card {
    border-radius: 14px;
    border: 1px solid var(--lp-border-light);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    overflow: hidden;
    transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.lp-uploader-card:hover {
    border-color: rgba(245, 200, 106, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(245, 200, 106, 0.08);
}

.lp-uploader-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px;
}
.lp-uploader-avatar-wrap {
    flex-shrink: 0;
    padding: 4px;
    border-radius: 50%;
    /* background: linear-gradient(145deg, rgba(245, 200, 106, 0.35) 0%, rgba(245, 200, 106, 0.1) 100%); */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lp-uploader-avatar {
    display: block;
    border-radius: 50%;
    overflow: hidden;
}
.lp-uploader-profile .lp-profile-photo-preview,
.lp-uploader-profile .lp-profile-photo-placeholder {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-uploader-profile .lp-profile-photo-preview {
    border: none;
    background: var(--lp-bg-input);
}
.lp-uploader-profile .lp-profile-photo-placeholder {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-accent);
    background: linear-gradient(160deg, #1a2238 0%, #0f1420 100%);
    border: 2px solid rgba(245, 200, 106, 0.25);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.lp-uploader-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.lp-uploader-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--lp-text);
}
.lp-uploader-sub {
    margin: 0;
    font-size: 13px;
    color: var(--lp-text-muted);
    line-height: 1.4;
}
.lp-uploader-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lp-uploader-change-row {
    margin-top: 4px;
}
.lp-btn-upload-sm {
    padding: 10px 18px;
    font-size: 13px;
}

/* Profile empty state: inline drop zone */
.lp-uploader-drop-inline {
    width: 100%;
    position: relative;
}
.lp-uploader-drop-inline-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border: 2px dashed rgba(245, 200, 106, 0.3);
    border-radius: 12px;
    background: rgba(245, 200, 106, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.lp-uploader-drop-inline-label:hover {
    border-color: rgba(245, 200, 106, 0.5);
    background: rgba(245, 200, 106, 0.06);
}
.lp-uploader-drop-inline-icon {
    width: 36px;
    height: 36px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c86a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.85'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}
.lp-uploader-drop-inline-text {
    font-size: 14px;
    color: var(--lp-text-muted);
}
.lp-uploader-drop-inline-text strong {
    color: var(--lp-accent);
    font-weight: 600;
}
.lp-btn-upload-inline {
    cursor: pointer;
    pointer-events: none; /* click handled by parent label */
}
.lp-uploader-drop-inline-label .lp-uploader-filename {
    font-size: 12px;
    color: var(--lp-text-muted);
}

/* Primary upload button (Choose photo / browse) */
.lp-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #0d0d0d;
    background: linear-gradient(180deg, #f2d06a 0%, #e8c158 45%, #d4a855 100%);
    border: 1px solid rgba(245, 200, 106, 0.55);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 4px 14px rgba(212, 168, 85, 0.4);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.lp-btn-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}
.lp-btn-upload:hover {
    filter: brightness(1.1);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1), 0 6px 20px rgba(212, 168, 85, 0.5);
    transform: translateY(-1px);
}
.lp-btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 2px 10px rgba(212, 168, 85, 0.35);
}
.lp-btn-upload-icon {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

/* Ghost buttons (View, Remove) */
.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    background: transparent;
    color: inherit;
    font-family: inherit;
}
.lp-btn-ghost:hover {
    transform: translateY(-1px);
}
.lp-btn-ghost:active {
    transform: translateY(0);
}
.lp-btn-view {
    color: var(--lp-accent);
    border-color: rgba(245, 200, 106, 0.45);
}
.lp-btn-view:hover {
    background: rgba(245, 200, 106, 0.12);
    border-color: rgba(245, 200, 106, 0.6);
}
.lp-btn-remove {
    color: #f9a8d4;
    border-color: rgba(249, 168, 212, 0.45);
}
.lp-btn-remove:hover {
    background: rgba(249, 168, 212, 0.1);
    border-color: rgba(249, 168, 212, 0.6);
}
.lp-btn-icon {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c86a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

/* Action button: view leads (eye icon) — flat, matches dark UI */
button.lp-btn-icon-view-leads {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid var(--lp-border-light, rgba(255, 255, 255, 0.12));
    border-radius: var(--lp-radius-sm, 8px);
    background-color: rgba(255, 255, 255, 0.04);
    background-size: 18px 18px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
button.lp-btn-icon-view-leads:hover {
    border-color: rgba(245, 200, 106, 0.4);
    background-color: rgba(245, 200, 106, 0.08);
}
.lp-btn-icon-remove {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f9a8d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E");
}

.lp-uploader-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.lp-uploader-filename {
    font-size: 13px;
    color: var(--lp-text-muted);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Banner: has image — preview card with overlay */
.lp-uploader-banner {
    padding: 0;
}
.lp-banner-preview-wrap {
    position: relative;
    width: 100%;
    min-height: 140px;
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: var(--lp-bg-input);
}
.lp-banner-preview-img {
    width: 100%;
    height: auto;
    min-height: 160px;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.lp-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
}
.lp-banner-overlay .lp-uploader-label {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}
.lp-banner-overlay .lp-uploader-actions {
    gap: 10px;
}

/* Banner: empty — drop zone */
.lp-uploader-empty-card {
    padding: 0;
}
.lp-uploader-drop-zone {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lp-uploader-drop-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 160px;
    border: 2px dashed rgba(245, 200, 106, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(245, 200, 106, 0.05) 0%, rgba(245, 200, 106, 0.02) 100%);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.lp-uploader-drop-label:hover {
    border-color: rgba(245, 200, 106, 0.55);
    background: linear-gradient(180deg, rgba(245, 200, 106, 0.1) 0%, rgba(245, 200, 106, 0.04) 100%);
    box-shadow: 0 0 0 1px rgba(245, 200, 106, 0.12);
}
.lp-uploader-drop-icon {
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c86a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.9'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.lp-uploader-drop-label:hover .lp-uploader-drop-icon {
    transform: translateY(-2px);
}
.lp-uploader-drop-text {
    font-size: 14px;
    color: var(--lp-text-muted);
}
.lp-uploader-drop-text strong {
    color: var(--lp-accent);
    font-weight: 700;
}
.lp-uploader-filename-block {
    font-size: 12px;
    color: var(--lp-text-muted);
    max-width: none;
}

.lp-banner-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.lp-banner-preview {
    max-width: 280px;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border);
}
.lp-file-input {
    padding: 8px 0 !important;
}

.lp-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.lp-textarea:focus {
    outline: none;
    border-color: var(--lp-accent);
}

.lp-form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-success {
    color: #86efac;
    font-size: 14px;
}

.lp-error {
    color: #fca5a5;
    font-size: 14px;
}

.lp-hint {
    color: var(--lp-text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .lp-profile-form .lp-form-row {
        grid-template-columns: 1fr;
    }
    .lp-profile-form .lp-address-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .lp-profile-form .lp-address-fields {
        grid-template-columns: 1fr;
    }
}

.lp-modal-body {
    padding: 0 0 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.lp-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-btn-cancel,
.lp-btn-submit {
    border: 0;
    border-radius: var(--lp-radius-sm);
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    min-height: var(--lp-touch-min);
}

.lp-btn-cancel {
    background: #2d364f;
    color: #d7dded;
}

.lp-btn-submit {
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    color: #111;
}

/* ---------- Chat ---------- */
.lp-chat-container {
    border: 1px solid var(--lp-border-panel);
    border-radius: var(--lp-radius);
    background: var(--lp-bg-card);
    overflow: hidden;
    box-shadow: var(--lp-shadow);
}

.lp-chat-messages {
    max-height: 55vh;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.lp-chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.lp-chat-message.me {
    margin-left: auto;
    background: #243626;
    border: 1px solid #3f6f47;
    color: #d9ffe2;
}

.lp-chat-message.other {
    margin-right: auto;
    background: #1e2d4f;
    border: 1px solid #344f86;
    color: #dbe6ff;
}

.lp-chat-meta {
    font-size: 12px;
    color: #97a2bf;
    margin-bottom: 4px;
}

.lp-chat-input-row {
    border-top: 1px solid var(--lp-border-panel);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.lp-chat-textarea {
    flex: 1;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
}

.lp-chat-textarea:focus {
    outline: none;
    border-color: var(--lp-accent);
}

.lp-btn-primary {
    border: 0;
    border-radius: var(--lp-radius-sm);
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    min-height: 48px;
}

.lp-case {
    border: 1px solid var(--lp-border-panel);
    border-radius: var(--lp-radius);
    background: var(--lp-bg-card);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.lp-case h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.lp-case p {
    margin: 0;
    color: var(--lp-text-muted);
    font-size: 14px;
}

/* ---------- Main panel error ---------- */
.lp-main-panel .lp-error {
    margin: 0 0 16px;
    color: #ffb0b0;
    background: rgba(78, 31, 39, 0.45);
    border: 1px solid #8b3b49;
    border-radius: var(--lp-radius-sm);
    padding: 12px 14px;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 1024px) {
    .lp-shell-inner {
        grid-template-columns: 240px 1fr;
    }

    .lp-sidebar {
        padding: 20px;
    }

    .lp-content {
        padding: 20px;
    }

    .lp-cards {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* ---------- Responsive: Shell stacks (sidebar on top) ---------- */
@media (max-width: 900px) {
    .lp-shell-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .lp-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--lp-border);
    }

    .lp-content {
        padding: 18px;
    }

    .lp-heading {
        font-size: 22px;
    }
}

/* ---------- Responsive: Mobile & small tablet ---------- */
@media (max-width: 768px) {
    .lp-shell {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .lp-left {
        border-right: none;
        border-bottom: 1px solid rgba(139, 156, 204, 0.2);
        padding-bottom: 24px;
    }

    .lp-right {
        padding-top: 24px;
    }

    .lp-sidebar {
        padding: 16px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .lp-shell-inner .lp-brand {
        margin: 0;
        font-size: 20px;
    }

    .lp-tagline {
        display: none;
    }

    .lp-user {
        /* margin: 0 0 0 auto;
        margin-left: auto; */
        margin-bottom: 0px;
        order: 2;
        flex: 0 0 auto;
        max-width: 180px;
    }

    .lp-nav {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        order: 3;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--lp-border-light);
    }

    .lp-nav a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .lp-content {
        padding: 16px;
    }

    .lp-topbar {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .lp-heading {
        font-size: 20px;
    }

    .lp-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-search-input {
        max-width: none;
    }

    .lp-actions {
        width: 100%;
    }

    .lp-table th,
    .lp-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .lp-table {
        min-width: 480px;
    }

    .lp-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lp-card-dash .lp-value {
        font-size: 28px;
    }

    .lp-modal {
        max-width: none;
        margin: 0;
    }

    .lp-chat-messages {
        max-height: 50vh;
    }

    .lp-chat-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-btn-primary {
        width: 100%;
    }
}

/* ---------- Responsive: Small phones ---------- */
@media (max-width: 480px) {
    .lp-shell {
        padding: 12px;
    }

    .lp-brand {
        font-size: 24px;
    }

    .lp-card {
        padding: 20px;
    }

    .lp-sidebar {
        padding: 12px 16px;
    }

    .lp-user {
        max-width: 100%;
    }

    .lp-nav a {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .lp-content {
        padding: 12px;
    }

    .lp-heading {
        font-size: 18px;
    }

    .lp-btn-logout {
        width: 100%;
        text-align: center;
    }

    .lp-btn-add {
        width: 100%;
    }

    .lp-modal-actions {
        flex-direction: column;
    }

    .lp-modal-actions .lp-btn-cancel,
    .lp-modal-actions .lp-btn-submit {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .lp-right {
        padding: 20px;
    }
}

/* ---------- ClientFirstAI-like chat UI ---------- */
.lawyer-chat-screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lawyer-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lawyer-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.btn-back-inline.lawyer-chat-back-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    color: #dbe4ff;
    border: 1px solid var(--lp-border-light);
    background: #171f33;
}

.lawyer-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lawyer-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    color: #111;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lawyer-chat-name {
    margin: 0;
    font-size: 18px;
    color: #fff;
    line-height: 1.2;
}

.lawyer-chat-subtitle {
    margin: 3px 0 0;
    color: var(--lp-text-muted);
    font-size: 12px;
}

.lawyer-chat-body {
    height: 91vh;
}

.lawyer-chat-card {
    border: 1px solid var(--lp-border-panel);
    border-radius: 14px;
    background: var(--lp-bg-card);
    box-shadow: var(--lp-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lawyer-chat-card-header {
    border-bottom: 1px solid var(--lp-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lawyer-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lawyer-chat-status-dot.online { background: #22c55e; }
.lawyer-chat-status-dot.offline { background: #f59e0b; }
.lawyer-chat-status-text { color: var(--lp-text-muted); font-size: 13px; }

.lawyer-chat-error-banner {
    margin: 12px 16px 0;
    border: 1px solid #8b3b49;
    background: rgba(78, 31, 39, 0.45);
    border-radius: 10px;
    padding: 10px 12px;
}

.lawyer-chat-error-title {
    display: block;
    color: #ffb0b0;
    font-weight: 600;
    font-size: 13px;
}

.lawyer-chat-error-text {
    display: block;
    color: #ffd3d3;
    font-size: 12px;
    margin-top: 4px;
}

.lawyer-chat-container {
    padding: 14px 16px;
    flex: 1 1 auto;
}

.lawyer-chat-messages {
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.lawyer-chat-msg-wrapper { display: flex; }
.lawyer-chat-msg-user { justify-content: flex-start; }
.lawyer-chat-msg-lawyer { justify-content: flex-end; }

/* .lawyer-chat-msg {
    max-width: min(80%, 700px);
    border-radius: 12px;
    border: 1px solid var(--lp-border-light);
    padding: 10px 12px;
} */

/* .lawyer-chat-msg-user .lawyer-chat-msg {
    background: #1a2239;
    color: #dbe5ff;
}

.lawyer-chat-msg-lawyer .lawyer-chat-msg {
    background: #243626;
    border-color: #3f6f47;
    color: #e2ffe7;
} */

.lawyer-chat-msg-label {
    display: block;
    font-size: 11px;
    color: #97a2bf;
    margin-bottom: 4px;
}

.lawyer-chat-msg-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
}

.lawyer-chat-msg-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #97a2bf;
}

.lawyer-chat-empty {
    text-align: center;
    padding: 24px 10px;
}

.lawyer-chat-empty-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.lawyer-chat-empty-text {
    margin: 0;
    color: var(--lp-text-muted);
}

.lawyer-chat-composer {
    border-top: 1px solid var(--lp-border);
    padding: 12px 16px;
}

.lawyer-chat-composer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lawyer-chat-msg-system .lawyer-chat-msg {
    margin-right: auto;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.14) 0%, rgba(22, 163, 74, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    max-width: 90%;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}.lawyer-chat-msg-user .lawyer-chat-msg {
    margin-right: auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(184, 134, 11, 0.12) 100%);
    border: 1px solid rgba(245, 200, 106, 0.25);
    border-radius: 14px 14px 4px 14px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.lawyer-chat-msg-lawyer .lawyer-chat-msg {
    margin-left: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px 14px 14px 4px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.lawyer-chat-input-wrap { flex: 1;
    align-items: end;
    display: flex;
    gap: 10px; }

.lawyer-chat-input {
    width: 100%;
    border: 1px solid var(--lp-border-light);
    border-radius: 10px;
    background: var(--lp-bg-input);
    color: #fff;
    padding: 10px 12px;
}

.lawyer-chat-char-row {
    margin-top: 4px;
    text-align: right;
}

.lawyer-chat-char-count {
    color: var(--lp-text-muted);
    font-size: 11px;
}

.btn-lawyer-chat-send {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    min-width: 90px;
}

/* Set password page (from email link) */
.lp-set-password-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--lp-bg);
}
.lp-set-password-card {
    width: 100%;
    max-width: 420px;
    background: var(--lp-card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--lp-border-light);
}
.lp-set-password-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lp-text);
    margin: 0 0 8px 0;
}
.lp-set-password-sub {
    color: var(--lp-text-muted);
    font-size: 0.95rem;
    margin: 0 0 24px 0;
}
.lp-set-password-error {
    padding: 12px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    color: #f8b4b4;
    margin-bottom: 16px;
}
.lp-set-password-success {
    color: var(--lp-text);
}
.lp-set-password-success p {
    margin: 0 0 16px 0;
}
.lp-btn-full {
    width: 100%;
    margin-top: 8px;
}
.lp-field-error {
    display: block;
    font-size: 12px;
    color: #e88;
    margin-top: 4px;
}

/* Lead detail page */
.lp-lead-detail { padding: 20px; }
.lp-lead-detail-header { margin-bottom: 20px; }
.lp-lead-detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--lp-border-light, rgba(255,255,255,0.12));
    padding-bottom: 0;
}
.lp-lead-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text-muted, #9ca3af);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.lp-lead-tab:hover { color: var(--lp-text, #fff); }
.lp-lead-tab.active {
    color: var(--lp-accent);
    border-bottom-color: var(--lp-accent);
}
.lp-lead-tab-panel { min-height: 200px; }
.lp-lead-case-docs { padding-top: 8px; }
.lp-lead-chat-panel { padding-top: 8px; }
.lp-lead-chat-panel .lawyer-chat-card.lp-embed {
    border: 1px solid var(--lp-border-panel, rgba(255,255,255,0.1));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 80vh;
}
.lp-lead-chat-panel .lawyer-chat-status {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--lp-text-muted);
    border-bottom: 1px solid var(--lp-border-light);
}
.lp-lead-chat-panel .lawyer-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.lp-lead-chat-panel .lawyer-chat-composer {
    padding: 12px 16px;
    border-top: 1px solid var(--lp-border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lp-lead-chat-panel .lawyer-chat-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lp-lead-chat-panel .lawyer-chat-input {
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--lp-border-light);
    background: var(--lp-bg-input);
    color: #fff;
    font-size: 14px;
    resize: vertical;
}
.lp-lead-chat-panel .lawyer-chat-error-banner { padding: 12px 16px; color: #f87171; font-size: 13px; }
.lp-lead-chat-panel .lawyer-chat-empty { padding: 24px; text-align: center; color: var(--lp-text-muted); }
.lp-lead-chat-panel .lawyer-chat-msg-wrapper { margin-bottom: 12px; }
.lp-lead-chat-panel .lawyer-chat-msg-label { font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.lp-lead-chat-panel .lawyer-chat-msg-body { margin: 0 0 4px; font-size: 14px; }
.lp-lead-chat-panel .lawyer-chat-msg-time { font-size: 11px; color: var(--lp-text-muted); }

.lp-btn-back { color: var(--lp-accent); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 8px; }
.lp-btn-back:hover { text-decoration: underline; }
.lp-lead-detail-title { font-size: 1.5rem; font-weight: 700; color: var(--lp-text); margin: 0 0 16px 0; }
.lp-lead-detail-body { display: flex; flex-direction: column; gap: 20px; }
.lp-lead-detail-card { background: var(--lp-card-bg); border: 1px solid var(--lp-border-light); border-radius: 12px; padding: 20px; }
.lp-lead-detail-card-title { font-size: 1rem; font-weight: 600; color: var(--lp-text); margin: 0 0 12px 0; }
.lp-lead-detail-text { color: var(--lp-text-muted); margin: 0; white-space: pre-wrap; }
.lp-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.lp-dl dt { color: var(--lp-text-muted); font-weight: 500; }
.lp-dl dd { margin: 0; color: var(--lp-text); }
.lp-json-block { background: rgba(0,0,0,0.25); border-radius: 8px; padding: 12px; font-size: 12px; overflow-x: auto; margin: 12px 0 0 0; white-space: pre-wrap; word-break: break-all; color: var(--lp-text-muted); }
.lp-lead-detail-actions { margin-top: 8px; }
.lp-link { color: var(--lp-accent); text-decoration: none; }
.lp-link:hover { text-decoration: underline; }

/* Case Summary (ClientFirstAI-style) — lead detail page */

.sum-loading { min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--lp-text-muted); }
.sum-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(245, 200, 106, .07) 0%, rgba(212, 168, 85, .04) 100%); border: 1px solid rgba(245, 200, 106, .2); border-radius: 20px; padding: 32px 36px; margin: 16px 0 20px; }
.sum-hero-eyebrow { font-size: 12px; font-weight: 600; color: #F5C86A; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.sum-hero-title { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.25; }
.sum-hero-sub { font-size: 13px; color: rgba(255, 255, 255, .45); margin: 0 0 18px; }
.sum-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sum-pill { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.sum-pill-purple { background: rgba(245, 200, 106, .12); color: #F5C86A; border: 1px solid rgba(245, 200, 106, .25); }
.sum-pill-gold { background: rgba(245, 200, 106, .14); color: #f5c86a; border: 1px solid rgba(245, 200, 106, .3); }
.sum-pill-teal { background: rgba(20, 184, 166, .14); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, .25); }
.sum-ring-wrap { position: relative; width: 148px; height: 148px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sum-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sum-ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 10; }
.sum-ring-fill { fill: none; stroke: url(#lpRingGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 414.7; stroke-dashoffset: 414.7; transition: stroke-dashoffset 1.4s ease; }
.sum-ring-inner { position: relative; z-index: 1; text-align: center; }
.sum-ring-num { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.sum-ring-denom { font-size: 13px; color: rgba(255, 255, 255, .45); }
.sum-ring-label { font-size: 10px; font-weight: 700; color: #F5C86A; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.sum-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.sum-card { background: #141414; border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 22px;     height: 100%; }
.sum-card-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sum-card-ico { font-size: 14px; color: rgba(255,255,255,.6); }
.sum-card-ttl { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); flex: 1; }
.sum-uisi-chip { font-size: 11px; font-weight: 700; color: #f5c86a; background: rgba(245, 200, 106, .12); border: 1px solid rgba(245, 200, 106, .2); padding: 2px 9px; border-radius: 12px; }
.sum-fields { }
.sum-field { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.sum-field:last-child { border-bottom: none; }
.sum-flbl { font-size: 11px; color: rgba(255, 255, 255, .38); font-weight: 500; flex-shrink: 0; min-width: 90px; }
.sum-fval { font-size: 13px; color: rgba(255, 255, 255, .8); text-align: right; word-break: break-word; }
.sum-pain-list { }
.sum-pain-item { margin-bottom: 14px; }
.sum-pain-item:last-child { margin-bottom: 0; }
.sum-pain-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sum-pain-part { font-size: 13px; color: rgba(255, 255, 255, .82); }
.sum-pain-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.pain-hi { background: rgba(244, 63, 94, .15); color: #fb7185; }
.pain-md { background: rgba(245, 200, 106, .15); color: #f5c86a; }
.pain-lo { background: rgba(16, 185, 129, .15); color: #34d399; }
.sum-bar-bg { height: 5px; background: rgba(255, 255, 255, .07); border-radius: 5px; overflow: hidden; }
.sum-bar-fill { height: 100%; border-radius: 5px; transition: width 1.1s ease; }
.sum-bar-fill.pain-hi { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.sum-bar-fill.pain-md { background: linear-gradient(90deg, #f59e0b, #f5c86a); }
.sum-bar-fill.pain-lo { background: linear-gradient(90deg, #10b981, #34d399); }
.sum-bars { display: flex; flex-direction: column; }
.sum-brow { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.sum-brow:last-child { margin-bottom: 0; }
.sum-blbl { font-size: 11px; color: rgba(255, 255, 255, .38); width: 130px; flex-shrink: 0; }
.sum-btrack { flex: 1; height: 5px; background: rgba(255, 255, 255, .07); border-radius: 5px; overflow: hidden; }
.sum-bfill { height: 100%; border-radius: 5px; transition: width 1.1s ease; }
.sum-bfill-purple { background: linear-gradient(90deg, #D4A855, #F5C86A); }
.sum-bfill-gold { background: linear-gradient(90deg, #b45309, #f5c86a); }
.sum-bfill-teal { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.sum-bnum { font-size: 11px; color: rgba(255, 255, 255, .4); width: 22px; text-align: right; flex-shrink: 0; }
.sum-pillars { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.sum-pillar { flex: 1; min-width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sum-pr-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; margin: 0 auto; }
.sum-pr-svg { width: 64px; height: 64px; transform: rotate(-90deg); display: block; }
.pr-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.pr-fill { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 138.2; transition: stroke-dashoffset 1.2s ease; }
.pr-purple { stroke: #F5C86A; }
.pr-gold { stroke: #f5c86a; }
.pr-teal { stroke: #14b8a6; }
.sum-pr-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; pointer-events: none; }
.sum-pr-lbl { font-size: 10px; color: rgba(255, 255, 255, .45); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sum-section { margin-bottom: 20px; }
.sum-section-hdr { margin-bottom: 14px; }
.sum-section-ttl { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .85); margin: 0 0 4px; }
.sum-section-sub { font-size: 12px; color: rgba(255, 255, 255, .4); margin: 0; }
.sum-doc-list { display: flex; flex-direction: column; gap: 10px; }
.sum-doc-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; background: rgba(255,255,255,.04); border-radius: 10px; border: 1px solid rgba(255,255,255,.06); }
.sum-doc-name { flex: 1; font-size: 13px; color: var(--lp-text); min-width: 120px; }
.sum-doc-type { font-size: 11px; color: var(--lp-text-muted); text-transform: capitalize; }
.sum-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; margin-bottom: 20px; }
.sum-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.sum-btn-primary { background: linear-gradient(135deg, #D4A855, #F5C86A); color: #111; border-color: rgba(245, 200, 106, .4); }
.sum-btn-primary:hover { background: linear-gradient(135deg, #e5b965, #f5d07a); }
.sum-btn-ghost { background: transparent; color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .15); }
.sum-btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
.sum-btn-sm { padding: 6px 12px; font-size: 12px; }
.sum-btn-lg { padding: 12px 24px; font-size: 14px; }


/* Document/Video Upload UI Enhancements */
.lp-upload-docs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .lp-upload-docs-row {
        grid-template-columns: 1fr;
    }
}

.lp-doc-upload-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-panel);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--lp-shadow);
}

.lp-doc-upload-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--lp-border-light);
    padding-bottom: 16px;
}

.lp-doc-upload-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.lp-doc-upload-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--lp-text-muted);
}

.lp-upload-zone-premium {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
}

.lp-upload-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-upload-actions-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-btn-wrap {
    position: relative;
    overflow: hidden;
}

.lp-upload-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.lp-upload-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lp-upload-or {
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-text-muted);
    text-transform: uppercase;
}

.lp-url-input-wrap {
    flex: 1;
    min-width: 200px;
}

.lp-upload-filename-block {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--lp-accent);
    word-break: break-all;
}

.lp-upload-filename-text {
    font-size: 13px;
    color: var(--lp-text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-progress-container {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 12px;
}

.lp-progress-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-dark));
    border-radius: 3px;
    margin-bottom: 8px;
    transition: width 0.3s ease;
}

.lp-progress-text {
    font-size: 12px;
    color: var(--lp-text-muted);
}

.lp-doc-upload-footer {
    margin-top: auto;
    padding-top: 20px;
}

.lp-btn-full {
    width: 100%;
}

.lp-zone-document {
    justify-content: center;
}

.lp-upload-drag-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.lp-upload-drag-area:hover {
    border-color: rgba(245, 200, 106, 0.4);
    background: rgba(245, 200, 106, 0.05);
}

.lp-doc-icon-placeholder {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.lp-upload-drag-text {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.lp-upload-drag-sub {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--lp-text-muted);
}

.lp-btn-wrap-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Payout Page Premium Styles */
.lp-payout-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-payout-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.lp-payout-metric-card {
    background: linear-gradient(145deg, var(--lp-bg-card) 0%, #161c2d 100%);
    border: 1px solid var(--lp-border-panel);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--lp-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.lp-payout-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--lp-border-light);
}

.lp-payout-metric-card.primary::before { background: var(--lp-accent); }
.lp-payout-metric-card.success::before { background: #14b8a6; }
.lp-payout-metric-card.warning::before { background: #f59e0b; }

.lp-metric-title {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin: 0 0 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.lp-metric-sub {
    font-size: 13px;
    color: var(--lp-text-dim);
    margin: 0;
}

.lp-payout-table-card {
    background: var(--lp-bg-card);
    border: 1px solid var(--lp-border-panel);
    border-radius: 16px;
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-payout-table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--lp-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(255, 255, 255, 0.01);
}

.lp-payout-table-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-payout-table {
    width: 100%;
    border-collapse: collapse;
}

.lp-payout-table th, .lp-payout-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-payout-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.1);
}

.lp-payout-table td {
    font-size: 14px;
    color: #fff;
}

.lp-payout-table tr:last-child td {
    border-bottom: none;
}

.lp-payout-table tbody tr {
    transition: background 0.2s ease;
}

.lp-payout-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lp-lawyer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-lawyer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-border-panel), #2a344a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-accent);
}

.lp-lawyer-info {
    display: flex;
    flex-direction: column;
}

.lp-lawyer-name {
    font-weight: 600;
    color: #fff;
}

.lp-lawyer-email {
    font-size: 12px;
    color: var(--lp-text-muted);
}

.lp-amount-cell {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--lp-accent);
}

.lp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lp-status-paid {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.lp-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.lp-payout-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.lp-payout-search input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    background: var(--lp-bg-input);
    border: 1px solid var(--lp-border);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lp-payout-search input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 2px rgba(245, 200, 106, 0.1);
}


/* Fix Dashboard Layout padding */
.lp-payout-dashboard {
    padding: 10px;
}


/* ============================================
   Refined Premium Login
   ============================================ */

.lp-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at 50% 10%, #151c2e 0%, #090b12 80%);
    padding: 20px;
}

.lp-login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: rgba(17, 23, 37, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lp-login-left {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 168, 85, 0.1), rgba(0, 0, 0, 0));
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-login-left::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 200, 106, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lp-login-brand {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff, var(--lp-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.lp-login-subtitle {
    font-size: 16px;
    color: var(--lp-text-dim);
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.lp-login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--lp-bg-card);
}

.lp-login-box {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.lp-login-title {
        font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.lp-login-sub {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin: 0 0 32px;
}

.lp-login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.lp-login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-login-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.lp-login-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px rgba(245, 200, 106, 0.15);
}

.lp-login-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.lp-login-btn {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-dark) 100%);
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 85, 0.3);
}

.lp-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 85, 0.4);
}

.lp-login-btn:active {
    transform: translateY(0);
}

.lp-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lp-login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .lp-login-container {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .lp-login-left {
        padding: 40px 30px;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .lp-login-subtitle {
        margin: 0 auto;
    }
    
    .lp-login-right {
        padding: 40px 30px;
    }
}
