:root {
  --bg: #050914;
  --bg-deep: #03060d;
  --panel: #0b1326;
  --panel-hover: #101b36;
  --line: rgba(251, 191, 36, 0.22);
  --line-blue: rgba(56, 189, 248, 0.25);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --gold-deep: #d97706;
  --blue: #38bdf8;
  --royal-blue: #2563eb;
  --yellow: #fbbf24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.18), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.14), transparent 36%),
    linear-gradient(180deg, #050914 0%, #070d1d 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
.hidden { display: none !important; }

.announcement {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #1e3a8a, #d97706, #1e3a8a);
  color: #fff;
  text-align: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.4);
}

/* Sidebar RMX Gold & Sapphire Circuit */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 235px;
  background: linear-gradient(180deg, #060b18 0%, #091124 100%);
  border-right: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.55);
  padding: 18px 12px;
  z-index: 30;
  overflow: auto;
}
.announcement:not(.hidden) ~ .sidebar { top: 33px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
}
.brand-emblem-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #fbbf24, #38bdf8, #d97706);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35), 0 0 24px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}
.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.brand-ball {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b1326;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}
.brand-title-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.rmx-metallic-text {
  font-family: 'Cinzel', Inter, serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 55%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #38bdf8;
  margin-top: 2px;
}

.label {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #fbbf24;
  margin: 18px 8px 8px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
}
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(37, 99, 235, 0.18));
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  transform: translateX(2px);
}

.page { margin-left: 235px; }

/* Topbar */
.topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 18px;
}
.search {
  max-width: 460px;
  flex: 1;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(11, 19, 38, 0.9);
  border-radius: 999px;
  padding: 9px 16px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
}
.search:focus-within {
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  width: 100%;
  font-size: 13px;
}
.topnav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}
.topnav a:hover { color: #fbbf24; }
.zalo-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 9px 18px;
  border-radius: 999px;
  color: #050914 !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.ext-pill {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 8px 15px;
  border-radius: 999px;
  color: #7dd3fc !important;
  font-weight: 800;
}
.menu { display: none; }

.shell { max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 20px; }

/* Hero RMX Gold & Sapphire Circuit */
.hero {
  margin-top: 32px;
  padding: 44px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.2), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(245, 158, 11, 0.16), transparent 45%),
    linear-gradient(135deg, #0b152c 0%, #070c1a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.15);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.kicker {
  display: inline-block;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 16px 0 14px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p, .cta p { color: #cbd5e1; line-height: 1.65; font-size: 15px; }
.actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { transform: translateY(-2px); }
.primary {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #050914 !important;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}
.dark {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.stats {
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  gap: 42px;
}
.stats div { display: grid; }
.stats strong { font-size: 22px; color: #fbbf24; }
.stats span { font-size: 9px; color: #94a3b8; letter-spacing: 1px; margin-top: 3px; font-weight: 700; }

.hero-img { position: relative; }
.hero-img img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.22);
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Category Filter Bar */
.cat-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}
.cat-pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #0b1326;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #050914;
  border-color: #fbbf24;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

/* Flagship Extension Hub Card */
.rmx-tool-showcase {
  margin-top: 36px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 25, 52, 0.95), rgba(8, 14, 30, 0.98));
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 158, 11, 0.12);
}
.rmx-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.rmx-tool-item {
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.rmx-tool-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rmx-tool-top img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1.5px solid #fbbf24;
  object-fit: cover;
}
.rmx-ver-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.section { padding-top: 48px; }
.heading {
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  padding-bottom: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.heading h2, .faq h2 { margin: 6px 0 0; font-size: 26px; color: #fef3c7; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}
.pic { aspect-ratio: 16/10; position: relative; background: #060b16; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050914;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
}
.video-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #fbbf24;
  background: rgba(5, 9, 20, 0.85);
  color: #fbbf24;
  font-weight: 900;
}
.body { padding: 16px; display: grid; gap: 9px; }
.meta { display: flex; justify-content: space-between; color: #38bdf8; font-size: 10px; font-weight: 800; }
.rating { color: var(--gold); }
.body h3 { font-size: 15px; line-height: 1.4; margin: 0; min-height: 42px; color: #fff; }
.body p { font-size: 12px; color: #94a3b8; line-height: 1.55; margin: 0; min-height: 52px; }
.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.creator { font-size: 10px; color: #38bdf8; flex: 1; font-weight: 700; }
.old { text-decoration: line-through; color: #64748b; font-size: 10px; }
.price { font-size: 17px; font-weight: 900; color: #fbbf24; }
.buy, .detail {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
}
.buy {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #050914 !important;
}
.detail {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reviews article {
  background: var(--panel);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 16px;
  padding: 20px;
  color: var(--gold);
}
.reviews p { color: #fff; font-size: 12.5px; line-height: 1.6; }
.reviews b, .reviews small { display: block; color: #cbd5e1; font-size: 11px; }

.faq details {
  max-width: 760px;
  margin: 12px auto;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
}
.faq summary { font-size: 13px; font-weight: 800; color: #fef3c7; cursor: pointer; }
.faq details p { color: #cbd5e1; font-size: 12.5px; line-height: 1.6; }

.cta {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 70px;
  padding: 58px 30px;
  border: 1.5px solid rgba(251, 191, 36, 0.38);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.28), #081022 65%);
}
.cta h2 { font-size: 30px; margin: 0; color: #fef3c7; }
.center { justify-content: center; }

footer {
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  background: #040812;
  padding: 44px 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 55px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fbbf24; }
.footer-sub { font-size: 10px; color: #38bdf8; font-weight: 700; letter-spacing: 1px; margin-top: 3px; }
.footer-heading { font-size: 11px; font-weight: 800; color: #fbbf24; letter-spacing: 1.2px; margin-bottom: 6px; }
.gold-highlight { color: #fbbf24; }
.footer-grid p { font-size: 12px; color: #94a3b8; line-height: 1.6; }
.footer-grid > div:not(:first-child) { display: grid; gap: 10px; color: #cbd5e1; font-size: 12px; align-content: start; }
.footer-grid > div:not(:first-child) a:hover { color: #fbbf24; }

.floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #050914;
  font-weight: 900;
  z-index: 40;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.86);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.detail-box {
  width: min(940px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #091122;
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-grid img { width: 100%; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.3); }
.detail-grid iframe, .detail-grid video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.detail-grid h2 { font-size: 26px; color: #fef3c7; }
.detail-grid .price { font-size: 24px; }
.detail-copy { color: #cbd5e1; line-height: 1.7; font-size: 13.5px; white-space: pre-line; }

.section-sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { background: var(--panel); border: 1px solid rgba(56, 189, 248, 0.22); border-radius: 16px; overflow: hidden; }
.video-card .thumb { aspect-ratio: 16/9; background: #060b16; position: relative; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid #fbbf24; background: rgba(5, 9, 20, 0.85); color: #fbbf24; font-size: 20px; }
.video-card .vcopy { padding: 14px; }
.video-card h3 { margin: 0; font-size: 14px; }
.video-card p { color: #94a3b8; font-size: 12px; }
.media-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.media-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid rgba(56, 189, 248, 0.3); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.socials a { color: #38bdf8; font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: 0.2s; }
  .sidebar.open { transform: translateX(0); }
  .page { margin-left: 0; }
  .menu { display: block; background: none; border: 0; color: #fbbf24; font-size: 22px; }
  .shell { max-width: 100%; }
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .grid, .reviews, .video-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topnav a:not(.zalo-pill):not(.ext-pill) { display: none; }
  .hero h1 { font-size: 32px; }
  .grid, .reviews, .video-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .stats { gap: 20px; }
}
