/* === Firewood Styles v4.0 ===
   🔹 01. Reset & Base
   🔹 02. Layout (header, container, dashboard)
   🔹 03. Components (buttons, cards, forms, alerts)
   🔹 04. Modal Window (reusable)
   🔹 05. Stats Page
   🔹 06. Profile Page
   🔹 07. Subscription Page (scoped with .subscription-page)
   🔹 08. Lead Cards (enhanced)
   🔹 09. Mobile Responsive
*/

/* 🔹 01. Reset & Base */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f5f5f5;color:#333;line-height:1.5}
a{color:#2481cc;text-decoration:none}
a:hover{text-decoration:underline}

/* 🔹 02. Layout */
.header{background:#2481cc;color:#fff;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100}
.logo{font-size:24px;font-weight:700}
.container{max-width:1200px;margin:0 auto;padding:20px}
.dashboard{max-width:800px;margin:0 auto;padding:20px}

/* 🔹 03. Components: Buttons */
.btn{display:inline-block;padding:10px 20px;background:#2481cc;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:16px;text-decoration:none;transition:background 0.2s}
.btn:hover{background:#1e6ba8}
.btn-small{padding:6px 12px;font-size:14px}
.btn-success{background:#28a745;color:#fff}
.btn-success:hover{background:#218838}
.btn-warning{background:#ffc107;color:#212529}
.btn-warning:hover{background:#e0a800}
.btn-take{width:100%;padding:14px 20px;font-size:16px;font-weight:600;margin-top:12px;background:#2481cc;color:#fff;border:none;border-radius:10px;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 8px rgba(36,129,204,0.3)}
.btn-take:hover{background:#1e6ba8;transform:translateY(-2px);box-shadow:0 4px 12px rgba(36,129,204,0.4)}
.btn-take:active{transform:translateY(0)}

/* 🔹 03. Components: Cards */
.card{background:#fff;border-radius:12px;padding:20px;margin:15px 0;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.stat-card{background:#fff;padding:20px;border-radius:12px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.stat-value{font-size:32px;font-weight:700;color:#2481cc}
.stat-label{font-size:14px;color:#666;margin-top:5px}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:15px;margin-bottom:30px}

/* 🔹 03. Components: Forms & Alerts */
.form-group{margin-bottom:20px}
.form-group label{display:block;margin-bottom:8px;font-weight:500}
.form-group input,.form-group select{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:16px}
.form-group input:focus,.form-group select:focus{outline:none;border-color:#2481cc;box-shadow:0 0 0 3px rgba(36,129,204,0.1)}
.alert{padding:15px;border-radius:8px;margin-bottom:20px}
.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.alert-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}

/* 🔹 03. Components: Auth Pages */
.auth-page{display:flex;justify-content:center;align-items:center;min-height:100vh}
.auth-container{background:#fff;padding:40px;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.1);max-width:400px;width:100%}
.auth-container h1{text-align:center;margin-bottom:30px}
.auth-container .btn{width:100%}

/* 🔹 04. Modal Window (REUSABLE - no inline styles needed!) */
.modal{position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;animation:fadeIn 0.3s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal-content{background:#fff;border-radius:16px;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,0.3);animation:slideUp 0.3s ease}
@keyframes slideUp{from{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-header{padding:24px;border-bottom:1px solid #eee;position:relative}
.modal-header h2{margin:0;color:#2481cc;font-size:1.4em}
.modal-close{position:absolute;right:20px;top:20px;font-size:32px;cursor:pointer;color:#999;transition:color 0.2s}
.modal-close:hover{color:#333}
.modal-body{padding:24px}
.lead-details p{margin:12px 0;line-height:1.6;font-size:15px}
.lead-details strong{color:#2481cc}
.timer-section{background:linear-gradient(135deg,#fff3cd,#ffe8a1);border:2px solid #ffc107;border-radius:12px;padding:20px;margin:20px 0;text-align:center}
.timer-display{font-size:3em;font-weight:700;color:#dc3545;font-family:'Courier New',monospace;margin-top:10px;text-shadow:0 2px 4px rgba(0,0,0,0.1)}
.modal-actions{display:flex;gap:12px;margin-top:24px}
.modal-actions button{flex:1;padding:14px 20px;font-size:15px;font-weight:600;border:none;border-radius:10px;cursor:pointer;transition:all 0.2s}
.modal-actions .btn-success{box-shadow:0 2px 8px rgba(40,167,69,0.3)}
.modal-actions .btn-success:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(40,167,69,0.4)}
.modal-actions .btn-warning{box-shadow:0 2px 8px rgba(255,193,7,0.3)}
.modal-actions .btn-warning:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,193,7,0.4)}
.modal-hints{margin-top:24px;padding-top:20px;border-top:2px dashed #eee;font-size:14px;color:#666;line-height:1.8}
.modal-hints strong{color:#2481cc}

/* 🔹 05. Stats Page */
.stats-page{max-width:800px;margin:0 auto;padding:20px}
.stats-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.stats-header h1{margin:0;font-size:1.5em}
.period-select{padding:8px 12px;border-radius:8px;border:1px solid #ddd}
.chart-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.1);margin-bottom:20px}
.chart-card h3{margin:0 0 15px;color:#333}
.chart-container{height:200px;position:relative}
.history-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.history-table th{background:#f8f9fa;padding:12px 15px;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #eee}
.history-table td{padding:12px 15px;border-bottom:1px solid #eee}
.history-table tr:last-child td{border-bottom:none}
.status-badge{padding:4px 10px;border-radius:20px;font-size:0.85em;font-weight:500}
.status-new{background:#e3f2fd;color:#1976d2}
.status-assigned{background:#fff3e0;color:#ef6c00}
.status-closed{background:#e8f5e9;color:#388e3c}
.status-returned{background:#fce4ec;color:#c2185b}

/* 🔹 06. Profile Page */
.profile-page{max-width:600px;margin:0 auto;padding:20px}
.profile-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1);margin-bottom:20px}
.profile-card h3{margin:0 0 20px;color:#333;border-bottom:1px solid #eee;padding-bottom:15px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.btn-block{width:100%;padding:14px;font-size:16px;font-weight:600}
.section-title{font-size:1.1em;margin:25px 0 15px;color:#333}
.user-info{display:flex;align-items:center;gap:15px;padding:15px;background:#f8f9ff;border-radius:10px;margin-bottom:20px}
.user-avatar{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#2481cc,#667eea);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5em;font-weight:700}
.user-details strong{display:block;font-size:1.1em}
.user-details span{color:#666;font-size:0.95em}

/* 🔹 07. Subscription Page (scoped with .subscription-page prefix) */
.subscription-page{max-width:800px;margin:0 auto;padding:20px}
.subscription-page .status-card{border:2px solid;border-radius:16px;padding:24px;margin-bottom:30px;text-align:center}
.subscription-page .status-icon{font-size:3em;margin-bottom:10px}
.subscription-page .status-title{font-size:1.4em;font-weight:700;color:#28a745;margin:10px 0}
.subscription-page .status-desc{color:#555;margin:5px 0}
.subscription-page .progress-wrapper{margin:20px 0}
.subscription-page .progress-label{display:flex;justify-content:space-between;margin-bottom:8px;font-size:0.9em}
.subscription-page .progress-bar{height:12px;background:#e9ecef;border-radius:6px;overflow:hidden}
.subscription-page .progress-fill{height:100%;background:#28a745;border-radius:6px;transition:width 0.5s ease}
.subscription-page .tariffs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin:30px 0}
.subscription-page .tariff-card{background:#fff;border:2px solid #e9ecef;border-radius:16px;padding:24px;text-align:center;transition:transform 0.2s,box-shadow 0.2s;cursor:pointer}
.subscription-page .tariff-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,0.15);border-color:#2481cc}
.subscription-page .tariff-card.popular{border-color:#2481cc;background:linear-gradient(135deg,#f8f9ff,#eef2ff);position:relative}
.subscription-page .tariff-card.popular::before{content:"🔥 Популярный";position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#2481cc;color:#fff;padding:4px 12px;border-radius:20px;font-size:0.8em;font-weight:700}
.subscription-page .tariff-name{font-size:1.3em;font-weight:700;margin:15px 0 10px}
.subscription-page .tariff-price{font-size:2em;font-weight:700;color:#2481cc;margin:10px 0}
.subscription-page .tariff-price span{font-size:0.5em;color:#666;font-weight:400}
.subscription-page .tariff-features{list-style:none;padding:0;margin:20px 0;text-align:left}
.subscription-page .tariff-features li{padding:6px 0;border-bottom:1px dashed #eee;font-size:0.95em}
.subscription-page .tariff-features li::before{content:"✓ ";color:#28a745;font-weight:700}
.subscription-page .tariff-btn{width:100%;padding:12px 20px;background:#2481cc;color:#fff;border:none;border-radius:10px;font-size:1em;font-weight:600;cursor:pointer;transition:background 0.2s}
.subscription-page .tariff-btn:hover{background:#1e6ba8}
.subscription-page .tariff-btn:disabled{background:#ccc;cursor:not-allowed}
.subscription-page .info-section{background:#f8f9fa;border-radius:12px;padding:20px;margin:20px 0}
.subscription-page .info-section h3{margin-top:0;color:#333}
.subscription-page .info-section ul{padding-left:20px;color:#555}
.subscription-page .info-section li{margin:8px 0}
.subscription-page .back-link{display:inline-block;margin:20px 0;color:#2481cc;font-weight:500}
.subscription-page .back-link:hover{text-decoration:underline}
.subscription-page h1{margin:0 0 20px;color:#333}
.subscription-page h2{margin:30px 0 20px;color:#333}

/* 🔹 08. Lead Cards (enhanced) */
.lead-card{background:#fff;border-radius:16px;padding:20px;margin:16px 0;box-shadow:0 3px 12px rgba(0,0,0,0.1);border-left:5px solid #2481cc;transition:transform 0.2s,box-shadow 0.2s}
.lead-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(36,129,204,0.2)}
.lead-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;padding:10px 14px;background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-radius:10px;border:1px solid #90caf9}
.lead-id{font-size:1.05em;font-weight:800;color:#1565c0}
.lead-region{font-size:1.02em;font-weight:700;color:#0d47a1}
.lead-specs{display:flex;gap:16px;margin:14px 0;align-items:center}
.lead-volume{flex:1;background:#e8f5e9;padding:12px 16px;border-radius:10px;border:1px solid #c8e6c9}
.lead-volume-label{font-size:1.05em;color:#555;font-weight:500;margin-bottom:4px}
.lead-volume-value{font-size:1.8em;font-weight:800;color:#2e7d32}
.lead-volume-value span{font-size:0.5em;font-weight:500;color:#666}
.lead-price{flex:1;background:#ffebee;padding:12px 16px;border-radius:10px;border:1px solid #ffcdd2}
.lead-price-label{font-size:1.05em;color:#555;font-weight:500;margin-bottom:4px}
.lead-price-value{font-size:1.8em;font-weight:800;color:#c62828}
.lead-price-value span{font-size:0.45em;font-weight:500;color:#666}
.lead-address{margin:14px 0;padding:10px 14px;background:#f5f5f5;border-left:4px solid #9e9e9e;border-radius:0 8px 8px 0;font-size:1.05em;color:#424242}
.lead-address::before{content:"📍 "}
.lead-address-label{font-weight:500;color:#424242}
.lead-card .btn-take{background:linear-gradient(135deg,#2481cc,#1e6ba8);box-shadow:0 3px 10px rgba(36,129,204,0.3)}
.lead-card .btn-take:hover{background:linear-gradient(135deg,#1e6ba8,#185689);box-shadow:0 5px 15px rgba(36,129,204,0.4)}

/* 🔥 Навигация в хедере */
.header-nav{display:flex;gap:4px;align-items:center}
.nav-link{display:flex;align-items:center;gap:6px;padding:8px 12px;color:#fff;text-decoration:none;border-radius:8px;transition:background 0.2s;font-size:0.9em}
.nav-link:hover{background:rgba(255,255,255,0.15)}
.nav-link.active{background:rgba(255,255,255,0.25)}
.nav-icon{font-size:1.2em}
.nav-text{display:inline}
.nav-logout{margin-left:8px}

@media (max-width:768px){.nav-text{display:none}.nav-link{padding:10px}.nav-icon{font-size:1.3em}}

/* 🔹 09. Mobile Responsive */
@media (max-width:768px){
    .header{padding:10px 12px}
    .logo{font-size:1.1em}
    .nav-text{display:none}
    .nav-link{padding:10px}
    .nav-icon{font-size:1.3em}
}

@media (max-width:600px){
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .history-table{font-size:0.9em}
    .history-table th,.history-table td{padding:10px 12px}
    .form-row{grid-template-columns:1fr}
    .lead-header{flex-direction:column;gap:6px;text-align:center}
    .lead-specs{flex-direction:column;gap:10px}
    .lead-volume-value,.lead-price-value{font-size:1.5em}
    .subscription-page .tariffs-grid{grid-template-columns:1fr}
    .subscription-page .status-card{padding:20px}
}

/* === Admin Pages Styles === */

/* 🔹 Admin: Leads Page */
.admin-leads-page{max-width:1200px;margin:0 auto;padding:20px}
.admin-create-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.admin-filters{background:#fff;padding:15px 20px;border-radius:12px;margin-bottom:20px;display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.admin-filters .form-group{margin:0}
.admin-filters select,.admin-filters input{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px}
.admin-filters .btn{padding:8px 16px;font-size:14px}
.admin-leads-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.admin-leads-table th{background:#f8f9fa;padding:12px 15px;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #eee;font-size:14px}
.admin-leads-table td{padding:12px 15px;border-bottom:1px solid #eee;font-size:14px}
.admin-leads-table tr:hover{background:#f8f9ff}
.admin-form-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1);max-width:700px}
.admin-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}

/* 🔹 Admin: Sellers Page */
.admin-sellers-page{max-width:1200px;margin:0 auto;padding:20px}
.admin-sellers-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.admin-sellers-table th{background:#f8f9fa;padding:12px 15px;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #eee;font-size:14px}
.admin-sellers-table td{padding:12px 15px;border-bottom:1px solid #eee;font-size:14px}
.admin-sellers-table tr:hover{background:#f8f9ff}
.admin-role-select{padding:6px 10px;border-radius:6px;border:1px solid #ddd;font-size:13px}

/* 🔹 Status badges */
.status-badge{padding:4px 10px;border-radius:20px;font-size:12px;font-weight:500}
.status-new{background:#e3f2fd;color:#1976d2}
.status-assigned{background:#fff3e0;color:#ef6c00}
.status-closed{background:#e8f5e9;color:#388e3c}
.status-returned{background:#fce4ec;color:#c2185b}
.status-active{background:#e8f5e9;color:#388e3c}
.status-blocked{background:#fce4ec;color:#c2185b}
.status-pending{background:#fff3e0;color:#ef6c00}

/* 🔹 Buttons */
.btn-small{padding:6px 12px;font-size:13px;border-radius:6px}

/* 🔹 Mobile */
@media (max-width:768px){
    .admin-form-row{grid-template-columns:1fr}
    .admin-filters{flex-direction:column;align-items:stretch}
    .admin-leads-table,.admin-sellers-table{font-size:13px}
    .admin-leads-table th,.admin-leads-table td,.admin-sellers-table th,.admin-sellers-table td{padding:10px 12px}
    .admin-create-header{flex-direction:column;gap:10px;align-items:stretch}
}

/* 🔹 Admin: Settings Page */
.admin-settings-page{max-width:900px;margin:0 auto;padding:20px}
.settings-section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1);margin-bottom:20px}
.settings-section h3{margin:0 0 20px;color:#333;border-bottom:1px solid #eee;padding-bottom:15px}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.setting-item label{display:block;font-weight:500;margin-bottom:8px;color:#444}
.setting-item input,.setting-item select{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;font-size:14px}
.setting-item input:focus,.setting-item select:focus{outline:none;border-color:#2481cc;box-shadow:0 0 0 3px rgba(36,129,204,.1)}
.regions-table{width:100%;border-collapse:collapse;margin-top:15px}
.regions-table th{background:#f8f9fa;padding:12px 15px;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #eee;font-size:14px}
.regions-table td{padding:12px 15px;border-bottom:1px solid #eee;font-size:14px}
.regions-table tr:hover{background:#f8f9ff}
.toggle-switch{position:relative;display:inline-block;width:50px;height:26px}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#ccc;transition:.3s;border-radius:26px}
.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background:#fff;transition:.3s;border-radius:50%}
input:checked+.toggle-slider{background:#2481cc}
input:checked+.toggle-slider:before{transform:translateX(24px)}
.btn-danger{background:#dc3545;color:#fff}
.btn-danger:hover{background:#c82333}
@media (max-width:768px){.settings-grid{grid-template-columns:1fr}.regions-table{font-size:13px}.regions-table th,.regions-table td{padding:10px 12px}}

/* === Admin: Users Page === */
.admin-users-page{max-width:1200px;margin:0 auto;padding:20px}
.admin-users-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.admin-users-table th{background:#f8f9fa;padding:12px 15px;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #eee;font-size:14px}
.admin-users-table td{padding:12px 15px;border-bottom:1px solid #eee;font-size:14px}
.admin-users-table tr:hover{background:#f8f9ff}
.admin-role-select{padding:6px 10px;border-radius:6px;border:1px solid #ddd;font-size:13px}

/* === Messages Page === */
.messages-page{max-width:900px;margin:0 auto;padding:20px}
.message-card{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.message-card.unread{background:#f0f7ff;border-left:4px solid #2481cc}
.message-card.read{border-left:4px solid #ddd}
.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.message-title{font-weight:600;font-size:15px}
.message-from{color:#666;font-size:13px}
.message-time{color:#999;font-size:12px}
.message-body{color:#333;font-size:14px;line-height:1.5}
.mark-read-btn{background:#2481cc;color:#fff;border:none;padding:8px 16px;border-radius:8px;cursor:pointer;font-size:13px;text-decoration:none;display:inline-block}
.mark-read-btn:hover{background:#1a68a8}

/* === Modal Window === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;  /* 🔥 Скрыто по умолчанию, управляется JS */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;  /* 🔥 Чуть шире для формы редактирования */
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #2481cc;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    margin-top: 10px;
}

/* 🔥 НОВОЕ: Стили для форм в модальных окнах */
.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group textarea,
.modal-body .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #2481cc;
    box-shadow: 0 0 0 2px rgba(36, 129, 204, 0.2);
}

/* 🔥 НОВОЕ: Кнопки действий */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 🔥 Выпадающий список статуса */
.status-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
}
.status-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}
.status-select:focus {
    outline: none;
    border-color: #2481cc;
    box-shadow: 0 0 0 2px rgba(36, 129, 204, 0.2);
}

/* === Mobile === */
@media (max-width:768px){
    .admin-users-table,.admin-sellers-table{font-size:13px}
    .admin-users-table th,.admin-users-table td,.admin-sellers-table th,.admin-sellers-table td{padding:10px 12px}
    .messages-page{padding:15px}
    .message-card{padding:12px}
}

/* 🔥 Удалённые заявки (визуальное отличие) */
.lead-row-deleted {
    background: #f8f9fa !important;
    opacity: 0.6;
}

.lead-row-deleted td {
    color: #6c757d !important;
}

/* 🔥 Статус-бейдж для удалённых — перебиваем все цвета! */
.lead-row-deleted .status-badge,
.lead-row-deleted .status-badge.status-new,
.lead-row-deleted .status-badge.status-assigned,
.lead-row-deleted .status-badge.status-closed,
.lead-row-deleted .status-badge.status-deleted {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

	/* === Mobile: Stats Cards Compact === */

@media (max-width: 768px) {
    .dashboard .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .dashboard .stat-card {
        padding: 12px 8px;
        min-width: 0;
    }
    
    .dashboard .stat-value {
        font-size: 20px;
        font-weight: 700;
    }
    
    .dashboard .stat-label {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .dashboard .stats-grid {
        gap: 8px;
    }
    
    .dashboard .stat-card {
        padding: 10px 6px;
    }
    
    .dashboard .stat-value {
        font-size: 18px;
    }
    
    .dashboard .stat-label {
        font-size: 11px;
    }
}

/* ============================================
   🔥 Страница входа (auth-page)
   ============================================ */

.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.auth-container h1 {
    text-align: center;
    margin: 0 0 5px 0;
    color: #2481cc;
    font-size: 28px;
}

.auth-container h2 {
    text-align: center;
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
}

/* 🔹 Сообщения (алерты) */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid transparent;
}

.alert-blocked {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert small {
    display: block;
    margin-top: 8px;
    font-weight: 500;
    opacity: 0.9;
}

/* 🔹 Блок помощи */
.help-box {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    border: 1px solid #e9ecef;
}

.help-box strong {
    color: #495057;
}

.help-box a {
    color: #2481cc;
    text-decoration: none;
    font-weight: 500;
}

.help-box a:hover {
    text-decoration: underline;
}

/* 🔹 Форма */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2481cc;
    box-shadow: 0 0 0 3px rgba(36, 129, 204, 0.15);
}

.btn-block {
    width: 100%;
    padding: 14px;
    background: #2481cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-block:hover {
    background: #1a65a3;
}

/* 🔹 Ссылки под формой */
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6c757d;
}

.auth-links a {
    color: #2481cc;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links span {
    color: #dee2e6;
    margin: 0 4px;
}

/* 🔹 Адаптив для мобильных */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px 20px;
    }
    .auth-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .auth-links span {
        display: none;
    }
}