:root {
  --bg: #f3f1ea;
  --surface: #ffffff;
  --surface-subtle: #ebe8df;
  --surface-hover: #e2dfd5;
  --media-bg: #eae7de;
  --border: #d5d1c5;
  --border-strong: #aaa696;
  --text: #171815;
  --text-secondary: #55584f;
  --text-muted: #77796f;
  --primary: #19324d;
  --primary-fg: #ffffff;
  --primary-hover: #254866;
  --accent: #315f87;
  --accent-soft: rgba(49, 95, 135, 0.11);
  --success: #10b981;
  --topbar-bg: rgba(243, 241, 234, 0.96);
  --card-shadow: none;
  --card-shadow-hover: 0 8px 18px rgba(38, 35, 27, 0.08);
  --modal-shadow: 0 20px 50px rgba(38, 35, 27, 0.24);
}

[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #141417;
  --surface-subtle: #1c1c21;
  --surface-hover: #24242b;
  --media-bg: #1a1a1f;
  --border: #242429;
  --border-strong: #32323a;
  --text: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --primary: #f4f4f6;
  --primary-fg: #0b0b0d;
  --primary-hover: #dcdce0;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --success: #10b981;
  --topbar-bg: rgba(11, 11, 13, 0.86);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 16px 32px -8px rgba(0, 0, 0, 0.55);
  --modal-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
  margin: 0;
}

button {
  line-height: 1;
}

svg {
  display: block;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  background: var(--surface-subtle);
  padding: 2px 5px;
  border-radius: 5px;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--topbar-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #315f87;
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.item-count-badge {
  height: 22px;
  padding: 0 7px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-bar-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 38px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.12);
}

.search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: none;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.visible {
  display: inline-flex;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.currency-tabs {
  height: 38px;
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 4px;
  gap: 2px;
}

.curr-tab {
  height: 30px;
  border: none;
  background: transparent;
  padding: 0 10px;
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.curr-tab:hover {
  color: var(--text);
}

.curr-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ghost-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ghost-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-subtle);
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

[data-theme="light"] .moon-icon {
  display: block;
}
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}

.intro-strip {
  padding: 22px 0 14px;
}

.intro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.intro-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.intro-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.gtbuy-banner-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.gtbuy-banner-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.filter-dock {
  padding: 18px 0 18px;
}

.category-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex-shrink: 0;
  height: 35px;
  padding: 0 13px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.14s ease;
}

.cat-tab:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.cat-tab.active {
  background: var(--primary);
  color: var(--primary-fg);
}

.cat-tab-num {
  font-size: 0.7rem;
  opacity: 0.68;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.results-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.custom-dd {
  position: relative;
}

.dd-trigger {
  height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dd-trigger:hover,
.custom-dd.open .dd-trigger {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.dd-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.custom-dd.open .dd-chevron {
  transform: rotate(180deg);
  color: var(--text);
}

.dd-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  box-shadow: var(--card-shadow-hover);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.dd-popover-brands {
  min-width: 245px;
}

.custom-dd.open .dd-popover {
  display: block;
}

.dd-search-box {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.dd-search-box input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 0.78rem;
  outline: none;
}

.dd-search-box input:focus {
  border-color: var(--text);
  background: var(--surface);
}

.dd-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dd-option:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.dd-option.active {
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
}

.dd-opt-count {
  font-size: 0.7rem;
  opacity: 0.68;
}

.clear-all-btn {
  background: none;
  border: none;
  padding: 5px 8px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

.clear-all-btn:hover {
  text-decoration: underline;
}

.main-content {
  padding-bottom: 72px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 700px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
  }
}

@media (min-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
  }
}

.item-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.item-card:hover {
  transform: none;
  box-shadow: var(--card-shadow-hover);
  z-index: 2;
}

.item-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--media-bg);
  overflow: hidden;
}

.item-media-trigger {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.item-img.loaded {
  opacity: 1;
}

.item-card:hover .item-img.loaded {
  filter: saturate(1.06) contrast(1.02);
}

.item-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}

.item-fallback {
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.item-fallback-monogram {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.item-fallback-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.floating-copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.15s ease;
}

.floating-copy-btn:hover {
  opacity: 1;
  color: var(--text);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.floating-copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  opacity: 1;
}

.gallery-count-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  background: rgba(17, 17, 19, 0.72);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.item-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-brand {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-title {
  margin: 0 0 12px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.38rem;
  cursor: pointer;
}

.item-title:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.item-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.item-buy-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 3px;
  border: none;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.item-buy-btn:hover {
  background: var(--primary-hover);
}

.empty-box {
  text-align: center;
  padding: 64px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.empty-box h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.empty-box p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.primary-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 3px;
  border: none;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.load-sentinel {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.back-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--card-shadow-hover);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.back-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--modal-shadow);
  position: relative;
  animation: sheetIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-sheet.modal-compact {
  max-width: 500px;
  padding: 28px;
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.modal-split {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .modal-split {
    grid-template-columns: 1.08fr 1fr;
  }
}

.modal-gallery-pane {
  background: var(--media-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.modal-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.thumb-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 2px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.thumb-btn.active {
  border-color: var(--primary);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-pane {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.modal-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-right: 44px;
}

.modal-brand-tag {
  height: 24px;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-cat-tag {
  height: 24px;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-item-title {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-pricing-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.modal-primary-price {
  font-size: 1.45rem;
  font-weight: 800;
}

.modal-alt-prices {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.modal-specs {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.modal-cta-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agents-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.agent-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agent-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.agent-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.agent-btn-alt {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border);
}

.agent-btn-alt:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.primary-cta-btn {
  height: 44px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.primary-cta-btn:hover {
  background: var(--primary-hover);
}

.secondary-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.outline-cta-btn {
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.outline-cta-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.guide-lead {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.step-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.step-idx {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 2px;
}

.step-row h4 {
  margin: 0 0 3px;
  font-size: 0.88rem;
}

.step-row p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--card-shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-bar-wrap {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .hide-sm {
    display: none;
  }

  .curr-tab {
    padding: 5px 7px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
