/* ========================================
   iOS Design System - 高校查询系统
   Apple HIG: grouped background, frosted nav,
   inset cells, large titles, spring motion
   ======================================== */

:root {
  /* iOS system blue */
  --ios-blue: #007AFF;
  --ios-blue-pressed: #0062CC;
  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-orange: #FF9500;
  --ios-teal: #5AC8FA;

  /* Grouped backgrounds */
  --ios-bg: #F2F2F7;
  --ios-card: #FFFFFF;
  --ios-fill: #E9E9EE;
  --ios-fill-pressed: #D9D9E0;

  /* Text */
  --label: #000000;
  --text-1: #3A3A3C;
  --text-2: rgba(60, 60, 67, 0.6);
  --text-3: rgba(60, 60, 67, 0.3);

  /* Hairlines */
  --hairline: rgba(60, 60, 67, 0.12);
  --hairline-strong: rgba(60, 60, 67, 0.29);

  /* Frosted material */
  --nav-bg: rgba(242, 242, 247, 0.78);
  --card-border: rgba(255, 255, 255, 0.6);

  /* Shape: iOS continuous-ish radii */
  --r-cell: 14px;
  --r-control: 12px;
  --r-pill: 999px;

  /* Motion: iOS spring approximation, critically damped */
  --ios-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-med: 280ms;
  --t-sheet: 380ms;

  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ios);
  background: var(--ios-bg);
  color: var(--text-1);
  line-height: 1.45;
  min-height: 100vh;
}

/* iOS type scale: fluid large title for phones → desktop */
.large-title {
  font-size: clamp(1.6rem, 1.15rem + 2.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--label);
  overflow-wrap: break-word;
}
.title-1 { font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--label); }
.headline { font-size: 1rem; line-height: 1.35; font-weight: 600; color: var(--label); }
.body { font-size: 1rem; line-height: 1.45; font-weight: 400; }
.footnote { font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); }
.caption { font-size: 0.75rem; line-height: 1.3; color: var(--text-2); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem calc(2rem + var(--safe-b));
}
.hidden { display: none !important; }

/* ─── iOS frosted nav ─── */
.ios-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--hairline);
}
.ios-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
}
.ios-nav-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--label);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ios-nav-title .app-glyph {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, #2DB6F6 0%, var(--ios-blue) 100%);
  flex-shrink: 0;
}
.ios-nav-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Page head: iOS large title block */
.page-head { padding: 1.4rem 0.25rem 0.9rem; }
.page-head .eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ios-blue);
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

/* ─── Inset grouped card ─── */
.inset-group {
  background: var(--ios-card);
  border-radius: var(--r-cell);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 0.5px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 1rem;
}
.inset-section { padding: 1rem; }
.inset-section + .inset-section { border-top: 0.5px solid var(--hairline); }

/* ─── Buttons: 44pt targets, instant press ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: var(--r-control);
  font-family: var(--font-ios);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast) ease-out, background var(--t-fast) var(--ios-ease), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }
.btn:focus-visible, .form-control:focus-visible, .school-card:focus-visible, .cell-link:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 2px;
}
.btn-primary { background: var(--ios-blue); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--ios-blue-pressed); }
.btn-secondary { background: var(--ios-fill); color: var(--ios-blue); width: auto; }
.btn-secondary:hover { background: var(--ios-fill-pressed); }
.btn-ghost { background: transparent; color: var(--ios-blue); min-height: 44px; padding: 0.5rem 0.75rem; font-weight: 400; }
.btn-ghost:hover { opacity: 0.7; }
.btn-block { width: 100%; }

/* Header keeps old class names working */
.header { composes: none; }
.header, .search-section {
  background: var(--ios-card);
  border-radius: var(--r-cell);
  border: 0.5px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.header-title-section { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.header h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--label); display: flex; align-items: center; gap: 0.5rem; }
.header .data-note, .data-note { font-size: 0.75rem; color: var(--text-2); }
.header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ─── Forms: iOS grouped fields ─── */
.search-section { padding: 1rem; margin-bottom: 1rem; }
.search-section .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.form-group { margin-bottom: 0.9rem; }
.search-section .form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  margin: 0 0 0.35rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
}
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: var(--r-control);
  background: var(--ios-fill);
  font-family: var(--font-ios);
  font-size: 1rem;
  color: var(--label);
  transition: box-shadow var(--t-fast) var(--ios-ease), background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus { outline: none; background: var(--ios-fill); box-shadow: 0 0 0 2px var(--ios-blue); }
.form-control::placeholder { color: var(--text-3); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233A3A3C' stroke-opacity='0.4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  padding-right: 2.2rem;
}
textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.5; }
.search-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.search-actions .btn-primary { flex: 1; min-width: 140px; }

/* iOS search-field variant (kept compatible) */
.ios-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ios-fill);
  border-radius: var(--r-control);
  padding: 0 0.8rem;
  min-height: 44px;
}
.ios-search input { flex: 1; border: 0; background: transparent; font-size: 1rem; min-height: 42px; color: var(--label); }
.ios-search input:focus { outline: none; }

/* ─── Disclaimer: iOS banner ─── */
.disclaimer {
  background: rgba(255, 149, 0, 0.12);
  color: #7A4A00;
  padding: 0.7rem 1rem;
  border-radius: var(--r-control);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

/* ─── Results ─── */
.school-list-container { margin-bottom: 1rem; }
.result-count {
  text-align: left;
  padding: 0.4rem 0.25rem 0.6rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  background: transparent;
  border: 0;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.result-badge #result-number { color: var(--label); }

/* iOS inset grouped list: JS renders .school-card, keep class.
   Single column on phones, two columns on tablet/desktop. */
.school-list { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 660px) {
  .school-list { grid-template-columns: 1fr 1fr; }
}
/* 加载 / 空状态提示横跨整行，保持居中 */
.school-list > .loading,
.school-list > .empty-state { grid-column: 1 / -1; }
.school-card {
  background: var(--ios-card);
  border: 0.5px solid var(--hairline);
  border-radius: var(--r-cell);
  padding: 0.9rem 2.2rem 0.9rem 1rem;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform var(--t-fast) ease-out, background var(--t-fast) var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}
.school-card::after {
  content: "›";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-3);
}
.school-card:hover { background: #FAFAFC; }
.school-card:active { transform: scale(0.98); transition: transform 100ms ease-out; background: var(--ios-fill); }
.school-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--label);
  margin-bottom: 0.3rem;
  line-height: 1.35;
  padding-right: 0.5rem;
  overflow-wrap: anywhere;
}
.school-card .school-info { font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.school-card .school-info div { display: block; }
.rank-badge {
  display: inline-block;
  margin: 0.35rem 0 0.1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 149, 0, 0.14);
  color: #7A4A00;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.cat-badge {
  display: inline-block;
  margin: 0.35rem 0 0.1rem 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 122, 255, 0.1);
  color: var(--ios-blue);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-badge {
  display: inline-block;
  margin: 0.35rem 0 0.1rem 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(52, 199, 89, 0.14);
  color: #0B6B2F;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.school-card .school-note {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(52, 199, 89, 0.12);
  border-radius: 10px;
  border-left: none;
  font-size: 0.8125rem;
  color: #1F7A33;
  line-height: 1.45;
}

/* ─── Login: iOS sheet ─── */
#login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 1.5rem 1rem; }
.login-box {
  background: var(--ios-card);
  border: 0.5px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: iosSheetIn var(--t-sheet) var(--ios-spring);
}
@keyframes iosSheetIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-box .logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2DB6F6 0%, var(--ios-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.28);
}
.login-box h1 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; color: var(--label); margin-bottom: 0.25rem; }
.subtitle { color: var(--text-2); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.error-message { color: var(--ios-red); margin-top: 0.75rem; font-size: 0.875rem; min-height: 20px; }
.success-message { color: var(--ios-green); margin-top: 0.6rem; font-size: 0.875rem; min-height: 20px; }

/* ─── Sheet modal ─── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  padding: 0;
  animation: scrimIn var(--t-med) var(--ios-ease);
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: var(--ios-bg);
  border-radius: 20px 20px 0 0;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  animation: sheetUp var(--t-sheet) var(--ios-spring);
  padding-bottom: var(--safe-b);
  -webkit-overflow-scrolling: touch;
}
@keyframes sheetUp {
  from { opacity: 0.6; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-content::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(120, 120, 128, 0.4);
  margin: 0.5rem auto 0;
}
.modal-header {
  position: sticky;
  top: 0;
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.8rem 1rem;
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.modal-header h2 { font-size: 1.0625rem; font-weight: 600; color: var(--label); line-height: 1.3; }
.close-btn {
  background: var(--ios-fill);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-fast) ease-out, background var(--t-fast);
}
.close-btn:hover { background: var(--ios-fill-pressed); }
.close-btn:active { transform: scale(0.9); }
.modal-body { padding: 1rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.info-item { background: var(--ios-card); border: 0.5px solid var(--hairline); border-radius: var(--r-control); padding: 0.7rem 0.8rem; }
.info-item .label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
  margin-bottom: 0.2rem;
}
.info-item span:not(.label) { font-size: 0.9375rem; color: var(--label); word-break: break-word; }
.info-item a { color: var(--ios-blue); word-break: break-all; text-decoration: none; }
.info-item a:active { opacity: 0.6; }
.mt-20 { margin-top: 1.25rem; }
.mt-10, .mt-2, .mt-3 { margin-top: 0.75rem; }

/* ─── States ─── */
.loading {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  background: var(--ios-card);
  border: 0.5px solid var(--hairline);
  border-radius: var(--r-cell);
}
.loading::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--hairline-strong);
  border-top-color: var(--ios-blue);
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-2); }
.empty-state-icon { font-size: 44px; margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text-1); margin-bottom: 0.25rem; }
.empty-state p { font-size: 0.875rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + var(--safe-b));
  transform: translateX(-50%) translateY(16px);
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--t-med) var(--ios-ease), transform var(--t-med) var(--ios-spring);
  z-index: 2000;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  background: var(--ios-fill);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
  border: 0;
  transition: transform var(--t-fast) ease-out, background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(0.95); }
.chip.active { background: var(--ios-blue); color: #fff; }

/* ─── Desktop: center sheet ─── */
@media (min-width: 700px) {
  .modal { align-items: center; padding: 1.5rem; }
  .modal-content { border-radius: 20px; max-height: 88vh; }
}

/* ─── Small screens ─── */
@media (max-width: 560px) {
  .container { padding: 0 0.75rem calc(1.5rem + var(--safe-b)); }
  .header { flex-direction: column; align-items: stretch; text-align: left; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
  .search-section .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .search-actions { flex-direction: column; }
  .search-actions .btn { width: 100%; }
  .page-head { padding-top: 1rem; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,120,128,0.4); border-radius: 4px; }

/* ─── 全站居中：页头 / 表单 / 按钮 / 列表 / 弹窗 ─── */
.ios-nav-inner { flex-direction: column; gap: 0.4rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.ios-nav-title { justify-content: center; text-align: center; }
.ios-nav-actions { justify-content: center; width: 100%; }
.page-head { text-align: center; }
.header { flex-direction: column; align-items: center; text-align: center; }
.header h1 { justify-content: center; }
.header-actions { justify-content: center; width: 100%; }
.form-group label { text-align: center; margin-left: 0; }
.form-control, textarea.form-control { text-align: center; }
select.form-control { text-align-last: center; }
.search-actions { justify-content: center; }
.result-count { text-align: center; }
.school-card { text-align: center; padding-right: 1rem; }
.school-card::after { display: none; }
.school-card h3 { padding-right: 0; }
.modal-header h2 { flex: 1; text-align: center; }
.info-item { text-align: center; }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; }

/* ─── Accessibility: reduced motion / transparency / contrast ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .login-box, .modal-content { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .ios-nav, .ios-nav-inner, .modal-header { background: var(--ios-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .inset-group, .header, .search-section, .school-card, .info-item, .login-box {
    border-color: var(--hairline-strong);
  }
}

/* ─── Dark mode ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --ios-bg: #000000;
    --ios-card: #1C1C1E;
    --ios-fill: #2C2C2E;
    --ios-fill-pressed: #3A3A3C;
    --label: #FFFFFF;
    --text-1: #F2F2F7;
    --text-2: rgba(235, 235, 245, 0.6);
    --text-3: rgba(235, 235, 245, 0.3);
    --hairline: rgba(84, 84, 88, 0.6);
    --hairline-strong: rgba(120, 120, 128, 0.7);
    --nav-bg: rgba(28, 28, 30, 0.78);
    --card-border: rgba(255,255,255,0.08);
  }
  .school-card:hover { background: #232326; }
  .school-card:active { background: var(--ios-fill); }
  .disclaimer { background: rgba(255, 149, 0, 0.18); color: #FFB340; }
  .school-card .school-note { background: rgba(52,199,89,0.16); color: #7BD88F; }
  .rank-badge { background: rgba(255, 149, 0, 0.2); color: #FFB340; }
  .cat-badge { background: rgba(0, 122, 255, 0.18); color: #66B3FF; }
  .tag-badge { background: rgba(52, 199, 89, 0.2); color: #6FE394; }
  .modal-header { background: rgba(28,28,30,0.88); }
  .toast { background: rgba(242,242,247,0.94); color: #000; }
}
