/* Spotlit — Admin Dashboard Styles */
/* Premium dark admin theme */

:root {
  --admin-bg: #000000;
  --admin-sidebar: #0a0a0a;
  --admin-surface: #111115;
  --admin-surface-2: #18181f;
  --admin-surface-3: #1e1e28;
  --admin-border: #252530;
  --admin-purple: #8B5CF6;
  --admin-purple-dim: #6d42d9;
  --admin-purple-glow: rgba(139, 92, 246, 0.35);
  --admin-silver: #c0c0c0;
  --admin-muted: #55556a;
  --admin-text: #f0f0f0;
  --admin-danger: #ef4444;
  --admin-success: #22c55e;
  --admin-warning: #f59e0b;
  --admin-info: #3b82f6;
  --admin-radius: 10px;
  --admin-radius-sm: 6px;
  --sidebar-width: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--admin-purple); text-decoration: none; }
a:hover { opacity: 0.85; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* ─── ADMIN LAYOUT ─────────────────────────────────────── */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ──────────────────────────────────────────── */

.admin-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  height: 40px;
  width: auto;
}

.admin-badge {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--admin-purple);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-muted);
  padding: 12px 20px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--admin-silver);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-link:hover {
  color: var(--admin-text);
  background: var(--admin-surface);
}

.sidebar-link.active {
  color: var(--admin-purple);
  background: rgba(139, 92, 246, 0.1);
  border-left-color: var(--admin-purple);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
}

.sidebar-footer-user {
  font-size: 0.8rem;
  color: var(--admin-muted);
  margin-bottom: 10px;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s;
}

.sidebar-footer a:hover { color: var(--admin-danger); }

/* ─── MAIN CONTENT ─────────────────────────────────────── */

.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: 32px 36px;
}

.admin-page-header {
  margin-bottom: 32px;
}

.admin-page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.admin-page-header p {
  color: var(--admin-muted);
  font-size: 0.9rem;
}

/* ─── STAT CARDS ───────────────────────────────────────── */

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

.stat-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--admin-purple); }

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--admin-text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.highlight { color: var(--admin-purple); }
.stat-value.danger { color: var(--admin-danger); }
.stat-value.success { color: var(--admin-success); }

.stat-sub {
  font-size: 0.75rem;
  color: var(--admin-muted);
}

/* ─── GLASS CARDS ───────────────────────────────────────── */

.glass-card {
  background: rgba(17, 17, 21, 0.7);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  backdrop-filter: blur(8px);
}

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

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
}

.card-header h2 svg { margin-right: 6px; vertical-align: middle; }

/* ─── TABLES ────────────────────────────────────────────── */

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.85rem;
  color: var(--admin-silver);
}

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

.admin-table tr:hover td {
  background: var(--admin-surface);
}

/* ─── BADGES ────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--admin-warning);
}

.badge-approved, .badge-confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--admin-success);
}

.badge-rejected, .badge-declined {
  background: rgba(239, 68, 68, 0.15);
  color: var(--admin-danger);
}

.badge-new {
  background: rgba(59, 130, 246, 0.15);
  color: var(--admin-info);
}

.badge-contacted {
  background: rgba(139, 92, 246, 0.15);
  color: var(--admin-purple);
}

.badge-replied {
  background: rgba(100, 100, 120, 0.3);
  color: var(--admin-muted);
}

.badge-featured {
  background: rgba(139, 92, 246, 0.2);
  color: var(--admin-purple);
}

/* ─── BUTTONS ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--admin-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--admin-purple);
  color: #fff;
}

.btn-primary:hover { background: var(--admin-purple-dim); }

.btn-success {
  background: var(--admin-success);
  color: #fff;
}

.btn-success:hover { opacity: 0.85; }

.btn-danger {
  background: var(--admin-danger);
  color: #fff;
}

.btn-danger:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--admin-silver);
  border: 1px solid var(--admin-border);
}

.btn-ghost:hover { border-color: var(--admin-silver); color: var(--admin-text); }

.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-icon {
  padding: 6px;
  border-radius: var(--admin-radius-sm);
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--admin-purple);
  color: var(--admin-purple);
}

/* ─── SECTION CARDS ─────────────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--admin-border);
}

.section-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h3 .count {
  background: var(--admin-purple);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 20px;
}

.section-body {
  padding: 0;
}

.section-body-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--admin-border);
  transition: background 0.15s;
}

.section-body-item:last-child { border-bottom: none; }
.section-body-item:hover { background: var(--admin-surface-2); }

.section-item-info { flex: 1; }
.section-item-name { font-size: 0.875rem; font-weight: 600; color: var(--admin-text); }
.section-item-meta { font-size: 0.75rem; color: var(--admin-muted); margin-top: 2px; }

.section-item-actions { display: flex; gap: 8px; }

.empty-state {
  padding: 36px 22px;
  text-align: center;
  color: var(--admin-muted);
  font-size: 0.85rem;
}

/* ─── MODAL ─────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

/* ─── FORMS ─────────────────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-purple);
}

.form-control::placeholder { color: var(--admin-muted); }

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── FILTER / SEARCH ───────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text);
  font-size: 0.875rem;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--admin-purple);
}

.filter-select {
  padding: 9px 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
}

/* ─── FLYER GRID ─────────────────────────────────────────── */

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.flyer-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
}

.flyer-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.flyer-card-body {
  padding: 14px;
}

.flyer-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.flyer-card-meta {
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.flyer-card-actions {
  padding: 12px 14px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  gap: 8px;
}

/* ─── MERCH GRID ─────────────────────────────────────────── */

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.merch-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
}

.merch-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.merch-card-body {
  padding: 16px;
}

.merch-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.merch-card-price {
  font-size: 0.875rem;
  color: var(--admin-purple);
  font-weight: 700;
  margin-bottom: 8px;
}

.merch-card-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  gap: 8px;
}

/* ─── LOGIN PAGE ─────────────────────────────────────────── */

.admin-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-bg);
  padding: 20px;
}

.admin-auth-box {
  width: 100%;
  max-width: 420px;
}

.admin-auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.admin-auth-logo img {
  height: 56px;
  margin-bottom: 12px;
}

.admin-auth-box h1 {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.admin-auth-box .subtitle {
  text-align: center;
  color: var(--admin-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.admin-auth-form {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 28px;
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--admin-radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease;
}

.toast.show { display: block; }

.toast.success {
  background: var(--admin-success);
  color: #fff;
}

.toast.error {
  background: var(--admin-danger);
  color: #fff;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── MOBILE MENU TOGGLE ─────────────────────────────────── */

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 150;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 10px;
  color: var(--admin-text);
  cursor: pointer;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
    padding: 24px 20px;
    padding-top: 64px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card, .stat-card, .section-card {
  animation: fadeIn 0.4s ease;
}

.stats-grid .stat-card:nth-child(2) { animation-delay: 0.05s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.15s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.2s; }

/* ─── LEAD STATUS BADGES ──────────────────────────────────── */
.badge-hot   { background: rgba(249,115,22,0.15); color: #f97316; }
.badge-warm  { background: rgba(234,179,8,0.15);  color: #eab308; }
.badge-sold  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.badge-note  { background: rgba(100,100,120,0.2); color: var(--admin-muted); }
.badge-not_qualified { background: rgba(100,100,120,0.2); color: var(--admin-muted); }

/* ─── TABLE SCROLL WRAPPER ────────────────────────────────── */
.table-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── LEAD TIMELINE ───────────────────────────────────────── */
.lead-timeline { margin-top: 32px; }
.lead-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--admin-purple);
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-date {
  font-size: 0.75rem;
  color: var(--admin-muted);
  margin-left: auto;
}

/* ─── BULK ACTION BAR ─────────────────────────────────────── */
.bulk-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--admin-surface-3);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.bulk-bar.active { display: flex; }

/* ─── LEAD DETAIL GRID ────────────────────────────────────── */
.lead-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .lead-detail-grid { grid-template-columns: 1fr; }
}

/* ─── STAT VALUE COLORS ───────────────────────────────────── */
.stat-value.success { color: var(--admin-success); }

/* ─── SOLAR PORTAL BRAND TOKENS ───────────────────────────── */
:root {
  --solar-navy:   #0A1628;
  --solar-orange: #FF8C00;
  --solar-gold:   #FFD700;
}

/* ─── PORTAL BADGES ───────────────────────────────────────── */
.badge-homeowner { background: rgba(255,140,0,0.15); color: var(--solar-orange); }
.badge-business  { background: rgba(59,130,246,0.15); color: var(--admin-info); }
.badge-new        { background: rgba(234,179,8,0.15);  color: #eab308; }
.badge-contacted  { background: rgba(59,130,246,0.15); color: var(--admin-info); }
.badge-qualified  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.badge-converted  { background: rgba(139,92,246,0.15); color: var(--admin-purple); }
.badge-lost       { background: rgba(239,68,68,0.15);  color: var(--admin-danger); }

/* ─── PORTAL STAT CARDS ───────────────────────────────────── */
.portal-stat-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.portal-stat-card:hover { border-color: var(--solar-orange); }
.portal-stat-value { font-size: 2rem; font-weight: 800; color: var(--admin-text); line-height: 1; margin-bottom: 4px; }
.portal-stat-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--admin-muted); margin-bottom: 8px; }
.portal-stat-sub { font-size: 0.7rem; color: var(--admin-muted); }

/* ─── PORTAL STATS GRID ───────────────────────────────────── */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .portal-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .portal-stats-grid { grid-template-columns: 1fr 1fr; } }

/* ─── APPOINTMENT CALENDAR ────────────────────────────────── */
.appt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 24px; }
.appt-day {
  min-height: 90px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 6px 8px;
  font-size: 0.75rem;
}
.appt-day.has-appt { border-color: var(--solar-orange); }
.appt-chip {
  display: block;
  padding: 2px 6px;
  background: rgba(255,140,0,0.12);
  color: var(--solar-orange);
  border-radius: 4px;
  margin-top: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* ─── PORTAL QUICK LINKS ──────────────────────────────────── */
.quick-links { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.quick-links .btn {
  background: rgba(255, 140, 0, 0.1);
  color: var(--solar-orange);
  border: 1px solid rgba(255, 140, 0, 0.3);
}
.quick-links .btn:hover { background: rgba(255, 140, 0, 0.2); border-color: var(--solar-orange); }

/* ─── BRAND BADGE ─────────────────────────────────────────── */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 140, 0, 0.12);
  color: var(--solar-orange);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ─── PORTAL LAYOUT ───────────────────────────────────────── */
.portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.portal-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
@media (max-width: 1100px) { .portal-grid { grid-template-columns: 1fr; } }

/* ─── APPT LIST ITEMS ─────────────────────────────────────── */
.appt-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--admin-border); }
.appt-item:last-child { border-bottom: none; }
.appt-item:hover { background: var(--admin-surface-2); }
.appt-date { font-size: 0.7rem; font-weight: 700; color: var(--solar-orange); background: rgba(255,140,0,0.1); padding: 3px 8px; border-radius: 6px; white-space: nowrap; text-align: center; min-width: 60px; }
.appt-info { flex: 1; margin-left: 12px; }
.appt-name { font-size: 0.85rem; font-weight: 600; color: var(--admin-text); }
.appt-meta { font-size: 0.75rem; color: var(--admin-muted); margin-top: 2px; }
.appt-time { font-size: 0.75rem; color: var(--admin-muted); white-space: nowrap; }

/* ─── CALENDAR GRID ───────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 32px; }
.cal-head { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--admin-muted); text-align: center; padding: 6px 4px; }
.cal-day { min-height: 90px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm); padding: 8px; position: relative; }
.cal-day.other-month { opacity: 0.35; }
.cal-day.today { border-color: var(--solar-orange); }
.cal-day.has-appt { border-color: rgba(255,140,0,0.4); background: rgba(255,140,0,0.04); }
.cal-day-num { font-size: 0.75rem; font-weight: 700; color: var(--admin-muted); margin-bottom: 4px; }
.cal-appt { font-size: 0.65rem; padding: 2px 6px; background: rgba(255,140,0,0.18); color: var(--solar-orange); border-radius: 4px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; cursor: pointer; }

/* ─── DAY DETAIL PANEL ───────────────────────────────────── */
.day-detail { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); padding: 20px; margin-bottom: 28px; display: none; }
.day-detail.visible { display: block; }
.day-appt-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--admin-border); }
.day-appt-item:last-child { border-bottom: none; }
.day-appt-info { flex: 1; }
.day-appt-name { font-size: 0.875rem; font-weight: 600; color: var(--admin-text); }
.day-appt-meta { font-size: 0.75rem; color: var(--admin-muted); margin-top: 2px; }

/* ─── MONTH NAV ────────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.month-nav h2 { font-size: 1.1rem; font-weight: 700; min-width: 200px; text-align: center; }

/* ─── PORTAL SECTION CARD HEADER ──────────────────────────── */
.portal-section h3 { display: flex; align-items: center; gap: 8px; }
.portal-section h3 span { background: rgba(255,140,0,0.15); color: var(--solar-orange); font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ─── FORM CHECKBOX ───────────────────────────────────────── */
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--solar-orange); cursor: pointer; }
.form-check label { font-size: 0.85rem; color: var(--admin-text); cursor: pointer; }
.portal-hint { font-size: 0.75rem; color: var(--admin-muted); margin-top: 2px; }