@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g50:#f0faf4; --g100:#d4f0e0; --g200:#a8dfc0; --g300:#6ec49a;
  --g400:#3db87a; --g500:#27a363; --g600:#1a8a50; --g700:#136b3d;
  --g800:#0c4d2c; --g900:#072e1a;
  --white:#ffffff; --off:#f8faf9; --surface:#f2f7f4;
  --border:#e0ece5; --border2:#c8ddd2;
  --text1:#0f1f16; --text2:#2d4a38; --text3:#4a7060; --text4:#7a9e8c;
  --accent:#27a363; --accent-l:#e8f7ef; --accent-d:#136b3d;
  --amber:#d97706; --amber-l:#fef3c7;
  --red:#dc2626;   --red-l:#fee2e2;
  --blue:#2563eb;  --blue-l:#dbeafe;
  --purple:#7c3aed;--purple-l:#ede9fe;
  --sidebar-w: 260px;
  --topbar-h:  64px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text1);
  background: var(--off);
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-d); }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.dash-sidebar {
  width: var(--sidebar-w);
  background: var(--g800);
  color: #e8f5ef;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  transition: transform 0.3s;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.sidebar-brand-mark svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round;
}

.sidebar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; color: #fff;
}
.sidebar-brand-name em { font-style: italic; color: #6ee7b7; }

.sidebar-role-badge {
  margin: 12px 20px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: inline-block;
}
.role-admin  { background: rgba(220,80,80,.2);  color: #fca5a5; }
.role-editor { background: rgba(37,99,235,.2);  color: #93c5fd; }
.role-author { background: rgba(39,163,99,.2);  color: #6ee7b7; }

.sidebar-nav { flex: 1; padding: 8px 0; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #5a8a72;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 14px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #9dc9b5;
  font-size: 13.5px;
  font-weight: 400;
  transition: all .15s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
  background: rgba(39,163,99,.15);
  color: #6ee7b7;
  border-left-color: var(--accent);
  font-weight: 500;
}
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 500; color: #e8f5ef; }
.sidebar-user-email { font-size: 11px; color: #7aaa94; }
.btn-logout {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: #7aaa94;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: all .15s;
}
.btn-logout:hover { border-color: var(--red); color: #fca5a5; }

/* Main content area */
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.dash-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--text1);
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

/* Notification bell */
.notif-bell {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--text3);
  transition: all .15s;
}
.notif-bell:hover { border-color: var(--accent); color: var(--accent); }
.notif-count {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notif-count.hidden { display: none; }

/* Notification dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(var(--topbar-h) - 4px);
  right: 100px;
  width: 340px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 999;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text1);
}
.notif-read-all {
  font-size: 12px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: var(--g50); }
.notif-item.unread { background: var(--accent-l); }
.notif-item:last-child { border-bottom: none; }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}
.notif-dot.read { background: var(--border2); }
.notif-item-msg { font-size: 13px; color: var(--text2); line-height: 1.4; }
.notif-item-time { font-size: 11px; color: var(--text4); margin-top: 3px; }
.notif-empty { padding: 28px; text-align: center; color: var(--text4); font-size: 13px; }

/* Page content */
.dash-content { padding: 28px; flex: 1; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600; color: var(--text1);
  display: flex; align-items: center; gap: 8px;
}
.card-line { width: 22px; height: 2.5px; background: var(--accent); border-radius: 2px; }

/* Stat cards */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.si-green  { background: var(--accent-l); }
.si-amber  { background: var(--amber-l); }
.si-blue   { background: var(--blue-l); }
.si-purple { background: var(--purple-l); }
.si-red    { background: var(--red-l); }
.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--text1); line-height: 1;
}
.stat-lab { font-size: 12px; color: var(--text4); margin-top: 4px; }
.stat-change { font-size: 11.5px; margin-top: 6px; }
.change-up   { color: var(--accent); }
.change-down { color: var(--red); }

/* ── TABLES ──────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--off); }
th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--g50); }

/* ── BADGES / TAGS ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}
.badge-admin    { background: var(--red-l);    color: #991b1b; }
.badge-editor   { background: var(--blue-l);   color: #1e40af; }
.badge-author   { background: var(--accent-l); color: var(--g700); }
.badge-active   { background: var(--accent-l); color: var(--g700); }
.badge-suspended{ background: var(--red-l);    color: #991b1b; }
.badge-pending  { background: var(--amber-l);  color: #92400e; }
.badge-draft    { background: var(--surface);  color: var(--text3); }
.badge-submitted{ background: var(--blue-l);   color: #1e40af; }
.badge-editor-review { background: var(--purple-l); color: #5b21b6; }
.badge-changes-needed { background: var(--amber-l); color: #92400e; }
.badge-admin-review   { background: #fef3c7;   color: #92400e; }
.badge-approved { background: var(--accent-l); color: var(--g700); }
.badge-published{ background: var(--g700);     color: #fff; }
.badge-rejected { background: var(--red-l);    color: #991b1b; }

/* ── PIPELINE TRACKER ────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  overflow-x: auto;
}
.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 90px;
}
.pipe-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text4);
  position: relative;
  z-index: 1;
}
.pipe-dot.done  { background: var(--accent); border-color: var(--accent); color: #fff; }
.pipe-dot.active{ background: var(--accent-l); border-color: var(--accent); color: var(--accent); }
.pipe-dot.error { background: var(--red-l); border-color: var(--red); color: var(--red); }
.pipe-label { font-size: 11px; color: var(--text4); text-align: center; line-height: 1.3; }
.pipe-label.done  { color: var(--accent); font-weight: 500; }
.pipe-label.active{ color: var(--accent-d); font-weight: 600; }
.pipe-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
  min-width: 30px;
}
.pipe-line.done { background: var(--accent); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px;
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text1);
  background: var(--off);
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11.5px; color: var(--text4); margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Tags input */
.tags-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--off);
  min-height: 44px;
  cursor: text;
}
.tags-input-wrap:focus-within { border-color: var(--accent); }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--accent-l);
  color: var(--g700);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
}
.tag-chip button {
  background: none;
  border: none;
  color: var(--g600);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.tags-input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text1);
  min-width: 120px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  transition: all .15s;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-secondary { background: var(--surface); color: var(--text2); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger    { background: var(--red-l); color: var(--red); border: 1.5px solid #fecaca; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-amber     { background: var(--amber-l); color: var(--amber); border: 1.5px solid #fde68a; }
.btn-amber:hover { background: var(--amber); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-lg { max-width: 860px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--text1);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: none;
  font-size: 18px;
  color: var(--text3);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--accent-l); color: var(--g700); border: 1px solid var(--g200); }
.alert-error   { background: var(--red-l);    color: #991b1b;   border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-l);   color: #1e40af;   border: 1px solid #bfdbfe; }
.alert-warning { background: var(--amber-l);  color: #92400e;   border: 1px solid #fde68a; }

/* ── DOCX PREVIEW ────────────────────────────────────────── */
.docx-preview-wrap {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.docx-preview-toolbar {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text3);
}
.docx-preview-body {
  padding: 28px;
  background: var(--white);
  max-height: 500px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text1);
}
.docx-preview-body h1,
.docx-preview-body h2,
.docx-preview-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text1);
  margin: 18px 0 10px;
}
.docx-preview-body p { margin-bottom: 12px; }
.docx-preview-body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}
.docx-preview-body td,
.docx-preview-body th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

/* ── UPLOAD ZONES ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--off);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-l);
}
.upload-zone-icon { font-size: 36px; margin-bottom: 10px; }
.upload-zone-text { font-size: 14px; color: var(--text3); }
.upload-zone-hint { font-size: 12px; color: var(--text4); margin-top: 4px; }
.upload-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
  display: none;
}
.upload-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s;
}

/* ── TABS ────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  font-weight: 400;
  transition: all .15s;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── SITE BUILDER ────────────────────────────────────────── */
.builder-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}
.builder-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.builder-section-head:hover { background: var(--g50); }
.builder-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text1);
}
.builder-section-body {
  padding: 20px;
  display: none;
}
.builder-section-body.open { display: block; }
.builder-toggle { font-size: 18px; color: var(--text4); transition: transform .2s; }
.builder-toggle.open { transform: rotate(180deg); }

.draggable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 8px;
  cursor: grab;
}
.drag-handle { color: var(--text4); font-size: 16px; cursor: grab; }
.draggable-item.dragging { opacity: .4; }

/* ── EMPTY STATES ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text4);
}
.empty-state-icon { font-size: 48px; margin-bottom: 14px; opacity: .5; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text3); margin-bottom: 8px; }
.empty-state-text { font-size: 13.5px; }

/* ── LOADING ─────────────────────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}
.page-loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text1);
}
.page-loader-logo em { font-style: italic; color: var(--accent); }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-left {
  background: linear-gradient(160deg, var(--g800) 0%, var(--g600) 60%, var(--g400) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.login-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.login-brand-name em { font-style: italic; color: #6ee7b7; }
.login-tagline { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 380px; }
.login-features { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.login-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}
.login-box { width: 100%; max-width: 400px; }
.login-box-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--text1);
  margin-bottom: 6px;
}
.login-box-sub { font-size: 14px; color: var(--text3); margin-bottom: 28px; }
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 18px;
  transition: all .15s;
}
.btn-google:hover { border-color: var(--accent); background: var(--g50); }
.divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--text4);
  margin: 16px 0;
  position: relative;
}
.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.mobile-open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
}
