/* ===== ADMIN PORTAL STYLES — RATHNA SELLER HUB ===== */
:root {
  --adm-sidebar: 240px;
  --adm-topbar: 56px;
  --adm-green: #1b5e20;
  --adm-green-mid: #2e7d32;
  --adm-green-light: #4caf50;
  --adm-border: #e5e7eb;
  --adm-muted: #6b7280;
  --adm-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ─── LOGIN ─────────────────────────────────────────── */
.adm-login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f0fdf4 0%, #fafff5 50%, #fffbf0 100%);
  padding: 20px;
}
.adm-login-card {
  background: #fff; border-radius: 24px; padding: 40px 36px;
  width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  animation: slideUp 0.4s ease;
}
.adm-login-logo { text-align: center; margin-bottom: 16px; }
.adm-login-logo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.adm-login-title { font-size: 1.6rem; font-weight: 900; color: #0f172a; text-align: center; margin-bottom: 4px; }
.adm-login-sub { font-size: 0.82rem; color: var(--adm-muted); text-align: center; margin-bottom: 24px; }
.adm-login-err { color: #dc2626; font-size: 0.82rem; min-height: 18px; margin-bottom: 4px; }
.adm-err { color: #dc2626; font-size: 0.82rem; min-height: 16px; }

/* ─── APP SHELL ─────────────────────────────────────── */
.adm-app { display: flex; min-height: 100vh; }
.adm-app.hidden { display: none; }
.hidden { display: none !important; }

/* ─── SIDEBAR ───────────────────────────────────────── */
.adm-sidebar {
  width: var(--adm-sidebar); flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--adm-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 200; overflow-y: auto; overflow-x: hidden;
  transition: transform 0.3s ease;
}
.adm-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px; border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}
.adm-sidebar-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.adm-sidebar-name { font-size: 0.88rem; font-weight: 900; color: #0f172a; line-height: 1.2; }
.adm-sidebar-sub { font-size: 0.65rem; color: var(--adm-muted); }
.adm-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: none;
  background: transparent; color: var(--adm-muted);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-align: left; position: relative;
  white-space: nowrap; overflow: hidden;
}
.adm-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.adm-nav-item:hover { background: #f0fdf4; color: var(--adm-green-mid); }
.adm-nav-item.active {
  background: linear-gradient(135deg, #e8f5e9, #f0fdf4);
  color: var(--adm-green-mid);
  box-shadow: 0 2px 8px rgba(46,125,50,0.12);
}
.adm-nav-badge {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: 0.6rem; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 5px;
  flex-shrink: 0;
}
.adm-nav-badge:empty { display: none; }
.adm-logout-btn {
  display: flex; align-items: center; gap: 10px;
  margin: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid #fee2e2; background: #fff;
  color: #dc2626; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.adm-logout-btn svg { width: 18px; height: 18px; }
.adm-logout-btn:hover { background: #fee2e2; }

/* ─── TOPBAR (mobile) ────────────────────────────────── */
.adm-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: var(--adm-topbar); background: #fff;
  border-bottom: 1px solid var(--adm-border); z-index: 150;
  align-items: center; padding: 0 14px; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.adm-menu-btn, .adm-topbar-logout {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: #374151; border-radius: 8px; display: flex; align-items: center;
}
.adm-menu-btn svg, .adm-topbar-logout svg { width: 22px; height: 22px; }
.adm-topbar-title { font-size: 1rem; font-weight: 800; color: #0f172a; flex: 1; }
.adm-topbar-logout { margin-left: auto; color: #dc2626; }
.adm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 180;
}
.adm-overlay.open { display: block; }

/* ─── MAIN CONTENT ──────────────────────────────────── */
.adm-main {
  flex: 1; margin-left: var(--adm-sidebar);
  padding: 28px; min-height: 100vh;
  background: #f8fafc; overflow-x: hidden;
}

/* ─── TABS ──────────────────────────────────────────── */
.adm-tab { display: none; animation: slideUp 0.3s ease; }
.adm-tab.active { display: block; }
.adm-tab-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.adm-tab-header h2 { font-size: 1.3rem; font-weight: 900; color: #0f172a; }
.adm-search {
  padding: 8px 14px; border: 1.5px solid var(--adm-border);
  border-radius: 20px; font-size: 0.84rem; outline: none;
  background: #fff; transition: border 0.2s;
  min-width: 200px;
}
.adm-search:focus { border-color: var(--adm-green-light); }

/* ─── OVERVIEW STATS ────────────────────────────────── */
.adm-overview-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.adm-stat-card {
  background: #fff; border-radius: 16px; padding: 20px 16px;
  text-align: center; border: 1.5px solid var(--adm-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.adm-stat-card:hover { transform: translateY(-2px); }
.adm-stat-card.pending { background: #fefce8; border-color: #fde68a; }
.adm-stat-card.approved { background: #f0fdf4; border-color: #86efac; }
.adm-stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.adm-stat-val { font-size: 2rem; font-weight: 900; color: #0f172a; margin-bottom: 4px; }
.adm-stat-lbl { font-size: 0.68rem; font-weight: 700; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.adm-loading-wrap { text-align: center; padding: 40px 20px; color: var(--adm-muted); }

/* ─── CARDS ─────────────────────────────────────────── */
.adm-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 18px; padding: 20px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  animation: slideUp 0.3s ease;
}
.adm-card-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
}
.adm-card-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--adm-green-mid), var(--adm-green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
}
.adm-card-info { flex: 1; }
.adm-card-name { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.adm-card-meta { font-size: 0.78rem; color: var(--adm-muted); line-height: 1.7; }
.adm-card-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--adm-border); padding-top: 12px; margin-top: 4px; }

/* ─── ACTION BUTTONS ────────────────────────────────── */
.adm-btn {
  padding: 7px 14px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 700; border: none; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.adm-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.adm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.adm-btn.green   { background: #dcfce7; color: #15803d; }
.adm-btn.red     { background: #fee2e2; color: #991b1b; }
.adm-btn.yellow  { background: #fef9c3; color: #854d0e; }
.adm-btn.blue    { background: #dbeafe; color: #1e40af; }
.adm-btn.purple  { background: #ede9fe; color: #6d28d9; }
.adm-btn.grey    { background: #f3f4f6; color: #374151; }
.adm-btn.wa      { background: #dcfce7; color: #15803d; }
.adm-btn.danger  { background: #dc2626; color: #fff; }

/* ─── STATUS BADGES ─────────────────────────────────── */
.adm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.adm-badge.pending   { background: #fef9c3; color: #854d0e; }
.adm-badge.approved  { background: #dcfce7; color: #15803d; }
.adm-badge.rejected  { background: #fee2e2; color: #991b1b; }
.adm-badge.new       { background: #e0f2fe; color: #0369a1; }
.adm-badge.confirmed { background: #dbeafe; color: #1e40af; }
.adm-badge.packed    { background: #f0fdf4; color: #15803d; }
.adm-badge.shipped   { background: #e0f2fe; color: #0284c7; }
.adm-badge.delivered { background: #dcfce7; color: #15803d; }
.adm-badge.cancelled { background: #fee2e2; color: #991b1b; }
.adm-badge.paid      { background: #d1fae5; color: #065f46; }

/* ─── ORDER CARDS ───────────────────────────────────── */
.adm-order-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  animation: slideUp 0.3s ease;
}
.adm-order-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.adm-order-id { font-size: 0.9rem; font-weight: 800; color: #0f172a; }
.adm-order-meta { font-size: 0.78rem; color: var(--adm-muted); }
.adm-order-body { margin-bottom: 12px; }
.adm-order-row { font-size: 0.82rem; color: #374151; margin-bottom: 4px; line-height: 1.6; }
.adm-order-customer {
  background: #f0fdf4; border-radius: 10px; padding: 8px 12px;
  font-size: 0.8rem; color: #374151; line-height: 1.7; margin-top: 8px;
}
.adm-order-controls {
  border-top: 1px solid var(--adm-border); padding-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.adm-ctrl-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.adm-ctrl-row label { font-size: 0.75rem; font-weight: 700; color: var(--adm-muted); min-width: 120px; }
.adm-ctrl-row select, .adm-ctrl-row input[type="text"] {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--adm-border);
  border-radius: 10px; font-size: 0.82rem; outline: none; background: #fafafa;
}
.adm-ctrl-row select:focus, .adm-ctrl-row input:focus { border-color: var(--adm-green-light); background: #fff; }
.adm-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ─── PRODUCT CARDS ─────────────────────────────────── */
.adm-prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 14px;
}
.adm-prod-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); animation: slideUp 0.3s ease;
}
.adm-prod-img { height: 140px; background: #f3f4f6; overflow: hidden; position: relative; }
.adm-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-prod-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 2.5rem; color: #d1d5db;
}
.adm-prod-body { padding: 14px; }
.adm-prod-name { font-size: 0.9rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.adm-prod-meta { font-size: 0.76rem; color: var(--adm-muted); margin-bottom: 10px; line-height: 1.5; }
.adm-prod-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── CATEGORY GRID ─────────────────────────────────── */
.adm-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px;
}
.adm-cat-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 16px; padding: 18px 14px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s;
  animation: slideUp 0.3s ease;
}
.adm-cat-card:hover { transform: translateY(-2px); }
.adm-cat-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin: 0 auto 10px; display: block; }
.adm-cat-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.adm-cat-name { font-size: 0.9rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.adm-cat-desc { font-size: 0.72rem; color: var(--adm-muted); margin-bottom: 12px; }
.adm-cat-actions { display: flex; gap: 6px; justify-content: center; }

/* ─── WITHDRAWAL CARDS ──────────────────────────────── */
.adm-wd-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); animation: slideUp 0.3s ease;
}
.adm-wd-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.adm-wd-id { font-size: 0.84rem; font-weight: 800; color: #0f172a; }
.adm-wd-body { font-size: 0.82rem; color: #374151; line-height: 1.7; margin-bottom: 12px; }
.adm-wd-bank {
  background: #f0fdf4; border-radius: 10px; padding: 8px 12px;
  font-size: 0.8rem; color: #374151; line-height: 1.7; margin-bottom: 12px;
}
.adm-wd-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--adm-border); padding-top: 12px; }

/* ─── RESEARCH CARDS ────────────────────────────────── */
.adm-rp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 14px;
}
.adm-rp-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  animation: slideUp 0.3s ease; display: flex; flex-direction: column; gap: 8px;
}
.adm-rp-type {
  display: inline-flex; align-items: center; gap: 4px;
  background: #dbeafe; color: #1e40af;
  padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800;
  width: fit-content;
}
.adm-rp-title { font-size: 1rem; font-weight: 800; color: #0f172a; line-height: 1.3; }
.adm-rp-inst  { font-size: 0.82rem; color: #374151; font-weight: 600; }
.adm-rp-meta  { font-size: 0.76rem; color: var(--adm-muted); line-height: 1.6; }
.adm-rp-desc  { font-size: 0.8rem; color: #374151; line-height: 1.6; }
.adm-rp-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* ─── USER TABLE ────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 560px;
}
.adm-table th {
  background: #f8fafc; padding: 10px 14px; text-align: left;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--adm-muted); border-bottom: 1.5px solid var(--adm-border);
  white-space: nowrap;
}
.adm-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--adm-border);
  color: #374151; vertical-align: middle;
}
.adm-table tr:hover td { background: #f0fdf4; }
.adm-table tr:last-child td { border-bottom: none; }

/* ─── COLLAB CARDS ──────────────────────────────────── */
.adm-collab-card {
  background: #fff; border: 1.5px solid var(--adm-border);
  border-radius: 18px; padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); animation: slideUp 0.3s ease;
}
.adm-collab-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.adm-collab-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff;
}
.adm-collab-info { flex: 1; }
.adm-collab-name { font-size: 0.96rem; font-weight: 800; color: #0f172a; margin-bottom: 3px; }
.adm-collab-meta { font-size: 0.76rem; color: var(--adm-muted); line-height: 1.6; }
.adm-collab-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.adm-collab-tab-badge {
  background: #eff6ff; color: #1e40af; padding: 2px 9px;
  border-radius: 10px; font-size: 0.7rem; font-weight: 700;
}
.adm-collab-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--adm-border); padding-top: 10px; }
.adm-checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 4px;
}
.adm-checkbox-grid label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 600; color: #374151;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.adm-checkbox-grid input[type="checkbox"] { accent-color: var(--adm-green-mid); }

/* ─── MODAL ─────────────────────────────────────────── */
.adm-modal-wrap {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  overflow-y: auto; padding: 24px 16px;
  align-items: flex-start; justify-content: center;
}
.adm-modal-wrap.open { display: flex; }
.adm-modal {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 620px; padding: 28px;
  position: relative; animation: slideUp 0.3s ease;
  margin: auto;
}
.adm-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #f3f4f6; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #374151; transition: background 0.2s;
}
.adm-modal-close:hover { background: #e5e7eb; }
.adm-modal-title { font-size: 1.2rem; font-weight: 900; color: #0f172a; margin-bottom: 20px; }
.adm-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* Seller detail modal tabs */
.adm-sd-tabs {
  display: flex; gap: 4px; background: #f8fafc;
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.adm-sd-tab {
  flex: 1; padding: 8px; border: none; background: transparent;
  border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  color: var(--adm-muted); cursor: pointer; transition: all 0.2s;
}
.adm-sd-tab.active { background: #fff; color: var(--adm-green-mid); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* Earnings summary inside modal */
.adm-earnings-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.adm-earn-tile {
  border-radius: 14px; padding: 14px; text-align: center; border: 1.5px solid var(--adm-border);
}
.adm-earn-tile.green  { background: #f0fdf4; border-color: #86efac; }
.adm-earn-tile.blue   { background: #eff6ff; border-color: #93c5fd; }
.adm-earn-tile.orange { background: #fff7ed; border-color: #fdba74; }
.adm-earn-val   { font-size: 1.3rem; font-weight: 900; color: #0f172a; }
.adm-earn-label { font-size: 0.65rem; font-weight: 700; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }

/* Seller detail info grid */
.adm-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 16px;
}
.adm-info-item { }
.adm-info-label { font-size: 0.68rem; font-weight: 700; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.adm-info-val   { font-size: 0.86rem; color: #0f172a; font-weight: 600; }

/* Source tag */
.adm-source-tag {
  color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 2px 8px; border-radius: 8px; text-transform: uppercase;
  letter-spacing: 0.3px;
}
.adm-source-tag.sarees   { background: #7c3aed; }
.adm-source-tag.homemade { background: #2e7d32; }
.adm-source-tag.seller   { background: #0284c7; }

/* ─── TOAST ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff; padding: 12px 24px; border-radius: 25px;
  font-size: 0.88rem; font-weight: 600; z-index: 9999;
  opacity: 0; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── EMPTY / LOADING ───────────────────────────────── */
.adm-empty {
  text-align: center; padding: 40px 20px;
  font-size: 0.88rem; color: var(--adm-muted);
  background: #fafafa; border-radius: 14px;
  border: 1.5px dashed var(--adm-border);
}
.adm-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar { transform: translateX(-100%); }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-topbar { display: flex; }
  .adm-main { margin-left: 0; padding: 80px 16px 24px; }
  .adm-overview-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-prod-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
  .adm-info-grid { grid-template-columns: 1fr; }
  .adm-earnings-grid { grid-template-columns: 1fr 1fr; }
  .adm-rp-grid { grid-template-columns: 1fr; }
  .adm-checkbox-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .adm-login-card { padding: 28px 20px; }
  .adm-overview-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .adm-stat-val { font-size: 1.5rem; }
  .adm-cat-grid { grid-template-columns: 1fr 1fr; }
  .adm-earnings-grid { grid-template-columns: 1fr; }
  .adm-modal { padding: 20px 16px; }
  .adm-sd-tabs { gap: 2px; }
  .adm-sd-tab { font-size: 0.72rem; padding: 7px 4px; }
  .adm-search { min-width: 140px; font-size: 0.78rem; }
  .adm-ctrl-row { flex-direction: column; align-items: flex-start; }
  .adm-ctrl-row select, .adm-ctrl-row input { width: 100%; }
  .adm-checkbox-grid { grid-template-columns: 1fr 1fr; }
  .adm-tab-header h2 { font-size: 1.1rem; }
  .toast { font-size: 0.8rem; padding: 10px 16px; max-width: 90vw; white-space: normal; text-align: center; bottom: 16px; }
}
