/* Distributor admin visual refresh based on 777 frontend style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --danger: #ef4444;
  --ok: #22c55e;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-page);
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--brand-1);
}

.hidden {
  display: none !important;
}

#app {
  min-height: 100vh;
}

.header {
  height: 62px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.28);
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.user-bar button {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.user-bar button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  padding: 20px;
}

.section h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.hint {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.auth-section {
  max-width: 460px;
  margin: 34px auto;
  padding: 26px;
  box-shadow: var(--shadow);
}

body.auth-mode {
  background: linear-gradient(135deg, #0c0d13 0%, #1a1c2e 50%, #0f1419 100%);
}
body.auth-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: auth-grid-move 14s linear infinite;
  pointer-events: none;
}
body.auth-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 75%, rgba(102, 126, 234, 0.28), transparent 38%),
    radial-gradient(circle at 78% 30%, rgba(118, 75, 162, 0.26), transparent 42%),
    radial-gradient(circle at 58% 78%, rgba(102, 126, 234, 0.2), transparent 35%);
  animation: auth-glow-float 9s ease-in-out infinite alternate;
}
body.auth-mode .auth-particles {
  display: block;
}
body.auth-mode .header,
body.auth-mode .auth-section {
  position: relative;
  z-index: 1;
}
body.auth-mode #app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.auth-mode .header {
  display: none;
}
body.auth-mode .auth-section {
  margin: 0;
}

@keyframes auth-grid-move {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 60px, 60px 60px; }
}
@keyframes auth-glow-float {
  from { transform: translateY(0) scale(1); opacity: 0.95; }
  to { transform: translateY(-14px) scale(1.03); opacity: 1; }
}

.auth-particles {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-particle {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.75) 0%, rgba(102, 126, 234, 0.15) 45%, rgba(102, 126, 234, 0) 75%);
  filter: blur(1px);
  animation: auth-particle-float linear infinite;
}
.auth-particle:nth-child(1) { left: 6%; width: 82px; height: 82px; animation-duration: 15s; animation-delay: -2s; }
.auth-particle:nth-child(2) { left: 14%; width: 46px; height: 46px; animation-duration: 11s; animation-delay: -6s; }
.auth-particle:nth-child(3) { left: 24%; width: 108px; height: 108px; animation-duration: 18s; animation-delay: -4s; }
.auth-particle:nth-child(4) { left: 33%; width: 38px; height: 38px; animation-duration: 10s; animation-delay: -1s; }
.auth-particle:nth-child(5) { left: 46%; width: 90px; height: 90px; animation-duration: 16s; animation-delay: -8s; }
.auth-particle:nth-child(6) { left: 55%; width: 54px; height: 54px; animation-duration: 12s; animation-delay: -5s; }
.auth-particle:nth-child(7) { left: 64%; width: 120px; height: 120px; animation-duration: 20s; animation-delay: -7s; }
.auth-particle:nth-child(8) { left: 73%; width: 42px; height: 42px; animation-duration: 13s; animation-delay: -3s; }
.auth-particle:nth-child(9) { left: 82%; width: 95px; height: 95px; animation-duration: 17s; animation-delay: -9s; }
.auth-particle:nth-child(10) { left: 89%; width: 50px; height: 50px; animation-duration: 12s; animation-delay: -2s; }
.auth-particle:nth-child(11) { left: 40%; width: 30px; height: 30px; animation-duration: 9s; animation-delay: -4s; }
.auth-particle:nth-child(12) { left: 68%; width: 26px; height: 26px; animation-duration: 8s; animation-delay: -1s; }

@keyframes auth-particle-float {
  0% {
    transform: translateY(0) translateX(0) scale(0.9);
    opacity: 0;
  }
  12% { opacity: 0.75; }
  60% { opacity: 0.55; }
  100% {
    transform: translateY(-120vh) translateX(24px) scale(1.08);
    opacity: 0;
  }
}

.auth-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 30px 28px;
}
.auth-header {
  text-align: center;
  margin-bottom: 16px;
}
.auth-logo {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-subtitle {
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
}
.auth-card h2 {
  text-align: left;
  margin-bottom: 10px;
}
.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #64748b;
  background: transparent;
}
.tab-btn.active {
  background: #fff;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}
.login-links.single {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.login-links.single a,
.auth-switch a {
  color: #667eea;
  font-size: 14px;
}
.login-links.single a:hover,
.auth-switch a:hover {
  color: #764ba2;
}
.auth-switch {
  margin-top: 8px;
  text-align: right;
}

.section form input,
.section form select,
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section form input:focus,
.section form select:focus,
.input:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.section form button[type="submit"] {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.section form button[type="submit"]:hover {
  filter: brightness(1.05);
}

.app-layout {
  min-height: calc(100vh - 62px);
  display: flex;
}

.sidebar {
  width: 240px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-brand {
  padding: 14px 12px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 3px;
}

.sidebar-brand p {
  font-size: 12px;
  color: #94a3b8;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

.nav-link-contact {
  margin-top: 0;
}

.nav-icon {
  width: 22px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gap-8 {
  gap: 8px;
}

.space-between {
  justify-content: space-between;
}

.row .input {
  margin-bottom: 0;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

.btn.primary:hover {
  filter: brightness(1.04);
}

.btn.danger {
  color: #fff;
  border-color: transparent;
  background: var(--danger);
}

.btn.danger:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  padding: 0 6px;
}

.btn-ghost:hover {
  color: #0f172a;
}

.product-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.product-filter-select {
  min-width: 220px;
  max-width: 260px;
  margin-bottom: 0;
}

.product-filter-input {
  min-width: 260px;
  max-width: 320px;
  margin-bottom: 0;
}

.product-list-wrap {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.product-filter-summary {
  margin: 0 0 8px;
}

.product-table-wrap {
  margin-top: 8px;
}

.product-rich-table th:nth-child(1) { width: 38%; }
.product-rich-table th:nth-child(2) { width: 30%; }
.product-rich-table th:nth-child(3) { width: 12%; }
.product-rich-table th:nth-child(4) { width: 20%; }

.product-info-col {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.product-row-img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.product-row-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.product-info-main {
  min-width: 0;
}

.product-name-line {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-subtitle-line {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.product-time-line {
  font-size: 12px;
  color: #94a3b8;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}

.commission-title {
  color: #6b7280;
  font-size: 12px;
}

.commission-amount {
  color: #dc2626;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.product-rich-table td:last-child {
  white-space: nowrap;
  text-align: center;
}

.product-rich-table td:last-child .btn + .btn {
  margin-left: 8px;
}

.product-rich-table td:last-child .btn {
  min-width: 76px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.product-card-inner {
  padding: 14px;
  display: flex;
  gap: 14px;
}

.product-card-img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: #f1f5f9;
  object-fit: cover;
  flex-shrink: 0;
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-1);
}

.product-card-meta-line {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
}

.product-detail-cover {
  margin-bottom: 12px;
}

.product-detail-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-detail-subtitle,
.product-detail-region,
.product-detail-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-1);
  margin-bottom: 10px;
}

.product-detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-spec-item {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
}

.product-detail-images {
  display: grid;
  gap: 10px;
}

.product-detail-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: center;
}

.product-rich-table thead th {
  text-align: left;
}

.product-rich-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 0;
  transform: translateX(-42px);
  white-space: nowrap;
}

.product-rich-table thead th:last-child {
  text-align: center;
}

.table tbody td {
  text-align: center;
}

.table tbody td:nth-child(1),
.table tbody td:nth-child(3) {
  text-align: left;
}

/* 精准定位商品特征文字块，强制左移 */
.product-rich-table td .product-feature-text {
  position: relative;
  left: -24px; /* 向左移动24px，可根据需要调整数值 */
  text-align: left;
  /* 加!important兜底，防止被其他样式覆盖 */
  position: relative !important;
  left: -160px !important;
}

.product-feature-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  padding-right: 10px;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-0 {
  background: #fff7ed;
  color: #c2410c;
}

.status-1 {
  background: #e0e7ff;
  color: #3730a3;
}

.status-2 {
  background: #cffafe;
  color: #0f766e;
}

.status-3 {
  background: #dcfce7;
  color: #166534;
}

.status-4 {
  background: #f1f5f9;
  color: #475569;
}

#ordersPageInfo {
  margin-right: 6px;
}

#ordersPrevPageBtn,
#ordersNextPageBtn {
  min-width: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.dashboard-card h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
}

.dashboard-chart,
.dashboard-map {
  width: 100%;
  min-height: 320px;
}

.stat-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--brand-1);
}

.stat-info h4 {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
}

.stat-icon {
  font-size: 30px;
  opacity: 0.35;
}

.team-action-bar {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.team-filters,
.team-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-filter-input {
  width: 220px;
  margin-bottom: 0;
}

.team-filter-select {
  width: 110px;
  margin-bottom: 0;
}

.team-status-active {
  background: #dcfce7;
  color: #15803d;
}

.team-status-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.team-table tbody tr.team-row-selected td {
  background: #eef4ff;
}

.grade-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.grade-gold {
  background: #fef3c7;
  color: #b45309;
}

.grade-silver {
  background: #e2e8f0;
  color: #334155;
}

.grade-normal {
  background: #f1f5f9;
  color: #475569;
}

.level-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.level-badge.level-1 {
  background: #dbeafe;
  color: #1d4ed8;
}

.level-badge.level-2 {
  background: #dcfce7;
  color: #15803d;
}

.level-badge.level-3 {
  background: #fef3c7;
  color: #b45309;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.edit-section-title {
  font-size: 14px;
  margin: 12px 0 10px;
  color: #334155;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.modal-dialog-wide {
  max-width: 720px;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
}

.form-grid label {
  color: #64748b;
  font-size: 13px;
  text-align: right;
  padding-right: 6px;
}

.create-order-region-hint {
  margin-top: 12px;
  font-size: 13px;
}

.region-hint-error {
  color: var(--danger);
  font-weight: 600;
}

.region-hint-ok {
  color: var(--ok);
  font-weight: 600;
}

.order-detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.order-detail-row .label {
  min-width: 120px;
  color: #64748b;
}

.order-detail-row .value {
  flex: 1;
  word-break: break-all;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}

.success {
  color: var(--ok);
  font-size: 13px;
  margin-top: 8px;
}

.order-link-tip {
  margin-top: 6px;
  margin-bottom: 0;
  color: #f59e0b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
}

.announcement-modal-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #334155;
  max-height: 320px;
  overflow-y: auto;
}

.share-link-qr-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.share-link-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  object-fit: contain;
  padding: 6px;
}

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .sidebar-brand {
    display: none;
  }

  .nav-link {
    flex: 1;
    min-width: 130px;
    justify-content: center;
  }

  .main-content {
    padding: 12px;
  }

  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .product-card-inner {
    flex-direction: column;
  }

  .product-card-img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0 12px;
  }

  .header h1 {
    font-size: 18px;
  }

  .section {
    padding: 14px;
  }

  .auth-section {
    margin: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-filter-input,
  .team-filter-select {
    width: 100%;
  }
}
