:root {
    --bg-dark: #06070b;
    --bg-card: rgba(18, 18, 29, 0.45);
    --bg-card-hover: rgba(26, 26, 41, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(255, 159, 28, 0.25);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-amber: #ff9f1c; /* Welding arc */
    --accent-amber-glow: rgba(255, 159, 28, 0.45);
    --accent-blue: #00b4d8;
    --accent-blue-glow: rgba(0, 180, 216, 0.45);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    
    --glass-blur: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 159, 28, 0.4);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glowing Background Blobs */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-dark);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.14;
    mix-blend-mode: screen;
    animation: float-blobs 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-amber) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: 10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation-delay: -6s;
}

.blob-3 {
    top: 35%;
    left: 45%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes float-blobs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -80px) scale(1.1); }
    100% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Auth Page */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-blue));
}

.auth-card:hover {
    border-color: var(--border-glass-hover);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.brand-logo {
    width: 100%;
    max-width: 185px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(255, 159, 28, 0.22));
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-amber);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.15);
}

.form-input:focus + .form-input-icon {
    color: var(--accent-amber);
}

/* Modals inputs (no left icon padding) */
.modal-body .form-input {
    padding: 12px 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-amber), #e67e22);
    color: #000000;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-amber-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.btn:hover::after {
    left: 125%;
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.auth-error {
    color: var(--accent-red);
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 280px;
    background: rgba(10, 10, 16, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--border-glass);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.main-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    margin-top: 40px;
    flex: 1;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.nav-link.active {
    background: rgba(255, 159, 28, 0.08);
    color: var(--accent-amber);
    border-color: rgba(255, 159, 28, 0.15);
    font-weight: 600;
    box-shadow: inset 0 0 12px rgba(255, 159, 28, 0.05);
}

.user-block {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    margin-top: auto;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.2), rgba(0, 180, 216, 0.2));
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-amber);
    margin-right: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-info {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.logout-icon {
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid transparent;
}

.logout-icon svg {
    width: 18px;
    height: 18px;
}

.logout-icon:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px var(--accent-red-glow);
}

/* Dashboard Header */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.btn-scan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-amber), #e67e22);
    color: #000000;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-amber-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.btn-scan svg {
    width: 18px;
    height: 18px;
}

.btn-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 159, 28, 0.45);
}

.btn-scan.scanning {
    opacity: 0.8;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    box-shadow: none;
    transform: none;
}

.btn-scan.scanning svg {
    animation: rotate-spinner 1.5s infinite linear;
}

@keyframes rotate-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bento Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stat-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-title svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-value.hot {
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--accent-red-glow);
}
.stat-value.warm {
    color: var(--accent-amber);
    text-shadow: 0 0 15px var(--accent-amber-glow);
}
.stat-value.watch {
    color: var(--accent-blue);
    text-shadow: 0 0 15px var(--accent-blue-glow);
}

/* Leads Main Section */
.card-leads {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 360px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 159, 28, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

.filter-select {
    background-color: rgba(18, 18, 29, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 159, 28, 0.4);
}

/* Leads Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.leads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
}

.leads-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.leads-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.leads-table th.sortable:hover {
    color: var(--accent-amber);
}

.leads-table th.sortable .sort-caret {
    color: var(--accent-amber);
    font-size: 11px;
}

.leads-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    vertical-align: middle;
    color: var(--text-primary);
    transition: background 0.2s;
}

.leads-table tbody tr {
    transition: all 0.2s;
}

.leads-table tbody tr:last-child td {
    border-bottom: none;
}

.leads-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.leads-table tbody tr:hover td {
    color: #ffffff;
}

/* Priority & Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-status.hot {
    background-color: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-status.warm {
    background-color: rgba(255, 159, 28, 0.12);
    color: #fde047;
    border: 1px solid rgba(255, 159, 28, 0.2);
}
.badge-status.watch {
    background-color: rgba(0, 180, 216, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.badge-lead-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-lead-status.new {
    background-color: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
}
.badge-lead-status.sent {
    background-color: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}
.badge-lead-status.archived {
    background-color: rgba(107, 114, 128, 0.1);
    color: #d1d5db;
    border-color: rgba(107, 114, 128, 0.2);
}
.badge-lead-status.nie-interesuje-mnie {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}
.badge-lead-status.rozpoczęto-kontakt {
    background-color: rgba(0, 180, 216, 0.1);
    color: #67e8f9;
    border-color: rgba(0, 180, 216, 0.25);
}
.badge-lead-status.zainteresowany {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fde047;
    border-color: rgba(251, 191, 36, 0.25);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 4, 7, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(20, 20, 31, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 30px;
    flex: 1;
}

.modal-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.15);
}

.lead-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.detail-block {
    margin-bottom: 18px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14.5px;
    color: #ffffff;
}

.email-preview-box {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #e4e4e7;
    white-space: pre-wrap;
    margin-top: 10px;
}

.select-recipient, .input-recipient {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 14px;
    transition: all 0.3s;
}

.select-recipient:focus, .input-recipient:focus {
    outline: none;
    border-color: rgba(255, 159, 28, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-hover);
}

.btn-archive {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-archive svg {
    width: 16px;
    height: 16px;
}

.btn-archive:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #000000;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 24px 0;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 20px;
    }
    .main-content {
        padding: 24px;
    }
    .nav-menu {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .nav-item {
        margin-bottom: 0;
    }
    .user-block {
        margin-top: 20px;
        border-top: 1px solid var(--border-glass);
        padding-top: 16px;
    }
}

@media (max-width: 640px) {
    .lead-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input-wrapper {
        max-width: 100%;
    }
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-scan {
        width: 100%;
    }
}
