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

:root {
  --green:   #2d6a4f;
  --green2:  #40916c;
  --red:     #e63946;
  --bg:      #f0f2f0;
  --dark:    #1a2e22;
  --card-bg: #ffffff;
  --border:  #dce3d5;
  --text:    #1b1b1b;
  --muted:   #6b7a6b;
  --shadow:  0 2px 12px rgba(0,0,0,.1);
  --radius:  8px;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Login ──────────────────────────────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2e22 0%, #2d6a4f 100%);
  padding: 16px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lb-logo-accent { color: var(--green2); }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 4px; }
.login-logo .lb-logo-icon    { height: 56px; color: var(--green); }
.login-logo .lb-logo-text    { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.login-logo .lb-logo-name    { font-size: 1.8rem; color: var(--dark); }
.login-logo .lb-logo-tagline { font-size: .62rem; color: var(--muted); }
.login-card h1 { font-size: 1.5rem; color: var(--dark); margin-top: 2px; }
.login-sub { font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
#login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
#login-form input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
#login-form input:focus { border-color: var(--green2); }
.back-link { font-size: .82rem; color: var(--muted); text-decoration: none; text-align: center; margin-top: 6px; }
.back-link:hover { color: var(--green); }

/* ── Admin Layout ────────────────────────────────────────────────────────── */
.admin-header {
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.admin-brand { display: flex; align-items: center; gap: 8px; }
.admin-brand .lb-logo-icon  { height: 28px; color: #74c69d; }
.admin-brand .lb-logo-name  { font-size: 1rem; color: #fff; }
.admin-brand .lb-logo-accent { color: #74c69d; }
.admin-brand-tag { color: #fff; font-weight: 400; font-size: .85rem; margin-left: 2px; }
.admin-header-right { display: flex; align-items: center; gap: 10px; }
#admin-stats { font-size: .8rem; color: rgba(255,255,255,.6); }
.visit-stats { font-size: .8rem; color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }

.admin-body { padding: 24px; max-width: 1600px; margin: 0 auto; }

/* ── Controls ────────────────────────────────────────────────────────────── */
.controls-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.controls-bar input, .controls-bar select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.controls-bar input { flex: 1; min-width: 200px; }
.controls-bar input:focus, .controls-bar select:focus { border-color: var(--green2); }

/* ── Table ───────────────────────────────────────────────────────────────── */
.table-wrapper { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: auto; }

table { width: 100%; border-collapse: collapse; font-size: .8rem; }
thead { position: sticky; top: 0; z-index: 10; }
th {
  background: var(--dark);
  color: #d8f3dc;
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 10px;
  text-align: left;
  white-space: nowrap;
}
td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f7fdf9; }

.table-empty { text-align: center; color: var(--muted); padding: 40px; font-size: .9rem; }

.cell-id    { color: var(--muted); font-size: .75rem; font-weight: 600; }
.cell-title { font-weight: 600; max-width: 150px; }
.cell-title .listing-id { font-size: .7rem; color: var(--muted); font-weight: 400; }
.cell-price { font-weight: 700; color: var(--green); }
.cell-contact { font-size: .75rem; line-height: 1.4; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-count { display: inline-block; background: #e9f5ee; color: var(--green); border-radius: 20px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.inq-count.has-inquiries { background: #fff3cd; color: #856404; }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-sale      { background: #d8f3dc; color: #1a6b3c; }
.tag-rent      { background: #d0e8f5; color: #1a4a6b; }
.tag-available { background: #d8f3dc; color: #1a6b3c; }
.tag-pending   { background: #fff3cd; color: #856404; }
.tag-sold      { background: #fde8e8; color: #842029; }
.tag-review    { background: #fff0e0; color: #b45309; font-weight: 700; }
.tag-approved  { background: #d8f3dc; color: #1a6b3c; }
.tag-rejected  { background: #fde8e8; color: #842029; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--green2); color: #fff; }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.controls-bar .btn-secondary { background: #f0f0f0; color: #333; border: 1.5px solid #ccc; }
.controls-bar .btn-secondary:hover { background: #e0e0e0; opacity: 1; }
.btn-danger    { background: var(--red); color: #fff; }
.btn-sm        { padding: 5px 12px; font-size: .8rem; }
.btn-full      { width: 100%; }
.btn-delete    { background: #fde8e8; color: var(--red); border: 1px solid #f5c2c7; padding: 4px 9px; font-size: .75rem; border-radius: 6px; cursor: pointer; font-weight: 600; transition: background .2s; display: block; text-align: center; width: 100%; box-sizing: border-box; }
.btn-delete:hover { background: var(--red); color: #fff; }
.btn-view      { background: #e9f5ee; color: var(--green); border: 1px solid #b7e4c7; padding: 4px 9px; font-size: .75rem; border-radius: 6px; cursor: pointer; font-weight: 600; transition: background .2s; text-decoration: none; display: block; text-align: center; width: 100%; box-sizing: border-box; }
.btn-view:hover { background: var(--green2); color: #fff; }
.btn-edit-inline { background: none; border: none; cursor: pointer; color: #aaa; font-size: .85rem; padding: 2px 4px; opacity: .7; transition: opacity .15s, color .15s; vertical-align: middle; line-height: 1; }
.btn-edit-inline:hover { opacity: 1; color: var(--green); }

/* ── Confirm Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal-confirm-box {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.confirm-icon { font-size: 2.5rem; color: var(--red); margin-bottom: 10px; }
.modal-confirm-box h2 { font-size: 1.2rem; margin-bottom: 8px; }
.modal-confirm-box p  { font-size: .9rem; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .btn { min-width: 110px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: .875rem;
  z-index: 2000;
  box-shadow: var(--shadow);
  transition: opacity .3s;
  white-space: nowrap;
}
.toast.hidden { opacity: 0; pointer-events: none; }
.toast.error  { background: var(--red); }
.toast.success { background: var(--green2); }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.error-msg { color: var(--red); font-size: .82rem; padding: 4px 0; }
.hidden { display: none !important; }

/* ── Admin Tab Navigation ────────────────────────────────────────────────── */
.admin-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-tab:hover  { color: var(--dark); background: rgba(0,0,0,.04); }
.admin-tab.active { color: var(--green); border-bottom-color: var(--green); background: none; }
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #e63946;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 5px;
  line-height: 1;
  vertical-align: middle;
}

/* ── Plan Tags ───────────────────────────────────────────────────────────── */
.tag-plan-free    { background: #f0f0f0; color: #555; }
.tag-plan-starter { background: #fff3cd; color: #b45309; }
.tag-plan-pro     { background: #dbeafe; color: #1e40af; }
.tag-plan-max     { background: #fef3c7; color: #92400e; }
.plan-countdown { font-size: .7rem; margin-top: 4px; }
.cd-active  { color: #1a8a5f; font-weight: 600; }
.cd-warning { color: #e67e00; font-weight: 600; }
.cd-expired { color: #c0392b; font-weight: 600; }

/* ── Listing Quota ───────────────────────────────────────────────────────── */
.quota-wrap { min-width: 140px; }
.quota-numbers { font-size: .78rem; margin-bottom: 5px; white-space: nowrap; }
.quota-used      { font-weight: 700; color: var(--dark); }
.quota-sep       { color: var(--muted); }
.quota-remaining { color: var(--green); font-weight: 600; }
.quota-remaining.quota-none { color: var(--red); }
.quota-bar-track {
  height: 5px;
  background: #e8e8e8;
  border-radius: 100px;
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--green2);
  transition: width .3s ease;
}
.quota-bar-fill.warn { background: #ff9500; }
.quota-bar-fill.full { background: var(--red); }
.mobile-quota-inline { display: none; }
.mobile-phone-inline { display: none; }

/* ── Plan Select ─────────────────────────────────────────────────────────── */
.plan-select-wrap { display: flex; align-items: center; }
.plan-select {
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.plan-select:focus { border-color: var(--green2); }

/* ── Pending Review Badge in Header ─────────────────────────────────────── */
.pending-badge {
  background: #ff9500;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* ── Pending / Rejected Row Highlights ──────────────────────────────────── */
.row-pending { background: #fffbf0 !important; }
.row-pending td:first-child { border-left: 3px solid #ff9500; }
.row-rejected { background: #fff5f5 !important; }
.row-rejected td:first-child { border-left: 3px solid #e63946; }

/* ── Admin Detail Modal ─────────────────────────────────────────────────── */
.admin-detail-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.admin-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-detail-title { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin: 0 0 6px; }
.admin-detail-meta  { display: flex; align-items: center; gap: 6px; }
.admin-detail-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.admin-detail-close:hover { background: #f0f0f0; color: var(--dark); }
.admin-detail-body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-detail-map-wrap { flex-shrink: 0; }
.admin-detail-map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: #e8f0e8;
}
.admin-detail-map-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 5px;
  font-style: italic;
}
.map-layer-toggle {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.25);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.2);
  transition: background .15s;
}
.map-layer-toggle:hover { background: #f0f0f0; }
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 680px) {
  .admin-detail-grid { grid-template-columns: 1fr; }
}
.admin-detail-section { margin-bottom: 20px; }
.admin-detail-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.admin-detail-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-detail-table th {
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 5px 0;
  text-align: left;
  white-space: nowrap;
  width: 38%;
  vertical-align: top;
}
.admin-detail-table td { padding: 5px 0; color: var(--text); vertical-align: top; }
.admin-detail-desc {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  background: #f7fdf9;
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 160px;
  overflow-y: auto;
}
.admin-detail-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.admin-detail-photos a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.admin-detail-photos img { width: 100%; height: 90px; object-fit: cover; display: block; transition: opacity .2s; }
.admin-detail-photos img:hover { opacity: .85; }
.admin-photo-wrap { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.admin-photo-wrap a { display: block; }
.admin-photo-wrap img { width: 100%; height: 90px; object-fit: cover; display: block; transition: opacity .2s; }
.admin-photo-wrap:hover img { opacity: .75; }
.admin-photo-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(220,38,38,.85); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.admin-photo-wrap:hover .admin-photo-del { opacity: 1; }
.admin-detail-docs { display: flex; flex-direction: column; gap: 6px; }
.admin-doc-wrap { display: flex; align-items: center; gap: 6px; }
.admin-doc-wrap .admin-doc-row { flex: 1; min-width: 0; }
.admin-doc-del {
  background: none; border: none; color: #dc2626; cursor: pointer;
  font-size: .9rem; padding: 4px 6px; border-radius: 4px;
  opacity: 0; transition: opacity .15s; flex-shrink: 0;
}
.admin-doc-wrap:hover .admin-doc-del { opacity: 1; }
.admin-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f7fdf9;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: .8rem;
  transition: background .15s;
}
.admin-doc-row:hover { background: #e9f5ee; }
.admin-doc-type { font-weight: 700; color: var(--green); flex-shrink: 0; min-width: 80px; }
.admin-doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-doc-size { color: var(--muted); flex-shrink: 0; }
.admin-detail-empty { color: var(--muted); font-size: .875rem; font-style: italic; }

/* ── Detail modal header actions ────────────────────────────────────────── */
.admin-detail-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 5px 12px; font-size: .8rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; transition: opacity .15s; }
.btn-sm:hover { opacity: .85; }
.btn-outline-primary { background: #fff; border: 1.5px solid var(--green) !important; color: var(--green); }
.btn-outline-primary:hover { background: #f0faf4; }

/* ── Detail edit form ───────────────────────────────────────────────────── */
.dv-edit-section-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 10px;
}
.dv-edit-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.dv-edit-field label { font-size: .78rem; font-weight: 600; color: #555; }
.dv-edit-field input,
.dv-edit-field select,
.dv-edit-field textarea {
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .875rem; color: var(--dark); background: #fff;
  transition: border-color .15s;
}
.dv-edit-field input:focus,
.dv-edit-field select:focus,
.dv-edit-field textarea:focus { border-color: var(--green); outline: none; }
.dv-edit-field textarea { resize: vertical; min-height: 90px; }
.dv-edit-row { display: flex; gap: 10px; }
.dv-edit-row .dv-edit-field { flex: 1; min-width: 0; }

/* ── User Delete Confirm ────────────────────────────────────────────────── */
.user-del-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  white-space: nowrap;
}

/* ── Approve / Reject Buttons ───────────────────────────────────────────── */
.approval-actions { display: flex; flex-direction: column; gap: 6px; }
.approval-btns    { display: flex; gap: 5px; }

.btn-approve, .btn-reject {
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-approve { background: #2d6a4f; color: #fff; }
.btn-approve:hover { opacity: .85; }
.btn-reject  { background: #e63946; color: #fff; }
.btn-reject:hover  { opacity: .85; }

/* ── Mobile Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Header: stack stats below brand row */
  .admin-header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    gap: 6px;
  }
  .admin-brand { font-size: 1rem; }
  .admin-header-right {
    display: contents; /* break out children so they flow freely */
  }
  #admin-stats {
    order: 3;
    width: 100%;
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    padding-bottom: 2px;
  }
  #visit-stats {
    order: 4;
    width: 100%;
    font-size: .72rem;
    padding: 3px 0;
    background: none;
    border-radius: 0;
    color: rgba(255,255,255,.45);
    white-space: normal;
  }
  #pending-badge {
    order: 2;
    font-size: .72rem;
    padding: 4px 10px;
  }
  .admin-header .btn-secondary {
    order: 1;
    font-size: .75rem;
    padding: 5px 10px;
  }

  /* Admin body: tighter padding */
  .admin-body { padding: 12px; }

  /* Tab nav: horizontal scroll, no wrapping */
  .admin-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
    margin-bottom: 12px;
    gap: 0;
  }
  .admin-tab-nav::-webkit-scrollbar { display: none; }
  .admin-tab {
    padding: 9px 14px;
    font-size: .8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Controls bar: full-width stacked */
  .controls-bar {
    flex-direction: column;
    gap: 8px;
  }
  .controls-bar input,
  .controls-bar select,
  .controls-bar .btn { width: 100%; min-width: 0; }

  /* Table: smaller text, horizontal scroll already handled */
  .table-wrapper { border-radius: 8px; }
  table { font-size: .75rem; }
  th, td { padding: 8px 8px; }

  /* Listings table: hide Lot Size(5), Contact(7), Posted(11) on mobile */
  #listings-table th:nth-child(5),
  #listings-table td:nth-child(5),
  #listings-table th:nth-child(7),
  #listings-table td:nth-child(7),
  #listings-table th:nth-child(11),
  #listings-table td:nth-child(11) { display: none; }

  /* Show phone under name on mobile */
  .mobile-phone-inline {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
  }

  /* Show compact quota count inside Plan cell on mobile */
  .mobile-quota-inline {
    display: block;
    font-size: .7rem;
    color: var(--green);
    font-weight: 700;
    margin-top: 3px;
  }
  .mobile-quota-inline.quota-none { color: var(--red); }

  /* Users table: hide Phone(4), Quota(6), Joined(7), Change Plan(8) on mobile */
  #users-table th:nth-child(4),
  #users-table td:nth-child(4),
  #users-table th:nth-child(6),
  #users-table td:nth-child(6),
  #users-table th:nth-child(7),
  #users-table td:nth-child(7),
  #users-table th:nth-child(8),
  #users-table td:nth-child(8) { display: none; }

  /* Detail modal: full screen on mobile */
  .admin-detail-box {
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
  .admin-detail-body { padding: 16px; }
  .admin-detail-header { padding: 16px 16px 12px; }
}
