/* ==========================================================================
   Cámara con filtros faciales en vivo (TikTok / Snapchat AR)
   Estilos corporativos canónicos fijate.com
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta base neutra y semántica */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --danger-color: #ef4444;
  --success-color: #10b981;
  --studio-dark: #090d14;
  --studio-surface: #131924;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-card: #0f172a;
  --bg-surface: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --accent-color: #60a5fa;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(96, 165, 250, 0.3);
  --studio-dark: #04070d;
  --studio-surface: #0e1420;
}

/* --------------------------------------------------------------------------
   Layout canónico
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.placeholder-title,
.faq-main-title,
.modal-title,
.privacy-title {
  font-family: var(--font-heading);
}

.mono,
.countdown-number,
.intensity-value,
.status-text {
  font-family: var(--font-mono);
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Tarjeta principal de la cámara
   -------------------------------------------------------------------------- */
.camera-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

/* Contenedor del visor de cámara */
.camera-viewport-wrap {
  position: relative;
  width: 100%;
  background: var(--studio-dark);
  min-height: 380px;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

/* Canvas y vídeo */
#webcam-video {
  display: none;
}

#ar-canvas {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
  background: #000;
  transition: transform 0.2s ease;
}

#ar-canvas.mirrored {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   HUD superpuesto
   -------------------------------------------------------------------------- */
.camera-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.camera-hud-top > * {
  pointer-events: auto;
}

.hud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
  transition: all 0.3s ease;
}

.status-dot.active {
  background-color: var(--success-color);
  box-shadow: 0 0 10px var(--success-color);
  animation: pulse-dot 2s infinite;
}

.status-dot.loading {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hud-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  min-height: 38px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hud:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-hud.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Indicador de interacción (¡Abre la boca!) */
.hud-trigger-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

/* Cuenta atrás */
.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.countdown-number {
  font-size: 8rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
  animation: countdown-pulse 1s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes countdown-pulse {
  0% { transform: scale(0.6); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Flash de captura */
.screen-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.08s ease-out;
}

.screen-flash.active {
  opacity: 0.95;
}

/* Pantalla inicial de bienvenida a la cámara */
.camera-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #090d16 0%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 15;
  text-align: center;
}

.placeholder-content {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.placeholder-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.placeholder-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.placeholder-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.btn-primary-camera {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
  margin-top: 0.75rem;
}

.btn-primary-camera:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* --------------------------------------------------------------------------
   Barra de control y disparador
   -------------------------------------------------------------------------- */
.camera-toolbar {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.toolbar-subcontrols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timer-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.btn-segment {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-segment:hover {
  color: var(--text-main);
}

.btn-segment.active {
  background: var(--bg-card);
  color: var(--accent-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.intensity-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 6px;
  border-radius: 9999px;
  background: var(--bg-surface);
  outline: none;
  border: 1px solid var(--border-color);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.intensity-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  min-width: 42px;
}

/* Área del disparador central */
.shutter-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mode-selector {
  display: inline-flex;
  background: var(--bg-surface);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.btn-mode {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.shutter-button-outer {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.2s ease;
}

.shutter-button-outer:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-shutter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--text-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-color);
  transition: all 0.2s ease;
}

.btn-shutter:hover .shutter-inner {
  transform: scale(0.92);
}

.btn-shutter:active .shutter-inner {
  transform: scale(0.85);
}

/* Estado grabando vídeo */
.shutter-button-outer.recording {
  border-color: var(--danger-color);
  animation: pulse-recording 1.2s infinite ease-in-out;
}

.shutter-button-outer.recording .shutter-inner {
  border-radius: 8px;
  transform: scale(0.55);
  background: var(--danger-color);
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.shutter-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Categorías de filtros y cuadrícula de selección (sin scroll horizontal)
   -------------------------------------------------------------------------- */
.filters-category-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.75rem 1.5rem 0.5rem;
  overflow: visible;
}

.btn-filter-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-filter-cat:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-filter-cat.active {
  background: var(--text-main);
  color: var(--bg-card);
  border-color: var(--text-main);
}

.cat-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Cuadrícula de filtros visible: 100% visible sin scroll horizontal */
.filters-carousel-container,
.filters-grid-container {
  padding: 1rem 1.5rem 1.5rem;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.filters-scroll-track,
.filters-grid-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 14px 10px;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

.filter-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 86px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.filter-icon-bubble {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filter-card-item:hover .filter-icon-bubble {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.filter-card-item.active .filter-icon-bubble {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.filter-interactive-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ec4899;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.6);
}

.filter-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-card-item.active .filter-card-name {
  color: var(--accent-color);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Tarjeta de garantía de privacidad
   -------------------------------------------------------------------------- */
.privacy-guarantee-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 2rem;
}

.privacy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-card-body {
  flex: 1;
}

.privacy-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
}

.privacy-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Guía y FAQ acordeón
   -------------------------------------------------------------------------- */
.guide-faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.faq-main-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-color);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Modales accesibles (Previsualización y Error de cámara)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-scale-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-scale-up {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-preview-body {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  background: #000;
}

.preview-media-container {
  max-height: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-media-container img,
.preview-media-container video {
  max-width: 100%;
  max-height: 480px;
  border-radius: 10px;
  object-fit: contain;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
  border: 1px solid var(--accent-color);
}

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

/* Mensajes de error y ayuda */
.error-notice-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger-color);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.error-notice-box p {
  margin: 0;
}

.browser-help-steps {
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.help-steps-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.help-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsividad móvil
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .camera-viewport-wrap {
    min-height: 320px;
  }

  .hud-btn-label {
    display: none;
  }

  .toolbar-subcontrols {
    flex-direction: column;
    align-items: stretch;
  }

  .timer-selector-group,
  .intensity-slider-wrap {
    justify-content: space-between;
  }

  .custom-range {
    width: 150px;
  }

  .filters-category-nav {
    padding: 0.75rem 1rem 0.25rem;
    justify-content: center;
  }

  .filters-carousel-container,
  .filters-grid-container {
    padding: 0.75rem 0.75rem 1.25rem;
  }

  .filters-scroll-track,
  .filters-grid-track {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px 6px;
  }

  .filter-card-item {
    max-width: 76px;
  }

  .filter-icon-bubble {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer > * {
    width: 100%;
  }
}
