/* ============================================================
   DepoSync — Main Stylesheet
   Navy + orange brand, multi-tenant (agency colors via inline)
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-light: #1e2d4a;
  --orange: #c2581f;
  --orange-hover: #a84a18;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #ca8a04;
  --info: #2563eb;
  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --font: 'Inter', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  display: flex;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;                /* FIX: was min-height: 100vh — needs fixed height so nav can scroll */
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;               /* FIX: prevent header from shrinking */
}

.sidebar-logo-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-img { height: 34px; width: auto; border-radius: 6px; }

.sidebar-agency-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;             /* FIX: was overflow: auto — text-overflow:ellipsis requires hidden */
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;                /* FIX: allows flex child to shrink below content size so scroll works */
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-item.active {
  background: var(--orange);
  color: #fff;
}

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Multi-tool sidebar section labels ──────────────────────── */

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  padding: 10px 12px 4px;
  user-select: none;
}

.nav-section-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 10px;
}

/* ── Coming soon pages ──────────────────────────────────────── */

.coming-soon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  min-height: 360px;
}

.coming-soon-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.coming-soon-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.coming-soon-body {
  font-size: 0.9rem;
  color: var(--gray-400);
  max-width: 400px;
  line-height: 1.7;
}

/* ── Tool access settings ────────────────────────────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tool-card:hover { border-color: var(--orange); background: #fffaf7; }

.tool-card input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--orange);
  width: 15px; height: 15px;
  flex-shrink: 0;
}

.tool-card-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.tool-card-desc {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.4;
}

.tool-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
}

.tool-badge-deposync  { background: #e0e7ff; color: #3730a3; }
.tool-badge-caselink  { background: #ffedd5; color: #c2581f; }
.tool-badge-processmap{ background: #dcfce7; color: #15803d; }

/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */

.sidebar-footer {
  padding: 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;               /* FIX: prevent footer from shrinking */
}

.sidebar-user { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }

.sidebar-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-user-info { min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: 0.72rem; }

.logout-btn {
  color: rgba(255,255,255,0.45);
  display: flex; align-items: center;
  transition: color 0.18s;
  padding: 4px;
}
.logout-btn:hover { color: #fff; }
.logout-btn i { width: 16px; height: 16px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  flex: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.page-content {
  flex: 1;
  padding: 24px;
  max-width: 1280px;
  width: 100%;
}

.powered-by {
  padding: 12px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.powered-by a { color: var(--orange); font-weight: 600; }
.df-link { color: var(--gray-400) !important; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash-container { padding: 12px 24px 0; }
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.flash-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.flash-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.flash-icon { width: 16px; height: 16px; flex-shrink: 0; }
.flash span { flex: 1; }
.flash-close { background: none; border: none; cursor: pointer; color: inherit; opacity: 0.6; padding: 2px; margin-left: auto; }
.flash-close:hover { opacity: 1; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.card-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }
.card-subtitle { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }
.card-header-actions { display: flex; gap: 6px; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary  { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }

.btn-outline  { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }

.btn-ghost    { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }

.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }

.btn-sm  { padding: 6px 12px; font-size: 0.8rem; }
.btn-xs  { padding: 4px 8px; font-size: 0.75rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-hint  { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

.form-input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color 0.18s;
}

.form-input:focus { outline: none; border-color: var(--orange); }
.form-input-error { border-color: var(--danger); }
.form-input::placeholder { color: var(--gray-400); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-textarea { resize: vertical; min-height: 80px; }

.form-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.form-check-group { display: flex; align-items: center; gap: 8px; }
.form-checkbox { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.form-check-label { font-size: 0.875rem; font-weight: 500; cursor: pointer; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title { font-size: 0.82rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.form-page { max-width: 680px; }
.form-card { padding: 28px; }

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-800); }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }

/* ============================================================
   AVAILABILITY GRID
   ============================================================ */

.grid-scroll { overflow-x: auto; }
.avail-grid { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.avail-grid thead { background: var(--gray-50); }
.avail-grid th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.avail-grid td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.avail-grid tbody tr:hover { background: var(--gray-50); }
.grid-name-col { width: 200px; position: sticky; left: 0; background: #fff; z-index: 2; }
.grid-day-col { min-width: 110px; text-align: center; }
.grid-day-name { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); }
.grid-day-date { font-size: 0.82rem; font-weight: 600; }
.grid-name-cell { position: sticky; left: 0; background: #fff; z-index: 1; }
.grid-day-cell { text-align: center; }

.reporter-name-link { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.reporter-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.reporter-avatar-sm { width: 28px; height: 28px; font-size: 0.68rem; }
.reporter-name { font-weight: 600; font-size: 0.875rem; }
.reporter-role-tag { font-size: 0.72rem; color: var(--gray-400); }

.avail-pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.avail-allday     { background: #dcfce7; color: #15803d; }
.avail-partial    { background: #fef9c3; color: #92400e; }
.avail-unavailable{ background: #f3f4f6; color: #6b7280; }
.avail-noresponse { background: #fff; color: #d1d5db; border: 1px solid #e5e7eb; }

.grid-legend { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--gray-600); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-allday { background: #16a34a; }
.legend-partial { background: #ca8a04; }
.legend-unavailable { background: #d1d5db; }
.legend-noresponse { background: #fff; border: 1.5px solid #d1d5db; }

/* ============================================================
   WEEK NAVIGATION
   ============================================================ */

.week-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.week-nav-label { font-weight: 700; font-size: 0.95rem; flex: 1; text-align: center; }

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-unassigned      { background: #fef2f2; color: #b91c1c; }
.status-pending         { background: #fffbeb; color: #92400e; }
.status-partially_assigned { background: #eff6ff; color: #1d4ed8; }
.status-confirmed       { background: #f0fdf4; color: #15803d; }
.status-cancelled       { background: #f3f4f6; color: #6b7280; }
.status-declined        { background: #fef2f2; color: #b91c1c; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.status-dot-active { background: #16a34a; }
.status-dot-inactive { background: #d1d5db; }

/* ============================================================
   JOBS
   ============================================================ */

.job-list { }
.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.job-row:last-child { border-bottom: none; }
.job-row:hover { background: var(--gray-50); }

.job-row-date {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.job-date-day { font-size: 0.72rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; }
.job-date-num { font-size: 1.2rem; font-weight: 800; color: var(--gray-800); line-height: 1.1; }
.job-row-info { flex: 1; min-width: 0; }
.job-row-title { font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row-sub { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }
.job-row-status { flex-shrink: 0; }

/* ============================================================
   DETAIL PAGES
   ============================================================ */

.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 20px 20px; }
.detail-item { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.detail-item-full { grid-column: span 2; }
.detail-label { font-size: 0.75rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.detail-value { font-size: 0.9rem; font-weight: 500; }

.assignment-list { }
.assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.assignment-row:last-child { border-bottom: none; }
.assignment-reporter { display: flex; align-items: center; gap: 10px; }
.assignment-name { font-weight: 600; font-size: 0.875rem; }
.assignment-meta { font-size: 0.78rem; color: var(--gray-400); }
.assignment-status { text-align: right; }
.assignment-sent { font-size: 0.72rem; color: var(--gray-400); margin-top: 3px; }
.assignment-decline-reason { font-size: 0.75rem; color: var(--danger); margin-top: 3px; }
.assignment-need { font-size: 0.8rem; color: var(--gray-500); }

/* ============================================================
   DATA TABLE
   ============================================================ */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead { background: var(--gray-50); }
.data-table th { padding: 10px 16px; text-align: left; font-weight: 600; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.row-inactive { opacity: 0.55; }
.td-truncate { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-actions { white-space: nowrap; text-align: right; }
.table-name-link { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.role-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.role-reporter    { background: #eff6ff; color: #1d4ed8; }
.role-videographer{ background: #faf5ff; color: #7e22ce; }
.role-both        { background: #f0fdf4; color: #15803d; }

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-search { width: 240px; }
.filter-select { width: 160px; }
.filter-toggles { display: flex; align-items: center; gap: 8px; }
.stat-pill { background: var(--gray-100); color: var(--gray-600); padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }

/* ============================================================
   SECTION ROW (dashboard layout)
   ============================================================ */

.section-row { display: flex; gap: 20px; align-items: start; }

/* ============================================================
   AVAILABILITY SUMMARY
   ============================================================ */

.availability-summary { padding: 16px 20px; }
.avail-bar-wrap { margin-bottom: 12px; }
.avail-bar-label { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 6px; font-weight: 600; }
.avail-bar { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.avail-bar-fill { height: 100%; background: var(--orange); border-radius: 999px; transition: width 0.4s ease; }
.avail-complete { font-size: 0.82rem; color: var(--success); font-weight: 600; }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state { text-align: center; padding: 40px 20px; }
.empty-icon { width: 40px; height: 40px; color: var(--gray-300); margin: 0 auto 12px; }
.empty-state p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 16px; }
.empty-text { color: var(--gray-400); font-size: 0.875rem; padding: 20px; text-align: center; }

/* ============================================================
   SETTINGS
   ============================================================ */

.settings-grid { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.settings-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.18s;
}
.settings-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.settings-icon { width: 36px; height: 36px; background: var(--gray-100); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-600); }
.settings-icon i { width: 18px; height: 18px; }
.settings-info { flex: 1; }
.settings-title { font-weight: 700; font-size: 0.9rem; }
.settings-desc { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }
.settings-arrow { width: 16px; height: 16px; color: var(--gray-300); }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--navy);
  padding: 24px;
}

.auth-container { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border-radius: 14px; padding: 36px; margin-bottom: 16px; box-shadow: var(--shadow-md); }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 52px; height: 52px;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { color: var(--gray-400); font-size: 0.875rem; }
.auth-footer { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.auth-footer a { color: rgba(255,255,255,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: contents; }
  .section-row { flex-direction: column; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar-menu-btn { display: flex; }
  .form-row-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
}