.admin-ui select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(43, 28, 34, .10);
  background: rgba(255,255,255,.55);
  color: var(--text);
  outline:none;
  transition: box-shadow .2s, border-color .2s, background .2s;
  font-family: inherit;
  appearance: none;
}
.admin-ui select:focus{
  border-color: rgba(255,111,177,.45);
  box-shadow: var(--focus);
  background: rgba(255,255,255,.65);
}

.admin-ui .table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid rgba(43,28,34,.08);
  background: rgba(255,255,255,.38);
}

.admin-ui .table th,
.admin-ui .table td{
  padding: 12px 12px;
  font-size: 13px;
  color: rgba(43, 28, 34, .82);
  border-top: 1px solid rgba(43,28,34,.08);
}

.admin-ui .table thead th{
  border-top: 0;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(43,28,34,.72);
  background: rgba(255,255,255,.35);
}

.admin-ui .table tbody tr:hover{
  background: rgba(255,255,255,.55);
}

.admin-ui .btn-row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
.admin-ui .admin-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.warn-pill, .ok-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(43,28,34,.10);
  background: rgba(255,255,255,.40);
}

.warn-pill{
  border-color: rgba(255,111,177,.40);
  box-shadow: 0 0 0 4px rgba(255,111,177,.10);
}

.ok-pill{ opacity: .75; }

.warn-row td{ background: rgba(255,111,177,.06); }

.disabled-row td{
  opacity: .65;
  filter: grayscale(0.15);
}
/* Keep action buttons tidy in table cells */
.actions-cell { white-space: nowrap; }
.actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

/* ---- Mobile support (global) ---- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr !important; }
  .nav-inner{ gap: 10px; }
  .nav-links{ justify-content:flex-start; }
  .brand-tag{ display:none; } /* saves space */
  .btn{ padding: 11px 14px; }
}

@media (max-width: 720px){
  .container{ width: calc(100% - 22px) !important; }
  .card-inner{ padding: 16px !important; }

  /* Tables: swipe instead of breaking */
  .table{
    display:block;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }
  .table thead th,
  .table tbody td{
    white-space: nowrap;
  }

  /* Reduce density */
  .table th, .table td{
    padding: 10px 10px !important;
    font-size: 12.5px !important;
  }

  /* Actions: keep tidy */
  .actions-cell{ white-space: nowrap; }
  .actions{ gap: 6px; }

  /* Buttons in rows: don’t wrap weirdly */
  .btn-row{ flex-wrap: nowrap; overflow-x:auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 900px){
  /* Nav pills become scrollable */
  .nav-links{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
  }
  .nav-links a{ flex: 0 0 auto; }

  /* Forms stack cleanly */
  .split{ grid-template-columns: 1fr !important; }

  /* Big headings scale down slightly */
  .h1{ font-size: clamp(26px, 6vw, 40px) !important; }
}

/* ---- Mobile sidebar (drawer) ---- */
.nav-burger{
  display:none;
  border: 1px solid rgba(255,111,177,.25);
  background: rgba(255,255,255,.35);
  color: rgba(43,28,34,.82);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.nav-burger:active{ transform: translateY(1px); }

.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(43,28,34,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 60;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  background: rgba(255,255,255,.70);
  border-left: 1px solid rgba(255, 156, 201, .25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(43, 28, 34, .18);
  transform: translateX(105%);
  transition: transform .22s ease;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
}

.drawer.open{ transform: translateX(0); }
.drawer-overlay.open{ opacity: 1; pointer-events: auto; }

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(43,28,34,.08);
}
.drawer-title{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(43,28,34,.70);
}

.drawer-links{
  padding: 12px 0;
  display:grid;
  gap: 10px;
}
.drawer-links a{
  display:flex;
  align-items:center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,111,177,.20);
  background: rgba(255,255,255,.35);
  font-weight: 800;
  font-size: 13px;
}
.drawer-links a:active{ transform: translateY(1px); }

.drawer-foot{
  padding-top: 10px;
  border-top: 1px solid rgba(43,28,34,.08);
}

/* Only show burger + hide desktop pills on small screens */
@media (max-width: 900px){
  .nav-burger{ display:inline-flex; align-items:center; justify-content:center; }
  .nav-links{ display:none !important; }
  .admin-pill{ display:none !important; }
}

/* ---- FORCE burger visible + black ---- */
.nav-burger{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#000 !important;
  color:#fff !important;
  border: 1px solid #000 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
.nav-burger:active{ transform: translateY(1px); }

/* ---- Burger: black + obvious ---- */
.nav-burger{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  background:#000 !important;
  color:#fff !important;
  border: 1px solid #000 !important;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.nav-burger:active{ transform: translateY(1px); }

/* ---- FORCE burger visible (fix flex squeeze) ---- */
.nav-burger{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex: 0 0 auto !important;
  background:#000 !important;
  color:#fff !important;
  border: 2px solid #000 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  z-index: 9999 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
}

/* On mobile/tablet: hide pill nav and pin burger */
@media (max-width: 1024px){
  .nav-links{ display:none !important; }
  .admin-pill{ display:none !important; }

  .nav-burger{
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
  }
}
