:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f1f3f7;
  --surface-tint: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --accent-btn: #0f172a;
  --accent-btn-text: #ffffff;
  --shopee: #ee4d2d;
  --shopee-hover: #d73211;
  --shopee-soft: #fff1ee;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 26px rgba(15, 23, 42, 0.09);
  --shadow-dropdown: 0 16px 40px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #131a26;
  --surface-muted: #1b2434;
  --surface-tint: #0f1520;
  --navbar-bg: rgba(11, 15, 23, 0.9);
  --ink: #f3f4f6;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --accent-btn: #0ea5e9;
  --accent-btn-text: #04131c;
  --shopee-soft: rgba(238, 77, 45, 0.16);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-dropdown: 0 18px 44px rgba(0, 0, 0, 0.55);
}

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

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

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navbar-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.26);
}

.brand-text {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}

[data-theme="dark"] .brand-tag {
  color: #38bdf8;
}

/* Search + Live Dropdown */
.nav-search {
  flex: 1;
  max-width: 470px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-icon {
  position: absolute;
  left: 13px;
  color: var(--ink-3);
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-muted);
  padding: 0 42px 0 38px;
  font-size: 0.85rem;
  outline: none;
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.nav-search input:focus {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.kbd-hint {
  position: absolute;
  right: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  display: none;
  z-index: 80;
}

.search-dropdown.open {
  display: block;
}

.sd-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

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

.sd-item:hover {
  background: var(--surface-muted);
}

.sd-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sd-info {
  flex: 1;
  min-width: 0;
}

.sd-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-meta {
  font-size: 0.73rem;
  color: var(--ink-3);
}

.sd-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--shopee);
  color: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--shopee-hover);
}

/* Steam / Epic Hero Spotlight Band */
.hero-band {
  background: linear-gradient(180deg, #0b111d 0%, #121b2d 100%);
  padding: 24px 0 28px;
}

.spotlight-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(265px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.spotlight-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 372px;
  background: #0f172a;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: stageFade 0.45s ease;
  transition: transform 0.6s ease;
}

@keyframes stageFade {
  from { opacity: 0.35; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

.spotlight-stage:hover .spotlight-img {
  transform: scale(1.03);
}

.spotlight-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 14, 24, 0.93) 0%, rgba(9, 14, 24, 0.56) 52%, rgba(9, 14, 24, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 14, 24, 0.93) 0%, rgba(9, 14, 24, 0.15) 56%, transparent 100%);
}

.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  max-width: 560px;
  color: #fff;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 12px;
}

.spotlight-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.spotlight-desc {
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.88);
  margin-bottom: 18px;
  line-height: 1.55;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 11px 20px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s, background 0.14s;
}

.btn-hero-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  padding: 11px 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.52);
}

/* Spotlight Rail with Auto-Progress Bar */
.spotlight-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, border-color 0.16s;
}

.rail-item:hover {
  background: rgba(255, 255, 255, 0.11);
}

.rail-item.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.55);
}

.rail-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.rail-item.active .rail-progress {
  animation: railFill 6s linear forwards;
}

.spotlight-shell:hover .rail-item.active .rail-progress {
  animation-play-state: paused;
}

@keyframes railFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.rail-thumb {
  width: 68px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.rail-info {
  min-width: 0;
  flex: 1;
}

.rail-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-meta {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-dot.green { background: #10b981; }
.trust-dot.blue  { background: #0ea5e9; }
.trust-dot.amber { background: #f59e0b; }

/* Sections */
.section {
  padding: 36px 0;
}

.section-tinted {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-sub {
  font-size: 0.87rem;
  color: var(--ink-2);
  margin-top: 3px;
}

/* Saved Bookmark Filter Pill */
.saved-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.saved-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.saved-filter-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

[data-theme="dark"] .saved-filter-btn.active {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.saved-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

/* Category Bar */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 7px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip.cat-all {
  padding-left: 14px;
}

.cat-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.cat-chip.active {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: var(--accent-btn-text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.cat-thumb {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-2);
}

.cat-chip.active .cat-count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--accent-btn-text);
}

/* Filter Toolbar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ext-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ext-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.14s;
}

.ext-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.ext-pill.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #38bdf8;
  color: #0284c7;
}

[data-theme="dark"] .ext-pill.active {
  color: #7dd3fc;
}

.result-count {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 500;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.view-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.view-btn {
  width: 30px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.view-btn.active {
  background: var(--accent-btn);
  color: var(--accent-btn-text);
}

/* 3-Column Mod Grid */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.mod-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mod-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.mod-head-text {
  min-width: 0;
  flex: 1;
}

.mod-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.mod-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
}

.mod-top-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ext-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}

[data-theme="dark"] .ext-badge { color: #7dd3fc; }
.ext-badge.ext-apk { background: rgba(16, 185, 129, 0.15); color: #059669; }
[data-theme="dark"] .ext-badge.ext-apk { color: #6ee7b7; }
.ext-badge.ext-zip { background: rgba(245, 158, 11, 0.16); color: #b45309; }
[data-theme="dark"] .ext-badge.ext-zip { color: #fcd34d; }
.ext-badge.ext-sh  { background: rgba(139, 92, 246, 0.16); color: #6d28d9; }
[data-theme="dark"] .ext-badge.ext-sh  { color: #c4b5fd; }

.btn-bookmark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.14s;
}

.btn-bookmark:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.btn-bookmark.saved {
  color: #f59e0b;
}

.btn-bookmark.saved svg {
  fill: #f59e0b;
}

.mod-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  word-break: break-word;
}

.mod-filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-2);
}

.tag-hot {
  background: rgba(249, 115, 22, 0.14);
  color: #ea580c;
}

[data-theme="dark"] .tag-hot { color: #fdba74; }

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

.mod-specs {
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.mod-specs strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  background: var(--accent-btn);
  color: var(--accent-btn-text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-dl:hover {
  background: #0284c7;
  color: #fff;
}

/* Table View */
.mod-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mod-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--surface-muted);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.mod-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.mod-table tbody tr {
  cursor: pointer;
}

.mod-table tbody tr:hover {
  background: var(--surface-muted);
}

.tbl-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tbl-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.btn-load-more {
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 11px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-load-more:hover {
  border-color: var(--accent-btn);
  background: var(--accent-btn);
  color: var(--accent-btn-text);
}

/* Shopee Gear */
.eyebrow-shopee {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shopee);
  margin-bottom: 4px;
}

.btn-shopee-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(238, 77, 45, 0.35);
  background: var(--shopee-soft);
  color: var(--shopee);
  font-size: 0.83rem;
  font-weight: 700;
  transition: all 0.15s;
}

.btn-shopee-outline:hover {
  background: var(--shopee);
  color: #fff;
  border-color: var(--shopee);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gear-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.gear-card:hover {
  background: var(--surface);
  border-color: rgba(238, 77, 45, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.gear-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gear-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.gear-badge {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--shopee-soft);
  color: var(--shopee);
}

.gear-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}

.gear-sub {
  font-size: 0.79rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.gear-foot {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gear-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--shopee);
}

.gear-old {
  font-size: 0.74rem;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 5px;
}

.gear-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: 8px;
}

.gear-card:hover .gear-cta {
  background: var(--shopee);
  border-color: var(--shopee);
  color: #fff;
}

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.guide-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
  margin-bottom: 10px;
}

[data-theme="dark"] .guide-badge { color: #7dd3fc; }

.guide-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-card ol {
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.77rem;
  background: var(--surface-muted);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* Footer */
.footer {
  background: #0b111d;
  color: #94a3b8;
  padding: 26px 0;
  font-size: 0.82rem;
}

.footer strong {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Mobile Bottom Bar (hidden on desktop) */
.mobile-bottom-nav {
  display: none;
}

/* Modal Detail Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow-x: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.modal-banner {
  position: relative;
  min-height: 126px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
  color: #fff;
}

.modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 14, 24, 0.94) 0%, rgba(9, 14, 24, 0.38) 100%);
}

.modal-banner-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.modal-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-circle-btn:hover {
  background: rgba(15, 23, 42, 0.92);
}

.modal-circle-btn.saved {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
}

.modal-circle-btn.saved svg {
  fill: #fbbf24;
}

.modal-banner-content {
  position: relative;
  z-index: 2;
  padding-right: 100px;
}

.modal-cat-pill {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.modal-body {
  padding: 18px 22px 22px;
}

.meta-grid {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.meta-grid span {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-3);
}

.meta-grid strong {
  color: var(--ink);
  word-break: break-all;
}

.countdown-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface-muted);
}

.countdown-status {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 9px;
}

.progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  transition: width 0.3s ease;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  flex: 1;
  background: #0284c7;
  color: #fff;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-primary:disabled {
  background: var(--border-strong);
  color: var(--ink-3);
  cursor: not-allowed;
}

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

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

.install-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.install-box strong {
  color: var(--ink);
}

/* Related Mods inside Modal */
.modal-related {
  margin-bottom: 14px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.related-pill {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}

.related-pill:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.modal-gear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}

.shopee-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--shopee-soft);
  color: var(--shopee);
}

.modal-gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-gear-grid .gear-card {
  padding: 11px;
  gap: 8px;
}

.modal-gear-grid .gear-sub {
  display: none;
}

.empty-box {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-3);
}

/* Toast Notifications */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: toastIn 0.2s ease;
}

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

/* Responsive */
@media (max-width: 1020px) {
  .spotlight-shell {
    grid-template-columns: 1fr;
  }
  .spotlight-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .rail-thumb {
    width: 100%;
    height: 54px;
  }
  .mod-grid,
  .gear-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  body {
    padding-bottom: 66px;
  }
  .nav-menu .nav-link,
  .nav-cta,
  .brand-tag,
  .kbd-hint {
    display: none;
  }
  .spotlight-stage {
    min-height: 280px;
  }
  .spotlight-content {
    padding: 20px;
  }
  .spotlight-rail {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .spotlight-rail::-webkit-scrollbar {
    display: none;
  }
  .rail-item {
    min-width: 155px;
    flex: 0 0 auto;
  }
  .mod-grid,
  .gear-grid,
  .guide-grid,
  .modal-gear-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .mod-table th:nth-child(3),
  .mod-table td:nth-child(3) {
    display: none;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: 60px;
    background: var(--navbar-bg);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 6px;
  }
  .mb-item {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
  }
  .mb-item.active {
    color: var(--brand-dark);
  }
  .toast-host {
    bottom: 72px;
    right: 12px;
    left: 12px;
  }
}
