/* ════════════════════════════════════════════
   SokoDesk — Mobile-First Seller SaaS
   Green-Led Trust Palette
   ════════════════════════════════════════════ */

/* CSS variables are defined in tokens.css — this file references them only. */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--sd-bg);
  color: var(--sd-heading);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sd-primary); text-decoration: none; }
a:hover { color: var(--sd-primary-hover); }

/* ── Top Bar (mobile) ── */
.app-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--sd-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  z-index: 1040;
}

.topbar-brand { font-size: 20px; font-weight: 800; }
.brand-soko { color: #fff; }
.brand-desk { color: var(--sd-accent); }

.btn-accent {
  background: var(--sd-accent); color: #fff; border: none;
  font-weight: 600; font-size: 13px;
  padding: 6px 14px;
}
.btn-accent:hover { background: var(--sd-accent-hover); color: #fff; }

/* ── Sidebar ── */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sd-primary);
  display: flex; flex-direction: column;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.app-sidebar.show { transform: translateX(0); }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1045;
  display: none;
}

.app-sidebar.show ~ .sidebar-overlay { display: block; }

.sidebar-brand {
  padding: 20px 20px 16px;
  font-size: 24px; font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-business {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.biz-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.biz-logo-placeholder {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--sd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.biz-name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.3; }
.biz-plan { color: rgba(255,255,255,0.5); font-size: 11px; }

.sidebar-nav { flex: 1; padding: 8px 0; }
.nav-section { padding: 4px 0; }
.nav-label {
  padding: 12px 20px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
}

.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  color: #fff; background: rgba(255,255,255,0.06);
}

.sidebar-nav .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.1);
  border-left-color: var(--sd-accent);
  font-weight: 600;
}

.sidebar-nav .nav-link i { font-size: 18px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.user-name { color: #fff; font-weight: 600; font-size: 13px; }
.user-logout { color: rgba(255,255,255,0.4); font-size: 11px; }
.user-logout:hover { color: var(--sd-accent); }

/* ── Main Content ── */
.app-main {
  padding: calc(var(--topbar-h) + 16px) 16px calc(var(--bottomnav-h) + 16px);
  min-height: 100vh;
}

/* ── Mobile Bottom Nav ── */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--sd-surface);
  border-top: 1px solid var(--sd-border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--sd-muted); font-size: 10px; font-weight: 500;
  padding: 4px 0;
  transition: color 0.15s;
}

.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item.active { color: var(--sd-primary); font-weight: 700; }
.mobile-nav-item:hover { color: var(--sd-primary); }

/* ── Page Header ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 22px; font-weight: 800; color: var(--sd-heading);
  margin: 0;
}

.page-header p { font-size: 13px; color: var(--sd-muted); margin: 0; }

/* ── Cards ── */
.card {
  border: 1px solid var(--sd-border);
  border-radius: var(--radius);
  background: var(--sd-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--sd-border);
  padding: 14px 16px;
  font-weight: 700; font-size: 14px;
  color: var(--sd-heading);
}

.card-body { padding: 16px; }

/* ── Stat Cards ── */
.stat-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.stat-label { font-size: 11px; font-weight: 600; color: var(--sd-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--sd-heading); line-height: 1.2; }
.stat-sub { font-size: 11px; color: var(--sd-muted); }

/* ── Quick Actions ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.quick-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px;
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--radius);
  color: var(--sd-heading);
  font-size: 12px; font-weight: 600;
  text-align: center;
  transition: all 0.15s;
}

.quick-action-btn i { font-size: 24px; color: var(--sd-primary); }
.quick-action-btn:hover { border-color: var(--sd-primary); background: rgba(21,94,82,0.03); color: var(--sd-primary); }

/* ── Buttons ── */
.btn-primary {
  background: var(--sd-primary) !important;
  border-color: var(--sd-primary) !important;
  color: #fff !important;
}
.btn-primary:hover { background: var(--sd-primary-hover) !important; border-color: var(--sd-primary-hover) !important; color:#fff !important; }

.btn-outline-primary {
  color: var(--sd-primary) !important;
  border-color: var(--sd-primary) !important;
}
.btn-outline-primary:hover { background: var(--sd-primary) !important; color: #fff !important; }

.btn-success { background: var(--sd-success) !important; border-color: var(--sd-success) !important; }
.btn-warning { background: var(--sd-warning) !important; border-color: var(--sd-warning) !important; color: #fff !important; }
.btn-danger { background: var(--sd-danger) !important; border-color: var(--sd-danger) !important; }

.btn-whatsapp {
  background: #25D366; color: #fff; border: none;
  font-size: 12px; padding: 4px 10px; border-radius: var(--radius-sm);
}
.btn-whatsapp:hover { background: #1FB855; color: #fff; }

/* ── Tables ── */
.table { font-size: 13px; }
.table th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--sd-muted);
  border-bottom: 2px solid var(--sd-border);
  padding: 10px 12px;
}
.table td { padding: 10px 12px; vertical-align: middle; border-color: var(--sd-border); }

/* ── Forms ── */
.form-label { font-size: 13px; font-weight: 600; color: var(--sd-heading); margin-bottom: 4px; }
.form-control, .form-select {
  border-color: var(--sd-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sd-primary);
  box-shadow: 0 0 0 3px rgba(21,94,82,0.1);
}

/* ── Badges ── */
.badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 5px; }

/* ── Dashboard Greeting (Premium Styling) ── */
.dashboard-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--sd-heading);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.greeting-kicker {
  font-weight: 300;
  color: var(--sd-primary);
}

.greeting-name {
  font-weight: 700;
  background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 4px;
}

.greeting-emoji {
  font-size: 24px;
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 767px) {
  .dashboard-greeting {
    font-size: 22px;
  }
  
  .greeting-emoji {
    font-size: 20px;
  }
}

/* ── Empty States ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--sd-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.4; }
.empty-state p { font-size: 14px; margin: 0; }
.empty-state a { color: var(--sd-primary); font-weight: 600; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(212,169,79,.18), transparent 28%),
    linear-gradient(145deg, #0b4037 0%, var(--sd-primary) 45%, var(--sd-secondary) 100%);
  padding: 20px;
}

.auth-card {
  background: var(--sd-surface);
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.auth-brand {
  text-align: center; margin-bottom: 28px;
}

.auth-brand .brand-soko { color: var(--sd-heading); font-size: 28px; font-weight: 800; }
.auth-brand .brand-desk { color: var(--sd-accent); font-size: 28px; font-weight: 800; }
.auth-brand p { color: var(--sd-muted); font-size: 13px; margin-top: 4px; }

.auth-card .btn-primary {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  border: 1px solid var(--sd-primary) !important;
  background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-secondary) 100%) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  box-shadow: 0 14px 28px rgba(21,94,82,.18);
}
.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus,
.auth-card .btn-primary:active,
.auth-card .btn-primary.active,
.auth-card .btn-primary:focus-visible{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background: linear-gradient(135deg, var(--sd-primary-hover) 0%, var(--sd-primary) 100%) !important;
  border-color: var(--sd-primary-hover) !important;
  box-shadow: 0 16px 30px rgba(21,94,82,.22) !important;
  transform: translateY(-1px);
}
.auth-shell{width:100%;max-width:1080px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,470px);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:30px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.16)}
.auth-panel{padding:44px 42px;color:#fff;background:radial-gradient(circle at top left, rgba(212,169,79,.22), transparent 36%),linear-gradient(160deg, rgba(10,53,46,.92) 0%, rgba(21,94,82,.92) 58%, rgba(31,119,105,.88) 100%)}
.auth-panel .auth-brand{margin-bottom:18px;text-align:left}
.auth-panel .auth-brand .brand-soko{color:#fff}
.auth-panel .auth-brand p{color:rgba(255,255,255,.76);font-size:15px;max-width:420px}
.auth-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-bottom:18px}
.auth-panel h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.02;font-weight:800;letter-spacing:-.04em;margin-bottom:16px}
.auth-panel p{color:rgba(255,255,255,.86);font-size:15px;line-height:1.75;margin-bottom:0}
.auth-benefits{display:grid;gap:14px;margin-top:26px}
.auth-benefit{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12)}
.auth-benefit i{font-size:19px;color:var(--sd-accent);margin-top:2px}
.auth-benefit strong{display:block;color:#fff;font-size:14px;margin-bottom:2px}
.auth-benefit span{display:block;color:rgba(255,255,255,.72);font-size:13px;line-height:1.55}
.auth-card.auth-rich{max-width:none;border-radius:24px;box-shadow:0 24px 60px rgba(0,0,0,.18);padding:38px 32px;display:flex;flex-direction:column;justify-content:center;background:#fff}
.auth-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
.auth-card-head h2{font-size:28px;font-weight:800;letter-spacing:-.03em;margin:0 0 8px}
.auth-card-head p{margin:0;color:var(--sd-muted);font-size:13px;line-height:1.65}
.auth-lang-row{display:flex;gap:8px;flex-wrap:wrap}
.auth-lang-row .btn{min-width:54px}
.auth-form-grid{display:grid;gap:14px}
.auth-card .form-control,
.auth-card .form-select{
  background:#fff;
  color:var(--sd-heading);
  border:1px solid rgba(20,35,31,.12);
  box-shadow:none;
}
.auth-card .form-control::placeholder{color:#7b8a85}
.auth-card .form-control:focus,
.auth-card .form-select:focus{
  background:#fff;
  color:var(--sd-heading);
  border-color:var(--sd-primary);
  box-shadow:0 0 0 4px rgba(21,94,82,.10);
}
.auth-input-group{position:relative}
.auth-input-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--sd-muted);pointer-events:none}
.auth-input-group .form-control,.auth-input-group .form-select{padding-left:42px;min-height:48px;border-radius:14px}
.auth-input-group .with-right-action{padding-right:46px}
.auth-card .pwd-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--sd-primary);cursor:pointer;width:34px;height:34px;border-radius:999px}
.auth-card .pwd-toggle:hover{background:rgba(21,94,82,.08)}
.auth-row-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.auth-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.auth-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sd-muted)}
.auth-note{margin-top:18px;font-size:13px;color:var(--sd-muted);text-align:center}
.auth-note a{font-weight:700}
.phone-stack{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px}
.phone-code-pill{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid var(--sd-border);border-radius:14px;background:#f6faf8;color:var(--sd-heading);font-size:14px;font-weight:700}
.auth-helper{font-size:12px;color:var(--sd-muted);line-height:1.6}
.auth-soft-card{padding:14px 16px;border-radius:16px;background:linear-gradient(135deg, rgba(21,94,82,.05), rgba(212,169,79,.12));border:1px solid rgba(21,94,82,.1)}
.auth-soft-card strong{display:block;margin-bottom:6px;color:var(--sd-primary)}
.auth-soft-list{display:grid;gap:8px;margin:0}
.auth-soft-list span{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--sd-heading)}
.auth-soft-list i{color:var(--sd-primary);margin-top:2px}

/* ── Onboarding ── */
.onboarding-steps {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 28px;
}

.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sd-border);
  transition: all 0.3s;
}

.step-dot.active { background: var(--sd-primary); width: 28px; border-radius: 5px; }
.step-dot.done { background: var(--sd-success); }

/* ── Alerts ── */
.alert { font-size: 13px; border-radius: var(--radius-sm); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sd-border); border-radius: 3px; }

/* ════════════════════════════════════════════
   DESKTOP (lg+)
   ════════════════════════════════════════════ */
@media (min-width: 992px) {
  .app-sidebar {
    transform: translateX(0);
  }

  .app-main {
    margin-left: var(--sidebar-w);
    padding: 24px 32px;
    min-height: 100vh;
  }

  .page-header h1 { font-size: 26px; }
  .stat-card { padding: 20px; }
}

/* ════════════════════════════════════════════
   TABLET
   ════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
  .app-main { padding-top: calc(var(--topbar-h) + 20px); padding-left: 20px; padding-right: 20px; }
}

/* ════════════════════════════════════════════
   SMALL MOBILE
   ════════════════════════════════════════════ */
@media (max-width: 575px) {
  .stat-value { font-size: 16px !important; }
  .stat-label { font-size: 10px; }
  .stat-sub { font-size: 10px; }
  .stat-card { padding: 12px !important; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }
  .page-header h1 { font-size: 18px; }
  .page-header { gap: 8px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .quick-action-btn { padding: 12px 6px; font-size: 11px; }
  .quick-action-btn i { font-size: 20px; }
  .table-responsive { font-size: 12px; }
  .card-header { padding: 10px 12px; font-size: 13px; }
  .card-body { padding: 12px; }
  .btn { font-size: 13px; }
  .btn-sm { font-size: 11px; padding: 4px 8px; }
  .form-control, .form-select { font-size: 14px; padding: 8px 10px; }
  .badge { font-size: 10px; padding: 3px 6px; }
  .alert { font-size: 12px; padding: 8px 12px; }
  .d-flex.gap-3 { gap: 8px !important; }
  .d-flex.gap-2 { gap: 6px !important; }
  .row.g-3 { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.6rem; }
  .mb-4 { margin-bottom: 12px !important; }
  .mb-3 { margin-bottom: 10px !important; }
  
  /* Fix text overflow in cards */
  .stat-card, .card { overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; }
  .stat-card .stat-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fw-bold, .fw-semibold { word-break: break-word; }
  
  /* Fix page header buttons */
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header .btn { font-size: 12px; padding: 6px 12px; }
  
  /* Mobile debt cards */
  .progress { height: 4px !important; }

  /* Mobile order form grid */
  .order-item-row .row { row-gap: 6px; }
  .order-item-row .col-5, .order-item-row .col-4 { flex: 0 0 48%; max-width: 48%; }
  .order-item-row .col-3 { flex: 0 0 48%; max-width: 48%; }
}

/* ════════════════════════════════════════════
   GENERAL RESPONSIVENESS FIXES
   ════════════════════════════════════════════ */

/* Prevent text overflow everywhere */
.table td, .table th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.table td:first-child, .table th:first-child { max-width: none; }

/* Cards should not overflow — see base .card definition above for primary styling */
/* .card overflow is handled by the Layout Repair Patch below */

/* Fix filter bar on mobile */
@media (max-width: 767px) {
  .btn-group-sm { flex-wrap: wrap; }
  .btn-group-sm .btn { font-size: 11px; padding: 4px 8px; }
  .d-flex.flex-wrap { gap: 6px; }
}

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
}
.lang-switch:hover { color: #fff; background: rgba(255,255,255,0.1); }


/* ===== Growth Pass ===== */
.onboarding-progress{height:10px;background:#eef3f1;border-radius:999px;overflow:hidden}.onboarding-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--sd-primary),var(--sd-accent));border-radius:999px}
.checklist-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--sd-border);border-radius:14px;background:#fff;margin-bottom:10px}.checklist-item.done{background:#f2fbf7;border-color:#bde7d0}.checklist-item .check-label{font-size:14px;font-weight:600}.checklist-meta{font-size:12px;color:var(--sd-muted)}
.health-list{display:grid;gap:10px}.health-chip{padding:12px 14px;border-radius:14px;background:#fff7e7;border:1px solid #f0d38c;font-size:13px;color:#7b5a00}
.usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.usage-card{padding:14px;border-radius:16px;border:1px solid var(--sd-border);background:#fff}.usage-card strong{display:block;font-size:18px}.usage-bar{height:8px;background:#edf2f0;border-radius:999px;overflow:hidden;margin-top:8px}.usage-bar span{display:block;height:100%;background:var(--sd-primary)}
.insight-list{display:grid;gap:10px}.insight-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--sd-border)}.insight-row:last-child{border-bottom:0}
.share-box{padding:14px;border-radius:14px;background:#f6f8f7;border:1px dashed var(--sd-border)}


/* ===== Layout Repair Patch ===== */
.card{overflow:visible}
.table-responsive{overflow-x:auto;overflow-y:visible}
.dropdown-menu{z-index:500;border-radius:14px;border:1px solid var(--sd-border);padding:8px;box-shadow:0 16px 36px rgba(20,35,31,.12)}
.order-status-dropdown .dropdown-item{border-radius:10px;padding:10px 12px}
.card-header,.card-body{overflow-wrap:anywhere}
.table td,.table th{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;vertical-align:middle}
.stat-card>div:last-child{flex:1;min-width:0}
.stat-card .stat-label,.stat-card .stat-sub{display:block}
.stat-card .stat-value{white-space:normal;overflow:visible;text-overflow:clip}
.usage-card{display:flex;flex-direction:column;gap:6px;justify-content:space-between;min-height:132px}
.usage-card strong{line-height:1.1}
.insight-row{align-items:center}
.insight-row>div:first-child{flex:1;min-width:0}
.share-box{background:#f8fbfa;border-style:solid}
.share-box .fw-semibold{line-height:1.6}
.checklist-item .d-flex{min-width:0}
.check-label{line-height:1.45}
.card .table td .fw-semibold,.card .table td .fw-bold{display:block}
.card-header.d-flex,.card-body .d-flex.justify-content-between{gap:12px}
.card-header.d-flex{align-items:center}
.d-flex.justify-content-between.align-items-center.border-bottom,.d-flex.justify-content-between.align-items-center.px-3{gap:14px}
.topbar-brand{display:flex;align-items:center;justify-content:center;gap:0}
@media(max-width:767px){
  .page-header{align-items:stretch}
  .page-header>div:last-child{width:100%}
  .page-header .d-flex.gap-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .page-header .d-flex.gap-2 .btn,.page-header .d-flex.gap-2 a{justify-content:center}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .usage-card{min-height:auto}
  .d-flex.justify-content-between.align-items-center.px-3,
  .d-flex.justify-content-between.align-items-center.border-bottom{align-items:flex-start!important}
}

/* ===== Stability + layout polish pass ===== */
.order-status-card{display:flex;flex-direction:column;gap:12px}
.status-option-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.status-option-form{margin:0}
.checklist-item{align-items:center}
.checklist-item .btn{min-width:112px;justify-content:center}
.checklist-item .check-label{font-size:15px}
.checklist-item .check-meta,.checklist-meta{line-height:1.5}
.health-list,.insight-list,.usage-grid{width:100%}
.share-box{display:grid;gap:12px}
.share-box .d-flex{align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.card .table td,.card .table th{word-break:normal;overflow-wrap:anywhere}
.table td.text-end,.table th.text-end{text-align:right}
.table td.text-center,.table th.text-center{text-align:center}
.page-header .btn,.page-header a.btn{display:inline-flex;align-items:center;justify-content:center}
.admin-stat-card{padding:18px}
.admin-stat-card .display-6{line-height:1.05}
.offcanvas.offcanvas-end{width:min(560px,100vw)}
.survey-filter-card .form-control,.survey-filter-card .form-select{min-height:46px}
.survey-filter-card .btn{min-height:46px}
.survey-response-card{border:1px solid var(--sd-border);border-radius:18px;padding:16px;background:#fff;display:grid;gap:12px}
.survey-response-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.survey-response-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.survey-response-grid .small{line-height:1.5}
.survey-admin-grid .card{height:100%}
.survey-chart-label span{min-width:0;overflow-wrap:anywhere}
@media(max-width:991px){
  .status-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .status-option-grid{grid-template-columns:1fr}
  .survey-response-grid{grid-template-columns:1fr}
  .survey-response-head{flex-direction:column}
  .checklist-item{grid-template-columns:1fr;align-items:flex-start}
  .checklist-item .btn{width:100%}
  .share-box .d-flex{align-items:flex-start}
}


/* ===== Deep mobile + admin cleanup pass ===== */
.platform-mark{width:38px;height:38px;object-fit:contain;border-radius:12px;background:#fff;padding:4px;box-shadow:0 8px 20px rgba(15,23,42,.12);flex-shrink:0}
.platform-mark-top{width:34px;height:34px}
.topbar-brand,.admin-brand-wrap,.footer-brand,.pub-logo{display:inline-flex;align-items:center;gap:10px;min-width:0}
.topbar-wordmark,.admin-wordmark{display:inline-flex;align-items:center;gap:0;line-height:1}
.auth-page .auth-brand.text-start .brand-soko{color:#fff!important}
.auth-page .auth-brand.text-start .brand-desk{color:var(--sd-accent)!important}
.stat-card{height:100%;min-height:136px;display:flex;align-items:flex-start;gap:12px}
.stat-card>div:last-child{display:flex;flex-direction:column;justify-content:flex-start;gap:4px}
.stat-card .stat-label,.stat-card .stat-sub{line-height:1.45}
.checklist-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.checklist-item>.d-flex{min-width:0;align-items:flex-start!important}
.checklist-item .btn{min-width:98px;width:auto!important;white-space:nowrap;align-self:center}
.usage-grid{align-items:stretch}
.usage-card{height:100%;min-height:168px;display:flex;flex-direction:column;justify-content:space-between}
.usage-card strong{font-size:28px;line-height:1.05}
.admin-stat-card,.admin-kpi{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;min-height:148px}
.admin-stat-card .small,.admin-kpi .label{line-height:1.5}
.admin-topbar .btn{display:inline-flex;align-items:center;justify-content:center}
.platform-logo-panel{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;padding:16px;border:1px dashed var(--sd-border);border-radius:18px;background:#f8fbfa}
.platform-logo-preview-wrap{display:flex;align-items:center;justify-content:center;width:92px;height:92px;border-radius:18px;background:#fff;border:1px solid var(--sd-border)}
.platform-logo-preview{max-width:72px;max-height:72px;object-fit:contain}
.platform-logo-fallback{font-size:26px;font-weight:900;display:flex;align-items:center;gap:0}
@media(max-width:991px){
  .admin-page-head{align-items:flex-start}
  .admin-page-head .d-flex{width:100%}
  .admin-page-head .btn{flex:1 1 180px}
}
@media(max-width:767px){
  .platform-mark{width:34px;height:34px;padding:3px}
  .app-main{padding-left:12px;padding-right:12px}
  .admin-main-panel{padding:12px}
  .admin-topbar{padding:12px 14px}
  .admin-topbar .btn span{display:none}
  .admin-topbar .btn{padding:.45rem .65rem}
  .stat-card{min-height:126px;padding:14px!important}
  .stat-card .stat-value{font-size:24px!important}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-action-btn{min-height:92px;justify-content:center}
  .checklist-item{grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .checklist-item .btn{min-width:86px;padding:8px 12px;font-size:12px;margin-top:4px}
  .usage-card{min-height:152px}
  .platform-logo-panel{grid-template-columns:1fr;text-align:center}
  .platform-logo-preview-wrap{margin-inline:auto}
  .table-responsive{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:6px}
  .table-responsive>.table{min-width:760px;table-layout:auto}
  .admin-main-panel .table-responsive>.table{min-width:860px}
  .table td,.table th{white-space:nowrap!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
  .card .table td .fw-semibold,.card .table td .fw-bold{display:inline-block}
}


/* ===== April deep responsive refinement ===== */
html,body{max-width:100%;overflow-x:hidden}
.admin-body,.admin-main-panel,.app-main{overflow-x:hidden}
.admin-main-panel>*,.app-main>*{max-width:100%;min-width:0}
.admin-main-panel .row,.app-main .row{--bs-gutter-x:1rem}
.admin-main-panel .row>*,.app-main .row>*{min-width:0;max-width:100%}
.admin-topbar,.app-topbar{width:100%;max-width:100%}
.admin-topbar{gap:10px}
.admin-brand-wrap,.topbar-brand{min-width:0;flex:1}
.admin-wordmark,.topbar-wordmark{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-main-panel .card,.app-main .card,.admin-main-panel .admin-kpi,.admin-main-panel .admin-stat-card,.app-main .stat-card,.app-main .usage-card{width:100%;max-width:100%;min-width:0}
.admin-main-panel .card canvas,.app-main .card canvas{display:block;max-width:100%!important;width:100%!important;height:auto!important}
.admin-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.admin-kpi,.admin-stat-card{min-height:132px}
.admin-kpi .value,.admin-stat-card .display-6{font-size:clamp(1.9rem,4vw,2.35rem)}
.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.table-responsive{width:100%;max-width:100%}
.admin-table-stack td form,.admin-table-stack td .btn{max-width:100%}
.survey-admin-grid>.col-span-12,.survey-admin-grid .card{min-width:0}
.survey-chart-label{align-items:flex-start}
.survey-chart-label strong{text-align:right;white-space:nowrap}
.mobile-dock{backdrop-filter:blur(14px);padding:10px}
.hero-grid{align-items:stretch}
.contact-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 52px;align-items:center}
.contact-row .btn-whatsapp,.contact-row .btn-outline,.contact-row .icon-button{width:100%}
@media(max-width:991px){
  .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .admin-topbar{padding:10px 12px;align-items:center}
  .admin-brand-wrap{gap:8px}
  .admin-wordmark,.topbar-wordmark{font-size:13px}
  .admin-pill{padding:4px 8px;font-size:10px}
  .admin-main-panel,.app-main{padding-left:12px!important;padding-right:12px!important}
  .admin-page-head{margin-bottom:16px}
  .admin-page-head h1,.page-header h1{font-size:2rem;line-height:1.1}
  .admin-page-head p,.page-header p{font-size:14px;line-height:1.6}
  .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .admin-kpi,.admin-stat-card{padding:14px;min-height:124px}
  .admin-kpi .value,.admin-stat-card .display-6{font-size:1.9rem!important}
  .admin-main-panel .table-responsive,.app-main .table-responsive{padding-bottom:0;border-radius:16px}
  .admin-main-panel .table-responsive>.table,.app-main .table-responsive>.table{min-width:100%!important;width:100%!important;table-layout:auto!important}
  body.admin-body .table-responsive>.table.table-mobile-stack,
  body.admin-body .table-responsive>.table.table-mobile-stack tbody,
  body.admin-body .table-responsive>.table.table-mobile-stack tr,
  body.admin-body .table-responsive>.table.table-mobile-stack td{display:block;width:100%}
  body.admin-body .table-responsive>.table.table-mobile-stack thead{display:none}
  body.admin-body .table-responsive>.table.table-mobile-stack tbody{display:grid;gap:12px}
  body.admin-body .table-responsive>.table.table-mobile-stack tr{border:1px solid var(--sd-border);border-radius:18px;background:#fff;padding:12px 14px;box-shadow:0 8px 22px rgba(20,35,31,.05)}
  body.admin-body .table-responsive>.table.table-mobile-stack td{white-space:normal!important;padding:8px 0!important;border:none!important}
  body.admin-body .table-responsive>.table.table-mobile-stack td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--sd-muted)}
  body.admin-body .table-responsive>.table.table-mobile-stack td.text-nowrap{white-space:normal!important}
  body.admin-body .table-responsive>.table.table-mobile-stack td:last-child{padding-bottom:0!important}
  body.admin-body .table-responsive>.table.table-mobile-stack td:last-child::before{margin-bottom:8px}
  body.admin-body .table-responsive>.table.table-mobile-stack td .btn{display:inline-flex;align-items:center;justify-content:center;min-width:38px}
  body.admin-body .table-responsive>.table.table-mobile-stack td .d-inline,
  body.admin-body .table-responsive>.table.table-mobile-stack td form.d-inline{display:inline-flex!important;vertical-align:middle}
  .page-header .d-flex.gap-2,.admin-page-head .d-flex.gap-2{grid-template-columns:1fr!important}
  .stat-card{min-height:136px;align-items:flex-start}
  .stat-card .stat-value{font-size:22px!important}
  .usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .usage-card{min-height:140px;padding:14px}
  .checklist-item{grid-template-columns:minmax(0,1fr) auto!important;gap:10px;padding:12px}
  .checklist-item .btn{width:auto!important;min-width:84px!important;max-width:102px;padding:8px 10px!important;font-size:12px!important;margin-top:0!important}
  .checklist-item .check-label{font-size:14px;line-height:1.35}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .quick-action-btn{padding:14px 8px;min-height:88px}
  .contact-row{grid-template-columns:1fr 1fr 52px;gap:8px}
}
@media(max-width:540px){
  .admin-topbar .btn-outline-danger{padding:.4rem .55rem}
  .admin-topbar .btn-outline-danger .bi,.admin-topbar .btn-outline-light .bi{margin-right:0!important}
  .admin-topbar .btn-outline-danger,.admin-topbar .btn-outline-light{font-size:0}
  .admin-topbar .btn-outline-danger .bi,.admin-topbar .btn-outline-light .bi{font-size:1rem}
  .admin-kpi-grid,.usage-grid{grid-template-columns:1fr 1fr}
  .usage-card strong{font-size:24px}
  .hero-grid{gap:18px}
}


/* ===== April admin/store finishing pass ===== */
.admin-filter-form{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
@media(max-width:767px){
  .admin-filter-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end}
  .admin-filter-form .form-control{grid-column:1 / -1;max-width:none!important}
  .admin-filter-form .form-select{max-width:none!important}
  .admin-filter-form .btn{height:42px;min-width:46px}
}
@media(max-width:420px){
  .admin-filter-form{grid-template-columns:1fr auto}
  .admin-filter-form .form-select{grid-column:1 / 2}
}


/* ===== 2026 deep admin + app redesign fixes ===== */
.desktop-only{display:block!important}
.mobile-only{display:none!important}
.stat-value-money{font-size:20px!important}
.page-header{align-items:flex-start;gap:18px}
.page-header > div:first-child{min-width:0;flex:1}
.page-header h1{font-size:clamp(1.9rem,4vw,2.45rem);line-height:1.04;letter-spacing:-.04em}
.page-header p{font-size:14px;line-height:1.7;max-width:660px}
.page-header .d-flex{gap:10px!important}
.page-header .btn{border-radius:14px;padding:10px 16px;font-weight:700}

.card{border-radius:22px;box-shadow:0 14px 36px rgba(20,35,31,.05)}
.card-header{padding:16px 18px;font-size:15px}
.card-body{padding:18px}
.admin-page-head{margin-bottom:22px}
.admin-page-head h1{font-size:clamp(1.95rem,4vw,2.7rem);line-height:1.04;letter-spacing:-.04em}
.admin-page-head p{font-size:14px;line-height:1.72;max-width:700px}
.admin-page-head .btn{border-radius:14px;padding:10px 16px;font-weight:700}
.admin-topbar{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  min-height:64px;
  padding:12px 18px;
  box-shadow:0 8px 28px rgba(13,27,42,.18)
}
.admin-brand-wrap{min-width:0;overflow:hidden}
.admin-top-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.admin-top-actions .btn{border-radius:12px}
.admin-main-panel{padding:20px}
.admin-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px
}
.admin-kpi,.admin-stat-card{
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(20,35,31,.08);
  background:#fff;
  min-height:152px;
  box-shadow:0 10px 28px rgba(20,35,31,.05)
}
.admin-kpi .label,.admin-stat-card .small{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#7d8b86}
.admin-kpi .value,.admin-stat-card .display-6{
  font-size:clamp(2rem,3vw,2.7rem)!important;
  line-height:1.04;
  letter-spacing:-.04em;
  margin-top:12px;
  word-break:break-word
}
.admin-filter-form{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.9fr) auto;gap:10px;align-items:end}
.admin-filter-form .form-control,
.admin-filter-form .form-select{max-width:none!important;border-radius:14px;min-height:46px}
.admin-filter-form .btn{min-height:46px;border-radius:14px;padding-inline:16px}

.table th,.table td{white-space:normal;overflow:visible;text-overflow:unset;max-width:none}
.table td{vertical-align:top}
.table-responsive{overflow-x:auto;overflow-y:hidden}
.table-responsive>.table{min-width:100%;table-layout:auto}
.admin-main-panel .table-responsive>.table{min-width:100%}

.admin-mobile-list{display:grid;gap:12px}
.admin-mobile-card{
  padding:16px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(20,35,31,.08);
  box-shadow:0 12px 28px rgba(20,35,31,.05)
}
.admin-mobile-card h3{font-size:17px;line-height:1.3;margin:0 0 4px}
.admin-mobile-card p{margin:0;color:var(--sd-muted);font-size:13px;line-height:1.6}
.admin-mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.admin-mobile-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.admin-mobile-meta span{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#8e9b96;margin-bottom:4px}
.admin-mobile-meta strong{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.admin-mobile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.admin-mobile-actions .btn{border-radius:12px;font-weight:700}
.admin-tabs{gap:8px;border-bottom:none}
.admin-tabs .nav-link{border-radius:14px;padding:10px 16px;border:1px solid transparent;font-weight:700}
.admin-tabs .nav-link.active{border-color:var(--sd-border);box-shadow:0 10px 22px rgba(20,35,31,.04)}

.stat-card{
  min-height:154px!important;
  padding:18px!important;
  border-radius:22px;
  display:flex;
  align-items:flex-start!important;
  gap:14px;
  box-shadow:0 12px 28px rgba(20,35,31,.05)
}
.stat-icon{width:50px;height:50px;border-radius:16px}
.stat-label{font-size:11px;line-height:1.4}
.stat-value{font-size:26px!important;line-height:1.06;letter-spacing:-.03em;white-space:normal!important}
.stat-sub{font-size:12px;line-height:1.55}
.usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.usage-card{
  min-height:164px!important;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(20,35,31,.08);
  box-shadow:0 10px 24px rgba(20,35,31,.04)
}
.usage-card strong{font-size:30px;line-height:1.05;letter-spacing:-.04em;word-break:break-word}

.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick-action-btn{
  min-height:112px;
  padding:18px 12px;
  border-radius:18px;
  font-size:13px;
  line-height:1.45
}
.checklist-item{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto!important;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  align-items:center!important
}
.checklist-icon{display:flex;align-items:center;justify-content:center}
.checklist-copy{min-width:0}
.check-label{font-size:15px!important;line-height:1.38}
.checklist-meta{font-size:12px;line-height:1.55}
.checklist-action{
  min-width:88px!important;
  max-width:96px;
  padding:8px 10px!important;
  border-radius:12px!important;
  font-weight:700
}
.seller-stat-grid .col-6,.seller-stat-grid .col-lg-3{display:flex}
.seller-stat-grid .stat-card{width:100%}

.health-list{display:flex;flex-wrap:wrap;gap:8px}
.health-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  background:#fff7e8;border:1px solid #ecd49d;color:#8a6115;
  font-size:12px;font-weight:700
}

.admin-main-panel canvas{max-width:100%!important}
.chart-card-body, .admin-chart-body{min-height:260px}

@media(max-width:991px){
  .desktop-only{display:none!important}
  .mobile-only{display:block!important}
  .admin-shell{grid-template-columns:1fr}
  .admin-topbar{padding:10px 14px}
  .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-main-panel{padding:14px}
  .admin-page-head .d-flex,.page-header .d-flex{width:100%}
  .admin-page-head .btn,.page-header .btn{flex:1 1 auto}
  .usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .admin-wordmark{font-size:14px}
  .admin-pill{padding:4px 8px;font-size:10px}
  .admin-topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
  .admin-top-actions .btn-outline-light{display:none!important}
  .admin-top-actions .btn-outline-danger{padding:.45rem .6rem;font-size:0}
  .admin-top-actions .btn-outline-danger .bi{font-size:1rem;margin:0!important}
  .admin-kpi-grid{grid-template-columns:1fr 1fr;gap:10px}
  .admin-kpi,.admin-stat-card{min-height:132px;padding:14px}
  .admin-kpi .value,.admin-stat-card .display-6{font-size:1.8rem!important}
  .admin-filter-form{grid-template-columns:1fr 1fr}
  .admin-filter-form .form-control{grid-column:1 / -1}
  .admin-filter-form .btn{grid-column:2}
  .admin-mobile-meta{grid-template-columns:1fr 1fr}
  .admin-page-head h1,.page-header h1{font-size:2rem}
  .page-header{gap:14px}
  .quick-actions{grid-template-columns:1fr 1fr}
  .quick-action-btn{min-height:98px}
  .stat-card{min-height:140px!important;padding:14px!important}
  .stat-value{font-size:22px!important}
  .usage-grid{grid-template-columns:1fr 1fr}
  .usage-card{min-height:146px!important;padding:14px}
  .checklist-item{grid-template-columns:32px minmax(0,1fr) auto!important;padding:12px 14px}
  .checklist-action{min-width:76px!important;max-width:88px;font-size:12px!important}
}
@media(max-width:520px){
  .admin-kpi-grid,.usage-grid{grid-template-columns:1fr}
  .admin-mobile-meta{grid-template-columns:1fr}
  .admin-filter-form{grid-template-columns:1fr}
  .admin-filter-form .btn{grid-column:1}
  .stat-card{min-height:128px!important}
  .quick-actions{grid-template-columns:1fr}
  .checklist-item{grid-template-columns:30px minmax(0,1fr) auto!important}
  .checklist-action{min-width:72px!important}
}
@media(max-width:991px){
  .auth-shell{grid-template-columns:1fr}
  .auth-panel{padding:30px 24px}
  .auth-card.auth-rich{padding:28px 20px}
}
@media(max-width:767px){
  .auth-row-two,.phone-stack{grid-template-columns:1fr}
}
