@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

/* Design token */
:root {
  --bg:           #050507;
  --surface:      #0c0c12;
  --surface2:     #111119;
  --surface3:     #16161f;
  --border:       rgba(139, 92, 246, 0.12);
  --border-strong:rgba(139, 92, 246, 0.28);
  --border-hover: rgba(139, 92, 246, 0.45);

  --text:         #f0eeff;
  --text-sub:     #9b97b8;
  --text-dim:     #5a5675;

  --purple:       #8b5cf6;
  --purple-bright:#a78bfa;
  --purple-dim:   rgba(139, 92, 246, 0.12);
  --purple-glow:  rgba(139, 92, 246, 0.35);
  --purple-card:  rgba(139, 92, 246, 0.06);

  --green:        #34d399;
  --green-dim:    rgba(52, 211, 153, 0.15);
  --red:          #f87171;
  --red-dim:      rgba(248, 113, 113, 0.15);
  --amber:        #fbbf24;

  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* ----Reset---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* B&b */
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient purple orbs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at -10% 20%, rgba(109, 40, 217, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 110% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(109, 40, 217, 0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 24s ease-in-out infinite;
}

/* Fine grain noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.04); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* ripple */
.click-ripple {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);

  background:
    radial-gradient(circle, rgba(167, 139, 250, 0.9) 0%, rgba(167, 139, 250, 0.9) 25%, transparent 30%),
    radial-gradient(circle, transparent 55%, rgba(167, 139, 250, 0.7) 60%, transparent 70%);

  box-shadow: 0 0 10px 3px rgba(139, 92, 246, 0.4);
  animation: rippleOut 0.5s var(--ease-out) forwards;
  z-index: 9999;
}

@keyframes rippleOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}
/* navbar*/
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left { display: flex; align-items: center; gap: 12px; }

.nav-logo {
  width: 34px; height: 34px;
  border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border-strong);
}

.nav-logo-fallback {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6d28d9, var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white; flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.nav-brand {
  font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -0.4px;
  text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 2px; }

.nav-link {
  text-decoration: none; color: var(--text-sub);
  font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--purple-bright); }

/* ── Mobile hamburger ── */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer; gap: 5px; padding: 0; flex-shrink: 0;
}

.nav-menu-btn span {
  display: block; width: 16px; height: 1.5px;
  background: var(--purple-bright); border-radius: 2px; transition: all 0.3s var(--ease-out);
}

.nav-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(5, 5, 7, 0.95);
  border-bottom: 1px solid var(--border-strong);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 12px 24px 20px; gap: 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu .nav-link {
  padding: 14px 0; font-size: 15px; border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu .nav-link:last-child { border-bottom: none; }

/* page wrap*/
.page-wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 96px 32px 24px;
}

/* hero index*/
.hero {
  text-align: center;
  padding: 40px 0 48px;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-dim); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--purple-bright);
  letter-spacing: 0.3px; margin-bottom: 20px;
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 8px var(--purple);
  animation: heroDot 2s ease-in-out infinite;
}

@keyframes heroDot {
  0%,100% { opacity:1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.05;
  color: var(--text); margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--purple-bright), #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px; color: var(--text-sub); font-weight: 400; line-height: 1.6;
  max-width: 500px; margin: 0 auto;
}

/* controls exe */
.controls {
  display: flex; flex-wrap: wrap;
  gap: 10px; margin-bottom: 32px; align-items: center;
}

.search-box {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 11px 16px;
  transition: border-color 0.25s, box-shadow 0.25s; cursor: text;
}

.search-box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim), 0 0 20px rgba(139,92,246,0.1);
}

.search-box svg { color: var(--text-dim); flex-shrink: 0; }

.search-box input {
  flex: 1; border: none; outline: none;
  background: transparent; color: var(--text);
  font-size: 14px; font-family: inherit; font-weight: 500;
}

.search-box input::placeholder { color: var(--text-dim); }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-sub); padding: 7px 15px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s var(--ease-out); white-space: nowrap;
}

.chip:hover {
  color: var(--text); border-color: var(--border-hover);
  background: var(--purple-dim);
  transform: translateY(-1px);
}

.chip.active {
  background: var(--purple-dim); color: var(--purple-bright);
  border-color: var(--purple); box-shadow: 0 0 16px rgba(139,92,246,0.15);
}

/* category header*/
.category-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 1.8px; text-transform: uppercase;
  margin-top: 36px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.category-header::before {
  content: '';
  width: 3px; height: 12px;
  background: linear-gradient(180deg, var(--purple), transparent);
  border-radius: 999px; flex-shrink: 0;
}

/* cards */
.cards { display: flex; flex-direction: column; gap: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s, box-shadow 0.3s, background 0.25s;
  position: relative; overflow: hidden;
  /* Entry animation */
  animation: cardIn 0.4s var(--ease-out) both;
}

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

/* Shimmer top line on hover */
.card::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), rgba(167,139,250,0.4), transparent);
  transition: left 0.6s var(--ease-out);
}

/* Left accent strip */
.card::after {
  content: '';
  position: absolute; top: 20%; left: 0; width: 2px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--purple), transparent);
  border-radius: 0 2px 2px 0;
  opacity: 0; transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-3px) translateX(1px);
  border-color: var(--border-hover);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(139,92,246,0.12),
    0 0 40px rgba(139,92,246,0.06);
}

.card:hover::before { left: 100%; }
.card:hover::after  { opacity: 1; }

.card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 14px;
}

.card-meta { flex: 1; min-width: 0; }

.card-name-row {
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}

.card-name {
  font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.2px;
  transition: color 0.2s;
}

.card:hover .card-name { color: var(--purple-bright); }

.card-sub { font-size: 13px; color: var(--text-sub); line-height: 1.45; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.4px; text-transform: uppercase;
}

.badge.free {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(52,211,153,0.25);
}

.badge.paid, .badge.premium {
  background: var(--purple-dim); color: var(--purple-bright);
  border: 1px solid rgba(139,92,246,0.3);
}

/* ── Status ── */
.card-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-sub); white-space: nowrap; flex-shrink: 0;
}

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

.status-dot.up {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  animation: dotPulse 2.5s ease-out infinite;
}

.status-dot.down  { background: var(--red); }
.status-dot.maint { background: var(--amber); }

@keyframes dotPulse {
  0%  { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70% { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
  100%{ box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ── Expanded body ── */
.card-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s;
  opacity: 0;
}

.card.expanded .card-body { max-height: 600px; opacity: 1; }

.card-body-inner {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 0 4px;
}

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-size: 13px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.info-key { color: var(--text-dim); font-weight: 600; flex-shrink: 0; }
.info-val { color: var(--text); text-align: right; font-weight: 600; }
.info-val.mono  { font-family: 'Courier New', monospace; font-size: 11.5px; color: var(--text-sub); }
.info-val.green { color: var(--green); }
.info-val.red   { color: var(--red); }

/* ── Footer ── */
.card-foot {
  display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

.caret {
  margin-left: auto; color: var(--text-dim);
  font-size: 14px; line-height: 1;
  transition: transform 0.35s var(--ease-spring), color 0.2s;
}

.card.expanded .caret { transform: rotate(180deg); color: var(--purple-bright); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border: 1px solid var(--border-strong);
  background: var(--surface2); color: var(--text-sub);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hover); background: var(--purple-dim);
  color: var(--purple-bright); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}

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

.btn.primary {
  background: var(--purple); color: white; border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

.btn.primary:hover {
  background: #7c3aed; border-color: #7c3aed;
  box-shadow: 0 6px 28px rgba(139,92,246,0.45);
  color: white;
}

/* skeleton */
.sk-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px;
  animation: cardIn 0.3s var(--ease-out) both;
}

.skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(139,92,246,0.05) 25%,
    rgba(139,92,246,0.12) 50%,
    rgba(139,92,246,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
}

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

/* empty/error message*/
.empty-msg {
  text-align: center; padding: 64px 24px;
  color: var(--text-dim); font-size: 15px;
}

.error-msg {
  background: var(--red-dim); border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--radius-lg); padding: 28px;
  color: var(--text); text-align: center; font-size: 14px;
}

/* Roblox version bar*/
.roblox-version-bar {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 18px 22px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.05);
}

.rvb-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.8px;
}

.rvb-label img { width: 14px; height: 14px; object-fit: contain; opacity: 0.6; }

.rvb-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rvb-platform-card {
  background: rgba(139,92,246,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.rvb-platform-card:hover { border-color: var(--border-strong); background: var(--purple-dim); }

.rvb-platform-icon { font-size: 18px; margin-bottom: 6px; line-height: 1; }

.rvb-platform-name {
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}

.rvb-platform-ver {
  font-size: 12px; font-weight: 700; color: var(--purple-bright);
  font-family: 'Courier New', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rvb-loading { color: var(--text-dim); font-size: 13px; }

/* Fallback table style */
.rvb-table { width: 100%; border-collapse: collapse; }
.rvb-table-head, .rvb-table-row { display: table-row; }
.rvb-table-head > span, .rvb-table-row > span { display: table-cell; padding: 6px 16px 6px 0; }
.rvb-table-head > span { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.rvb-table-row > span { border-bottom: 1px solid var(--border); font-size: 13px; }
.rvb-table-row:last-child > span { border-bottom: none; }
.rvb-os { color: var(--text); font-weight: 600; }
.rvb-ver { color: var(--purple-bright); font-family: monospace; font-weight: 700; }
.rvb-date, .rvb-date-col { color: var(--text-dim); font-size: 11.5px; }
@media (max-width: 580px) { .rvb-date-col { display: none !important; } }

.skeleton-rvb {
  height: 28px; width: 100%;
  background: linear-gradient(90deg, rgba(139,92,246,0.05) 25%, rgba(139,92,246,0.12) 50%, rgba(139,92,246,0.05) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm); border: none; display: block;
}

.rvb-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-dim); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
}

@media (max-width: 640px) {
  .rvb-platform-grid { grid-template-columns: repeat(2, 1fr); }
}

/* welcome bubble */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, var(--purple));
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(139,92,246,0.4), 0 0 0 1px rgba(139,92,246,0.3);
  z-index: 99; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.chat-bubble:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.55), 0 0 0 1px rgba(139,92,246,0.4);
}

.chat-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.chat-notif {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(248,113,113,0.5);
}

.chat-box {
  position: fixed; bottom: 90px; right: 24px; width: 300px;
  background: var(--surface2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.1);
  display: none; flex-direction: column; z-index: 99; overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #6d28d9, var(--purple));
  color: white; padding: 16px 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}

.chat-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 22px; cursor: pointer; transition: color 0.2s; line-height: 1;
}
.chat-close:hover { color: white; }

.chat-body { padding: 16px 18px; color: var(--text-sub); font-size: 13.5px; line-height: 1.65; }
.chat-body a { color: var(--purple-bright); text-decoration: none; font-weight: 600; }
.chat-body a:hover { text-decoration: underline; }

/* modal ovly */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(139,92,246,0.1);
  max-width: 560px; width: 92%; max-height: 82vh; overflow: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s var(--ease-spring);
}

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

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 24px; cursor: pointer; transition: color 0.2s; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px 26px; }

/* status page*/
.page-header { margin-bottom: 36px; }
.page-header h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; color: var(--text); letter-spacing: -0.5px; }
.page-header p { color: var(--text-sub); font-size: 14px; }
.page-header-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.last-updated { color: var(--text-dim); font-size: 12px; }

.btn.refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
}

.overall-status-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: border-color 0.3s;
}

.overall-status-card.all-good { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.03); }
.overall-status-card.issues   { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.03); }

.osc-icon  { font-size: 32px; flex-shrink: 0; }
.osc-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.osc-sub   { font-size: 13px; color: var(--text-sub); }
.osc-skeleton { width: 100%; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 28px;
}

.stat-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 20px 16px; text-align: center;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.skeleton-card { pointer-events: none; }

.stat-num { font-size: 30px; font-weight: 800; color: var(--purple-bright); margin-bottom: 6px; line-height: 1; }
.stat-num.green { color: var(--green); }
.stat-num.red   { color: var(--red); }
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; }

/* ── Status sections ── */
.status-section {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.status-section-title {
  font-size: 11px; font-weight: 700; color: var(--purple-bright);
  text-transform: uppercase; letter-spacing: 1.4px; padding: 14px 20px;
  display: flex; align-items: center;
  background: rgba(139,92,246,0.06); border-bottom: 1px solid var(--border);
}

.status-section-title .count-badge {
  margin-left: auto; font-size: 11px; color: var(--text-dim); font-weight: 500; letter-spacing: 0;
  background: var(--surface2); padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.status-rows { display: flex; flex-direction: column; }

.status-row-header {
  display: grid; grid-template-columns: 1fr 130px 110px; gap: 12px; align-items: center;
  padding: 10px 20px; border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}

.status-row {
  display: grid; grid-template-columns: 1fr 130px 110px; gap: 12px; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; transition: background 0.15s;
}

.status-row:last-child { border-bottom: none; }
.status-row:hover { background: rgba(139,92,246,0.04); }

.sr-name { color: var(--text); font-weight: 600; min-width: 0; }
.sr-status { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.sr-updated { color: var(--text-dim); font-size: 11.5px; text-align: right; }

/* version page*/
.versions-section {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.versions-section-title {
  font-size: 11px; font-weight: 700; color: var(--purple-bright);
  text-transform: uppercase; letter-spacing: 1.4px; padding: 14px 20px;
  background: rgba(139,92,246,0.06); border-bottom: 1px solid var(--border);
}

.version-row-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}

.version-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; align-items: center; transition: background 0.15s;
}

.version-row:last-child { border-bottom: none; }
.version-row:hover { background: rgba(139,92,246,0.04); }

.vr-name    { color: var(--text); font-weight: 600; }
.vr-current { color: var(--purple-bright); font-family: 'Courier New', monospace; font-size: 12px; font-weight: 600; }
.vr-previous{ color: var(--text-dim); font-family: 'Courier New', monospace; font-size: 12px; }

/* footer all */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 32px 0;
  position: relative; z-index: 1;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-brand { padding-left: 20px; border-left: 2px solid var(--purple); margin-bottom: 48px; }
.footer-brand-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 8px; }
.footer-brand-desc { font-size: 14px; color: var(--text-sub); line-height: 1.65; max-width: 420px; }

.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }

.footer-section h3 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--purple-bright); margin-bottom: 20px;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 13px; }

.footer-section a {
  color: var(--text-sub); text-decoration: none;
  font-size: 14px; font-weight: 400; transition: color 0.2s;
}

.footer-section a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

.footer-bottom p { color: var(--text-dim); font-size: 13px; }
.footer-bottom a { color: var(--purple); text-decoration: none; font-weight: 500; }
.footer-bottom a:hover { color: var(--purple-bright); }

/* responsive*/
@media (max-width: 960px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .nav-right { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-inner { padding: 14px 20px; }
  .page-wrap { padding: 80px 20px 60px; }
  .hero-title { font-size: 28px; letter-spacing: -0.5px; }
  .controls { gap: 8px; }
  .search-box { min-width: 100%; }
  .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { flex-shrink: 0; }
  .status-row-header, .status-row { grid-template-columns: 1fr 90px; }
  .status-row-header .sr-updated, .status-row .sr-updated { display: none; }
  .version-row-header, .version-row { grid-template-columns: 1fr 1fr; }
  .version-row-header span:last-child, .version-row .vr-previous { display: none; }
  .footer { padding: 40px 20px 0; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .chat-box { width: calc(100vw - 32px); right: 16px; }
  .card { border-radius: var(--radius); padding: 14px 16px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-num { font-size: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .rvb-platform-grid { grid-template-columns: repeat(2, 1fr); }
}

.seo-block {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 32px;
}

.seo-block-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.seo-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  text-align: left;
  margin-bottom: 0;
}

.seo-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.seo-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.seo-toggle[aria-expanded="true"] .seo-arrow {
  transform: rotate(180deg);
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), margin-top 0.3s;
  margin-top: 0;
}

.seo-tags.open {
  max-height: 2000px;
  margin-top: 14px;
}

.seo-tags span {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(139,92,246,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  line-height: 1.4;
}

.seo-tags span:hover {
  color: var(--text-sub);
  border-color: var(--border-strong);
}
