/* Pune Main Matka — Admin Panel (teal / mint theme) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --teal: #26a69a;
  --teal-mid: #00897b;
  --teal-dark: #00695c;
  --teal-deep: #004d40;
  --teal-light: #80cbc4;
  --mint: #e8f5e9;
  --mint-light: #f1f8f4;
  --cream: #fff8e7;
  --page-bg: #f0f4f3;
  --surface: #ffffff;
  --surface-muted: #e8f5e9;
  --text: #004d40;
  --text-muted: #5a7a72;
  --border: #b2dfdb;
  --border-strong: #80cbc4;
  --shadow: 0 4px 20px rgba(0, 77, 64, 0.1);
  --radius: 12px;
  /* aliases */
  --warm: var(--teal);
  --warm-dark: var(--teal-mid);
  --warm-light: var(--teal-light);
  --warm-soft: var(--mint);
  --gray-50: var(--mint-light);
  --gray-100: var(--page-bg);
  --gray-200: #c8e6c9;
  --gray-600: var(--text-muted);
  --gray-700: var(--teal-dark);
  --gray-800: var(--teal-deep);
  --gray-900: #00352c;
  --surface-soft: var(--mint-light);
  --surface-warm: var(--mint);
  --border-warm: var(--border);
  --border-soft: var(--border);
  --gold: var(--teal-light);
  --gold-dark: var(--teal-mid);
  --gold-light: var(--mint);
  --rust: var(--teal-deep);
  --accent: #ef6c00;
  --accent-deep: var(--teal-deep);
}

* { box-sizing: border-box; }

body.admin-body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.admin-body.sidebar-open {
  overflow: hidden;
}

/* ─── Layout ─── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #00695c 0%, #004d40 100%);
  color: #e0f2f1;
  border-right: 1px solid rgba(128, 203, 196, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0, 77, 64, 0.2);
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 39;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.admin-sidebar-overlay.active {
  display: block;
}

.admin-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .admin-sidebar {
    left: -100%;
    width: 80vw;
    max-width: 280px;
    z-index: 2000;
    transition: left 0.3s ease;
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-sidebar-overlay {
    z-index: 1999;
  }

  .admin-sidebar-overlay.active {
    display: block;
  }

  .admin-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (min-width: 993px) {
  .admin-sidebar {
    left: 0;
  }

  .admin-sidebar-overlay {
    display: none !important;
  }
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(128, 203, 196, 0.2);
  position: relative;
}

.admin-sidebar-brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
  flex-shrink: 0;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 2px;
  border-radius: 999px;
  color: rgba(224, 242, 241, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav a.active {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-topbar {
  background: linear-gradient(90deg, #26a69a 0%, #4db6ac 50%, #80cbc4 100%);
  border-bottom: none;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 77, 64, 0.15);
}

.admin-topbar strong {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-welcome-strip {
  background: linear-gradient(90deg, #fff8e7, #fdecc8, #fff8e7);
  border-bottom: 1px solid #f0d78c;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #e65100;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .admin-welcome-strip {
    white-space: normal;
    font-size: 12px;
  }
}

.admin-content {
  flex: 1;
  padding: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .admin-content {
    padding: 24px 32px;
  }
}

.admin-content .card,
.admin-content .grid-2,
.admin-content .page-header,
.admin-content .search-toolbar-card,
.admin-content .results-table-card {
  max-width: 100%;
}

/* ─── Buttons ─── */
.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 3px 10px rgba(38, 166, 154, 0.35);
}

.btn-admin-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(38, 166, 154, 0.4);
}

.btn-admin-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-admin-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-deep);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-admin-ghost:hover {
  background: var(--mint);
}

/* ─── Forms & inputs ─── */
.input-field-admin {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-field-admin:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2);
}

.input-field-admin[readonly] {
  background: var(--mint-light);
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card > h2 {
  margin: -20px -20px 16px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-deep);
}

.card h3 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--teal-deep);
}

.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.lucky-display {
  font-size: 36px;
  font-weight: 800;
  color: var(--teal-deep);
  margin: 8px 0;
  letter-spacing: 0.06em;
}

.jodi-preview {
  grid-column: 1 / -1;
  background: var(--mint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
}

.jodi-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-mid);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jodi-preview-value {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--teal-deep);
}

/* ─── Alerts ─── */
.alert-error {
  border: 2px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-success {
  border: 2px solid #86efac;
  background: #f0fdf4;
  color: #166534;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-warning {
  border: 2px solid #fde047;
  background: #fefce8;
  color: #854d0e;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ─── Tables ─── */
.data-table-admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table-admin th {
  background: linear-gradient(180deg, var(--mint) 0%, #c8e6c9 100%);
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
}

.data-table-admin td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.data-table-admin tr:nth-child(even) td {
  background: var(--mint-light);
}

.data-table-admin tr:hover td {
  background: var(--mint);
}

.badge-active {
  background: var(--mint);
  color: var(--teal-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
}

.badge-inactive {
  background: #f5f5f4;
  color: #78716c;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 12px 40px rgba(42, 38, 35, 0.15);
}

.modal-box-wide {
  max-width: 560px;
}

.result-edit-modal {
  max-width: 520px;
  padding: 20px 22px;
}

.result-edit-modal h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-deep);
}

.result-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-edit-row .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.result-edit-form .input-field-admin,
.result-edit-form select.input-field-admin {
  min-height: 42px;
  box-sizing: border-box;
}

.result-edit-jodi-row {
  grid-template-columns: 1fr;
}

.input-field-readonly {
  background: var(--mint-light);
  color: var(--teal-deep);
  cursor: default;
}

.input-field-readonly:focus {
  border-color: var(--border);
  box-shadow: none;
}

.input-field-jodi {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.result-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 576px) {
  .result-edit-modal {
    padding: 16px;
  }

  .result-edit-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .result-edit-actions .btn-admin-ghost,
  .result-edit-actions .btn-admin-primary {
    width: 100%;
    justify-content: center;
  }
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-sm {
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.btn-danger-text {
  color: #dc2626 !important;
}

.btn-danger-text:hover {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.result-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: var(--teal-deep);
}

.result-mono.result-missing {
  color: var(--teal-mid);
  letter-spacing: 0.06em;
}

.chart-row-missing td {
  background: var(--mint-light);
}

.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  display: none;
}

.admin-toast-success {
  background: #f0fdf4;
  border: 2px solid #86efac;
  color: #166534;
}

.admin-toast-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
}

/* ─── Page header ─── */
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.page-header h1 {
  margin: 0;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 1.75rem;
}

/* ─── Search toolbar (Manage Results) ─── */
.search-toolbar-card {
  padding: 20px 24px;
}

.search-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .search-toolbar {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-hint {
  margin: 12px 0 0;
  font-size: 13px;
}

/* ─── Results table card ─── */
.results-table-card {
  padding: 0;
  overflow: hidden;
}

.results-table-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--mint-light) 0%, #fff 100%);
}

.results-table-header h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--teal-deep);
}

.table-scroll-wrap {
  overflow-x: auto;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.data-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--mint-light);
}

.pagination-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Status badges ─── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-published {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.status-open {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.status-pending {
  background: #f5f5f4;
  color: #78716c;
  border: 1px solid #d6d3d1;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 8px;
}

.publish-form-card {
  max-width: 720px;
}

/* ─── Mobile responsive table ─── */
@media (max-width: 767px) {
  .data-table-admin.data-table-sticky thead {
    display: none;
  }

  .data-table-admin.data-table-sticky tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
  }

  .data-table-admin.data-table-sticky tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }

  .data-table-admin.data-table-sticky tbody td:last-child {
    border-bottom: none;
  }

  .data-table-admin.data-table-sticky tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--teal-deep);
    flex-shrink: 0;
  }

  .table-scroll-wrap {
    max-height: none;
  }
}

/* ─── Grid & forms ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-deep);
}

/* ─── Login page ─── */
.login-page {
  min-height: 100vh;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Outfit', system-ui, sans-serif;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.login-header {
  background: linear-gradient(90deg, #26a69a 0%, #4db6ac 50%, #80cbc4 100%);
  padding: 36px 32px;
  text-align: center;
  border-bottom: none;
}

.login-header h1 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-header .login-sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.login-icon {
  width: 72px;
  height: 72px;
  background: var(--teal-deep);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(0, 77, 64, 0.3);
}

.login-form {
  padding: 32px;
}

.login-form h2 {
  text-align: center;
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-weight: 800;
}

.login-form p.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2);
}

.login-form button[type="submit"] {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.35);
}

.login-form button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-footer-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 24px;
  font-size: 13px;
  font-weight: 400;
}

/* ─── Sidebar extras ─── */
.sidebar-markets {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 203, 196, 0.2);
}

.sidebar-markets h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-light);
  padding: 0 12px;
  margin: 0 0 10px;
  font-weight: 700;
}

.sidebar-market-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(128, 203, 196, 0.15);
  border-radius: 10px;
  padding: 10px;
  margin: 0 8px 8px;
  font-size: 12px;
}

.sidebar-market-item strong {
  display: block;
  color: #e0f2f1;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sidebar-market-head {
  margin-bottom: 4px;
}

.sidebar-market-head .market-name-with-icon {
  color: #e0f2f1;
  font-weight: 600;
  font-size: 12px;
}

.market-name-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.market-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-market-item .market-icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.data-table-admin .market-name-with-icon {
  font-weight: 600;
  color: var(--teal-deep);
}

.data-table-admin .market-icon {
  background: var(--mint);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sidebar-market-item span {
  color: rgba(176, 224, 218, 0.75);
  font-size: 11px;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  background: transparent;
  color: #ffab91;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

@media (min-width: 993px) {
  .menu-toggle {
    display: none;
  }
}

.space-y > * + * {
  margin-top: 24px;
}

/* ─── Chart tables (admin results view) ─── */
.chart-panel-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  text-align: center;
}

.chart-panel-table th,
.chart-panel-table td {
  border: 1px solid var(--border);
}

.chart-panel-table thead tr:first-child th {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff;
  padding: 8px;
  font-weight: 700;
}

.chart-panel-table thead tr:nth-child(2) th {
  background: var(--mint);
  padding: 6px;
  color: var(--teal-deep);
}

.chart-panel-table .day-cell {
  background: var(--mint-light);
  height: 70px;
  position: relative;
}

.chart-panel-table .jodi-cell {
  background: #c8e6c9;
  height: 70px;
}

.panel-page-bg {
  min-height: 100vh;
  background: var(--page-bg);
  padding: 8px;
}

.panel-header {
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  padding: 16px;
  text-align: center;
  color: #fff;
}

.static-page {
  max-width: 1200px;
  margin: 20px auto;
  background: var(--surface-soft);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
}

.static-page h1, .static-page h2 {
  text-align: center;
  color: var(--rust);
  font-style: italic;
}

.static-page p, .static-page li {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.static-page hr {
  border: none;
  border-top: 1px solid var(--border-warm);
  margin: 16px 0;
}
