/* ──────────────────────────────────────────────
   RENVILL GAME — Global Design System
   ────────────────────────────────────────────── */
:root {
  /* Default: Dark Theme */
  --bg: #07090f;
  --bg-gradient: radial-gradient(circle at 80% 0%, #142965 0, transparent 28rem), #07090f;
  --panel: #11141e;
  --panel-soft: #171b27;
  --header-bg: rgba(7,9,15,.82);
  --text: #f7f8fc;
  --muted: #9ca5b9;
  --line: rgba(255,255,255,.10);
  --input-bg: #0d1018;
  --blue: #2677ff;
  --purple: #9a42ff;
  --green: #08bd8b;
  --danger: #ff5567;
  --gold: #f5a623;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Light Theme (Otomatis Aktif jika Perangkat Menggunakan Light Mode) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1f4f9;
    --bg-gradient: radial-gradient(circle at 80% 0%, #cce3ff 0, transparent 28rem), #f1f4f9;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --header-bg: rgba(255, 255, 255, 0.88);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(0, 0, 0, 0.10);
    --input-bg: #ffffff;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.06);
  }
}

/* Manual data-theme override support jika diubah via switch */
[data-theme="light"] {
  --bg: #f1f4f9;
  --bg-gradient: radial-gradient(circle at 80% 0%, #cce3ff 0, transparent 28rem), #f1f4f9;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.10);
  --input-bg: #ffffff;
  --card-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --bg: #07090f;
  --bg-gradient: radial-gradient(circle at 80% 0%, #142965 0, transparent 28rem), #07090f;
  --panel: #11141e;
  --panel-soft: #171b27;
  --header-bg: rgba(7,9,15,.82);
  --text: #f7f8fc;
  --muted: #9ca5b9;
  --line: rgba(255,255,255,.10);
  --input-bg: #0d1018;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  color-scheme: light dark;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}
a { color: inherit; }
img { display: block; }

/* ── HEADER ── */
.site-header {
  height: 76px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.8px;
  font-size: 18px;
}
.brand-logo { gap: 0; }
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  /* remove grey background from logo */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
  transition: transform .2s, filter .2s;
}
.logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(100,180,255,.35));
}
.footer-brand .logo-img { height: 56px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #398dff, #174ad0);
  box-shadow: 0 5px 18px #1e63da66;
  font-size: 19px;
}
.brand-accent { color: #74a7ff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links > a:not(.header-button) {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links > a:not(.header-button):hover { color: var(--text); }
.hello { color: var(--muted); }
.header-button {
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.header-button:hover { border-color: var(--blue); color: var(--blue); }
.header-button span { color: var(--blue); margin-left: 5px; }

/* ── MAIN / CONTAINER ── */
main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}
.container {
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 42px 0 66px;
  min-width: 0;
}
.landing-container { width: 100%; max-width: none; padding: 0; }

/* ── HERO ── */
.landing-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 70px 24px 80px;
  background:
    radial-gradient(ellipse at 50% 62%, #183a4f90, transparent 42%),
    radial-gradient(circle at 20% 50%, #0b693f80, transparent 30%),
    radial-gradient(circle at 78% 22%, #4251a980, transparent 34%);
}
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), var(--bg) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 35%, transparent 65%, rgba(0,0,0,.45));
}
.landing-hero > *:not(.hero-orb) { position: relative; z-index: 1; }
.hero-orb {
  position: absolute;
  filter: blur(8px);
  border-radius: 50%;
  opacity: .65;
}
.orb-one {
  height: 400px; width: 400px;
  background: #0052d0;
  top: -140px; right: 8%;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-two {
  width: 310px; height: 310px;
  background: #00a66a;
  bottom: -90px; left: 4%;
  animation: floatOrb 10s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}
.platform-rack {
  display: flex;
  gap: 14px;
  padding: 15px 22px;
  border: 1px solid #ffffff26;
  border-radius: 25px;
  background: #141b2aaf;
  box-shadow: 0 14px 40px #0007;
  margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}
.platform-rack span {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  font-size: 30px;
  background: linear-gradient(145deg, #176df0, #073e98);
  transition: transform .2s;
}
.platform-rack span:hover { transform: translateY(-4px) scale(1.08); }
.platform-rack span:nth-child(2) { background: linear-gradient(145deg, #41a7ff, #1675c6); }
.platform-rack span:nth-child(3) { background: linear-gradient(145deg, #f54d64, #bb1740); }
.eyebrow {
  font-weight: 800;
  letter-spacing: 3px;
  color: #8ab6ff;
  font-size: 12px;
  margin-bottom: 14px;
  animation: fadeUp .6s ease .1s both;
}
.landing-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: .91;
  letter-spacing: -4px;
  font-size: clamp(54px, 8vw, 100px);
  animation: fadeUp .6s ease .2s both;
}
.landing-hero h1 span {
  background: linear-gradient(90deg, var(--text), var(--blue) 55%, var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-description {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 25px auto 28px;
  animation: fadeUp .6s ease .3s both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeUp .6s ease .4s both;
}
.primary-cta, .secondary-cta {
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.primary-cta {
  background: #fff;
  color: #10131c;
  box-shadow: 0 10px 26px #0006;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px #0008; }
.primary-cta span { margin-left: 10px; }
.secondary-cta {
  background: #ffffff18;
  border: 1px solid #ffffff2d;
}
.secondary-cta:hover { background: #ffffff28; }

/* ── PROMO SECTION (homepage) ── */
.promo-section {
  padding: 0 24px;
  margin: 0 auto 0;
  max-width: 1220px;
  position: relative;
  z-index: 3;
}
.promo-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.8px;
}
.promo-section-title .badge-promo {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f5a623, #e8541e);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f5a62344;
  text-decoration: none;
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}
.promo-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #f5a623, #e8541e);
  color: #fff;
}
.promo-badge.free {
  background: linear-gradient(90deg, #08bd8b, #059c72);
}
.promo-card .game-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.promo-card .cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 22%, #f5a623, #14274a 46%, #0e111b);
}
.promo-card .game-info { padding: 12px; }

/* ── PLATFORM TABS (homepage) ── */
.platform-section {
  padding: 0 24px;
  max-width: 1220px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 3;
}
.platform-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.platform-tabs::-webkit-scrollbar { display: none; }
.platform-tab {
  flex: none;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.platform-tab.active,
.platform-tab:hover {
  background: #1a4388;
  border-color: #3c80f1;
  color: #fff;
}
.platform-panel { display: none; }
.platform-panel.active { display: block; }
.platform-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}
.platform-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.platform-section-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.6px;
}
.platform-section-head a {
  color: #91b9ff;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
.platform-section-head a:hover { color: #fff; }

/* tutorial label on platform game cards */
.game-tutorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(100,170,255,.12);
  border: 1px solid rgba(100,170,255,.25);
  color: #91c4ff;
  font-size: 11px;
  font-weight: 700;
}

/* ── SERVICE CARDS (homepage) ── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 310px));
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  margin: -50px auto 0;
  position: relative;
  z-index: 2;
}
.service-card {
  min-height: 175px;
  padding: 24px 20px;
  display: flex;
  gap: 17px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: transform .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card.blue:hover { border-color: #3381ff; }
.service-card.purple:hover { border-color: #a654ff; }
.service-card.green:hover { border-color: #10c995; }
.service-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 53px; height: 53px;
  border-radius: 15px;
  font-size: 27px;
  background: #0955cf;
  color: #fff;
}
.purple .service-icon { background: #7a25df; }
.green  .service-icon { background: #009d75; }
.service-card h2 { font-size: 20px; margin: 2px 0 8px; color: var(--text); }
.service-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.service-card small { display: block; color: var(--blue); margin-top: 18px; font-weight: 700; }
.service-card b { margin-left: 7px; color: var(--text); }

/* ── CATALOG HEAD ── */
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.catalog-head h1 {
  font: 800 clamp(30px, 4vw, 45px)/1 'Space Grotesk', sans-serif;
  letter-spacing: -2px;
}
.catalog-head p { color: var(--muted); margin-top: 9px; }
.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  position: relative;
}
.catalog-search-wrap .search-box {
  flex: 1;
  width: auto;
  position: relative;
}
.search-box { position: relative; width: min(330px, 100%); }
.search-box input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--input-bg);
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus {
  border-color: var(--blue);
}
.search-box::before {
  content: '⌕';
  font-size: 24px;
  position: absolute;
  left: 14px; top: 6px;
  color: var(--muted);
  pointer-events: none;
}
.catalog-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  color: #25d366 !important;
  text-decoration: none;
  border-radius: 12px;
  transition: all .2s;
  flex-shrink: 0;
}
.catalog-request-btn:hover {
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* ── CATEGORY MENU ── */
.category-menu {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 27px;
  scrollbar-width: none;
}
.category-menu::-webkit-scrollbar { display: none; }
.category-pill {
  white-space: nowrap;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: var(--panel);
  transition: all .2s;
}
.category-pill.active,
.category-pill:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

/* ── CATALOG META ── */
.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 14px;
}
.catalog-meta b { color: var(--text); }

/* ── GAME GRID & CARDS ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 17px;
}
.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-5px); border-color: #4f8fff; }

/* Cover: persegi panjang 3:4 */
.game-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(145deg, #273047, #121621);
}
.cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 22%, #407dff, #14274a 46%, #0e111b);
}
.cover-placeholder span {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border: 1px solid #ffffff36;
  border-radius: 20px;
  background: #ffffff14;
  font-size: 31px;
  box-shadow: 0 10px 28px #0005;
}
.game-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.game-platform {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #79aaff;
  font-weight: 800;
  margin-bottom: 7px;
}
.game-title {
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
}
.game-price {
  color: var(--text);
  font-weight: 800;
  margin-top: auto;
  font-size: 14px;
}
.game-price::before { content: 'Rp '; color: #6da4ff; }

/* ── CATALOG PROMO BANNER ── */
.catalog-promo {
  min-height: 245px;
  border: 1px solid #397fff66;
  border-radius: 20px;
  padding: 30px 34px;
  margin: 0 0 32px;
  background:
    radial-gradient(circle at 75% 20%, #8755ed80, transparent 13rem),
    linear-gradient(110deg, #102a5a, #0e1425 62%);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}
.promo-kicker { color: #92baff; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.catalog-promo h2 {
  font: 800 31px/1.1 'Space Grotesk', sans-serif;
  margin: 11px 0;
  letter-spacing: -1.5px;
}
.catalog-promo h2 em { font-style: normal; color: #8ab5ff; }
.catalog-promo p { color: #bdc6d9; font-size: 13px; max-width: 465px; line-height: 1.55; }
.promo-art {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(-5deg);
  color: #dfeaff;
}
.promo-art span {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 25px;
  background: #236ff1;
  font-size: 47px;
  box-shadow: 0 12px 30px #0006;
}
.promo-art b { font: 800 23px/1 'Space Grotesk', sans-serif; }

/* ── GENRE & LATEST (catalog page) ── */
.genre-section, .latest-section { margin: 0 0 35px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-heading h2 { font: 800 22px 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
.section-heading span { color: var(--muted); font-size: 13px; }
.section-heading a { color: #91b9ff; font-size: 13px; text-decoration: none; font-weight: 700; }
.genre-list { display: flex; gap: 9px; flex-wrap: wrap; }
.genre-list button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.genre-list button.active,
.genre-list button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.latest-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  text-decoration: none;
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.latest-card:hover { border-color: #5593ff; box-shadow: var(--card-shadow); }
.latest-cover {
  display: grid;
  place-items: center;
  width: 43px; height: 43px;
  flex: none;
  background: #1c58bd;
  border-radius: 11px;
  font-size: 21px;
}
.latest-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--text); }
.latest-card small { display: block; color: var(--blue); font-size: 11px; margin-top: 5px; font-weight: 700; }

/* ── EMPTY STATE ── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}
.empty a { color: #8db7ff; }

/* ── FORMS ── */
.detail-card, .form-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
}
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, background-color .2s, color .2s;
}
input[type="radio"], input[type="checkbox"] {
  width: auto;
  padding: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ── BUTTONS ── */
.btn {
  padding: 11px 16px;
  background: var(--blue);
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: filter .2s, transform .15s;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: var(--danger); }
.btn-gold { background: linear-gradient(90deg, #f5a623, #e8541e); }
.btn-green { background: var(--green); }

/* ── TABLES (admin) ── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; }

/* ── ALERTS ── */
.alert { padding: 13px; border-radius: 10px; margin-bottom: 16px; }
.alert-success { background: #0a6b4a44; color: #71edbd; border: 1px solid #20b77b; }
.alert-danger  { background: #9f263d44; color: #ff9aa8; border: 1px solid #ef4c68; }

/* ── GAME DETAIL PAGE ── */
.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.detail-hero > div {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.detail-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
}
.detail-cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 22%, #407dff, #14274a 46%, #0e111b);
  border-radius: 14px;
  font-size: 60px;
}
.detail-meta-platform {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: #1a3e7a;
  color: #91baff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: #78b8ff;
  margin-bottom: 24px;
}
.detail-price::before { content: 'Rp '; color: #a3c8ff; font-size: 18px; }
.detail-desc-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.detail-desc {
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 24px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.detail-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 12px;
  background: #25D366;
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: filter .2s, transform .15s;
}
.btn-wa:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ── MODAL (edit game / crop) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -.8px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }

/* Cropper area */
.crop-wrap {
  max-height: 460px;
  overflow: hidden;
  border-radius: 12px;
  background: #0d1018;
  margin-bottom: 16px;
}
.crop-wrap img { max-width: 100%; display: block; }
.crop-hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* ── CHECKBOX TOGGLE ── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.toggle-row label { margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }

/* ── ADMIN DASHBOARD ── */
.admin-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.6px;
  margin-bottom: 18px;
  color: #91b9ff;
}
.admin-cover-thumb {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.admin-cover-placeholder {
  width: 52px;
  height: 70px;
  border-radius: 6px;
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
}
.badge-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-beli    { background: #1a4388; color: #91baff; }
.badge-sewa    { background: #3a1a6a; color: #c4a0ff; }
.badge-digital { background: #0a5c3c; color: #71edbd; }
.badge-promo-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(90deg, #f5a623, #e8541e);
  color: #fff;
  margin-left: 6px;
}
.badge-free-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(90deg, #08bd8b, #059c72);
  color: #fff;
  margin-left: 6px;
}

/* ── TERMS PAGE ── */
.terms-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.terms-header { margin-bottom: 40px; }
.terms-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}
.terms-header h1 span { color: #78a8ff; }
.terms-updated {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
}
.terms-lead {
  color: #c2c9d7;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: var(--panel);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
}
.terms-section { margin-bottom: 36px; }
.terms-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #a0c0ff;
}
.terms-section p,
.terms-section li {
  color: #c2c9d7;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}
.terms-section ul, .terms-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.terms-section li { margin-bottom: 6px; }
.terms-section strong { color: var(--text); }
.terms-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.terms-contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.terms-contact-card .contact-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.terms-contact-card .contact-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.terms-contact-card a {
  color: #78a8ff;
  text-decoration: none;
}
.btn-wa-terms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  font-size: 14px;
  transition: filter .2s;
}
.btn-wa-terms:hover { filter: brightness(1.1); }

/* ── FOOTER ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 40px 24px;
}
.footer-content {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-brand { margin-bottom: 14px; }
.footer-col p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 390px; }
.footer-col h3 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.footer-col a { color: var(--blue); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-hours { margin-top: 10px; }
.copyright { margin-top: 14px; font-size: 12px !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-links { gap: 10px; font-size: 12px; }
  .nav-links > a:not(.header-button), .hello { display: none; }
  .header-button { padding: 8px 11px; }
  .landing-hero { min-height: 515px; padding: 48px 18px 90px; }
  .platform-rack { margin-bottom: 26px; }
  .platform-rack span { width: 46px; height: 46px; font-size: 23px; }
  .landing-hero h1 { letter-spacing: -2.7px; }
  .hero-description { font-size: 14px; }
  .service-cards { grid-template-columns: 1fr; margin: -40px 16px 0; padding: 0; }
  .catalog-head { display: block; }
  .catalog-search-wrap { width: 100%; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .catalog-search-wrap .search-box { width: 100%; flex: 1 1 100%; }
  .catalog-request-btn { width: 100%; justify-content: center; padding: 10px 14px; }
  .search-box { margin-top: 8px; width: 100%; }
  .container { width: min(100% - 24px, 1180px); padding: 20px 0 36px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .game-info { padding: 11px; }
  .game-title { font-size: 13px; }
  .footer-content { grid-template-columns: 1fr; gap: 25px; }
  .site-footer { padding: 32px 20px; }
  .detail-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 16px 14px !important;
    gap: 18px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }
  .detail-cover, .detail-cover-placeholder { max-width: 230px; margin: 0 auto; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-container { padding: 32px 0 60px; }
}

/* ═══════════════════════════════════════════════════════════════
   3 METODE PEMBELIAN: WHATSAPP, WEB QRIS, & LYNK.ID
   ═══════════════════════════════════════════════════════════════ */
.purchase-options-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.purchase-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.purchase-options-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.purchase-options-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  font-weight: 700;
}
.purchase-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .purchase-options-grid {
    grid-template-columns: 1fr;
  }
}
.purchase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 115px;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
}
.purchase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
/* WhatsApp Card */
.purchase-card.card-wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.08) 0%, rgba(17, 20, 30, 0.95) 100%);
}
.purchase-card.card-wa:hover {
  border-color: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}
.purchase-card.card-wa .p-pill {
  background: #25d366;
  color: #032b13;
}
.purchase-card.card-wa .p-action {
  color: #25d366;
}
/* Web QRIS Card */
.purchase-card.card-web {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(17, 20, 30, 0.95) 100%);
}
.purchase-card.card-web:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}
.purchase-card.card-web .p-pill {
  background: #6366f1;
  color: #ffffff;
}
.purchase-card.card-web .p-action {
  color: #818cf8;
}
/* Lynk.id Card */
.purchase-card.card-lynk {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08) 0%, rgba(17, 20, 30, 0.95) 100%);
}
.purchase-card.card-lynk:hover {
  border-color: #0ea5e9;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}
.purchase-card.card-lynk .p-pill {
  background: #0ea5e9;
  color: #03293d;
}
.purchase-card.card-lynk .p-action {
  color: #38bdf8;
}
.p-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
  align-self: flex-start;
}
.p-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.p-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.p-action {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═════════ QRIS PAYMENT MODAL ═════════ */
.qris-modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  max-width: 540px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative;
  animation: slideUp .25s ease;
}
.qris-img-wrap {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin: 12px 0;
  text-align: center;
}
.qris-img-wrap img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.order-status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.order-status-berhasil {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.order-status-dibatalkan {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ═════════ MODAL OVERLAY Z-INDEX ELEVATION ═════════ */
#webPaymentModal {
  z-index: 100010 !important;
}
#authRequiredModal {
  z-index: 100020 !important;
}

/* ═════════ PURCHASE OPTIONS GRID MODES ═════════ */
.purchase-options-grid.grid-2-col {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 680px) {
  .purchase-options-grid.grid-2-col {
    grid-template-columns: 1fr !important;
  }
}

/* ═════════ AUTH REQUIRED MODAL STYLES ═════════ */
.arm-modal-box {
  background: linear-gradient(160deg, #0d1527 0%, #080d1a 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  padding: 30px;
  max-width: 480px;
  width: 95%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.2);
  animation: slideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.arm-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.05) 70%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}
.arm-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.arm-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}
.arm-benefits {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 20px;
}
.arm-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.arm-benefit-item:last-child {
  margin-bottom: 0;
}
.arm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-arm-login {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}
.btn-arm-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}
.btn-arm-register {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
}
.btn-arm-register:hover {
  background: rgba(255, 255, 255, 0.12);
}
.arm-wa-link {
  font-size: 12px;
  color: #71edbd;
  text-decoration: none;
  font-weight: 700;
  margin-top: 14px;
  display: inline-block;
  transition: opacity .15s;
}
.arm-wa-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ═════════ MOBILE BOTTOM NAVIGATION BAR ═════════ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    padding: 6px 0;
    transition: color .2s, transform .15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-link .nav-icon {
    font-size: 18px;
    line-height: 1;
  }
  .mobile-nav-link.active {
    color: var(--blue);
  }
  .mobile-nav-link:active {
    transform: scale(0.92);
  }
  body {
    padding-bottom: 64px !important;
  }
}

/* ═════════ LIGHT MODE ENHANCEMENTS FOR VISIBILITY ═════════ */
[data-theme="light"] .purchase-card.card-wa {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.12) 0%, #ffffff 100%);
  border-color: rgba(37, 211, 102, 0.4);
}
[data-theme="light"] .purchase-card.card-web {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, #ffffff 100%);
  border-color: rgba(99, 102, 241, 0.4);
}
[data-theme="light"] .purchase-card.card-web .p-action {
  color: #4f46e5;
}
[data-theme="light"] .purchase-card.card-lynk {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.12) 0%, #ffffff 100%);
  border-color: rgba(14, 165, 233, 0.4);
}
[data-theme="light"] .purchase-card.card-lynk .p-action {
  color: #0284c7;
}

[data-theme="light"] .badge-beli    { background: rgba(37,99,235,0.12); color: #1d4ed8; }
[data-theme="light"] .badge-sewa    { background: rgba(147,51,234,0.12); color: #7e22ce; }
[data-theme="light"] .badge-digital { background: rgba(16,185,129,0.12); color: #047857; }

[data-theme="light"] .terms-lead {
  color: var(--text);
  background: #ffffff;
}
[data-theme="light"] .terms-section li {
  color: #334155;
}
[data-theme="light"] .platform-section-head a {
  color: #2563eb;
}
[data-theme="light"] .game-tutorial-badge {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.25);
  color: #1d4ed8;
}

[data-theme="light"] .auth-customer-badge {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #1e1b4b !important;
}
[data-theme="light"] .auth-customer-badge strong {
  color: #0f172a !important;
}
[data-theme="light"] .auth-customer-badge span {
  color: #2563eb !important;
}

/* ═════════ HIGHLIGHT SPESIFIKASI GAME (PC: UKURAN, CPU, RAM, GPU | CONSOLE: UKURAN) ═════════ */
.gdm-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin: 14px 0 18px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.gdm-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.gdm-spec-pill:hover {
  transform: translateY(-2px);
}
.gdm-spec-pill > span:first-child {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.gdm-spec-pill > div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.gdm-spec-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  line-height: 1.1;
  margin-bottom: 2px;
}
.gdm-spec-val {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 1. UKURAN GAME (Red/Rose Highlight) */
.gdm-spec-pill.spec-pill-size {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.3));
  border-color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}
.spec-pill-size .gdm-spec-label { color: #fca5a5; }

/* 2. PROCESSOR (CPU) (Blue Highlight) */
.gdm-spec-pill.spec-pill-cpu {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(29, 78, 216, 0.3));
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}
.spec-pill-cpu .gdm-spec-label { color: #93c5fd; }

/* 3. MEMORY (RAM) (Emerald/Green Highlight) */
.gdm-spec-pill.spec-pill-ram {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border-color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
.spec-pill-ram .gdm-spec-label { color: #6ee7b7; }

/* 4. GRAPHICS (GPU) (Purple/Violet Highlight) */
.gdm-spec-pill.spec-pill-gpu {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.3));
  border-color: #8b5cf6;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}
.spec-pill-gpu .gdm-spec-label { color: #c4b5fd; }

/* 5. TANGGAL RILIS (Neutral Pill) */
.gdm-spec-pill.spec-pill-date {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.spec-pill-date .gdm-spec-label { color: var(--muted); }
.spec-pill-date .gdm-spec-val { color: var(--text); }

/* ═══ LIGHT MODE STYLING UNTUK SPESIFIKASI ═══ */
[data-theme="light"] .gdm-spec-pill.spec-pill-size {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}
[data-theme="light"] .spec-pill-size .gdm-spec-label { color: #b91c1c; }
[data-theme="light"] .spec-pill-size .gdm-spec-val { color: #991b1b; }

[data-theme="light"] .gdm-spec-pill.spec-pill-cpu {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
[data-theme="light"] .spec-pill-cpu .gdm-spec-label { color: #1d4ed8; }
[data-theme="light"] .spec-pill-cpu .gdm-spec-val { color: #1e3a8a; }

[data-theme="light"] .gdm-spec-pill.spec-pill-ram {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
[data-theme="light"] .spec-pill-ram .gdm-spec-label { color: #047857; }
[data-theme="light"] .spec-pill-ram .gdm-spec-val { color: #064e3b; }

[data-theme="light"] .gdm-spec-pill.spec-pill-gpu {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}
[data-theme="light"] .spec-pill-gpu .gdm-spec-label { color: #6d28d9; }
[data-theme="light"] .spec-pill-gpu .gdm-spec-val { color: #581c87; }

[data-theme="light"] .gdm-spec-pill.spec-pill-date {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .spec-pill-date .gdm-spec-label { color: #64748b; }
[data-theme="light"] .spec-pill-date .gdm-spec-val { color: #0f172a; }

@media (max-width: 600px) {
  .gdm-specs-strip {
    gap: 8px;
    width: 100%;
  }
  .gdm-spec-pill {
    padding: 8px 12px;
    min-width: 0;
    flex: 1 1 100% !important;
    width: 100% !important;
    border-radius: 10px;
  }
  .gdm-spec-pill > span:first-child {
    font-size: 16px;
  }
  .gdm-spec-val {
    font-size: 12.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ═════════ PC COMPATIBILITY & HARDWARE CHECKER ═════════ */
.pc-checker-box {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.75) 0%, rgba(8, 13, 26, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.pc-checker-top {
  margin-bottom: 14px;
  min-width: 0;
}
.pc-checker-title-area {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.pc-checker-title-area > div {
  min-width: 0;
  flex: 1;
}
.pc-checker-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.pc-checker-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.pc-specs-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
}
.pc-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.pc-mode-tag.self {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.pc-mode-tag.friend {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.pc-mode-tag.mobile {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-reset-friend {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s;
}
.btn-reset-friend:hover {
  background: #ef4444;
  color: #fff;
}
.pc-active-spec-pill {
  color: var(--muted);
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
.pc-active-spec-pill strong {
  color: #e2e8f0;
}

/* ═══ MOBILE PC CHECKER NOTICE & BANNERS ═══ */
.pc-mobile-notice-box {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.pc-mobile-notice-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
}

.mobile-notice-badge-row {
  margin-bottom: 10px;
}

.mobile-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-notice-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.mobile-notice-quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.mobile-notice-quote .quote-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-notice-quote .quote-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fef3c7;
  font-weight: 700;
}

.mobile-notice-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 14px 0;
}

.mobile-manual-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px dashed rgba(139, 92, 246, 0.45);
  border-radius: 12px;
  padding: 13px 15px;
  box-sizing: border-box;
}

.mobile-manual-callout .callout-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-manual-callout .callout-body {
  flex: 1;
  min-width: 0;
}

.mobile-manual-callout h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #c4b5fd;
  margin: 0 0 4px 0;
}

.mobile-manual-callout p {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0 0 10px 0;
}

.btn-open-manual-mobile {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-open-manual-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.55);
}

.pc-checker-actions.mobile-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-pc-action.mobile-disabled {
  opacity: 0.85;
}

/* BANNER JIKA USER DI HP MEMILIH SPEK MANUAL */
.pc-mobile-tested-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(59, 130, 246, 0.16) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.pc-mobile-tested-banner .banner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.3);
  color: #d8b4fe;
  width: fit-content;
}

.pc-mobile-tested-banner .banner-content strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 3px;
}

.pc-mobile-tested-banner .banner-content p {
  font-size: 11.5px;
  line-height: 1.4;
  color: #cbd5e1;
  margin: 0;
}

.btn-reset-mobile-manual {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-mobile-manual:hover {
  background: #ef4444;
  color: #fff;
}

/* VERDICT CARD */
.pc-verdict-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.pc-verdict-card.verdict-pass {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.pc-verdict-card.verdict-warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}
.pc-verdict-card.verdict-fail {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.25) 100%);
  border-color: #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}
.verdict-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}
.verdict-text-area {
  min-width: 0;
  flex: 1;
}
.verdict-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 3px 0;
  color: #fff;
  word-break: break-word;
}
.verdict-desc {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
  color: #cbd5e1;
  word-break: break-word;
}

/* COMPONENT GRID */
.pc-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.pc-comp-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pc-comp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  gap: 4px;
  min-width: 0;
}
.pc-comp-head > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.comp-badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.comp-badge.pass { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.comp-badge.warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.comp-badge.fail { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.pc-comp-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  min-width: 0;
}
.pc-comp-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

/* 3 ACTIONS */
.pc-checker-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.btn-pc-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  text-align: left;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}
.btn-pc-action .icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.btn-pc-action .text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.btn-pc-action .text strong {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.25;
}
.btn-pc-action .text small {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.2;
}
.btn-pc-action.auto {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}
.btn-pc-action.auto:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  transform: translateY(-2px);
}
.btn-pc-action.scanner {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.btn-pc-action.scanner:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  transform: translateY(-2px);
}
.btn-pc-action.edit {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}
.btn-pc-action.edit:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

/* ═══ CUSTOM SPEC MODAL (Z-INDEX TERTINGGI 200050: SELALU DI DEPAN DETAIL GAME) ═══ */
#renvillCustomSpecModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200050 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  padding: 16px;
  box-sizing: border-box;
}
#renvillCustomSpecModal.active {
  display: flex !important;
}

.custom-spec-box {
  background: linear-gradient(160deg, #0e172a 0%, #070d19 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 580px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 50px rgba(139, 92, 246, 0.25);
  animation: slideUp 0.25s ease;
  position: relative;
  z-index: 200051 !important;
}

.cascade-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cascade-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}
.cascade-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

@media (max-width: 600px) {
  .cascade-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.custom-spec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.custom-spec-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 0;
}
.badge-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c4b5fd;
}
.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.btn-close-modal:hover { background: #ef4444; color: #fff; }
.custom-spec-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.form-group-spec {
  margin-bottom: 16px;
}
.form-group-spec label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.form-group-spec input,
.form-group-spec select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
}
.form-group-spec input:focus,
.form-group-spec select:focus {
  outline: none;
  border-color: #8b5cf6;
}
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.quick-chips button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-chips button:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-color: #8b5cf6;
}
.save-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0 12px;
}
.save-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  text-align: left;
  user-select: none;
  position: relative;
}
.save-mode-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-1px);
}
.save-mode-card.active {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: #8b5cf6;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
}
.save-mode-card input[type="radio"] {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  padding: 0 !important;
  margin: 2px 0 0 0 !important;
  accent-color: #8b5cf6;
  cursor: pointer;
  flex-shrink: 0;
}
.save-mode-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.save-mode-title {
  display: block;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.save-mode-desc {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.save-mode-card.active .save-mode-desc {
  color: #cbd5e1;
}
@media (max-width: 560px) {
  .save-mode-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .save-mode-card {
    padding: 11px 12px;
  }
}
.custom-spec-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #cbd5e1;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.btn-apply {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.btn-apply:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ═══ LIGHT MODE SUPPORT ═══ */
[data-theme="light"] .pc-checker-box {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .pc-checker-title { color: #0f172a; }
[data-theme="light"] .pc-active-spec-pill strong { color: #1e293b; }
[data-theme="light"] .pc-comp-card { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .pc-comp-val { color: #0f172a; }
[data-theme="light"] .pc-comp-note { color: #64748b; }
[data-theme="light"] .btn-pc-action .text strong { color: #0f172a; }
[data-theme="light"] .btn-pc-action.auto { background: #eff6ff; border-color: #bfdbfe; }
[data-theme="light"] .btn-pc-action.scanner { background: #f0fdf4; border-color: #bbf7d0; }
[data-theme="light"] .btn-pc-action.edit { background: #faf5ff; border-color: #e9d5ff; }
[data-theme="light"] .custom-spec-box { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
[data-theme="light"] .custom-spec-header h3 { color: #0f172a; }
[data-theme="light"] .form-group-spec label { color: #0f172a; }
[data-theme="light"] .form-group-spec input,
[data-theme="light"] .form-group-spec select { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
[data-theme="light"] .save-mode-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .save-mode-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
[data-theme="light"] .save-mode-card.active {
  background: linear-gradient(145deg, #f5f3ff 0%, #e0e7ff 100%);
  border-color: #7c3aed;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.15);
}
[data-theme="light"] .save-mode-title {
  color: #0f172a;
}
[data-theme="light"] .save-mode-desc {
  color: #64748b;
}
[data-theme="light"] .save-mode-card.active .save-mode-desc {
  color: #4338ca;
}
[data-theme="light"] #renvillCustomSpecModal {
  background: rgba(15, 23, 42, 0.65) !important;
}
[data-theme="light"] .cascade-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .pc-verdict-card.verdict-pass .verdict-headline { color: #065f46; }
[data-theme="light"] .pc-verdict-card.verdict-pass .verdict-desc { color: #047857; }
[data-theme="light"] .pc-verdict-card.verdict-warn .verdict-headline { color: #92400e; }
[data-theme="light"] .pc-verdict-card.verdict-warn .verdict-desc { color: #b45309; }
[data-theme="light"] .pc-verdict-card.verdict-fail .verdict-headline { color: #991b1b; }
[data-theme="light"] .pc-verdict-card.verdict-fail .verdict-desc { color: #b91c1c; }
[data-theme="light"] .pc-mobile-notice-box {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}
[data-theme="light"] .mobile-notice-headline {
  color: #78350f;
}
[data-theme="light"] .mobile-notice-quote {
  background: #fef3c7;
  border-left-color: #d97706;
}
[data-theme="light"] .mobile-notice-quote .quote-text {
  color: #92400e;
}
[data-theme="light"] .mobile-notice-desc {
  color: #4b5563;
}
[data-theme="light"] .mobile-manual-callout {
  background: #f5f3ff;
  border-color: #c4b5fd;
}
[data-theme="light"] .mobile-manual-callout h6 {
  color: #5b21b6;
}
[data-theme="light"] .mobile-manual-callout p {
  color: #6b7280;
}
[data-theme="light"] .pc-mobile-tested-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  border-color: #c4b5fd;
}
[data-theme="light"] .pc-mobile-tested-banner .banner-content strong {
  color: #1e1b4b;
}
[data-theme="light"] .pc-mobile-tested-banner .banner-content p {
  color: #4b5563;
}

@media (max-width: 768px) {
  .pc-comp-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pc-checker-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pc-checker-box {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-top: 18px !important;
  }
  .pc-mobile-notice-box {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
  .mobile-notice-headline {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .mobile-notice-quote {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .mobile-notice-quote .quote-text {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .mobile-notice-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .mobile-manual-callout {
    flex-direction: column !important;
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .mobile-manual-callout p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
  }
  .btn-open-manual-mobile {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    text-align: center !important;
  }
  .btn-pc-action {
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   PWA (PROGRESSIVE WEB APP) STYLES
   ══════════════════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  background: rgba(17, 20, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 99999;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

[data-theme="light"] .pwa-install-banner {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(38, 119, 255, 0.35);
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.pwa-banner-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: linear-gradient(135deg, #2677ff, #9a42ff);
  color: #ffffff !important;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(38, 119, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.pwa-btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(38, 119, 255, 0.55);
}

.pwa-btn-install:active {
  transform: scale(0.97);
}

.pwa-btn-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.pwa-btn-close:hover {
  background: var(--line);
  color: var(--text);
}

/* Penyesuaian banner di HP agar tidak tertutup Bottom Nav Bar */
@media (max-width: 768px) {
  .pwa-install-banner {
    bottom: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .pwa-banner-icon {
    width: 42px;
    height: 42px;
  }
  .pwa-banner-text strong {
    font-size: 13px;
  }
  .pwa-banner-text span {
    font-size: 11px;
  }
  .pwa-btn-install {
    padding: 7px 12px;
    font-size: 11px;
  }
}

/* Modal Petunjuk iOS Safari */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
  box-sizing: border-box;
}

.pwa-modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: var(--text);
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pwa-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.pwa-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.pwa-modal-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px;
}

.pwa-modal-body ol {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 20px;
  margin: 0 0 16px;
}

.pwa-modal-body ol li {
  margin-bottom: 8px;
}

.pwa-modal-footer {
  margin-top: 18px;
}

/* PWA Toast Notification */
.pwa-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #08bd8b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(8, 189, 139, 0.4);
  z-index: 100001;
  animation: pwaSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   KATALOG BANNER SLIDER — FULL RESPONSIVE & ANTI-CLIPPING
   ══════════════════════════════════════════════════════════════════ */
.catalog-slider-wrapper {
  position: relative;
  margin-bottom: 28px;
  width: 100%;
}
.catalog-slider-track {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  min-height: 220px;
  background: var(--panel);
}
.catalog-slide-item {
  min-height: 220px;
  box-sizing: border-box;
  padding: 24px 36px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  animation: fadeInSlide .4s ease forwards;
  color: #ffffff;
}
.catalog-slide-info {
  flex: 1;
  min-width: 0;
  z-index: 2;
}
.catalog-slide-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 8px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.catalog-slide-info p {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  word-break: normal;
  overflow-wrap: break-word;
}
.catalog-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.catalog-promo-art {
  align-self: center;
  transform: rotate(-3deg);
  z-index: 2;
  flex-shrink: 0;
}
.catalog-promo-art img {
  width: 95px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.promo-art-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: background .2s, transform .2s;
}
.slider-arrow:hover {
  background: rgba(38, 119, 255, 0.8);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all .25s ease;
}
.slider-dot.active {
  width: 22px;
  background: #2677ff;
}

/* RESPONSIVE BANNER PADA HP / MOBILE (TIDAK TERPOTONG) */
@media (max-width: 768px) {
  .catalog-slider-track {
    min-height: auto;
    border-radius: 16px;
  }
  .catalog-slide-item {
    min-height: auto;
    padding: 18px 36px 28px;
    gap: 14px;
    align-items: center;
  }
  .catalog-slide-info h2 {
    font-size: 18px;
    line-height: 1.25;
    margin: 4px 0 6px;
    letter-spacing: -0.4px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .catalog-slide-info p {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .catalog-slide-btn {
    padding: 7px 14px;
    font-size: 11px;
  }
  .catalog-promo-art {
    display: none;
  }
  .slider-arrow {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .slider-prev { left: 6px; }
  .slider-next { right: 6px; }
  .slider-dots { bottom: 6px; }
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL STICKY HEADER SEARCH & LIVE INSTANT AUTOCOMPLETE
   ══════════════════════════════════════════════════════════════════ */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search-wrap {
  display: none !important;
}
.header-search-wrap.scrolled-visible {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
  position: relative;
  animation: fadeInHeaderSearch .2s ease forwards;
}
@keyframes fadeInHeaderSearch {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .header-search-wrap.scrolled-visible {
    max-width: 280px;
    margin: 0 8px;
  }
  .nav-links {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .header-search-wrap,
  .header-search-wrap.scrolled-visible {
    display: none !important;
  }
}
.header-search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  font-size: 14px;
  opacity: 0.6;
  z-index: 2;
}
.header-search-input {
  width: 100%;
  height: 42px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 34px 0 40px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all .2s ease;
  box-sizing: border-box;
}
.header-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 119, 255, 0.22);
  background: var(--panel);
}
.header-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search-clear:hover {
  color: var(--text);
}

.header-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366 !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s ease;
}
.header-request-btn:hover {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* ── DROPDOWN HASIL PENCARIAN KILAT (AUTOCOMPLETE SUGGESTIONS) ── */
.quick-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  z-index: 9999;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: dropDownScale .18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-theme="light"] .quick-search-dropdown {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
@keyframes dropDownScale {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.quick-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-transform: uppercase;
}
.quick-count-badge {
  background: rgba(38, 119, 255, 0.2);
  color: #60a5fa;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.quick-dropdown-list {
  max-height: 410px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quick-dropdown-list::-webkit-scrollbar {
  width: 5px;
}
.quick-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

/* Baris Item Suggestion */
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background .15s ease;
  cursor: pointer;
}
.suggest-item:hover, .suggest-item.highlighted {
  background: var(--panel-soft);
}
[data-theme="light"] .suggest-item:hover, [data-theme="light"] .suggest-item.highlighted {
  background: #f1f5f9;
}
.suggest-cover-wrap {
  width: 38px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.suggest-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.suggest-cover-placeholder {
  font-size: 18px;
}
.suggest-info {
  flex: 1;
  min-width: 0;
}
.suggest-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.suggest-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.suggest-title mark {
  background: transparent;
  color: #38bdf8;
  font-weight: 900;
  text-decoration: underline;
}

/* ── PENEKANAN WARNA PLATFORM (KONTRAS TINGGI AGAR TIDAK SALAH PILIH) ── */
.plat-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.plat-pc {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}
.plat-ps5 {
  background: #02235c;
  color: #bfdbfe;
  border: 1px solid #60a5fa;
}
.plat-ps4 {
  background: #0f172a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}
.plat-ps3 {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #ef4444;
}
.plat-ps2 {
  background: #042f2e;
  color: #99f6e4;
  border: 1px solid #14b8a6;
}
.plat-switch {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #f87171;
}

.suggest-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.suggest-price {
  font-weight: 800;
  color: var(--green);
}
.suggest-promo-tag {
  background: #ea580c;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}
.suggest-type {
  color: var(--muted);
  font-size: 11px;
}
.suggest-arrow {
  color: var(--muted);
  font-size: 16px;
  margin-left: 4px;
}

/* Footer & Empty Dropdown */
.quick-dropdown-footer {
  padding: 11px 16px;
  background: rgba(38, 119, 255, 0.08);
  border-top: 1px solid var(--line);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
}
.quick-dropdown-footer:hover {
  background: rgba(38, 119, 255, 0.18);
  color: #93c5fd;
}
.dropdown-empty {
  padding: 24px 18px;
  text-align: center;
}
.dropdown-empty span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.dropdown-empty-req-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* ── STICKY BAR PENCARIAN & REQUEST KHUSUS MOBILE (HP) — FLUSH DOCKED AT TOP: 0 ── */
.mobile-sticky-search {
  display: none !important;
}
@media (min-width: 901px) {
  .mobile-sticky-search,
  .mobile-sticky-search.scrolled-visible {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .mobile-sticky-search.scrolled-visible {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0 !important; /* MENTOK KE PALING ATAS LAYAR! */
    left: 0;
    right: 0;
    height: 56px;
    z-index: 9999;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0 12px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    animation: slideDownMobileSearch .22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}
@media (max-width: 720px) {
  .mobile-sticky-search.scrolled-visible {
    top: 0 !important;
    height: 54px;
    padding: 0 10px;
    gap: 6px;
  }
}
[data-theme="light"] .mobile-sticky-search.scrolled-visible {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
@keyframes slideDownMobileSearch {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-sticky-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.mobile-sticky-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform .15s;
}
.mobile-sticky-logo-img:active {
  transform: scale(0.95);
}

.mobile-search-form {
  position: relative;
  flex: 1;
  min-width: 0;
}
.mobile-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}
.mobile-search-input {
  width: 100%;
  height: 38px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 30px 0 32px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s;
}
.mobile-search-input:focus {
  border-color: var(--blue);
}
[data-theme="light"] .mobile-search-input {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}
.mobile-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 4px;
  cursor: pointer;
}
.mobile-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 9px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366 !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.mobile-request-btn:hover {
  background: #25d366;
  color: #fff !important;
}
.mobile-theme-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all .2s;
}
.mobile-theme-btn:hover {
  background: var(--panel-soft);
  border-color: var(--blue);
}
[data-theme="light"] .mobile-theme-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .mobile-req-text {
    display: none;
  }
  .mobile-request-btn {
    padding: 0 8px;
  }
}
@media (max-width: 720px) {
  .mobile-search-form .quick-search-dropdown {
    position: fixed;
    top: 54px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 70px);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   STEAM-STYLE GENRE SYSTEM & MODAL PICKER (RENVILLWEB)
   ═══════════════════════════════════════════════════════════════════ */

/* 1. Tombol Genre Lebih Banyak di Katalog Beli */
.btn-more-genre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.18)) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  color: #c4b5fd !important;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.15);
}
.btn-more-genre:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(124, 58, 237, 0.4)) !important;
  border-color: #a78bfa !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}
.btn-more-genre .arrow-indicator {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.btn-more-genre:hover .arrow-indicator {
  transform: translateY(1px);
}

/* 2. Dynamic Active Custom Genre Pill */
.genre-custom-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  animation: popInCustomPill 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popInCustomPill {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.genre-custom-active-pill .pill-dot {
  color: #93c5fd;
  font-size: 10px;
}
.genre-custom-active-pill .pill-remove {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-left: 4px;
  transition: background 0.2s, transform 0.2s;
}
.genre-custom-active-pill .pill-remove:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.2);
}

/* 3. Steam-style Tag Pills */
.steam-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.steam-tag-pill:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.steam-tag-plus {
  padding: 4px 8px;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}
.steam-tag-plus:hover {
  background: rgba(38, 119, 255, 0.35);
  border-color: #3b82f6;
  color: #ffffff;
}

/* 4. Modal Overlay & Dialog (Universal Steam-style) */
.genre-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInGenreOverlay 0.2s ease-out;
}
@keyframes fadeInGenreOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.genre-modal-backdrop {
  position: absolute;
  inset: 0;
}
.genre-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.2);
  overflow: hidden;
  animation: scaleUpGenreModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUpGenreModal {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.genre-modal-header {
  padding: 18px 22px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.genre-modal-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.genre-modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.genre-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.genre-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.genre-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.genre-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: scale(1.05);
}

/* Modal Search */
.genre-modal-search-wrap {
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  display: flex;
  align-items: center;
}
.genre-search-icon {
  position: absolute;
  left: 36px;
  font-size: 15px;
  color: #64748b;
  pointer-events: none;
}
.genre-modal-search-input {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 38px 10px 42px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.genre-modal-search-input:focus {
  outline: none;
  background: rgba(30, 41, 59, 1);
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}
.genre-search-clear {
  position: absolute;
  right: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.genre-search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Modal Body */
.genre-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.genre-modal-body::-webkit-scrollbar {
  width: 6px;
}
.genre-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Category Sections in Modal */
.genre-cat-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.genre-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.genre-cat-title .cat-icon {
  font-size: 14px;
}
.genre-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Genre Chip Buttons */
.genre-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.genre-chip-btn:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.genre-chip-btn.active-match {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Modal Tag Chip in Game Detail Pop-up */
.steam-modal-tag-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
}
.steam-modal-tag-chip:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Modal Footer */
.genre-modal-footer {
  padding: 14px 22px;
  background: rgba(30, 41, 59, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.genre-modal-footer-hint {
  font-size: 11.5px;
  color: #94a3b8;
}
.genre-modal-btn-reset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.genre-modal-btn-reset:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   PLAYNITE METADATA IMPORTER MODAL & GRANULAR CHECKLIST STYLES
   Dual Mirror: Steam CDN + Wikipedia Gaming Archive
   ═══════════════════════════════════════════════════════════════ */
.btn-playnite-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-playnite-trigger:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45) 0%, rgba(99, 102, 241, 0.45) 100%);
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.btn-playnite-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-playnite-inline-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.playnite-modal-box {
  max-width: 860px;
  width: 95%;
  max-height: 92vh;
  background: #0d121f;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: #e2e8f0;
}

.playnite-modal-header {
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playnite-search-bar {
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
}

.playnite-search-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
.playnite-search-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.playnite-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.playnite-game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playnite-game-card {
  display: flex;
  gap: 16px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
}
.playnite-game-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.playnite-game-thumb {
  width: 68px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

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

.playnite-game-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 5px;
  line-height: 1.3;
}

.playnite-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.playnite-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.playnite-badge-steam {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.playnite-badge-wiki {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.playnite-badge-year {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.playnite-badge-genre {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.playnite-game-desc-preview {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-playnite-choose {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-playnite-choose:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.45);
  transform: scale(1.03);
}

/* Step 2 Granular Fields Selection */
.playnite-step2-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.playnite-selected-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.playnite-selected-thumb {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1e293b;
}

.playnite-fields-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.playnite-btn-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.playnite-btn-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.playnite-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.playnite-field-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.playnite-field-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(30, 41, 59, 0.65);
}
.playnite-field-card.checked {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
}
.playnite-field-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.playnite-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.playnite-field-header input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #8b5cf6;
  cursor: pointer;
}
.playnite-field-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.playnite-field-badge {
  margin-left: auto;
  font-size: 10.5px;
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.playnite-field-preview {
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  max-height: 85px;
  overflow-y: auto;
  word-break: break-word;
  line-height: 1.45;
}

.playnite-modal-footer {
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}



