/* ============================================================
   ASite.pro — Central de Administração
   CSS único, sem dependências externas (vanilla)
   ============================================================ */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f6fa;
    color: #1e293b;
    display: flex;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== ICONS (SVG sprite) ===== */
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #eef2f6; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.sidebar-brand { padding: 28px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 12px; }
.sidebar-brand .logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
}
.sidebar-brand h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: #f8fafc; }
.sidebar-brand h1 span { color: #818cf8; }
.sidebar-nav { flex: 1; padding: 24px 16px; overflow-y: auto; }
.sidebar-nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #64748b; padding: 0 12px; margin-bottom: 12px; font-weight: 600; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: #94a3b8; transition: all 0.2s; margin-bottom: 4px; position: relative;
}
.sidebar-nav a .icon { width: 16px; height: 16px; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #f1f5f9; }
.sidebar-nav a.active { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.sidebar-nav a.active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #818cf8; border-radius: 0 4px 4px 0;
}
.sidebar-nav a .badge-nav { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }
.sidebar-nav a.disabled { opacity: 0.4; cursor: not-allowed; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: #64748b; }
.sidebar-footer .user-info { display: flex; align-items: center; gap: 12px; }
.sidebar-footer .user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: #fff; flex-shrink: 0;
}
.sidebar-footer .user-name { font-weight: 500; color: #e2e8f0; }
.sidebar-footer .user-email { font-size: 12px; color: #64748b; }
.sidebar-footer .logout-link { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; transition: color .2s; }
.sidebar-footer .logout-link:hover { color: #f87171; }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ===== HEADER ===== */
.header {
    background: rgba(255,255,255,0.92);
    padding: 16px 32px; border-bottom: 1px solid #e9edf4;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-left .menu-toggle { display: none; font-size: 20px; color: #1e293b; padding: 4px 8px; }
.header-left h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.header-left h2 span { color: #6366f1; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-right .search-box {
    display: flex; align-items: center; background: #f1f5f9; border-radius: 30px; padding: 8px 18px; gap: 10px;
    border: 1px solid transparent; transition: all 0.2s;
}
.header-right .search-box:focus-within { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.header-right .search-box input { border: none; background: transparent; outline: none; font-size: 14px; color: #1e293b; width: 180px; }
.header-right .search-box input::placeholder { color: #94a3b8; }
.header-right .search-box .icon { color: #94a3b8; font-size: 14px; }

/* ===== NOTIFICATIONS ===== */
.notif-wrapper { position: relative; }
.notif-btn { position: relative; font-size: 20px; color: #475569; padding: 6px; border-radius: 50%; transition: background 0.2s; }
.notif-btn:hover { background: #f1f5f9; }
.notif-btn .notif-dot {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: #ef4444; border-radius: 50%;
    font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.notif-dropdown {
    position: absolute; right: 0; top: calc(100% + 12px); width: 380px; max-height: 420px; overflow-y: auto;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); padding: 16px 0; display: none; z-index: 200; border: 1px solid #e9edf4;
}
.notif-dropdown.open { display: block; animation: fadeSlide 0.25s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.notif-dropdown .notif-header { padding: 0 20px 12px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.notif-dropdown .notif-header h4 { font-size: 14px; font-weight: 600; }
.notif-dropdown .notif-header button { font-size: 12px; color: #6366f1; font-weight: 500; }
.notif-item { padding: 12px 20px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid #f8fafc; transition: background 0.15s; cursor: default; }
.notif-item:hover { background: #f8fafc; }
.notif-item .notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: #fff; }
.notif-item .notif-icon.support { background: #3b82f6; }
.notif-item .notif-icon.budget { background: #f59e0b; }
.notif-item .notif-icon.order { background: #8b5cf6; }
.notif-item .notif-icon.email { background: #10b981; }
.notif-item .notif-content { flex: 1; min-width: 0; }
.notif-item .notif-content p { font-size: 13px; line-height: 1.4; color: #1e293b; }
.notif-item .notif-content .notif-site { font-size: 12px; color: #6366f1; font-weight: 500; display: inline-block; margin-top: 2px; }
.notif-item .notif-content .notif-time { font-size: 11px; color: #94a3b8; display: block; margin-top: 4px; }
.notif-empty { padding: 30px 20px; text-align: center; color: #94a3b8; font-size: 14px; }
.notif-empty .icon { font-size: 32px; display: block; margin: 0 auto 10px; color: #cbd5e1; }

/* ===== DASHBOARD ===== */
.dashboard { padding: 28px 32px 40px; flex: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: 16px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #e9edf4; transition: transform 0.15s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.stat-card .stat-label { font-size: 13px; font-weight: 500; color: #64748b; display: flex; align-items: center; gap: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #0f172a; margin-top: 6px; }
.stat-card .stat-change { font-size: 12px; font-weight: 500; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; }
.stat-card .stat-change.neutral { color: #64748b; background: #f1f5f9; }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-header h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; }
.section-header .actions { display: flex; gap: 10px; }
.section-header .actions button {
    padding: 8px 18px; border-radius: 30px; font-weight: 500; font-size: 13px; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; border: 1px solid #e9edf4; background: #fff; color: #475569;
}
.section-header .actions button:hover { border-color: #6366f1; color: #6366f1; background: #f8faff; }
.section-header .actions button.primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.section-header .actions button.primary:hover { background: #4f46e5; border-color: #4f46e5; }

/* ===== SITES GRID ===== */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.site-card { background: #fff; border-radius: 16px; border: 1px solid #e9edf4; padding: 20px 22px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.site-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-color: #d1d9e6; }
.site-card.inactive { opacity: 0.6; }
.site-card .site-top { display: flex; justify-content: space-between; align-items: flex-start; }
.site-card .site-info { display: flex; gap: 14px; align-items: center; }
.site-card .site-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; flex-shrink: 0; }
.site-card .site-name { font-weight: 600; font-size: 16px; color: #0f172a; }
.site-card .site-domain { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 4px; }
.site-card .site-domain .icon { font-size: 10px; }
.site-card .site-status { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-card .site-status.online { background: #ecfdf5; color: #10b981; }
.site-card .site-status.offline { background: #fef2f2; color: #ef4444; }
.site-card .site-status.maintenance { background: #fffbeb; color: #f59e0b; }
.site-card .site-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.site-card .site-status-inactive { background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-left: 6px; }

.site-card .site-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.site-card .site-metrics .metric { text-align: center; }
.site-card .site-metrics .metric .metric-value { font-size: 18px; font-weight: 700; color: #0f172a; }
.site-card .site-metrics .metric .metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; color: #94a3b8; font-weight: 600; margin-top: 2px; }
.site-card .site-metrics .metric .metric-value.has-alert { color: #ef4444; }
.site-card .site-metrics .metric .metric-value.has-budget { color: #f59e0b; }
.site-card .site-metrics .metric .metric-value.has-order { color: #8b5cf6; }
.site-card .site-metrics .metric .metric-value.has-email { color: #10b981; }

.site-card .site-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.site-card .site-footer .site-last { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.site-card .site-footer .site-actions { display: flex; gap: 6px; }
.site-card .site-footer .site-actions button { padding: 5px 10px; font-size: 12px; border-radius: 6px; color: #64748b; transition: all 0.15s; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 4px; }
.site-card .site-footer .site-actions button:hover { background: #f1f5f9; color: #0f172a; }
.site-card .site-footer .site-actions button.primary-btn { background: #6366f1; color: #fff; border-color: #6366f1; }
.site-card .site-footer .site-actions button.primary-btn:hover { background: #4f46e5; }
.site-card .site-footer .site-actions button.danger-btn:hover { background: #fef2f2; color: #ef4444; }
.site-card .site-footer .site-actions button.warn-btn:hover { background: #fffbeb; color: #f59e0b; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #94a3b8; background: #fff; border-radius: 16px; border: 1px dashed #d1d9e6; }
.empty-state .icon { font-size: 40px; width: 40px; height: 40px; display: block; margin: 0 auto 12px; color: #cbd5e1; }
.empty-state p.title { font-size: 16px; font-weight: 500; color: #475569; }
.empty-state p.sub { font-size: 14px; margin-top: 4px; }

/* ===== ALERT BANNER ===== */
.alert-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 14px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alert-banner .icon { color: #ef4444; font-size: 18px; width: 18px; height: 18px; }
.alert-banner .alert-text { font-size: 14px; color: #991b1b; flex: 1; }
.alert-banner .alert-text strong { color: #7f1d1d; }
.alert-banner .alert-close { color: #991b1b; font-size: 16px; opacity: 0.6; transition: opacity 0.2s; }
.alert-banner .alert-close:hover { opacity: 1; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #0f172a; color: #f8fafc; padding: 14px 22px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; min-width: 280px; max-width: 420px; font-size: 14px; border-left: 4px solid #6366f1; }
.toast.success { border-left-color: #10b981; }
.toast.warning { border-left-color: #f59e0b; }
.toast.error { border-left-color: #ef4444; }
.toast .icon { font-size: 18px; width: 18px; height: 18px; flex-shrink: 0; }
.toast .toast-close { margin-left: auto; color: #94a3b8; font-size: 14px; cursor: pointer; }
.toast .toast-close:hover { color: #f8fafc; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.removing { animation: slideOut 0.25s ease forwards; }
@keyframes slideOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== OVERLAY ===== */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 90; }
.sidebar-overlay.active { display: block; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.25); animation: fadeSlide 0.25s ease; max-height: 90vh; overflow-y: auto; }
.modal-box.modal-wide { max-width: 560px; }
.modal-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.modal-box .modal-sub { color: #64748b; font-size: 14px; margin-bottom: 20px; }
.modal-box .modal-actions { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
.modal-box .modal-actions button { padding: 10px 24px; border-radius: 30px; font-weight: 500; font-size: 14px; }
.modal-box .modal-actions .btn-secondary { border: 1px solid #e9edf4; color: #475569; }
.modal-box .modal-actions .btn-secondary:hover { background: #f8fafc; }
.modal-box .modal-actions .btn-primary { background: #6366f1; color: #fff; }
.modal-box .modal-actions .btn-primary:hover { background: #4f46e5; }
.modal-box .modal-actions .btn-danger { background: #ef4444; color: #fff; }
.modal-box .modal-actions .btn-danger:hover { background: #dc2626; }
.modal-box .modal-detail-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.modal-box .modal-detail-item .label { color: #64748b; }
.modal-box .modal-detail-item .value { font-weight: 500; }

/* ===== FORMS (modals) ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #1e293b;
    background: #f8fafc; transition: all 0.15s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-help { color: #94a3b8; font-size: 12px; margin-top: 4px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 24px; transition: .2s; }
.switch .slider::before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #10b981; }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; gap: 10px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge .icon { width: 11px; height: 11px; }
.badge-admin { background: #ede9fe; color: #7c3aed; }
.badge-operador { background: #e0f2fe; color: #0284c7; }
.badge-active { background: #ecfdf5; color: #10b981; }
.badge-inactive { background: #f1f5f9; color: #64748b; }
.badge-pending { background: #fffbeb; color: #f59e0b; }
.badge-plano { background: #eef2ff; color: #6366f1; }
.badge-doacao { background: #fdf2f8; color: #ec4899; }

/* Filtros (select simples na section-header) */
.filter-select {
    padding: 8px 14px; border-radius: 30px; font-weight: 500; font-size: 13px; border: 1px solid #e9edf4;
    background: #fff; color: #475569; outline: none; cursor: pointer;
}
.filter-select:focus { border-color: #818cf8; }

/* ===== TABLE (usuários) ===== */
.table-wrapper { background: #fff; border-radius: 16px; border: 1px solid #e9edf4; overflow: hidden; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: #64748b; font-weight: 600; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid #e9edf4; }
table.data-table td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafbfd; }
.table-user-cell { display: flex; align-items: center; gap: 12px; }
.table-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: #fff; flex-shrink: 0; }
.table-actions { display: flex; gap: 6px; }
.table-actions button { padding: 6px 10px; border-radius: 8px; color: #64748b; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.table-actions button:hover { background: #f1f5f9; color: #0f172a; }
.table-actions button.danger-btn:hover { background: #fef2f2; color: #ef4444; }
.table-actions button.warn-btn:hover { background: #fffbeb; color: #f59e0b; }

/* ===== AUTH PAGES (login / install) ===== */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100%; background: linear-gradient(135deg, #0f172a, #312e81 60%, #4c1d95); }
.auth-wrapper { width: 100%; max-width: 420px; padding: 20px; }
.auth-card { background: #fff; border-radius: 24px; padding: 40px 36px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand h1 { font-size: 22px; font-weight: 700; color: #0f172a; }
.auth-brand h1 span { color: #6366f1; }
.auth-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.auth-sub { color: #64748b; font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.auth-form label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 6px; margin-top: 16px; }
.auth-form label:first-child { margin-top: 0; }
.auth-form input {
    width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; background: #f8fafc; outline: none; transition: all .15s;
}
.auth-form input:focus { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.auth-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.auth-errors p { color: #991b1b; font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.btn-primary-full {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 24px; padding: 13px;
    background: #6366f1; color: #fff; border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .2s; border: none; cursor: pointer;
}
.btn-primary-full:hover { background: #4f46e5; }
.btn-primary-full:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #94a3b8; }
.password-field { position: relative; }
.password-field .toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-2px); color: #94a3b8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sites-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .header-left .menu-toggle { display: block; }
    .header { padding: 12px 16px; }
    .header-right .search-box { display: none; }
    .dashboard { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 22px; }
    .sites-grid { grid-template-columns: 1fr; }
    .notif-dropdown { width: calc(100vw - 32px); right: -8px; }
    .site-card .site-metrics { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: stretch; }
    .section-header .actions { flex-wrap: wrap; }
    .section-header .actions button { flex: 1; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card .stat-value { font-size: 18px; }
    .stat-card .stat-label { font-size: 11px; }
    .header-left h2 { font-size: 16px; }
    .auth-card { padding: 28px 22px; }
}
