/* RepGuard — Main Stylesheet */
/* Brand: Navy #1A2F5C | Gold #C9A84C | Font: Inter */

:root {
  --navy: #1A2F5C;
  --navy-dark: #122244;
  --navy-light: #243f78;
  --gold: #C9A84C;
  --gold-dark: #b08e3a;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
  --sidebar-width: 240px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.5;
}

/* ── Auth Pages ─────────────────────────────────── */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 24px;
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.auth-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.auth-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ── Forms ──────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 47, 92, 0.1);
}

/* ── Buttons ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-full {
  width: 100%;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--gray-300);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  text-align: left;
}

.btn-logout:hover {
  color: var(--white);
}

/* ── Alerts ─────────────────────────────────────── */

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
}

/* ── App Layout ─────────────────────────────────── */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

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

.sidebar .logo-mark {
  background: var(--gold);
  color: var(--navy);
}

.sidebar .logo-text {
  color: var(--white);
  font-size: 18px;
}

.sidebar-role-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0 20px 12px;
}

.sidebar-nav {
  list-style: none;
  flex: 1;
  padding: 0 12px;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.powered-by {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ── Main Content ───────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 32px;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
}

.page-header p {
  color: var(--gray-500);
  margin-top: 4px;
  font-size: 14px;
}

/* ── Stats Grid ─────────────────────────────────── */

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

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid var(--gray-200);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.score-green { color: var(--green); }
.score-yellow { color: var(--yellow); }
.score-red { color: var(--red); }

/* ── Section Card ───────────────────────────────── */

.section-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.section-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.muted {
  color: var(--gray-500);
}

.muted a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.muted a:hover {
  text-decoration: underline;
}

/* ── Section Card Header ────────────────────────── */

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-card-header h2 {
  margin-bottom: 0;
}

/* ── Buttons (additional sizes) ─────────────────── */

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
}

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

/* ── Filter Bar ─────────────────────────────────── */

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.filter-group select {
  padding: 7px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  outline: none;
}

.filter-group select:focus {
  border-color: var(--navy);
}

/* ── Review Feed ─────────────────────────────────── */

.review-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 24px;
  border-left: 4px solid var(--gray-200);
}

.review-card.review-pending {
  border-left-color: var(--gold);
}

.review-card.review-responded {
  border-left-color: var(--green);
}

.review-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.platform-google { background: #f0f4ff; color: #1a56db; }
.platform-facebook { background: #eff6ff; color: #1877F2; }

.star-rating {
  display: flex;
  gap: 1px;
}

.star {
  font-size: 15px;
  line-height: 1;
}

.star-filled { color: #f59e0b; }
.star-empty  { color: var(--gray-200); }

.review-date {
  font-size: 12px;
  color: var(--gray-500);
  margin-left: auto;
}

.reviewer-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}

.review-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── Response Block ──────────────────────────────── */

.response-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 4px;
}

.response-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 6px;
}

.response-text {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ── AI Draft Block ──────────────────────────────── */

.ai-draft-block {
  background: #fafaf5;
  border: 1px solid #e8e4c8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 4px;
}

.ai-draft-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.ai-draft-text {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ai-draft-actions {
  display: flex;
  gap: 8px;
}

/* ── Empty State ─────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.empty-state p {
  margin-bottom: 16px;
}

/* ── Alert warning ───────────────────────────────── */

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ── Google Connect Card ─────────────────────────── */

.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.connect-card-icon { flex-shrink: 0; }

.connect-card-body { flex: 1; }

.connect-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.connect-card-body p {
  font-size: 13px;
  color: var(--gray-500);
}

.connected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
}

.connected-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.connected-label { color: var(--green); font-weight: 500; font-size: 13px; }

.muted-small { font-size: 12px; color: var(--gray-500); }

/* ── Location Picker ─────────────────────────────── */

.location-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

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

.location-option:has(input:checked) {
  border-color: var(--navy);
  background: #f0f4ff;
}

.location-option input[type="radio"] { margin-top: 2px; accent-color: var(--navy); }

.location-name { font-weight: 500; font-size: 14px; color: var(--gray-900); }

.location-address { margin-top: 2px; }

/* ── Usage Fee Card ──────────────────────────────── */

.usage-fee-card {
  border-left: 3px solid var(--gold);
}

/* ── Billing Icons ───────────────────────────────── */

.billing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 28px;
  margin: 0 auto 16px;
}

.billing-icon-success { background: #dcfce7; color: var(--green); }
.billing-icon-cancel  { background: #fee2e2; color: var(--red); }

/* ── Admin Table ─────────────────────────────────── */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead tr {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.admin-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover { background: var(--gray-50); }

.td-name  { font-weight: 500; color: var(--gray-900); }
.td-email { color: var(--gray-500); font-size: 13px; }

.stat-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── Admin Quick Links ───────────────────────────── */

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.quick-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-link-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(26,47,92,0.1);
}

.quick-link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.quick-link-sub {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── System table grid ───────────────────────────── */

.system-table-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.system-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.system-table-row:last-child { border-bottom: none; }

.system-table-name {
  font-family: monospace;
  font-size: 13px;
  color: var(--navy);
}

.system-table-count {
  font-weight: 600;
  color: var(--gray-700);
}

/* ── Sidebar user name ───────────────────────────── */

.sidebar-user {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 0 20px 12px;
}

/* ── Client List ─────────────────────────────────── */

.client-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.client-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}

.client-business-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.client-card-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.client-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.client-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.client-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-weight: 500;
}

.client-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* ── Status Badge ────────────────────────────────── */

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}

.status-active    { background: #dcfce7; color: #15803d; }
.status-suspended { background: #fee2e2; color: #b91c1c; }
.status-cancelled { background: var(--gray-100); color: var(--gray-500); }

/* ── Danger Button ───────────────────────────────── */

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Required field marker ───────────────────────── */

.required { color: var(--red); }

/* ── Modal ───────────────────────────────────────── */

dialog.modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

dialog.modal::backdrop {
  background: rgba(0,0,0,0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover { color: var(--gray-700); }

.modal-form {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 24px;
}

.temp-password-block {
  margin: 0 24px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 16px;
}

.temp-password-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.temp-password-value {
  font-size: 18px;
  font-weight: 700;
  font-family: monospace;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* ── Score Hero ──────────────────────────────────── */

.score-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 32px 36px;
  margin-bottom: 20px;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid currentColor;
  flex-shrink: 0;
}

.score-circle-green  { color: var(--green); }
.score-circle-yellow { color: var(--yellow); }
.score-circle-red    { color: var(--red); }

.score-circle-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.score-circle-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.score-chips {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.score-chip {
  text-align: center;
  min-width: 90px;
}

.score-chip-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.score-chip-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ── Score Breakdown ─────────────────────────────── */

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.breakdown-row:last-child { border-bottom: none; }

.breakdown-label { color: var(--gray-700); }

.breakdown-note {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
}

.breakdown-value {
  font-weight: 600;
  color: var(--gray-900);
  min-width: 50px;
  text-align: right;
}

.breakdown-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--gray-200);
  font-weight: 600;
}

.breakdown-total .breakdown-label { font-weight: 600; color: var(--gray-900); }
.breakdown-total .breakdown-value { font-size: 18px; }

.bonus-earned { color: var(--green); }
.bonus-missed { color: var(--gray-400); }

.score-tip {
  font-size: 13px;
  color: var(--navy);
  background: #f0f4ff;
  border: 1px solid #c7d7fa;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* ── Chart ───────────────────────────────────────── */

.chart-wrapper {
  position: relative;
  height: 260px;
}

/* ── Toggle Group ────────────────────────────────── */

.toggle-group {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
}

.toggle-btn {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.toggle-btn:hover { color: var(--gray-700); }

.toggle-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Review Request Form ─────────────────────────── */

.review-request-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 700px) {
  .review-request-form {
    grid-template-columns: 1fr;
  }
}

/* ── Edit Textarea ───────────────────────────────── */

.edit-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
}

.edit-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,47,92,0.1);
}

.no-draft-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-spinner {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Settings Page ───────────────────────────────── */

.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.setting-info { flex: 1; }

.setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.setting-description {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 24px;
  transition: background 0.2s;
  position: relative;
}

.toggle input:checked + .toggle-track { background: var(--navy); }

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }

/* ── Demo Banner ─────────────────────────────────── */

.demo-banner {
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.demo-banner a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Site Footer ────────────────────────────────── */

.site-footer {
  display: none; /* Hidden by default — shown in auth pages only */
}

.auth-wrapper + .site-footer,
.auth-wrapper ~ .site-footer {
  display: none;
}

/* ── Self-Signup Page ───────────────────────────── */

.signup-page {
  display: flex;
  min-height: 100vh;
}

.signup-hero {
  flex: 1;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  padding: 60px 48px;
}

.signup-hero-inner {
  max-width: 480px;
}

.signup-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.signup-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
}

.signup-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.signup-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.signup-feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.signup-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 8px;
  padding: 12px 20px;
}

.signup-price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.signup-price-period {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
}

.signup-form-panel {
  width: 480px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.signup-form-card {
  width: 100%;
  max-width: 400px;
}

.signup-form-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.signup-form-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.5;
}

.signup-cta {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  margin-top: 8px;
}

.signup-signin-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

.signup-signin-link a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.signup-signin-link a:hover {
  text-decoration: underline;
}

.signup-legal {
  margin-top: 20px;
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.required {
  color: var(--red);
}

/* ── Signup Success Page ────────────────────────── */

.signup-success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 24px;
}

.signup-success-card {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.signup-success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green);
  font-weight: 700;
  margin: 0 auto 20px;
}

.signup-success-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.signup-success-sub {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signup-success-next {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.signup-success-next h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.signup-success-next p {
  font-size: 13px;
  color: var(--gray-500);
}

.signup-success-details {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.8;
}

.signup-success-details a {
  color: var(--navy);
  text-decoration: none;
}

.signup-success-details a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .signup-page {
    flex-direction: column;
  }
  .signup-hero {
    padding: 40px 24px;
  }
  .signup-hero-inner {
    max-width: 100%;
  }
  .signup-headline {
    font-size: 24px;
  }
  .signup-form-panel {
    width: 100%;
    padding: 32px 24px;
  }
}
