/**
 * GAMING TRIBE (GT) • Official Player Card & Collector Network
 * Aesthetic: Dark-Mode Esports Tactical Luxury
 * Palette: #06070a Obsidian | #10131a Glassmorphic Slate | #d4af37 & #ffd700 Metallic Gold
 */

:root {
  --bg-obsidian: #06070a;
  --bg-deep: #090b10;
  --bg-slate: #10131a;
  --bg-slate-elevated: #161b26;
  --bg-glass: rgba(16, 19, 26, 0.84);
  --gold-primary: #d4af37;
  --gold-bright: #ffd700;
  --gold-soft: #fff3b0;
  --gold-dark: #8a6d1b;
  --onyx-accent: #cbd5e1;
  --chrome-accent: #94a3b8;
  --sa-green: #007749;
  --emerald-ok: #10b981;
  --crimson-err: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-slate: rgba(148, 163, 184, 0.16);
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
}

body.gt-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 175, 55, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 82% 24%, rgba(0, 119, 73, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #06070a 0%, #090b10 50%, #06070a 100%);
  min-height: 100vh;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

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

/* ==========================================================================
   1. CARD OWNER QUICK VAULT BAR (Pinned at Top)
   ========================================================================== */
.gt-quick-vault-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #0d1118 0%, #17140b 50%, #0d1118 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.42);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
  padding: 10px 0;
}

.gt-vault-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gt-vault-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.6px;
}

.gt-vault-brand strong {
  color: var(--gold-bright);
}

.gt-vault-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gt-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-ok);
  box-shadow: 0 0 10px var(--emerald-ok);
  animation: gtPulse 1.8s infinite ease-in-out;
}

@keyframes gtPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
}

.gt-vault-badge {
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-soft);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.gt-link-inline {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.gt-vault-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gt-vault-input {
  background: #06070a;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  min-width: 230px;
  text-transform: uppercase;
}

.gt-vault-result {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.gt-vault-result-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--gold-soft);
}

/* ==========================================================================
   2. NAVIGATION HEADER
   ========================================================================== */
.gt-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.gt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.gt-logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
}

.gt-logo-text {
  display: flex;
  flex-direction: column;
}

.gt-logo-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.05;
}

.gt-logo-main small {
  color: var(--gold-bright);
  font-size: 0.82rem;
  margin-left: 4px;
}

.gt-logo-tag {
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  color: var(--gold-primary);
  font-weight: 600;
}

.gt-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gt-nav-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.gt-nav-item:hover,
.gt-nav-item.active {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.gt-nav-admin {
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold-soft);
}

.gt-nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gt-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-slate);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.gt-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.gt-user-ign {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.gt-user-role {
  font-size: 0.65rem;
  color: var(--gold-primary);
  letter-spacing: 0.8px;
}

.gt-logout-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-left: 1px solid var(--border-slate);
  padding-left: 10px;
}

/* ==========================================================================
   3. BUTTONS & FORM CONTROLS
   ========================================================================== */
.gt-btn-gold,
.gt-btn-gold-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 55%, #b8860b 100%);
  color: #06070a;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-transform: uppercase;
}

.gt-btn-gold {
  padding: 11px 22px;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.32);
}

.gt-btn-gold-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.gt-btn-gold:hover,
.gt-btn-gold-sm:hover {
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.48);
  filter: brightness(1.06);
}

.gt-btn-ghost,
.gt-btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(16, 19, 26, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  text-transform: uppercase;
}

.gt-btn-ghost {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.gt-btn-ghost-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.gt-btn-ghost:hover,
.gt-btn-ghost-sm:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.gt-input,
.gt-select,
.gt-textarea {
  width: 100%;
  background: #080a0f;
  border: 1px solid var(--border-slate);
  color: var(--text-main);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gt-input:focus,
.gt-select:focus,
.gt-textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

/* ==========================================================================
   4. HARDWARE-ACCELERATED 3D INTERACTIVE DUAL-SIDED TRADING CARD
   ========================================================================== */
.gt-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 376px;
  margin: 0 auto;
  user-select: none;
}

.gt-card-3d {
  width: 100%;
  height: 558px;
  perspective: 1400px;
  position: relative;
  cursor: pointer;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --glare-opacity: 0;
}

.gt-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  will-change: transform;
}

.gt-card-3d.is-tilting .gt-card-inner {
  transition: transform 0.08s linear;
}

.gt-card-3d.is-flipped .gt-card-inner {
  transform: rotateX(var(--rotate-x)) rotateY(calc(180deg + var(--rotate-y)));
}

.gt-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #131722 0%, #0a0c12 58%, #06070a 100%);
  border: 2px solid rgba(212, 175, 55, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(212, 175, 55, 0.16),
    inset 0 0 22px rgba(212, 175, 55, 0.08);
}

.gt-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.12), transparent 60%),
    repeating-linear-gradient(45deg, #090b10 0px, #090b10 4px, #0d1018 4px, #0d1018 8px);
}

/* Tier-Specific Outer Aura & Frame Accents */
.tier-mythic .gt-card-face {
  border-color: #ffd700;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.9),
    0 0 36px rgba(255, 215, 0, 0.36),
    inset 0 0 24px rgba(255, 215, 0, 0.16);
}

.tier-onyx .gt-card-face {
  border-color: #cbd5e1;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(148, 163, 184, 0.3),
    inset 0 0 20px rgba(226, 232, 240, 0.12);
}

.tier-gold .gt-card-face {
  border-color: #d4af37;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.88),
    0 0 26px rgba(212, 175, 55, 0.24);
}

.tier-chrome .gt-card-face {
  border-color: #64748b;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(100, 116, 139, 0.22);
}

/* Specular Metallic Foil Light Reflection & Holographic Shimmer */
.gt-foil-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: var(--glare-opacity, 0);
  background:
    radial-gradient(
      circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
      rgba(255, 248, 210, 0.55) 0%,
      rgba(212, 175, 55, 0.28) 25%,
      rgba(56, 189, 248, 0.12) 48%,
      transparent 72%
    ),
    linear-gradient(
      125deg,
      transparent 20%,
      rgba(255, 215, 0, 0.22) 45%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(212, 175, 55, 0.22) 55%,
      transparent 80%
    );
  mix-blend-mode: color-dodge;
  transition: opacity 0.2s ease;
}

.gt-holo-border {
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  pointer-events: none;
  z-index: 7;
}

/* Card Header */
.gt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
  padding-bottom: 6px;
}

.gt-brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-serial-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 1.2px;
  color: #ffffff;
  line-height: 1;
}

.gt-tier-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-bright);
}

.gt-score-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(16, 19, 26, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 8px;
  padding: 4px 10px;
  text-align: right;
  line-height: 1;
}

.gt-score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--gold-bright);
}

.gt-score-max {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

/* Studio Monochrome Portrait Viewport */
.gt-portrait-frame {
  position: relative;
  height: 222px;
  border-radius: 11px;
  overflow: hidden;
  background: #06070a;
  border: 1px solid rgba(212, 175, 55, 0.28);
  z-index: 3;
}

.gt-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.24) brightness(1.04);
  transform: scale(1.02);
}

.gt-portrait-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,10,0.15) 0%, rgba(6,7,10,0.1) 45%, rgba(6,7,10,0.95) 100%);
}

.gt-mint-stamp {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #050608;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.gt-portrait-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}

.gt-prov-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 7, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #e2e8f0;
}

.gt-peak-tag {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 5px;
}

.gt-identity-overlay {
  position: absolute;
  bottom: 7px;
  left: 10px;
  right: 10px;
  z-index: 4;
}

.gt-clan-sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.gt-player-ign {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.gt-player-quote {
  font-size: 0.69rem;
  color: #cbd5e1;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Core 4 Stats Grid */
.gt-core-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 7px;
  position: relative;
  z-index: 4;
}

.gt-stat-cell {
  background: rgba(9, 11, 16, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 7px;
  padding: 5px 4px;
  text-align: center;
}

.gt-stat-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.gt-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
}

.gt-gold-text {
  color: var(--gold-bright);
}

/* Front Bottom: Segmented Bars + 5-Point Combat Radar */
.gt-front-bottom {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 8px 9px;
  position: relative;
  z-index: 4;
}

.gt-bars-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gt-seg-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gt-seg-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.gt-seg-label {
  color: var(--text-muted);
}

.gt-seg-val {
  color: var(--gold-bright);
}

.gt-seg-track {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
}

.gt-bar-seg {
  height: 6px;
  border-radius: 1.5px;
  background: rgba(148, 163, 184, 0.18);
}

.gt-bar-seg.seg-active {
  background: linear-gradient(180deg, #ffd700, #b8860b);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
}

.gt-radar-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gt-radar-grid-outer,
.gt-radar-grid-mid,
.gt-radar-grid-inner {
  fill: rgba(16, 19, 26, 0.55);
  stroke: rgba(212, 175, 55, 0.28);
  stroke-width: 0.9;
}

.gt-radar-axis {
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 0.8;
}

.gt-radar-poly {
  fill: rgba(255, 215, 0, 0.28);
  stroke: #ffd700;
  stroke-width: 2;
}

.gt-radar-lbl {
  fill: #cbd5e1;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   5. CARD BACK STYLING (Full-Body Render, TDM Weapon, Medals, Pillars, QR)
   ========================================================================== */
.gt-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.gt-back-emblem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gt-back-org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.2px;
  color: var(--gold-bright);
  line-height: 1.05;
}

.gt-back-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.gt-back-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
}

.gt-avatar-viewport {
  position: relative;
  height: 226px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #06080d;
  z-index: 4;
}

.gt-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gt-weapon-plaque {
  position: absolute;
  bottom: 7px;
  left: 8px;
  right: 8px;
  background: rgba(6, 7, 10, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.48);
  border-radius: 8px;
  padding: 5px 10px;
  backdrop-filter: blur(6px);
}

.gt-weapon-tag {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
}

.gt-weapon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.gt-weapon-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.gt-weapon-stats {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #e2e8f0;
}

.gt-weapon-stats strong {
  color: var(--gold-bright);
}

.gt-medals-section {
  position: relative;
  z-index: 4;
}

.gt-sec-micro-title {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gt-medals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.gt-medal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 19, 26, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 6px;
  padding: 4px 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-medal-star {
  color: var(--gold-bright);
}

/* 4-Pillar Strip (CBT | LNG | ACH | ARE) */
.gt-pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  position: relative;
  z-index: 4;
}

.gt-pillar-box {
  background: rgba(8, 10, 15, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  padding: 4px 5px;
  text-align: center;
}

.gt-pil-code {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

.gt-pil-val {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.gt-pil-val small {
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Card Back QR Verification Footer */
.gt-back-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 7, 10, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 9px;
  padding: 6px 9px;
  position: relative;
  z-index: 4;
}

.gt-verify-copy {
  flex: 1;
  min-width: 0;
}

.gt-verify-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--gold-bright);
  letter-spacing: 0.8px;
}

.gt-verify-url {
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-verify-hint {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* Card Action Buttons Below 3D Stage */
.gt-card-controls {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gt-btn-flip {
  width: 100%;
  background: rgba(16, 19, 26, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.48);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gt-btn-flip:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-bright);
}

.gt-card-subactions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.gt-card-subactions .gt-btn-ghost,
.gt-card-subactions .gt-btn-gold-sm {
  padding: 7px 6px;
  font-size: 0.76rem;
}

/* ==========================================================================
   6. HERO SECTION, SHOWCASE GRID & MULTI-FIELD SA LEADERBOARD
   ========================================================================== */
.gt-hero {
  padding: 46px 0 36px;
  border-bottom: 1px solid var(--border-slate);
}

.gt-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.gt-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 2px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.gt-hero-title span {
  background: linear-gradient(90deg, #ffd700, #fff3b0, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gt-hero-lead {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 620px;
  margin-bottom: 24px;
}

.gt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gt-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gt-metric-tile {
  background: var(--bg-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.gt-metric-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.05;
}

.gt-metric-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.gt-section {
  padding: 52px 0;
}

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

.gt-sec-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.gt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 32px;
}

/* Multi-Field Leaderboard Controls & Table */
.gt-lb-controls {
  background: var(--bg-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gt-sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gt-sort-pill {
  background: #080a0f;
  border: 1px solid var(--border-slate);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gt-sort-pill:hover,
.gt-sort-pill.active {
  background: linear-gradient(135deg, rgba(255,215,0,0.22), rgba(212,175,55,0.08));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.gt-lb-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
}

.gt-table-wrap {
  background: var(--bg-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.gt-lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.gt-lb-table th {
  background: #090b10;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.gt-lb-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.9rem;
}

.gt-lb-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

.gt-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
}

/* ==========================================================================
   7. VERSUS HEAD-TO-HEAD COMPARISON MODAL & HANDSHAKE MODAL
   ========================================================================== */
.gt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 5, 8, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gt-modal-backdrop[hidden] {
  display: none !important;
}

.gt-modal-panel {
  background: var(--bg-slate);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.92);
}

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

.gt-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.gt-modal-close {
  background: transparent;
  border: 1px solid var(--border-slate);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.gt-modal-body {
  padding: 24px;
}

.gt-vs-grid {
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  gap: 20px;
  align-items: center;
}

.gt-vs-player-box {
  background: #090b10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.gt-vs-stat-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--font-display);
  font-size: 1rem;
}

.gt-vs-stat-row .vs-win {
  color: var(--gold-bright);
  font-weight: 700;
}

.gt-hs-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gt-hs-box {
  background: #090b10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gt-hs-step-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

.gt-code-display-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed var(--gold-bright);
  padding: 10px 14px;
  border-radius: 8px;
}

.gt-code-pill {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-bright);
}

/* ==========================================================================
   8. SAVE-AS-YOU-GO APPLICATION DASHBOARD & ADMIN CALIBRATION LAB
   ========================================================================== */
.gt-dash-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 32px;
  align-items: start;
}

.gt-sticky-preview {
  position: sticky;
  top: 94px;
  background: var(--bg-slate);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.gt-slot-card {
  background: var(--bg-slate);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}

.gt-slot-card.slot-done {
  border-color: rgba(16, 185, 129, 0.55);
}

.gt-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gt-slot-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
}

.gt-badge-mandatory {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.gt-badge-optional {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.gt-tap-guide {
  background: #080a0f;
  border-left: 3px solid var(--gold-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 10px 0;
}

.gt-ai-json-box {
  background: #06070a;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  font-family: monospace;
  font-size: 0.78rem;
  color: #a7f3d0;
  max-height: 170px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.gt-feedback-banner {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
}

.gt-feedback-banner.ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--emerald-ok);
  color: #a7f3d0;
}

.gt-feedback-banner.err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--crimson-err);
  color: #fecaca;
}

/* Footer */
.gt-footer {
  margin-top: 70px;
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.gt-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.gt-footer-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 460px;
}

.gt-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-footer-links h4 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.gt-footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.gt-footer-disclaimer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 20px;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.gt-copyright {
  margin-top: 8px;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .gt-hero-grid,
  .gt-dash-layout,
  .gt-vs-grid,
  .gt-hs-steps,
  .gt-footer-grid {
    grid-template-columns: 1fr;
  }
  .gt-sticky-preview {
    position: static;
  }
  .gt-lb-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .gt-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .gt-lb-filters {
    grid-template-columns: 1fr;
  }
}
