/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input { font-family: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }

/* ========== CSS Variables ========== */
:root {
  --primary: #2488ff;
  --primary-dark: #1a6fd4;
  --primary-light: #e8f0fe;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --text-main: #1a1a2e;
  --text-sub: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Layout ========== */
.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.page-wrap { max-width: 480px; margin: 0 auto; background: #f5f7fa; min-height: 100vh; }

/* ========== Header ========== */
.site-header {
  background: var(--bg-white);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.site-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== Filter Bar ========== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-chip.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* ========== Bottom Sheet ========== */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}
.filter-overlay.open { display: block; }
.filter-sheet {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: 16px 16px 0 0;
  z-index: 201;
  transition: bottom 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.filter-sheet.open { bottom: 0; }
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
}
.sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.sheet-item {
  display: flex;
  align-items: center;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}
.sheet-item.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 15px;
}

/* ========== Product List ========== */
.product-section { padding: 16px; }
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.product-card:active { transform: scale(0.97); box-shadow: var(--shadow-md); }
.product-card .cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0fe 0%, #c7dbff 100%);
}
.product-card .cover-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8f0fe 0%, #c7dbff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 28px;
}
.product-card .card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.product-card .card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.product-card .card-price span {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
  font-weight: 400;
}
.product-card .card-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 6px;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state svg { margin: 0 auto 12px; }

/* ========== Footer Info Blocks ========== */
.footer-blocks {
  margin: 8px 16px 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.footer-block-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-block-item:last-child { border-bottom: none; }
.footer-block-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.footer-block-item .icon.green { background: #e6f9ee; color: #22c55e; }
.footer-block-item .icon.blue { background: var(--primary-light); color: var(--primary); }
.footer-block-item .icon.orange { background: #fff4e5; color: #f97316; }
.footer-block-item .icon.red { background: #fef2f2; color: #ef4444; }
.footer-block-item .info .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}
.footer-block-item .info .desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}
.site-footer a { color: var(--text-muted); }

/* ========== Detail Page ========== */
.detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0fe 0%, #c7dbff 100%);
}
.detail-main { padding: 0 0 100px; }
.detail-header {
  background: var(--bg-white);
  padding: 16px;
  margin-bottom: 10px;
}
.detail-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 12px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.detail-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.detail-price-unit { font-size: 14px; font-weight: 600; color: var(--primary); }
.detail-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.detail-section {
  background: var(--bg-white);
  padding: 16px;
  margin-bottom: 10px;
}
.detail-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.detail-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.detail-desc p { margin-bottom: 8px; }
.detail-desc p:last-child { margin-bottom: 0; }

/* ========== 购买须知 ========== */
.notice-block {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 0;
}
.notice-block .notice-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-block ul {
  padding-left: 16px;
  list-style: disc;
}
.notice-block ul li {
  font-size: 12px;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 4px;
}
.notice-block ul li:last-child { margin-bottom: 0; }

/* ========== Floating Buy Button ========== */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.btn-buy {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 1px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(36,136,255,0.25);
  box-shadow: 0 4px 16px rgba(36,136,255,0.35);
  transition: background 0.18s, transform 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn-buy:hover { box-shadow: 0 6px 20px rgba(36,136,255,0.40); background: #2488ff; }
.btn-buy:active { background: var(--primary-dark); transform: scale(0.97); }

/* ========== Order / Buy Page ========== */
.order-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.order-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.order-product-recap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}
.order-product-recap .thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0fe, #c7dbff);
  flex-shrink: 0;
}
.order-product-recap .thumb-placeholder {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e8f0fe, #c7dbff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}
.order-product-recap .recap-info .recap-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}
.order-product-recap .recap-info .recap-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-group label .required { color: #ef4444; margin-left: 2px; }
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-main);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,136,255,0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: #ef4444; }
.form-helper {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
.order-agreement {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 16px 12px;
  line-height: 1.6;
}
.order-agreement a { color: var(--primary); }
.order-submit-wrap {
  padding: 0 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(36,136,255,0.35);
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-submit:active { background: var(--primary-dark); transform: scale(0.98); }
.btn-submit:disabled { background: #a3c4fd; box-shadow: none; cursor: not-allowed; transform: none; }

/* ========== Breadcrumb / Back ========== */
.back-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-sub);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.back-bar svg { flex-shrink: 0; }

/* ========== Badge / Tag ========== */
.badge-hot {
  display: inline-block;
  background: #fee2e2;
  color: #ef4444;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ========== Responsive ========== */
@media (min-width: 480px) {
  .page-wrap { box-shadow: 0 0 40px rgba(0,0,0,0.06); }
  body { padding: 0; }
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ========== User Links (首页用户服务入口) ========== */
.user-links {
  margin: 0 16px 12px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.user-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.user-link-btn:last-child { border-bottom: none; }
.user-link-btn:active { background: var(--bg); }
.user-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-link-icon.blue   { background: var(--primary-light); color: var(--primary); }
.user-link-icon.orange { background: #fff4e5; color: #f97316; }
.user-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-link-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.user-link-sub   { font-size: 12px; color: var(--text-muted); }

/* ========== UserCenter (我的订单) ========== */
.uc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 12px;
  color: var(--primary);
}
.uc-title { font-size: 18px; font-weight: 700; color: var(--text-main); }
.uc-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.uc-form  { padding: 0 16px 16px; }
.uc-list  { padding: 0 16px 16px; }
.uc-list-title { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.uc-order-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.uc-order-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}
.uc-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.uc-meta-item { font-size: 12px; color: var(--text-muted); }
.uc-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.uc-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.uc-status.sent    { background: #e6f9ee; color: #16a34a; }
.uc-status.pending { background: #fff4e5; color: #f97316; }
.uc-status.unpaid  { background: #fef2f2; color: #dc2626; }
.uc-btn-download {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
}
.uc-btn-waiting { font-size: 12px; color: var(--text-muted); }
.uc-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.uc-empty svg { margin: 0 auto 12px; }
.uc-empty p { font-size: 14px; margin-bottom: 4px; }
.uc-empty-sub { font-size: 12px; }
.uc-notice {
  padding: 12px 16px 32px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.uc-notice a { color: var(--primary); }

/* ========== Complain (投诉与退款) ========== */
.complain-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 12px;
  color: #f97316;
}
.complain-title { font-size: 18px; font-weight: 700; color: var(--text-main); }
.complain-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.complain-form  { padding: 0 16px 32px; }
.type-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.type-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.2s;
}
.type-btn.active, .type-btn:has(input:checked) {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}
.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-white);
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--primary); outline: none; }
.complain-track-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 16px;
  box-shadow: var(--shadow-sm);
}
.track-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.track-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.track-status-badge.s0 { background: #f3f4f6; color: #6b7280; }
.track-status-badge.s1 { background: #fff4e5; color: #f97316; }
.track-status-badge.s2 { background: #e6f9ee; color: #16a34a; }
.track-status-badge.s3 { background: #fef2f2; color: #ef4444; }
.track-reply {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  background: #f5f7fa;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}

/* ========== Global Base Classes ========== */

/* Card */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-flat { box-shadow: none; border: 1px solid var(--border); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: none; user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(36,136,255,0.35); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Tags / Badges */
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: #d1fae5; color: #059669; }
.tag-danger { background: #fee2e2; color: #dc2626; }
.tag-warning { background: #fef3c7; color: #d97706; }

/* Input Field */
.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-main); background: var(--bg-white); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,136,255,0.12); }
.input.error { border-color: var(--danger); }
.input::placeholder { color: var(--text-muted); }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Spacing utilities */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; }

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.3s ease-out; }

/* Button with loading state */
.btn-loading { pointer-events: none; position: relative; color: transparent !important; }
.btn-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Table row hover enhancement (shared) */
.table-row { transition: background var(--transition); }
.table-row:hover { background: rgba(36,136,255,0.04); }

/* Box shadow on scroll containers */
.shadow-scroll { box-shadow: var(--shadow-sm); }

/* Tap highlight removal */
.no-tap { -webkit-tap-highlight-color: transparent; }

/* Responsive container padding */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
