/* ===========================
   ADMIN PANEL — LIQUID GLASS CSS
   =========================== */

:root {
  --bg: #050508;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --primary: #6366F1;
  --primary-glow: rgba(99,102,241,0.35);
  --secondary: #A855F7;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --sidebar-w: 260px;
  --radius: 20px;
  --radius-sm: 12px;
  --glass-blur: 24px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ======= GLASS CARD ======= */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ======= LOGIN PAGE ======= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #A855F7 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: 3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  top: 50%; right: 20%;
  animation-delay: 5s;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.05); }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.login-logo {
  text-align: center;
}

.logo-icon-wrap {
  font-size: 52px;
  filter: drop-shadow(0 0 20px rgba(99,102,241,0.6));
  margin-bottom: 12px;
}

.login-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366F1, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-card-inner {
  width: 100%;
  padding: 36px;
}

.login-card-inner h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.error-msg {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  color: #FCA5A5;
  margin-bottom: 16px;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.login-footer {
  color: var(--text-muted);
  font-size: 12px;
}

/* ======= ADMIN PANEL LAYOUT ======= */
.admin-panel {
  display: flex;
  min-height: 100vh;
}

/* ======= SIDEBAR ======= */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.sidebar-logo span:first-child { font-size: 24px; }
.sidebar-title { font-weight: 700; }

.admin-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.active {
  background: rgba(99,102,241,0.15);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.2);
}

.nav-icon { font-size: 18px; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  color: #FCA5A5;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-logout:hover { background: rgba(239,68,68,0.2); }

/* ======= MAIN CONTENT ======= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ======= TOP BAR ======= */
.top-bar {
  height: 68px;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.top-bar-right { display: flex; align-items: center; gap: 12px; }

.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.admin-name { font-size: 14px; font-weight: 600; }
.admin-role { font-size: 11px; color: var(--text-muted); }

/* ======= TAB CONTENT ======= */
.tab-content {
  display: none;
  padding: 28px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.page-date {
  color: var(--text-muted);
  font-size: 13px;
}

/* ======= STATS GRID ======= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }

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

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ======= SECTION CARD ======= */
.section-card {
  padding: 24px;
  margin-bottom: 20px;
}

.section-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

/* ======= TABLE ======= */
.table-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input, .filter-select {
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-input { flex: 1; min-width: 200px; }
.search-input::placeholder { color: var(--text-muted); }

.filter-select option { background: #1a1a2e; }

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ======= BADGES ======= */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.badge-active { background: rgba(34,197,94,0.15); color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.badge-expired { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-trial { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.badge-pro { background: rgba(168,85,247,0.15); color: #C084FC; border: 1px solid rgba(168,85,247,0.25); }
.badge-standard { background: rgba(59,130,246,0.15); color: #93C5FD; border: 1px solid rgba(59,130,246,0.25); }
.badge-vip { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }

/* ======= BUTTONS ======= */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary.btn-full { width: 100%; }

.btn-outline {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--surface-hover); }

.btn-danger {
  padding: 10px 20px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  color: #F87171;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-icon {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-icon:hover { color: var(--text); background: var(--surface-hover); }
.btn-icon.danger:hover { color: #F87171; border-color: rgba(239,68,68,0.4); }

/* ======= PLANS GRID ======= */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.plan-card:hover { transform: translateY(-2px); }

.plan-card.featured {
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.06);
}

.plan-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.plan-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.plan-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.plan-price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.plan-stats { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.plan-count { font-size: 22px; font-weight: 700; color: var(--text); }

/* ======= GRANT FORM ======= */
.grant-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: end;
}

.align-end { display: flex; align-items: flex-end; }

/* ======= FORM ELEMENTS ======= */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; }
.form-select option { background: #141420; }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ======= SMS ======= */
.sms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) { .sms-grid { grid-template-columns: 1fr; } }

.sms-counter {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.template-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-template {
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-template:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.sms-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.sms-history-item {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sms-history-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sms-history-text { font-size: 13px; }

/* ======= ACTIVITY LIST ======= */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.04);
}

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

.activity-info { flex: 1; }
.activity-title { font-size: 13px; font-weight: 500; }
.activity-time { font-size: 11px; color: var(--text-muted); }

/* ======= MODAL ======= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 { font-size: 18px; font-weight: 700; }

.modal-close-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-close-btn:hover { background: var(--surface-hover); color: var(--text); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ======= TOAST ======= */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  background: rgba(30,30,46,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast.warning { border-color: rgba(245,158,11,0.4); }

/* ======= SETTINGS GRID ======= */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.setting-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ======= EXPIRING ======= */
.expiring-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expiring-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
}

.expiring-name { font-size: 14px; font-weight: 600; }
.expiring-days {
  font-size: 12px;
  color: var(--warning);
  font-weight: 600;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ======= ACTION BTNS ======= */
.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  :root { --sidebar-w: 240px; }

  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 200;
    height: 100vh;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
  }
  .main-content {
    margin-left: 0 !important;
    width: 100%;
  }
  .sidebar-toggle {
    display: block;
  }
  .top-bar {
    padding: 12px 16px;
  }
  .tab-content {
    padding: 12px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-header h2 { font-size: 18px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }

  /* Tables - scroll horizontally */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 600px;
  }
  .data-table th, .data-table td {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .action-btns {
    flex-direction: row;
    gap: 4px;
  }
  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Plans grid */
  .plans-grid {
    grid-template-columns: 1fr;
  }

  /* Grant form */
  .grant-form .form-row, .grant-form > div {
    flex-direction: column;
  }

  /* Settings */
  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* SMS grid */
  .sms-grid {
    grid-template-columns: 1fr;
  }

  /* Modal */
  .modal-box {
    padding: 20px 16px;
    margin: 10px;
    max-height: 85vh;
  }

  /* Toast */
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  /* Table controls */
  .table-controls {
    flex-direction: column;
    gap: 8px;
  }
  .search-input, .filter-select {
    width: 100%;
  }

  /* Section cards */
  .section-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 10px; }
}
