/* ==========================================================================
   PORT INTEGRATION — Native PC Ports Hub
   Design System & Estilos Principais
   ========================================================================== */

/* ── Declaração das Fontes Locais ── */
@font-face {
  font-family: 'TungstenNarrow';
  src: url('./assets/fonts/TungstenNarrow-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Variáveis Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root, [data-theme="light"] {
  /* Identidade SSLabs — Paleta Roxo Suave & Elegante */
  --color-primary: #7c3aed;
  --sslabs-blue-primary: #7c3aed;
  --sslabs-blue-hover: #6d28d9;
  --sslabs-blue-light: #a78bfa;
  --sslabs-cyan: #8b5cf6;
  --sslabs-blue-glow: rgba(124, 58, 237, 0.28);
  --sslabs-gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  --sslabs-gradient-header: linear-gradient(90deg, #6d28d9 0%, #7c3aed 40%, #8b5cf6 75%, #a78bfa 100%);

  /* Paletas dos Consoles */
  --console-ps4: #00439c;
  --console-ps4-light: #3b82f6;
  --console-ps3: #1e3a8a;
  --console-ps2: #1d4ed8;
  --console-ps1: #475569;
  --console-n64: #ea580c;
  --console-switch: #e60012;
  --console-gamecube: #6366f1;
  --console-xbox: #107c10;
  --console-outros: #8b5cf6;

  /* Tema Claro */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f5f3ff;
  --bg-input: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #7c3aed;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 10px 24px -4px rgba(15, 23, 42, 0.10);
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-border: #e2e8f0;
  --bg-surface-hover: #ede9fe;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ── Tema Escuro (Padrão) ── */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162032;
  --bg-surface-subtle: #191b35;
  --bg-input: #121b2d;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #090d16;

  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(9, 13, 22, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --bg-surface-hover: #1e1b4b;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Faixa de gradiente no topo ── */
.top-gradient-stripe {
  height: 4px;
  width: 100%;
  background: var(--sslabs-gradient-header);
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* ── Cabeçalho Principal ── */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Logo e Marca (Aumentada e Responsiva ao Tema) ── */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-light-mode {
  display: block;
}

.logo-dark-mode {
  display: none;
}

[data-theme="dark"] .logo-light-mode {
  display: none !important;
}

[data-theme="dark"] .logo-dark-mode {
  display: block !important;
}

.header-brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title-main {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-title-highlight {
  color: var(--sslabs-blue-light);
  margin-left: 1px;
}

.brand-title-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Barra de Busca no Header ── */
.header-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 640px;
}

.search-icon-inside {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input-box {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 2.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input-box:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--sslabs-blue-glow);
}

.search-input-box:focus ~ .search-icon-inside {
  color: var(--sslabs-blue-light);
}

.search-kbd-shortcut {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}

.search-clear-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-subtle);
}

/* ── Gaveta de Resultados Rápidos (Drawer) ── */
.search-drawer {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.4);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 1050;
  animation: slideDownFade 0.2s ease forwards;
}

.search-drawer.open {
  display: flex;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-drawer-list {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}

.search-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.search-drawer-item:last-child {
  border-bottom: none;
}

.search-drawer-item:hover {
  background-color: var(--bg-surface-subtle);
}

.search-drawer-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.search-drawer-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.search-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-drawer-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drawer-repo {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'JetBrains Mono', monospace;
}

.search-drawer-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Ações no Header ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
  color: var(--sslabs-blue-light);
}

.icon-svg {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  width: 18px;
  height: 18px;
}

/* Ícone do Discord Oficial 100% Preenchido */
.discord-svg-filled {
  fill: currentColor !important;
  stroke: none !important;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Ícones de Sugestões em Contorno Fino / Outline Elegante */
.suggest-outline-icon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ── Container Principal & Hero ── */
.main-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  width: 100%;
  flex: 1;
}

.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 2rem 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sslabs-blue-light);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  background: var(--sslabs-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ── Hero Dashboard: Estatísticas e Card do AnyPS5 Lado a Lado ── */
.hero-dashboard-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.hero-stats-row {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.8rem 2.2rem;
  gap: 1.75rem;
  box-shadow: var(--card-shadow);
  height: 72px;
  box-sizing: border-box;
}

/* ── Card do AnyPS5 Lado a Lado (Tamanho Fixo e Estável) ── */
.anyps5-status-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: visible;
  height: 72px;
  box-sizing: border-box;
  user-select: none;
}

.anyps5-status-card:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--card-shadow-hover);
}

[data-theme="light"] .anyps5-status-card:hover {
  border-color: #cbd5e1;
}

.anyps5-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.anyps5-header-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.anyps5-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.anyps5-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  line-height: 1.2;
}

.anyps5-live-pill .pulse-dot {
  width: 5px;
  height: 5px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.anyps5-badges-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anyps5-badge-img {
  height: 18px;
  display: block;
  border-radius: 3px;
}

.anyps5-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.anyps5-status-card:hover .anyps5-arrow-wrap {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.2);
}

.anyps5-arrow-icon {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.anyps5-status-card:hover .anyps5-arrow-icon {
  transform: translateX(1px) translateY(-1px);
  stroke: var(--text-main);
}

/* ── Popover Flutuante com Mais Informações (NÃO altera o tamanho do card) ── */
.anyps5-hover-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 330px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Setinha indicadora no topo do popover */
.anyps5-hover-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--border-strong) transparent;
}

.anyps5-hover-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--bg-surface-elevated) transparent;
}

.anyps5-status-card:hover .anyps5-hover-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.anyps5-popover-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anyps5-popover-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.anyps5-popover-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.anyps5-popover-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.anyps5-popover-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anyps5-popover-stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.anyps5-popover-stat-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
}

.anyps5-popover-stat-sep {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
}

.anyps5-popover-footer {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3b82f6;
  text-align: right;
  margin-top: 0.1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-separator {
  width: 1px;
  height: 34px;
  background: var(--border-subtle);
}

/* ── Barra de Filtros e Categorias ── */
.filter-bar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.filter-pill.active {
  background: var(--sslabs-blue-primary);
  border-color: var(--sslabs-blue-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--sslabs-blue-glow);
}

.filter-pill-count {
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 1px 7px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.filter-pill:hover .filter-pill-count {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.filter-pill.active .filter-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ps5-dot { background-color: #0070d1; box-shadow: 0 0 6px rgba(0, 112, 209, 0.5); }
.ps4-dot { background-color: var(--console-ps4-light); }
.ps2-dot { background-color: var(--console-ps2); }
.ps1-dot { background-color: #94a3b8; }
.n64-dot { background-color: var(--console-n64); }
.gc-dot { background-color: var(--console-gamecube); }
.switch-dot { background-color: var(--console-switch); }
.xbox360-dot { background-color: #107c10; box-shadow: 0 0 6px rgba(16, 124, 16, 0.5); }
.xone-dot { background-color: #107c10; box-shadow: 0 0 6px rgba(16, 124, 16, 0.5); }
.xbox-dot { background-color: #0b5e0b; }
.outros-dot { background-color: var(--console-outros); }
.pc-dot { background-color: #38bdf8; }

.star-icon-svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  fill: #eab308;
  vertical-align: -2px;
  margin-right: 3px;
  flex-shrink: 0;
}

.alert-icon {
  fill: currentColor;
  flex-shrink: 0;
}

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

.sort-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-select {
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* ── Barra de Status de Busca ── */
.search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
}

.search-status-text {
  font-size: 0.88rem;
  color: var(--text-main);
}

.search-status-count {
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.btn-clear-search-bar {
  background: transparent;
  border: none;
  color: var(--sslabs-blue-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Grade de Cards (Estilo Loja SSLabs) ── */
.ports-grid-section {
  width: 100%;
}

.ports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* ── Card de Port Individual ── */
.port-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  position: relative;
  cursor: pointer;
}

.port-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .port-card:hover {
  border-color: #cbd5e1;
}

/* ── Container da Capa do Jogo ── */
.port-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-subtle);
  overflow: hidden;
}

.port-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.68) 100%);
  pointer-events: none;
}

.port-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.port-thumb.loaded {
  opacity: 1;
}

.port-card:hover .port-thumb {
  transform: scale(1.05);
}

/* Shimmer animado */
.shimmer-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    var(--bg-surface-subtle) 0%, 
    var(--border-subtle) 50%, 
    var(--bg-surface-subtle) 100%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.8s infinite linear;
}

@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Badges sobrepostos à capa */
.card-badges-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.badge-console {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.badge-console.ps5 { background: #0070d1; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge-console.ps4 { background: var(--console-ps4); border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-console.ps3 { background: var(--console-ps3); border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-console.ps2 { background: var(--console-ps2); border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-console.ps1 { background: var(--console-ps1); border: 1px solid rgba(148, 163, 184, 0.4); }
.badge-console.n64 { background: var(--console-n64); border: 1px solid rgba(249, 115, 22, 0.4); }
.badge-console.switch { background: var(--console-switch); border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-console.gamecube, .badge-console.gc { background: var(--console-gamecube); border: 1px solid rgba(99, 102, 241, 0.4); }
.badge-console.wii, .badge-console.wiiu { background: #0284c7; border: 1px solid rgba(2, 132, 199, 0.4); }
.badge-console.nintendo { background: var(--console-switch); border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-console.xbox, .badge-console.xbox360, .badge-console.xone, .badge-console.series, .badge-console.xboxone { background: var(--console-xbox); border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-console.gba { background: #ec4899; border: 1px solid rgba(236, 72, 153, 0.4); }
.badge-console.psp { background: #6366f1; border: 1px solid rgba(99, 102, 241, 0.4); }
.badge-console.nds { background: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }
.badge-console.retro { background: #d97706; border: 1px solid rgba(217, 119, 6, 0.4); }
.badge-console.pc { background: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-console.outros { background: var(--console-outros); border: 1px solid rgba(168, 85, 247, 0.4); }

.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(6px);
}

.card-cover-origin {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Corpo do Card ── */
.port-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.port-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.port-repo-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
}

.port-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Metadados do GitHub ── */
.port-github-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
}

.port-version-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 4px #10b981;
}

.port-version-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #10b981;
}

.port-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.port-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Botões de Ação do Card (GitHub & Discord) ── */
.port-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.btn-card-github {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.85rem;
  background: var(--sslabs-blue-primary);
  border: 1px solid var(--sslabs-blue-hover);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 12;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-card-github *,
.btn-card-discord * {
  pointer-events: none;
}

.port-card:hover .btn-card-github {
  background: var(--sslabs-blue-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-card-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.85rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #5865F2;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 12;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .btn-card-discord {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.5);
  color: #7983f5;
}

.btn-card-discord:hover {
  background: #5865F2 !important;
  color: #ffffff !important;
  border-color: #5865F2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* ── Estado Vazio (Nenhum Resultado) ── */
.empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 1.5rem auto;
}

.btn-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-empty-reset:hover {
  background: var(--border-subtle);
}

/* ── Rodapé ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  height: 38px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.footer-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.5;
  background: var(--bg-surface-subtle);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid #eab308;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--sslabs-blue-light);
}

/* Botão de Alternância de Tema no Rodapé (Exibido no Mobile) */
.footer-theme-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.footer-theme-toggle-btn .icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.footer-theme-toggle-btn:hover,
.footer-theme-toggle-btn:active {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ── Responsividade & Otimização Mobile ── */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .ports-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

/* Telas até 860px: empilha contagem e AnyPS5 harmoniosamente sem cortar */
@media (max-width: 860px) {
  .hero-dashboard-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.25rem;
  }

  .hero-stats-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 460px;
    height: auto;
    min-height: 72px;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .anyps5-status-card {
    width: 100%;
    max-width: 460px;
    height: auto;
    min-height: 68px;
    padding: 0.75rem 1.2rem;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .anyps5-hover-popover {
    max-width: calc(100vw - 2rem);
    width: 320px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Modo Mobile (<= 768px): Header limpo, barra centralizada, filtros organizados */
@media (max-width: 768px) {
  /* 1. Ocultar ícones de repositório e tema no mobile */
  .header-actions {
    display: none !important;
  }

  /* 2. Barra de pesquisa centralizada */
  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .header-brand {
    justify-content: center;
    margin: 0 auto;
  }

  .header-search-wrapper {
    order: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .search-kbd-shortcut {
    display: none;
  }

  .search-input-box {
    font-size: 0.9rem;
    padding: 0.65rem 2.2rem 0.65rem 2.4rem;
  }

  /* 3. Filtros de plataformas organizados e justificados na página */
  .filter-bar-section {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0 1.25rem 0;
    padding-bottom: 1.25rem;
  }

  .filter-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0;
    overflow-x: visible;
  }

  .filter-pill {
    flex: 0 1 auto;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    min-height: 38px;
  }

  .filter-sort-wrap {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .floating-actions-wrap {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.6rem;
  }

  .footer-theme-toggle-btn {
    display: inline-flex;
    margin: 0.4rem auto;
  }
}

@media (max-width: 640px) {
  .main-wrapper {
    padding: 1.25rem 1rem 3rem 1rem;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-title-main {
    font-size: 1.15rem;
  }

  .hero-section {
    padding: 2rem 0.75rem 1.5rem 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .ports-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .port-card {
    border-radius: 12px;
  }

  .port-card-body {
    padding: 1.15rem;
  }

  .port-title {
    font-size: 1.15rem;
  }

  .port-desc {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  .port-card-actions {
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }

  .btn-card-github,
  .btn-card-discord {
    min-height: 44px;
    font-size: 0.84rem;
    padding: 0.65rem 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .hero-stats-row {
    padding: 0.65rem 0.5rem;
    gap: 0.25rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-separator {
    height: 24px;
  }

  .btn-card-github span,
  .btn-card-discord span {
    font-size: 0.78rem;
  }
}

/* ── GRUPO DE AÇÕES FLUTUANTES (CANTO INFERIOR DIREITO) ── */
.floating-actions-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.floating-actions-wrap > * {
  pointer-events: auto;
}

/* Botão de Voltar ao Topo (Scroll to Top) */
.floating-back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  user-select: none;
}

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

.floating-back-to-top-btn:hover {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="light"] .floating-back-to-top-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .floating-back-to-top-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Botão de Sugestão */
.floating-suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.floating-suggest-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

[data-theme="light"] .floating-suggest-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .floating-suggest-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.floating-suggest-btn:active {
  transform: translateY(0);
}

/* ── MODAL INTERATIVO DE SUGESTÕES ── */
.suggest-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.suggest-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.suggest-modal-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.suggest-modal-overlay.open .suggest-modal-box {
  transform: translateY(0) scale(1);
}

.suggest-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.suggest-modal-title-group {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.suggest-modal-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--sslabs-blue-glow);
  color: var(--sslabs-blue-light);
  border-radius: 10px;
  flex-shrink: 0;
}

.suggest-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.suggest-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.suggest-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.suggest-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.flex-1 { flex: 1; }
.w-auto { width: auto; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--sslabs-blue-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.suggest-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-submit-suggest {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  background: var(--sslabs-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-submit-suggest:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.suggest-status-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.suggest-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.suggest-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 640px) {
  .floating-suggest-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
  .form-row {
    flex-direction: column;
  }
  .suggest-actions-bar {
    flex-direction: column;
    width: 100%;
  }
  .btn-submit-suggest {
    width: 100%;
    justify-content: center;
  }
}
