/* ═══════════════════════════════════════════════════════════
   dashboard.css — Hotel Dashboard, Admin Panel, KPI Cards,
                   Tables, Wallet, Sidebar
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   IMPACT DASHBOARD PAGE
   ══════════════════════════════════════════════════ */
.impact-hero {
  background: var(--forest);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.impact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(122, 158, 126, 0.15) 0%, transparent 70%);
}

.impact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.impact-main-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.impact-chart-area {
  background: var(--forest);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin-top: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--mint) 0%, var(--sage) 100%);
  border-radius: 6px 6px 0 0;
  transition: opacity var(--transition);
  cursor: pointer;
  position: relative;
}

.chart-bar:hover { opacity: 0.8; }

.chart-bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(184, 212, 184, 0.6);
  white-space: nowrap;
}

.impact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
}

.impact-metric {
  padding: 20px;
  background: var(--linen);
  border-radius: var(--radius-md);
}

.impact-metric-icon { font-size: 1.6rem; margin-bottom: 8px; }

/* Map visual */
.map-card {
  background: var(--moss);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.map-dots {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--mint) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ══════════════════════════════════════════════════
   HOTEL DASHBOARD PAGE
   ══════════════════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.sidebar {
  background: var(--forest);
  padding: 32px 20px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 32px; }

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 212, 184, 0.4);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(184, 212, 184, 0.7);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-item:hover { background: rgba(122, 158, 126, 0.15); color: var(--mint); }
.sidebar-item.active { background: rgba(122, 158, 126, 0.2); color: var(--mint); }

.sidebar-item-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-badge {
  margin-left: auto;
  background: var(--clay);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-wallet {
  background: rgba(122, 158, 126, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.sidebar-wallet-label { font-size: 0.72rem; color: rgba(184, 212, 184, 0.5); margin-bottom: 4px; }

.sidebar-wallet-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.sidebar-wallet-coins { font-size: 0.8rem; color: rgba(184, 212, 184, 0.6); margin-top: 2px; }

.dashboard-main {
  background: var(--cream);
  padding: 36px;
  overflow-y: auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.dash-greeting {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}

.dash-subgreeting { font-size: 0.9rem; color: var(--stone); margin-top: 4px; }

/* ── KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--sand);
  transition: var(--transition);
}

.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.kpi-icon-green { background: rgba(122, 158, 126, 0.12); }
.kpi-icon-gold  { background: rgba(201, 168, 76, 0.12); }
.kpi-icon-clay  { background: rgba(196, 149, 106, 0.12); }
.kpi-icon-blue  { background: rgba(74, 143, 168, 0.12); }

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1;
}

.kpi-label { font-size: 0.78rem; color: var(--stone); margin-top: 4px; font-weight: 500; }

.kpi-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
}

.kpi-up   { background: rgba(122, 158, 126, 0.12); color: var(--moss); }
.kpi-down { background: rgba(196, 149, 106, 0.12); color: var(--warm); }

/* ── Data Table ── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--linen);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--sand);
}

.data-table th:first-child { border-radius: 10px 0 0 10px; }
.data-table th:last-child  { border-radius: 0 10px 10px 0; }

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 221, 208, 0.5);
  color: var(--charcoal);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(122, 158, 126, 0.03); }

/* ── Status Pills & Badges ── */
/* Both .status-pill (tables) and .status-badge (dashboard cards) share the same base */
.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-approved { background: rgba(122, 158, 126, 0.12); color: var(--moss); }
.status-pending  { background: rgba(201, 168, 76,  0.12); color: #8A6D20; }
.status-rejected { background: rgba(196,  60,  40, 0.10); color: #b83220; }
.status-spent    { background: rgba(140, 140, 140, 0.12); color: #5a5a5a; }

/* ── Wallet Card ── */
.wallet-card {
  background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(122, 158, 126, 0.12);
}

.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.06);
}

.wallet-balance {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.coin-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}

.coin-amount-positive { color: var(--moss); font-weight: 700; }
.coin-amount-negative { color: var(--warm); font-weight: 700; }

/* ══════════════════════════════════════════════════
   ADMIN DASHBOARD PAGE
   ══════════════════════════════════════════════════ */
.admin-header {
  background: var(--charcoal);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: white; }
.admin-subtitle { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

.admin-sidebar {
  background: #141412;
  width: 240px;
  min-height: calc(100vh - 72px);
  padding: 24px 16px;
  flex-shrink: 0;
}

.admin-layout { display: flex; }

.admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.admin-item:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.admin-item.active { background: rgba(122, 158, 126, 0.15); color: var(--mint); }

.admin-main {
  flex: 1;
  background: #1A1A18;
  padding: 32px;
  overflow-y: auto;
}

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

.admin-kpi {
  background: #222220;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-kpi-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.02em;
  line-height: 1;
}

.admin-kpi-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.admin-table th {
  background: #222220;
  padding: 11px 14px;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Responsive Dashboard ── */
@media (max-width: 1024px) {
  .impact-grid,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: relative;
    top: 0;
    padding: 20px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }

  .sidebar-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
  }

  .sidebar-wallet { margin-top: 0; }
}

@media (max-width: 768px) {
  .kpi-grid,
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kpi-grid,
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   HOTEL DASHBOARD — New Layout
══════════════════════════════════════════════ */

.dashboard-body {
  background: var(--linen);
  min-height: 100vh;
}

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: var(--forest);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dash-sidebar-logo .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
}

.dash-sidebar-logo .logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.dash-sidebar-logo .logo-text span { color: var(--gold); }
.dash-sidebar-logo .logo-leaf { font-size: 1.4rem; }

.dash-hotel-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dash-hotel-avatar {
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}

.dash-hotel-name { font-size: 0.82rem; font-weight: 600; color: white; line-height: 1.3; }
.dash-hotel-tier { margin-top: 4px; }

.dash-nav {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column !important;
  gap: 2px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s;
}

.dash-nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
.dash-nav-item.active { background: rgba(255,255,255,0.15); color: white; }
.dash-nav-icon { font-size: 1rem; flex-shrink: 0; }

.dash-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.dash-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-signout { color: rgba(255,180,180,0.8) !important; }
.dash-signout:hover { background: rgba(255,100,100,0.1) !important; }

/* Main */
.dash-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

/* Topbar */
.dash-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-topbar-title h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.dash-topbar-title p {
  font-size: 0.85rem;
  color: var(--stone);
  margin: 4px 0 0;
}

.dash-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Tabs */
.dash-tab { display: none; flex-direction: column; gap: 24px; }
.dash-tab.active { display: flex; }

/* KPI Grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-kpi-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.dash-kpi-icon { font-size: 1.4rem; margin-bottom: 10px; }

.dash-kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.dash-kpi-value span { font-size: 0.9rem; font-weight: 400; color: var(--stone); }
.dash-kpi-label { font-size: 0.75rem; color: var(--stone); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-kpi-change { font-size: 0.75rem; margin-top: 6px; }
.dash-kpi-change.positive { color: #2d8a4e; }
.dash-kpi-change.neutral { color: var(--stone); }
.dash-kpi-change.warning { color: #b85c00; }

/* Two Col */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Cards */
.dash-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow: hidden;
}

.dash-card-accent { border-top: 3px solid var(--forest); }
.dash-card-dark { background: var(--forest); color: white; }
.dash-card-dark h3 { color: white !important; }

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dash-card-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.dash-card-body { padding: 20px; }
.dash-card-dark .dash-card-header { border-bottom-color: rgba(255,255,255,0.1); }

/* Target card */
.dash-target-info { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dash-target-current { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--forest); }
.dash-target-of { font-size: 0.85rem; color: var(--stone); }

.dash-progress-bar {
  background: var(--sand);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dash-progress-fill {
  background: linear-gradient(90deg, var(--sage), var(--forest));
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
}

.dash-progress-note { font-size: 0.8rem; color: var(--stone); margin-bottom: 16px; }

.dash-breakdown { display: flex; flex-direction: column; gap: 8px; }
.dash-breakdown-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--charcoal); }
.dash-breakdown-item strong { margin-left: auto; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-forest { background: var(--forest); }
.dot-sage { background: var(--sage); }
.dot-gold { background: var(--gold); }

/* Wallet snapshot */
.dash-wallet-balance { text-align: center; padding: 16px 0; }
.dash-balance-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--forest); }
.dash-balance-value { font-size: 0.82rem; color: var(--stone); margin-top: 4px; }

.dash-wallet-stats { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.dash-wallet-stat { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--charcoal); }
.dash-wallet-stat span { color: var(--stone); }

/* Wallet tab */
.dash-wallet-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.dash-card-wallet-main { border-top: 3px solid var(--gold); }

.dash-wallet-hero { text-align: center; padding: 24px 0 16px; }
.dash-wallet-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }
.dash-wallet-big { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--forest); line-height: 1; margin: 8px 0 4px; }
.dash-wallet-sub { font-size: 0.85rem; color: var(--stone); }

.dash-wallet-4stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  background: var(--linen);
  border-radius: var(--radius-sm);
}

.dash-wallet-4stat { text-align: center; }
.dash-wallet-4stat span { display: block; font-size: 0.7rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.dash-wallet-4stat strong { font-size: 0.9rem; font-weight: 700; color: var(--charcoal); }

/* Coin rules */
.coin-rule { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.coin-rule:last-child { border-bottom: none; }
.coin-rule-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.coin-rule strong { display: block; font-size: 0.88rem; color: var(--charcoal); }
.coin-rule p { font-size: 0.75rem; color: var(--stone); margin: 2px 0 0; }

/* Tables */
.dash-table-wrap { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.dash-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: var(--linen);
}

.dash-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--charcoal);
  vertical-align: middle;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(0,0,0,0.015); }
.dash-table .mono { font-family: monospace; font-size: 0.78rem; color: var(--stone); }

.dash-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--stone);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.dash-pagination { display: flex; gap: 8px; }

/* Filters */
.dash-filters { display: flex; gap: 8px; }

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-approved { background: #e8f5e9; color: #2d6e3c; }
.status-pending  { background: #fff3e0; color: #8a5500; }
.status-spent    { background: #fce4e4; color: #8a2020; }

/* Positive / Negative */
.positive { color: #2d8a4e; }
.negative { color: #c0392b; }

/* Form Extras */
.form-select-sm { padding: 6px 10px; font-size: 0.78rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-xs { padding: 4px 10px; font-size: 0.72rem; }
.btn-inline-link { background: none; border: none; color: var(--forest); font-size: 0.75rem; cursor: pointer; text-decoration: underline; padding: 0; }

/* Pickup tab */
.dash-pickup-sidebar { display: flex; flex-direction: column; gap: 20px; }
.pickup-coin-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--linen);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: -4px 0 16px;
}
.pickup-coin-label { font-size: 0.78rem; color: var(--stone); }
.pickup-coin-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--forest); }

.eligibility-list { display: flex; flex-direction: column; gap: 8px; }
.eligibility-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.eligibility-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.eligibility-item.eligible .eligibility-icon { background: #e8f5e9; color: #2d6e3c; }
.eligibility-item.eligible { color: var(--charcoal); }
.eligibility-item.ineligible .eligibility-icon { background: #fce4e4; color: #8a2020; }
.eligibility-item.ineligible { color: var(--stone); }

.rate-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.rate-item:last-of-type { border-bottom: none; }
.rate-item strong { color: white; }
.rate-note { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 12px; }

.upcoming-pickup { display: flex; align-items: center; gap: 12px; }
.upcoming-date { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--forest); min-width: 48px; }
.upcoming-detail { flex: 1; }
.upcoming-detail strong { display: block; font-size: 0.82rem; color: var(--charcoal); }
.upcoming-detail span { font-size: 0.75rem; color: var(--stone); }

/* ══════════════════════════════════════════════
   ADMIN PANEL — New Layout
══════════════════════════════════════════════ */

.admin-body {
  background: #18181a;
  min-height: 100vh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #111112;
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-sidebar-logo .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
}

.admin-sidebar-logo .logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.admin-sidebar-logo .logo-text span { color: var(--mint); }

.admin-badge-tag {
  background: #e74c3c;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-user-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-user-avatar {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}

.admin-user-name { font-size: 0.8rem; font-weight: 600; color: white; }
.admin-user-role { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

.admin-nav {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.admin-nav-item.active { background: rgba(255,255,255,0.1); color: white; }
.admin-nav-icon { font-size: 1rem; flex-shrink: 0; }

.admin-nav-badge {
  margin-left: auto;
  background: #e74c3c;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.admin-sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-signout { color: rgba(255,150,150,0.7) !important; }
.admin-signout:hover { background: rgba(255,80,80,0.08) !important; }

/* Admin Main */
.admin-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-title h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.admin-topbar-title p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin: 4px 0 0; }

.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }
.admin-status-text { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* Admin Tabs */
.admin-tab { display: none; flex-direction: column; gap: 24px; }
.admin-tab.active { display: flex; }

/* Admin KPI */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-kpi-card {
  background: #222224;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.admin-kpi-alert { border: 1px solid rgba(231,76,60,0.3); background: rgba(231,76,60,0.06); }

.admin-kpi-icon { font-size: 1.4rem; margin-bottom: 10px; }

.admin-kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
}

.admin-kpi-value span { font-size: 0.9rem; color: rgba(255,255,255,0.4); }
.admin-kpi-label { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-kpi-change { font-size: 0.72rem; margin-top: 6px; color: rgba(255,255,255,0.35); }
.admin-kpi-change.positive { color: #2ecc71; }
.admin-kpi-change.warning { color: #f39c12; }

/* Admin Cards */
.admin-card {
  background: #222224;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

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

.admin-card-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.admin-card-body { padding: 20px; }

/* Admin tables reuse dash-table but with dark theme */
.admin-card .dash-table th {
  background: #1a1a1c;
  color: rgba(255,255,255,0.3);
  border-bottom-color: rgba(255,255,255,0.06);
}

.admin-card .dash-table td {
  border-bottom-color: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}

.admin-card .dash-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Admin status badges */
.admin-card .status-approved { background: rgba(46,204,113,0.15); color: #2ecc71; }
.admin-card .status-pending  { background: rgba(241,196,15,0.12); color: #f1c40f; }
.admin-card .status-spent    { background: rgba(231,76,60,0.12); color: #e74c3c; }
.admin-card .badge-gold { background: rgba(243,156,18,0.15); color: #f39c12; }
.admin-card .badge-forest { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.admin-card .badge-charcoal { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* Economy stats */
.economy-stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.economy-stat:last-of-type { border-bottom: none; }
.economy-stat strong { color: rgba(255,255,255,0.85); }

.economy-bar-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.3); margin-top: 16px; margin-bottom: 8px; }
.economy-bar-sub { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-top: 6px; }

.admin-card .dash-progress-bar { background: rgba(255,255,255,0.07); }

/* Admin btn variants */
.admin-card .btn-primary { background: var(--sage); color: white; border: none; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.admin-card .btn-primary:hover { opacity: 0.85; }
.admin-card .btn-outline { background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.admin-card .btn-outline:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); }
.admin-card .btn-ghost { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 0.78rem; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); transition: all 0.2s; }
.admin-card .btn-ghost:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }

/* ──────────────────────────────────────────
   Fix layout shifts when WP Admin Bar is active
   ────────────────────────────────────────── */
body.admin-bar .admin-sidebar {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
}
body.admin-bar .admin-layout {
  min-height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .admin-sidebar {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
}
