.fi-th {
  --fi-th-bg: #0f172a;
  --fi-th-surface: #172436;
  --fi-th-ink: #e2e8f0;
  --fi-th-muted: #94a3b8;
  --fi-th-brand: #0ea5e9;
  --fi-th-brand-2: #0369a1;
  --fi-th-line: rgba(255, 255, 255, 0.12);
  --fi-th-ok: #16a34a;
  --fi-th-dom: #d97706;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--fi-th-ink);
  background: radial-gradient(1200px 500px at 10% -5%, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 60%), var(--fi-th-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.fi-th-hero {
  position: relative;
  padding: 28px 20px;
  background: linear-gradient(135deg, #03192d 0%, #064069 60%, #0a5f93 100%);
  color: #f3fbff;
}

.fi-th-hero-glow {
  position: absolute;
  inset: auto auto -70px -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 223, 255, 0.55), rgba(99, 223, 255, 0));
  pointer-events: none;
}

.fi-th-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.2;
  pointer-events: none;
}

.fi-th-hero-inner {
  position: relative;
  z-index: 1;
}

.fi-th-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #b3e8ff;
  margin-bottom: 8px;
}

.fi-th-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.2;
}

.fi-th-hero p {
  margin: 10px 0 0;
  color: #d9effb;
  max-width: 780px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.fi-th-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fi-th-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.fi-th-stat strong {
  display: block;
  font-size: 1.2rem;
  color: #ffffff;
}

.fi-th-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #caebff;
}

.fi-th-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(8, 14, 26, 0.72);
  border-bottom: 1px solid var(--fi-th-line);
}

.fi-th-tabs {
  display: inline-flex;
  background: #111f33;
  border-radius: 999px;
  padding: 4px;
}

.fi-th-tab {
  border: 0;
  background: transparent;
  color: #9fb1ca;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.fi-th-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--fi-th-brand), var(--fi-th-brand-2));
}

.fi-th-search {
  display: grid;
  gap: 4px;
}

.fi-th-search span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fi-th-muted);
}

.fi-th-search input {
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #0f1d31;
  color: var(--fi-th-ink);
  outline: none;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.fi-th-search input:focus {
  border-color: #7ec4ec;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.fi-th-popular,
.fi-th-main {
  padding: 16px 18px;
  background: rgba(9, 16, 30, 0.7);
}

.fi-th-popular-hd,
.fi-th-main-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fi-th-popular-hd h2,
.fi-th-main-hd h2 {
  margin: 0;
  font-size: 1.04rem;
}

.fi-th-popular-hd span,
.fi-th-main-hd span {
  font-size: 0.82rem;
  color: var(--fi-th-muted);
}

.fi-th-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fi-th-popular-card {
  border: 1px solid var(--fi-th-line);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(145deg, #1b2a40 0%, #162336 100%);
  display: flex;
  gap: 10px;
  align-items: center;
}

.fi-th-link {
  text-decoration: none;
  color: inherit;
}

.fi-th-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fi-th-card,
.fi-th-card-skeleton {
  background: var(--fi-th-surface);
  border: 1px solid var(--fi-th-line);
  border-radius: 14px;
}

.fi-th-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.fi-th-card-skeleton {
  height: 132px;
  background: linear-gradient(90deg, #ecf3fc 25%, #f7fbff 50%, #ecf3fc 75%);
  background-size: 260% 100%;
  animation: fi-th-shimmer 1.4s infinite;
}

@keyframes fi-th-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.fi-th-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fi-th-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 0.83rem;
  font-weight: 700;
}

.fi-th-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fi-th-name {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.fi-th-sub {
  margin: 2px 0 0;
  color: var(--fi-th-muted);
  font-size: 0.82rem;
}

.fi-th-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fi-th-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  font-size: 0.74rem;
  color: #c7d6ea;
  background: rgba(255, 255, 255, 0.05);
}

.fi-th-chip.type-international {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.fi-th-chip.type-domestic {
  border-color: #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.fi-th-pagination {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fi-th-page {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #102039;
  color: #dbe6f5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
}

.fi-th-page.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--fi-th-brand), var(--fi-th-brand-2));
}

.fi-th-empty,
.fi-th-error {
  margin: 12px 18px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  color: #98abc4;
}

.fi-th-empty strong,
.fi-th-error strong {
  display: block;
  margin-bottom: 4px;
  color: #d8e3f3;
}

@media (max-width: 980px) {
  .fi-th-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fi-th-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fi-th-hero,
  .fi-th-toolbar,
  .fi-th-popular,
  .fi-th-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fi-th-stats {
    grid-template-columns: 1fr;
  }

  .fi-th-popular-grid,
  .fi-th-grid {
    grid-template-columns: 1fr;
  }

  .fi-th-search,
  .fi-th-search input {
    width: 100%;
    min-width: 0;
  }
}
