*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px; color: #1a1a2e; }
body { background: #f4f4f0; }

/* ── Dark mode ─────────────────────────────────────────────── */
body.dark {
  background: #0f1923;
  color: #d0d8e4;
}
body.dark #sidebar {
  background: #162030;
  border-right-color: #243447;
}
body.dark #sidebar-bottom { border-top-color: #243447; }
body.dark nav a { color: #a0b4c8; }
body.dark nav a:hover, body.dark nav a.active { background: #1e3a5f; color: #fff; }
body.dark .lang-btn { background: #1e2d3d; border-color: #2e4460; color: #a0b4c8; }
body.dark .lang-btn.active { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
body.dark #overdue-banner { background: #2a1a1a; border-color: #5c2a2a; }
body.dark #sidebar-user { border-top-color: #243447; }
body.dark .user-name { color: #d0d8e4; }
body.dark .user-role { color: #6a8aaa; }
body.dark #main-content { background: #0f1923; }
body.dark .page-header { border-bottom-color: #243447; }
body.dark .page-header h1 { color: #d0d8e4; }
body.dark .card, body.dark .stat-card { background: #162030; border-color: #243447; box-shadow: none; }
body.dark .stat-card .stat-value { color: #d0d8e4; }
body.dark .stat-card .stat-label { color: #6a8aaa; }
body.dark .table-card { background: #162030; border-color: #243447; }
body.dark .table-card table th { background: #1e2d3d; color: #6a8aaa; border-bottom-color: #2e4460; }
body.dark .table-card table td { border-bottom-color: #1e2d3d; color: #c0ccda; }
body.dark .table-card table tr:hover td { background: #1e2d3d; }
body.dark .filter-tabs { background: #162030; border-color: #243447; }
body.dark .filter-tab { color: #6a8aaa; }
body.dark .filter-tab.active { background: #1a3a5c; color: #fff; }
body.dark .search-box input { background: #1e2d3d; border-color: #2e4460; color: #c0ccda; }
body.dark .form-control { background: #1e2d3d; border-color: #2e4460; color: #c0ccda; }
body.dark .form-control:focus { border-color: #1a3a5c; }
body.dark label { color: #8aa0b8; }
body.dark .form-hint { color: #6a8aaa; }
body.dark .modal-backdrop { background: rgba(0,0,0,.7); }
body.dark .modal-box { background: #162030; border-color: #243447; }
body.dark .modal-header { background: #1e2d3d; border-bottom-color: #243447; }
body.dark .modal-header h2 { color: #d0d8e4; }
body.dark .section-title { color: #4a7aaa; border-bottom-color: #243447; }
body.dark .btn-secondary { background: #1e2d3d; border-color: #2e4460; color: #a0b4c8; }
body.dark .total-preview { background: #1e2d3d; border-color: #2e4460; }
body.dark .badge { border: 1px solid #2e4460; }
body.dark .cp-header { background: #1a3a5c; }
body.dark .cp-payment-table { background: #1e2d3d; border-color: #2e4460; }
body.dark .cp-payment-table .cpt-head { color: #6a8aaa; border-bottom-color: #2e4460; }
body.dark .cp-payment-table .cpt-row { border-bottom-color: #2e4460; color: #c0ccda; }
body.dark .cp-payment-table .cpt-row.total { color: #4a9aff; }
body.dark .cp-notes { background: #1e2d3d; border-left-color: #1a3a5c; }
body.dark .cp-terms { color: #8aa0b8; }
body.dark .settings-section { background: #162030; border-color: #243447; }
body.dark .settings-section h3 { color: #4a7aaa; border-bottom-color: #243447; }
body.dark .table-card table td .badge.available { background: #0d2d1a; color: #4caf7d; }
body.dark .overdue-row td { background: #2a1a1a !important; }
body.dark .page-head h2 { color: #d0d8e4; }
body.dark .card-title { color: #c0ccda; }
body.dark .modal-header h3 { color: #d0d8e4; }
body.dark .form-section-title { color: #4a7aaa; border-bottom-color: #243447; }
body.dark .total-preview { background: #1e2d3d; color: #7ab4f0; }
body.dark .stat-card .stat-value { color: #7ab4f0; }
body.dark .sort-btn { color: #4a6a8a; }
body.dark .sort-btn:hover { color: #7ab4f0; }
body.dark .badge-rented { background: #1a3050; color: #7ab4f0; }
body.dark .badge-active { background: #1a3050; color: #7ab4f0; }
body.dark .overdue-phone { color: #7ab4f0; }
body.dark .recent-avatar { background: #1e3050; color: #7ab4f0; }
body.dark .cp-biz h2 { color: #d0d8e4; }
body.dark .cp-section-title { color: #4a7aaa; }
body.dark .cp-field span { color: #c0ccda; border-bottom-color: #2e4460; }
body.dark .cp-field label { color: #6a8aaa; }
body.dark .cp-terms li { color: #8aa0b8; }
body.dark .cp-badge .cp-badge-label { color: #4a7aaa; border-color: #4a7aaa; }
body.dark .cp-badge .cp-badge-num { color: #7ab4f0; }
body.dark #sidebar nav a .nav-label { color: inherit; }
body.dark .sidebar-title { color: #4a7aaa; }
body.dark h3 { color: #c0ccda; }

/* ── Login ─────────────────────────────────────────────────── */
#login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f4f4f0; }
.login-card { background: #fff; border-radius: 12px; padding: 40px; width: 380px; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.login-logo { font-size: 40px; text-align: center; margin-bottom: 10px; }
.login-card h2 { text-align: center; font-size: 20px; color: #1a3a5c; font-weight: 600; margin-bottom: 4px; }
.login-card p { text-align: center; color: #888; font-size: 13px; margin-bottom: 28px; }
.login-card .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

/* ── App shell ─────────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ───────────────────────────────────────────────── */
#sidebar {
  width: 220px; background: #fff; border-right: 1px solid #e8e8e4;
  display: flex; flex-direction: column; flex-shrink: 0;
  transition: width .2s;
}
#sidebar.collapsed { width: 56px; }
#sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px; border-bottom: 1px solid #e8e8e4;
  font-size: 15px; font-weight: 700; color: #1a3a5c; white-space: nowrap; overflow: hidden;
}
#sidebar-logo .logo-icon { font-size: 22px; flex-shrink: 0; }
#sidebar.collapsed #sidebar-logo span { display: none; }
#sidebar-collapse {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 16px; padding: 2px 4px; flex-shrink: 0;
}
#sidebar-collapse:hover { color: #555; }

.nav-section-label {
  font-size: 10px; font-weight: 600; color: #aaa; letter-spacing: .8px;
  text-transform: uppercase; padding: 14px 16px 6px;
  white-space: nowrap; overflow: hidden;
}
#sidebar.collapsed .nav-section-label { opacity: 0; }

#sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: #555; text-decoration: none;
  border-radius: 6px; margin: 2px 8px;
  transition: background .12s, color .12s; white-space: nowrap; overflow: hidden;
}
#sidebar nav a:hover { background: #f0f4f9; color: #1a3a5c; }
#sidebar nav a.active { background: #e8f0f9; color: #1a3a5c; font-weight: 600; }
#sidebar nav a .nav-icon { font-size: 17px; flex-shrink: 0; }
#sidebar nav a .nav-label { font-size: 13px; }
#sidebar.collapsed nav a .nav-label { display: none; }
#sidebar nav a .nav-badge {
  margin-left: auto; background: #c0392b; color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; flex-shrink: 0;
}
#sidebar.collapsed nav a .nav-badge { display: none; }

#sidebar-bottom { margin-top: auto; border-top: 1px solid #e8e8e4; padding: 10px 0; }

/* Overdue alert banner */
#overdue-banner {
  margin: 6px 8px; padding: 8px 10px; background: #fff3f3; border: 1px solid #f5c6c6;
  border-radius: 6px; display: none;
}
#sidebar.collapsed #overdue-banner { display: none !important; }
#overdue-banner .ob-title { font-size: 11px; font-weight: 600; color: #c0392b; }
#overdue-banner .ob-msg { font-size: 11px; color: #888; margin-top: 2px; line-height: 1.4; }

/* Lang toggle row */
#lang-row { display: flex; align-items: center; gap: 6px; padding: 6px 16px; }
#lang-row span { font-size: 11px; color: #888; }
.lang-btn {
  padding: 3px 9px; border: 1px solid #ddd; border-radius: 4px;
  background: #fff; font-size: 11px; cursor: pointer; font-weight: 500;
}
.lang-btn.active { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
#theme-toggle {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 15px; padding: 2px 4px; line-height: 1; opacity: .7;
}
#theme-toggle:hover { opacity: 1; }
#sidebar.collapsed #lang-row { display: none; }

/* User info */
#sidebar-user { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; }
#sidebar-user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1a3a5c; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
#sidebar-user .user-info { overflow: hidden; }
#sidebar-user .user-name { font-size: 12px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sidebar-user .user-role { font-size: 11px; color: #888; }
#sidebar.collapsed #sidebar-user .user-info { display: none; }
#logout-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 16px; color: #aaa; padding: 4px; line-height: 1; flex-shrink: 0;
}
#logout-btn:hover { color: #c0392b; }
#sidebar.collapsed #logout-btn { display: none; }
#sidebar-copy {
  text-align: center; font-size: 10px; color: #bbb;
  padding: 4px 0 8px; letter-spacing: .3px;
}
#sidebar-copy a { color: #bbb; text-decoration: none; }
#sidebar-copy a:hover { color: #1a3a5c; }
#sidebar.collapsed #sidebar-copy { display: none; }
body.dark #sidebar-copy { color: #4a6a8a; }
body.dark #sidebar-copy a { color: #4a6a8a; }
body.dark #sidebar-copy a:hover { color: #7ab4f0; }

/* ── Main content ──────────────────────────────────────────── */
#main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.page { display: none; padding: 24px; flex: 1; }
.page.active { display: block; }

.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 22px; font-weight: 600; color: #1a1a2e; }
.page-head .page-sub { font-size: 13px; color: #888; margin-top: 2px; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; }

/* ── Cards ─────────────────────────────────────────────────── */
.card { background: #fff; border-radius: 10px; border: 1px solid #e8e8e4; padding: 20px; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* ── Stat cards ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 10px; border: 1px solid #e8e8e4; padding: 18px; position: relative; }
.stat-card .stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #888; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 30px; font-weight: 700; color: #1a3a5c; line-height: 1; }
.stat-card .stat-sub { font-size: 12px; color: #aaa; margin-top: 4px; }
.stat-card .stat-icon { position: absolute; top: 16px; right: 16px; font-size: 20px; opacity: .25; }
.stat-card.overdue-card { border-color: #f5c6c6; background: #fff8f8; }
.stat-card.overdue-card .stat-value { color: #c0392b; }
.stat-card.overdue-card .stat-label { color: #c0392b; }
.stat-card.overdue-card .stat-sub { color: #c0392b; font-weight: 500; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: none; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: #1a3a5c; color: #fff; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-success { background: #1a7a4a; color: #fff; }
.btn-warning { background: #c06000; color: #fff; }
.sort-btn { background: none; border: none; cursor: pointer; font-size: 11px; color: #aaa; padding: 0 2px; vertical-align: middle; line-height: 1; }
.sort-btn:hover { color: #1a3a5c; }
.btn-ghost { background: none; border: 1px solid #ddd; color: #555; }
.btn-ghost:hover { background: #f5f5f5; opacity: 1; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { padding: 6px 8px; background: none; border: 1px solid #e0e0e0; border-radius: 5px; color: #555; cursor: pointer; font-size: 14px; }
.btn-icon:hover { background: #f5f5f5; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #888; margin-bottom: 5px; }
.form-group .form-hint { font-size: 11px; color: #aaa; margin-top: 3px; }
.form-control {
  width: 100%; padding: 9px 11px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; background: #fafafa; transition: border-color .15s, background .15s;
}
.form-control:focus { outline: none; border-color: #1a3a5c; background: #fff; box-shadow: 0 0 0 3px rgba(26,58,92,.1); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; min-width: 0; }

/* ── Filter tabs ───────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-tab {
  padding: 5px 14px; border: 1px solid #ddd; border-radius: 20px;
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 500; color: #555;
  white-space: nowrap;
}
.filter-tab.active { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
.filter-tab .tab-count { margin-left: 4px; opacity: .7; }

/* ── Search ────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-input { position: relative; }
.search-input input { padding-left: 30px; width: 240px; }
.search-input::before { content: '🔍'; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: #888; padding: 9px 12px; border-bottom: 1px solid #e8e8e4; text-align: left;
  white-space: nowrap; background: #fafafa;
}
td { padding: 11px 12px; border-bottom: 1px solid #f0f0ec; vertical-align: middle; font-size: 13px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafaf7; }
.td-muted { font-size: 11px; color: #aaa; margin-top: 2px; }
.td-actions { display: flex; gap: 5px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-available { background: #e8f5ee; color: #1a7a4a; }
.badge-rented { background: #e8f0f9; color: #1a3a5c; }
.badge-overdue { background: #fde8e8; color: #c0392b; }
.badge-maintenance { background: #f5f0ff; color: #6b21a8; }
.badge-active { background: #e8f0f9; color: #1a3a5c; }
.badge-returned { background: #f0f0ec; color: #666; }
.badge-cancelled { background: #fde8e8; color: #c0392b; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5ee; color: #1a7a4a; border: 1px solid #b8dfc9; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: #fff; border-radius: 12px; width: 580px; max-width: 96vw;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.modal-header { padding: 20px 24px 0; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.modal-header h3 { font-size: 16px; font-weight: 600; color: #1a1a2e; }
.modal-header p { font-size: 12px; color: #aaa; margin-top: 2px; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { float: right; background: none; border: none; font-size: 18px; cursor: pointer; color: #aaa; margin-top: -2px; }
.modal-close:hover { color: #555; }

/* Rental form sections */
.form-section { margin-bottom: 20px; }
.form-section-title { font-size: 12px; font-weight: 600; color: #1a3a5c; text-transform: uppercase; letter-spacing: .5px; padding-bottom: 8px; border-bottom: 1px solid #eee; margin-bottom: 14px; }

/* Total preview */
.total-preview { background: #e8f0f9; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #1a3a5c; margin-bottom: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.total-preview .tp-item strong { font-size: 15px; }

/* Overdue rentals list */
.overdue-list { display: flex; flex-direction: column; gap: 1px; }
.overdue-row {
  display: flex; align-items: center; padding: 12px 16px;
  background: #fff; border-radius: 6px; margin-bottom: 1px; gap: 12px;
}
.overdue-row:not(:last-child) { border-bottom: 1px solid #f0f0ec; }
.overdue-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #fde8e8;
  color: #c0392b; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.overdue-info { flex: 1; min-width: 0; }
.overdue-name { font-size: 13px; font-weight: 500; }
.overdue-detail { font-size: 11px; color: #888; margin-top: 1px; }
.overdue-days { font-size: 13px; font-weight: 700; color: #c0392b; white-space: nowrap; }
.overdue-due { font-size: 11px; color: #c0392b; margin-top: 1px; }
.overdue-phone { font-size: 12px; color: #1a3a5c; white-space: nowrap; }

/* Recent rentals list */
.recent-list { display: flex; flex-direction: column; }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0ec; }
.recent-row:last-child { border-bottom: none; }
.recent-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e8f0f9; color: #1a3a5c; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.recent-info { flex: 1; min-width: 0; }
.recent-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-detail { font-size: 11px; color: #aaa; }
.recent-status { flex-shrink: 0; }
.recent-date { font-size: 11px; color: #aaa; text-align: right; }

/* Dashboard 2-col layout */
.dash-row { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }

/* Return modal info bar */
.return-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; padding: 14px; background: #f9f9f6; border-radius: 8px; border: 1px solid #eee; }
.return-info-item label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #aaa; display: block; margin-bottom: 3px; }
.return-info-item span { font-size: 14px; font-weight: 600; }
.return-info-item span.green { color: #1a7a4a; }
.return-info-item span.red { color: #c0392b; }

/* Contract preview in modal */
.contract-preview { font-family: 'Georgia', serif; padding: 0; }
.cp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #1a3a5c; }
.cp-biz h2 { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.cp-biz p { font-size: 12px; color: #666; }
.cp-badge { text-align: right; }
.cp-badge .cp-badge-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1a3a5c; border: 1px solid #1a3a5c; padding: 2px 8px; border-radius: 3px; display: inline-block; }
.cp-badge .cp-badge-num { font-size: 16px; font-weight: 700; color: #1a3a5c; margin-top: 4px; }
.cp-badge .cp-badge-date { font-size: 11px; color: #888; }
.cp-section { margin-bottom: 16px; }
.cp-section-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #1a3a5c; margin-bottom: 10px; }
.cp-num { width: 20px; height: 20px; border-radius: 50%; background: #1a3a5c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.cp-field label { font-size: 10px; color: #888; display: block; }
.cp-field span { font-size: 13px; color: #1a1a2e; border-bottom: 1px dotted #ddd; display: block; padding-bottom: 2px; }
.cp-payment-table { width: 100%; border: 1px solid #e8e8e4; border-radius: 6px; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; }
.cp-payment-table .cpt-head { background: #f9f9f9; padding: 6px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #888; }
.cp-payment-table .cpt-row { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid #f0f0ec; font-size: 13px; }
.cp-payment-table .cpt-row.total { background: #fff8f0; font-weight: 600; color: #c06000; }
.cp-payment-table .cpt-row.paid { color: #1a7a4a; }
.cp-notes { background: #f0f4f9; border-radius: 6px; padding: 10px 12px; font-size: 12px; color: #555; margin-top: 10px; }
.cp-notes strong { color: #1a3a5c; font-size: 11px; display: block; margin-bottom: 3px; }
.cp-terms ol { padding-left: 18px; }
.cp-terms li { font-size: 12px; color: #333; margin-bottom: 5px; line-height: 1.5; }
.cp-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.cp-sig-col { border-top: 1px dashed #ccc; padding-top: 8px; }
.cp-sig-col .sig-name { font-size: 13px; font-weight: 600; }
.cp-sig-col .sig-sub { font-size: 11px; color: #888; }
.cp-sig-col .sig-date { font-size: 11px; color: #aaa; margin-top: 6px; }
.cp-footer { text-align: center; font-size: 10px; color: #aaa; margin-top: 16px; padding-top: 10px; border-top: 1px solid #eee; font-family: 'Segoe UI', system-ui, sans-serif; }

/* Settings */
.settings-section { margin-bottom: 24px; }
.danger-zone { border: 1px solid #f5c6c6; border-radius: 10px; padding: 20px; }
.danger-zone h3 { color: #c0392b; font-size: 14px; margin-bottom: 6px; }
.danger-zone p { font-size: 13px; color: #888; margin-bottom: 14px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
