:root {
  --background: #07080c;
  --foreground: #fafafa;
  --card: #0d0f15;
  --bg-surface-1: #121622;
  --card-elevated: #12151f;
  --muted: #171b26;
  --muted-foreground: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --gold-300: #fef08a;
  --gold-400: #facc15;
  --gold-500: #f5b942;
  --gold-600: #ca8a04;
  --gold-border: rgba(250, 204, 21, 0.36);
  --gold-glow: rgba(250, 204, 21, 0.14);
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #facc15 45%, #ca8a04 100%);

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --rose: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.14);
  --sky: #38bdf8;

  --radius: 14px;
  --shell-max-width: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 85% 45% at 50% -10%, rgba(250, 204, 21, 0.11), transparent 68%),
    radial-gradient(circle at 85% 22%, rgba(59, 130, 246, 0.06), transparent 40%),
    radial-gradient(circle at 12% 60%, rgba(245, 185, 66, 0.05), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-mono-num {
  font-family: "Plus Jakarta Sans", ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: var(--background);
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

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

button,
input,
select {
  font-family: inherit;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Luxury Glass Capsule Header */
.gb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.gb-header-inner {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gb-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 21px;
  width: auto;
  display: block;
}

.gb-header-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.gb-inline-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8b91a0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.nav-tab:hover {
  color: #e4e6ed;
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.gb-inline-nav .nav-tab.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -13px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #eab308;
}

.header-right-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cmd-trigger {
  height: 34px;
  min-width: 220px;
  padding: 0 9px 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f8594;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.cmd-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.cmd-trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #d4d7e0;
  background: rgba(255, 255, 255, 0.055);
}

.kbd-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b91a0;
}

.shadcn-select {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  padding: 0 28px 0 11px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.035);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b91a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e6ed;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.shadcn-select:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.055);
}

.shadcn-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.shadcn-select option {
  background: #0d0f15;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-border);
}

.btn-surface {
  background: var(--muted);
  border-color: var(--border);
  color: #fff;
}

.btn-surface:hover {
  border-color: var(--gold-border);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #07080c;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.25);
}

.btn-gold:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon:hover {
  border-color: var(--gold-border);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-nav-drawer {
  display: none;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 6px;
}

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

/* Live Market Ribbon */
.market-ribbon {
  background: rgba(13, 15, 21, 0.85);
  border-bottom: 1px solid var(--border);
  height: 40px;
  overflow: hidden;
}

.market-ribbon-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.gold-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 10px var(--gold-400);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.ribbon-track-wrap {
  flex: 1;
  overflow: hidden;
}

.ribbon-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: tickerScroll 62s linear infinite;
}

.ribbon-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.ticker-item:hover {
  background: rgba(250, 204, 21, 0.09);
}

.ticker-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--muted);
}

/* Main Stage */
.main-stage {
  flex: 1;
}

.stage-container {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 30px 28px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Golden Wild West Hero Banner */
.gb-hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 295px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(250, 204, 21, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
  background: #1a1103;
}

.gb-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.gb-hero-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(10, 8, 4, 0.82) 0%,
      rgba(14, 10, 4, 0.56) 38%,
      rgba(14, 10, 4, 0.08) 62%,
      rgba(0, 0, 0, 0) 76%);
  pointer-events: none;
}

.gb-hero-banner-content {
  position: relative;
  z-index: 2;
  padding: 38px 44px;
  max-width: 590px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 4, 0.62);
  border: 1px solid rgba(250, 204, 21, 0.45);
  backdrop-filter: blur(8px);
  color: #fde047;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gb-hero-title {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.gb-hero-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #f4f4f5;
  max-width: 470px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

/* UI & Crypto Icon Utilities */
.gb-ui-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.gb-crypto-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Clean Unwrapped GameBooked Certified Image */
.gb-cert-badge-img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.gb-cert-badge-img.sm {
  height: 22px;
}

.gb-cert-badge-img.md {
  height: 32px;
}

.gb-cert-badge-img.lg {
  height: 52px;
}

.gb-cert-badge-img.xl {
  height: 84px;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gold-pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: var(--gold-400);
  border: 1px solid var(--gold-border);
}

/* Segmented Tabs */
.pill-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}

.pill-btn {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn:hover {
  color: #fff;
}

.pill-btn.active {
  background: var(--muted);
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px var(--gold-border);
}

/* Specular Bento Cards */
.surface-card,
.shadcn-card {
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.94), rgba(11, 13, 19, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.surface-card {
  padding: 20px;
}

.shadcn-card {
  overflow: hidden;
}

.shadcn-card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.95), rgba(12, 14, 21, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.kpi-foot {
  font-size: 11.5px;
  color: var(--muted-foreground);
}

/* Institutional Analytics Terminal & Gold Timeframe Scrubber */
.gb-analytics-terminal {
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.96) 0%, rgba(10, 12, 18, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gb-analytics-head {
  padding: 20px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.gb-analytics-kpi-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gb-analytics-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b91a0;
}

.gb-analytics-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-analytics-hero-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.gb-analytics-avg-tag {
  font-size: 12px;
  font-weight: 600;
  color: #7d8395;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gb-analytics-sub {
  font-size: 12.5px;
  color: #7d8395;
}

.gb-analytics-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.gb-analytics-toggles-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-seg-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #131621;
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.gb-seg-btn {
  border: none;
  background: transparent;
  color: #848a9c;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5.5px;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.gb-seg-btn:hover {
  color: #e4e6ed;
}

.gb-seg-btn.active {
  background: rgba(255, 255, 255, 0.085);
  color: #ffffff;
}

/* Gold Timeframe Scrubber */
.gb-tf-selector {
  margin: 0;
  padding: 0;
  border: none;
  width: 266px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.gb-tf-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 266px;
}

.gb-tf-labels button {
  border: none;
  background: transparent;
  padding: 0;
  height: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7c8294;
  cursor: pointer;
  text-align: center;
  transition: color 0.16s ease, transform 0.16s ease;
}

.gb-tf-labels button:hover {
  color: #cfd4e2;
}

.gb-tf-labels button[aria-pressed="true"] {
  color: #ffffff;
  font-weight: 800;
}

.gb-tf-track {
  position: relative;
  width: 266px;
  height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #171b27;
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.gb-tf-stops {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.gb-tf-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(22px + var(--tf-ratio, 0.16667) * (100% - 22px));
  border-radius: 999px;
  background: linear-gradient(90deg, #b45309 0%, #eab308 54%, #fde047 100%);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.28);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.gb-tf-stops i {
  position: absolute;
  top: 50%;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #7c8294;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: background-color 0.18s ease;
}

.gb-tf-stops i.is-passed {
  background: rgba(255, 250, 225, 0.92);
}

.gb-tf-stops i:nth-of-type(1) {
  left: calc(11px + 0 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(2) {
  left: calc(11px + 1 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(3) {
  left: calc(11px + 2 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(4) {
  left: calc(11px + 3 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(5) {
  left: calc(11px + 4 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(6) {
  left: calc(11px + 5 * (100% - 22px) / 6);
}

.gb-tf-stops i:nth-of-type(7) {
  left: calc(11px + 6 * (100% - 22px) / 6);
}

.gb-tf-thumb {
  position: absolute;
  top: 50%;
  left: calc(11px + var(--tf-ratio, 0.16667) * (100% - 22px));
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.15s ease;
}

.gb-tf-track:hover .gb-tf-thumb {
  transform: translate(-50%, -50%) scale(1.06);
}

.gb-tf-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

/* Network Filter Sub-Bar */
.gb-chain-rail-bar {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.gb-chain-rail-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7485;
}

.gb-chain-rail-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gb-chain-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #848a9c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.gb-chain-tab:hover {
  color: #e4e6ed;
  background: rgba(255, 255, 255, 0.04);
}

.gb-chain-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.interactive-chart-stage {
  position: relative;
  padding: 18px 20px 14px;
}

.gb-flow-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 268;
  min-height: 190px;
  display: block;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  top: 16px;
  left: 0;
  pointer-events: none;
  z-index: 20;
  background: rgba(11, 13, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 9px;
  padding: 10px 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.72);
  min-width: 185px;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

/* Donut + Stacked Share */
.donut-layout {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.stacked-share-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: var(--muted);
  margin: 14px 0 10px;
  gap: 2px;
}

.stacked-segment {
  height: 100%;
}

.stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

/* Collectible Casino Cards */
.casino-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 16px;
}

.casino-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #131722 0%, #0b0d13 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.casino-card.is-certified {
  border-color: rgba(250, 204, 21, 0.34);
}

.casino-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(250, 204, 21, 0.16);
}

.casino-card-media {
  height: 142px;
  position: relative;
  overflow: hidden;
  background: var(--muted);
}

.casino-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.casino-card:hover .casino-card-img {
  transform: scale(1.06);
}

.casino-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.48) 0%, rgba(7, 8, 12, 0.16) 42%, rgba(11, 13, 19, 0.95) 100%);
}

.casino-card-logo-float {
  position: absolute;
  left: 13px;
  bottom: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #0d0f15;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65);
}

.casino-score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(7, 8, 12, 0.9);
  border: 1px solid var(--border);
}

.score-5 {
  color: var(--gold-400);
  border-color: var(--gold-border);
}

.score-4 {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.45);
}

.score-3 {
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.42);
}

.score-low {
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.42);
}

.card-cert-overlay {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
}

.card-cert-overlay .gb-cert-badge-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.72));
}

.casino-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.casino-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.casino-card-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casino-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-foreground);
}

.chain-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  border: 1px solid var(--border);
}

.pillar-mini-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pillar-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.delta-pos {
  color: var(--emerald);
  background: var(--emerald-bg);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.delta-neg {
  color: var(--rose);
  background: var(--rose-bg);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* 2-Column Bento Casino Profile */
.profile-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: var(--card);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px) saturate(1.1);
}

.profile-hero-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(125deg, rgba(7, 8, 12, 0.94) 0%, rgba(13, 15, 21, 0.86) 55%, rgba(36, 28, 9, 0.88) 100%);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-logo-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid var(--gold-border);
  background: var(--card);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.profile-bento-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
  align-items: start;
}

.profile-sticky-col {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gold-cert-card {
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.12) 0%, rgba(13, 15, 21, 0.96) 55%);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(254, 240, 138, 0.18);
}

/* Audit Pillar Cards */
.audit-pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-pillar-card {
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.94), rgba(11, 13, 19, 0.98));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.audit-pillar-head {
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pillar-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.audit-sub-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.audit-sub-item {
  background: rgba(7, 8, 12, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Tables & Progress Bars */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  background: #10131c;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: #e4e4e7;
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s;
}

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

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

.casino-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.casino-mini-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Histogram */
.histogram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 165px;
  padding-top: 20px;
}

.hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.hist-bar-track {
  width: 100%;
  max-width: 54px;
  flex: 1;
  background: var(--muted);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hist-bar-fill {
  width: 100%;
  background: var(--gold-gradient);
  border-radius: 6px 6px 0 0;
}

/* Rings Grid for Certification Overview */
.rings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ring-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.market-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-card:hover {
  border-color: var(--gold-border);
}

.token-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #fff;
}

.token-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* Institutional Market Terminal Panels */
.terminal-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.terminal-panel-head {
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.terminal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 12, 0.45);
}

.terminal-kpi-cell {
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}

.terminal-kpi-cell:last-child {
  border-right: none;
}

.terminal-kpi-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.terminal-kpi-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
}

.terminal-table th {
  padding: 9px 16px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.014);
}

.terminal-table th.num,
.terminal-table td.num {
  text-align: right;
}

.terminal-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 13px;
  vertical-align: middle;
}

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

.terminal-table tbody tr {
  transition: background-color 0.14s ease;
}

.terminal-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.028);
}

.terminal-table tbody tr[data-open-casino] {
  cursor: pointer;
}

.terminal-asset {
  display: flex;
  align-items: center;
  gap: 11px;
}

.terminal-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.terminal-dom-bar {
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 5px;
  margin-left: auto;
}

.terminal-dom-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold-gradient);
}

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

/* Head-to-Head Operator Comparison Terminal */
.gb-cmp-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 9px;
  background: #12151f;
  border: 1px solid rgba(255, 255, 255, 0.075);
  flex-wrap: wrap;
}

.gb-cmp-presets-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7485;
  margin-right: 4px;
}

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

.gb-cmp-card {
  border-radius: 14px;
  background: linear-gradient(180deg, #141824 0%, #0b0d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.gb-cmp-card.is-certified {
  border-color: rgba(234, 179, 8, 0.28);
}

.gb-cmp-card-top {
  position: relative;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.gb-cmp-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.gb-cmp-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 19, 0.72) 0%, rgba(11, 13, 20, 0.94) 100%);
}

.gb-cmp-slot-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gb-cmp-slot-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8b91a0;
  white-space: nowrap;
}

.gb-cmp-slot-bar .shadcn-select {
  height: 30px;
  font-size: 12px;
  max-width: 185px;
  background-color: rgba(9, 11, 17, 0.85);
}

.gb-cmp-identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.gb-cmp-avatar {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #090b11;
  flex-shrink: 0;
}

.gb-cmp-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-cmp-domain {
  font-size: 11.5px;
  color: #8b91a0;
  margin-top: 2px;
}

.gb-cmp-card-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gb-cmp-card-kpis > div {
  padding: 11px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.gb-cmp-card-kpis > div:last-child {
  border-right: none;
}

.gb-cmp-card-foot {
  padding: 9px 16px;
  background: rgba(0, 0, 0, 0.18);
}

.gb-cmp-profile-link {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #9ba1b0;
  cursor: pointer;
  transition: color 0.14s ease;
}

.gb-cmp-profile-link:hover {
  color: #ffffff;
}

.gb-cmp-matrix tr.gb-cmp-section-row td {
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eab308;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gb-cmp-matrix tr.gb-cmp-section-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.gb-cmp-metric-lbl {
  font-weight: 600;
  color: #9ba1b0;
  font-size: 12.5px;
}

.gb-cmp-metric-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 210px;
}

.gb-cmp-mini-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.gb-cmp-mini-fill.gold {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ca8a04, #fde047);
}

.gb-cmp-mini-fill.emerald {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669, #34d399);
}

.gb-cmp-lead-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 5.5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.14);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.gb-cmp-lead-tag.emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.gb-cmp-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.gb-cmp-pillar-chip.is-pass {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.gb-cmp-pillar-chip.is-fail {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.gb-cmp-neutral {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

@media (max-width: 960px) {
  .gb-cmp-cards-grid {
    grid-template-columns: 1fr;
  }
}

.select-field,
.input-field {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: #07080c;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 13px;
}

.select-field:focus,
.input-field:focus {
  outline: none;
  border-color: var(--gold-400);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.modal-panel {
  width: min(760px, 100%);
  max-height: 88dvh;
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-panel.narrow {
  width: min(520px, 100%);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-hit {
  background: #07080c;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
}

.search-hit:hover {
  border-color: var(--gold-border);
}

/* FAQ Accordion */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 18px 15px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
}

.faq-item summary .faq-chevron {
  transition: transform 0.2s ease;
  color: var(--gold-400);
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
}

/* Split Certification Hero Matching Reference Layout */
.cert-hero-split {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: 16px;
}

.cert-hero-left {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #121622;
  border: 1px solid var(--border);
  min-height: 186px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.cert-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.32;
}

.cert-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, #0d1019 18%, rgba(13, 16, 25, 0.72) 55%, rgba(13, 16, 25, 0.32) 100%);
}

.cert-hero-left-top,
.cert-hero-left-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cert-hero-left-top {
  gap: 14px;
}

.cert-hero-left-bottom {
  justify-content: space-between;
  margin-top: 28px;
}

.cert-hero-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #07080c;
}

.cert-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.cert-social-btn:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: var(--gold-border);
  color: var(--gold-400);
}

.cert-seal-link-btn {
  border: none;
  background: transparent;
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}

.cert-seal-link-btn:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.05);
}

/* GameBooked Interactive Certification Seal Hero & Standalone Verify Card */
.gb-cert-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  min-height: 186px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.gb-seal-anchor {
  display: block;
  width: 100%;
  text-decoration: none;
}

.gb-seal-stage {
  margin: 0 auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  transform: scale(0.825);
  transform-origin: center center;
}

.gb-seal-stage.is-full {
  transform: scale(1);
}

.gb-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gb-seal-img {
  display: block;
  width: min(100%, 407px);
  height: auto;
  aspect-ratio: 407 / 155;
  object-fit: contain;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.gb-seal.is-uncertified .gb-seal-img {
  filter: grayscale(1) brightness(0.62);
  opacity: 0.38;
}

.gb-seal-sheen,
.gb-seal-sheen-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: url('/certified-badge.png');
  mask-image: url('/certified-badge.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.gb-seal-sheen {
  background: radial-gradient(circle 180px at var(--gleam-x, 50%) var(--gleam-y, 50%),
      rgba(255, 250, 220, 0.42) 0%,
      rgba(245, 215, 122, 0.16) 38%,
      transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gb-seal-sheen-edge {
  background: linear-gradient(115deg,
      transparent 20%,
      rgba(255, 244, 196, 0.28) 48%,
      rgba(245, 215, 122, 0.42) 50%,
      rgba(255, 244, 196, 0.28) 52%,
      transparent 80%);
  background-size: 220% 100%;
  background-position: var(--gleam-x, 50%) 50%;
  mix-blend-mode: plus-lighter;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gb-cert-hero:hover .gb-seal-sheen,
.verify-cert-card:hover .gb-seal-sheen {
  opacity: 1;
}

.gb-cert-hero:hover .gb-seal-sheen-edge,
.verify-cert-card:hover .gb-seal-sheen-edge {
  opacity: 0.85;
}

.gb-cert-criteria-text {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #f5d77a;
}

.gb-cert-criteria-text.is-uncertified {
  color: var(--muted-foreground);
}

.verify-cert-card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
}

/* 3-Column Criteria Grid & Vertical Pillar Cards */
.criteria-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

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

.pillar-v-card {
  background: #111521;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-v-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.pillar-v-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pillar-status-pass {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-400);
}

.pillar-status-fail {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
}

.sub-crit-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sub-crit-check {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  flex-shrink: 0;
}

.sub-crit-check.yes {
  color: var(--gold-400);
}

.sub-crit-check.no {
  color: var(--rose);
}

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

.compliance-card {
  background: #111521;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Executive 4-Column Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080a0f;
  padding: 46px 28px 26px;
}

.footer-grid {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 340px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.footer-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}

.footer-email-pill:hover {
  border-color: var(--gold-border);
  color: var(--gold-400);
}

.footer-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-btn {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.footer-link-btn:hover {
  color: var(--gold-400);
}

.footer-rg-box {
  background: rgba(250, 204, 21, 0.05);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.footer-rg-box strong {
  color: var(--gold-400);
  font-size: 11.5px;
}

.footer-bottom-bar {
  max-width: var(--shell-max-width);
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Legal Document Reader Layout */
.legal-doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.legal-toc-card {
  position: sticky;
  top: 94px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc-link {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.14s;
}

.legal-toc-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-400);
}

.legal-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-section h2 {
  margin: 0;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}

.legal-section p,
.legal-section li {
  margin: 0;
  font-size: 13.5px;
  color: #d4d4d8;
  line-height: 1.7;
}

.legal-section ul {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-callout {
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: #e4e4e7;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1180px) {

  .gb-inline-nav,
  .gb-header-divider {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .profile-bento-grid,
  .legal-doc-layout {
    grid-template-columns: 1fr;
  }

  .profile-sticky-col,
  .legal-toc-card {
    position: static;
  }

  .audit-sub-list {
    grid-template-columns: 1fr;
  }

  .rings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .criteria-3col-grid,
  .compliance-3col-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .cert-hero-split {
    grid-template-columns: 1fr;
  }

  .analytics-grid,
  .grid-3,
  .kpi-grid,
  .compare-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }

  .chart-metric-toggles {
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .chart-metric-tab {
    flex: 1;
    border-left: none;
    border-right: 1px solid var(--border);
  }

  .chart-metric-tab:last-child {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .gb-header-inner {
    padding: 0 14px;
  }

  .cmd-trigger {
    min-width: auto;
  }

  .cmd-trigger-text,
  .kbd-badge {
    display: none;
  }

  .stage-container {
    padding: 18px 14px 48px;
  }

  .gb-hero-banner {
    min-height: 220px;
  }

  .gb-hero-banner-content {
    padding: 24px 20px;
  }

  .gb-hero-banner-scrim {
    background: linear-gradient(90deg, rgba(10, 8, 4, 0.86) 0%, rgba(10, 8, 4, 0.66) 65%, rgba(10, 8, 4, 0.28) 100%);
  }

  .analytics-grid,
  .grid-3,
  .grid-2,
  .kpi-grid,
  .compare-controls,
  .histogram-grid,
  .rings-grid,
  .criteria-3col-grid,
  .compliance-3col-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .histogram-grid {
    height: auto;
  }

  .legal-article {
    padding: 20px 18px;
  }

  .gb-cert-hero {
    padding: 16px;
  }

  .terminal-hide-sm {
    display: none;
  }

  .terminal-kpi-cell {
    padding: 9px 11px;
  }

  .terminal-table th,
  .terminal-table td {
    padding: 10px 12px;
  }

  .gb-analytics-controls {
    align-items: flex-start;
    width: 100%;
  }

  .gb-analytics-hero-num {
    font-size: 24px;
  }
}