@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --background: #09090b;
  --foreground: #fafaf9;
  --card: #18181b;
  --card-foreground: #fafaf9;
  --popover: #18181b;
  --popover-foreground: #fafaf9;
  --primary: #d4d4d8;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafaf9;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafaf9;
  --destructive: #ef4444;
  --destructive-foreground: #fafaf9;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --input: rgba(255,255,255,0.1);
  --ring: #d4d4d8;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SHADCN COMPONENTS
   ============================================ */

/* Card */
.shadcn-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.shadcn-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.shadcn-card-sm { padding: 1rem; }
.shadcn-card-lg { padding: 2rem; }

/* Button */
.shadcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.shadcn-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.shadcn-btn-primary {
  background: var(--foreground);
  color: var(--background);
}
.shadcn-btn-primary:hover {
  background: var(--foreground);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(250,250,249,0.15);
}

.shadcn-btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}
.shadcn-btn-secondary:hover {
  background: var(--accent);
  border-color: var(--border-hover);
}

.shadcn-btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.shadcn-btn-outline:hover {
  background: var(--accent);
  border-color: var(--border-hover);
}

.shadcn-btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}
.shadcn-btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.shadcn-btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.shadcn-btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 0.9375rem; }

/* Badge */
.shadcn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shadcn-badge-default { background: var(--secondary); color: var(--secondary-foreground); }
.shadcn-badge-outline { background: transparent; color: var(--muted-foreground); border-color: var(--border); }

/* Input */
.shadcn-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.shadcn-input::placeholder { color: var(--muted-foreground); }

.shadcn-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(212,212,216,0.1);
}

.shadcn-textarea {
  min-height: 5rem;
  padding: 0.75rem;
  resize: vertical;
}

/* Select */
.shadcn-select {
  appearance: none;
  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='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* Separator */
.shadcn-sep {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* Tabs */
.shadcn-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.shadcn-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.shadcn-tab:hover { color: var(--foreground); }

.shadcn-tab.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.collection-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
}

.collection-tabs .shadcn-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Table */
.shadcn-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.shadcn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.shadcn-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shadcn-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.shadcn-table tr:last-child td { border-bottom: none; }

.shadcn-table tbody tr {
  transition: background 0.15s ease;
}

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

/* Alert */
.shadcn-alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.shadcn-alert-success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #4ade80; }
.shadcn-alert-error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #f87171; }

/* Avatar / Icon box */
.shadcn-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.shadcn-avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }

/* Skeleton */
.shadcn-skeleton {
  background: var(--muted);
  border-radius: var(--radius-sm);
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--radius);
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(24,24,27,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.logo-icon {
  width: 24px; height: 24px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  position: relative;
  opacity: 0.8;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--foreground);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--foreground); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: translateY(17%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,0.2) 0%, rgba(9,9,11,0.7) 60%, var(--background) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  padding-top: 80px;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(24,24,27,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.375rem;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0 0.75rem;
  outline: none;
  font-family: inherit;
  height: 2.25rem;
}

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

.hero-search-btn {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--foreground);
  color: var(--background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  opacity: 0.9;
}

.hero-search-btn svg { width: 14px; height: 14px; }

.floating-chips {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.chip {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(24,24,27,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  animation: chipFloat 18s ease-in-out infinite;
  pointer-events: auto;
  text-decoration: none;
  transition: all 0.3s ease;
}

.chip:hover { color: var(--foreground); border-color: var(--border-hover); }

@keyframes chipFloat {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 0.4; }
  50% { opacity: 0.3; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   DOMAIN CARDS
   ============================================ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.domain-card .card-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.domain-card .card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.domain-card .card-info .card-meta {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.domain-card p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.domain-card .card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.card-price-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.info-card p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ============================================
   STEPS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.step { text-align: center; }

.step-number {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.step p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ============================================
   DOMAIN DETAIL
   ============================================ */
.domain-detail-hero {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--background) 0%, rgba(24,24,27,0.3) 100%);
}

.domain-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.domain-detail-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.domain-detail-hero .lead {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.detail-visual-wrap {
  display: flex;
  justify-content: center;
}

.detail-visual {
  width: 240px; height: 240px;
  border-radius: var(--radius-lg);
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
}

.detail-section {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.detail-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.detail-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-section ul li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.detail-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted-foreground);
}

.detail-section p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

.microcopy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.blog-card { text-decoration: none; color: inherit; }

.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.blog-card .excerpt {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.blog-card .date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-body { max-width: 720px; margin: 0 auto; }
.blog-body h2 { color: var(--foreground); font-size: 1.25rem; margin: 2rem 0 0.75rem; font-weight: 600; }
.blog-body p { color: var(--muted-foreground); margin-bottom: 1rem; line-height: 1.8; font-size: 0.9375rem; }
.blog-body a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================
   BREADCRUMBS / PAGE
   ============================================ */
.breadcrumbs {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted-foreground); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--foreground); }

.page-content { max-width: 640px; margin: 0 auto; padding: 3rem 0; }
.page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.page-content h2 { font-size: 1.125rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--foreground); }
.page-content p { color: var(--muted-foreground); margin-bottom: 1rem; line-height: 1.7; font-size: 0.9375rem; }
.page-content ul { margin-bottom: 1rem; padding-left: 1.25rem; color: var(--muted-foreground); }

/* ============================================
   PAGINATION / FILTER
   ============================================ */
.pagination {
  display: flex;
  gap: 0.375rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
.pagination a:hover { border-color: var(--border-hover); color: var(--foreground); background: var(--muted); }

.pagination .current {
  background: var(--foreground);
  color: var(--background);
  border: 1px solid var(--foreground);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  align-items: center;
}

.filter-bar > input,
.filter-bar > form {
  flex-shrink: 0;
}

.filter-bar form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.tab-content {
  margin-bottom: 2rem;
  display: none;
}

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

.category-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--foreground); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   JSON-LD
   ============================================ */
.json-ld { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .site-header { padding: 0.75rem 0; }
  .nav-glass {
    width: 100%;
    max-width: none;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .logo {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.875rem;
  }
  .logo-icon { flex: 0 0 24px; }
  .nav-glass > div:last-child {
    flex: 0 0 auto;
    gap: 0.5rem !important;
  }
  .nav-glass > div:last-child .shadcn-btn {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
  .main-nav { display: none; position: fixed; top: 70px; left: 1rem; right: 1rem; background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; flex-direction: column; gap: 0.25rem; }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
  .main-nav a:hover { background: var(--accent); }
  .category-tabs-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-tabs-wrap::-webkit-scrollbar { display: none; }
  .shadcn-tabs {
    width: max-content;
    max-width: none;
    min-width: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shadcn-tabs::-webkit-scrollbar { display: none; }
  .shadcn-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .collection-tabs {
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
  }
  .collection-tabs .shadcn-tab {
    flex: 0 0 auto;
  }
  .mobile-scroll-tabs {
    width: max-content;
    max-width: none;
    min-width: max-content;
    flex-wrap: nowrap;
  }
  .mobile-scroll-tabs .shadcn-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }
  .filter-bar > .shadcn-input,
  .filter-bar > input,
  .filter-bar > select {
    width: 100% !important;
    min-width: 0;
    flex-shrink: 1 !important;
  }
  .filter-bar #searchInput,
  .filter-bar #sortSelect {
    grid-column: 1 / -1;
  }
  .domain-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3rem 0; }
  .chip { display: none; }
  .hero-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .main-nav { left: 0.75rem; right: 0.75rem; }
  .logo { font-size: 0.8125rem; }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-bar #searchInput,
  .filter-bar #sortSelect {
    grid-column: auto;
  }
  .domain-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .card-actions .shadcn-btn { width: 100%; }
}
