/* =====================================================
   cssettings.gg — Styles
   ===================================================== */

.inventory-toolbar, .inventory-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.inventory-toolbar label { display: grid; gap: 6px; color: var(--text-2); flex: 1; min-width: 180px; }
.inventory-toolbar input { background: var(--card); color: var(--text-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font: inherit; }
.inventory-toolbar a, .inventory-card a { color: var(--cyan); font-size: 13px; }
.inventory-summary { justify-content: space-between; color: var(--text-2); }
.inventory-summary strong, .inventory-card strong { color: var(--cyan); }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.inventory-card { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.inventory-card img { height: 140px; width: 100%; object-fit: contain; }
.inventory-card h3 { font-size: 15px; overflow-wrap: anywhere; }
.inventory-card p { color: var(--text-2); font-size: 12px; }
.inventory-card strong { margin-top: auto; }
.inventory-toolbar button:disabled { opacity: .5; cursor: wait; }
.inventory-toolbar input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ----- Variables ----- */
:root {
  --bg:          #07090f;
  --bg-alt:      #0d1117;
  --card:        #111520;
  --card-hover:  #161c2a;
  --border:      rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 212, 255, 0.2);
  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0, 212, 255, 0.08);
  --cyan-mid:    rgba(0, 212, 255, 0.15);
  --purple:      #7c3aed;
  --purple-dim:  rgba(124, 58, 237, 0.08);
  --red:         #ff4444;
  --gold:        #f59e0b;
  --silver:      #94a3b8;
  --bronze:      #cd7f32;
  --green:       #00ff41;
  --text-1:      #f0f2f7;
  --text-2:      #8892a4;
  --text-3:      #4a5568;
  --font-head:   'Rajdhani', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      10px;
  --radius-lg:   16px;
  --glow:        0 0 40px rgba(0, 212, 255, 0.1);
  --glow-card:   0 0 0 1px rgba(0, 212, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
  --trans:       0.25s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ----- Utilities ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--cyan) !important; }

/* ----- Selection ----- */
::selection { background: var(--cyan-mid); color: var(--cyan); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.nav.scrolled {
  background: rgba(7, 9, 15, 0.97);
  border-bottom-color: var(--border-glow);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-1);
  white-space: nowrap;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
}

.nav-link:hover,
.nav-link.active { color: var(--cyan); background: var(--cyan-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cyan); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cyan); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  top: -100px; left: -100px;
  background: rgba(0, 212, 255, 0.04);
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: rgba(124, 58, 237, 0.05);
  animation-delay: 2s;
}

.hero-glow-3 {
  width: 400px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 212, 255, 0.03);
  animation-delay: 4s;
}

@keyframes glowPulse {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}

.hero-glow-3 {
  animation: glowPulse3 6s ease-in-out infinite alternate;
}

@keyframes glowPulse3 {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: heroFadeIn 0.8s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-avatar-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin-bottom: 8px;
}

.hero-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 6px var(--cyan-dim), 0 0 40px var(--cyan-mid);
}

.hero-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-online-dot {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 18px; height: 18px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text-1);
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}

.hero-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.hero-tag-id {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 32px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
}

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1rem;
  transition: all var(--trans);
}

.social-btn:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  font-size: 0.9rem;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--trans);
}

.hero-scroll-hint:hover { color: var(--cyan); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =====================================================
   SECTIONS (shared)
   ===================================================== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
  position: relative;
}

.section-alt::before,
.section-alt::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-alt::before { top: 0; }
.section-alt::after  { bottom: 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  opacity: 0.75;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-1);
  line-height: 1.1;
}

.section-sub {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate:nth-child(2) { transition-delay: 0.08s; }
.animate:nth-child(3) { transition-delay: 0.16s; }
.animate:nth-child(4) { transition-delay: 0.24s; }
.animate:nth-child(5) { transition-delay: 0.32s; }
.animate:nth-child(6) { transition-delay: 0.40s; }

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-bio p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-bio p:last-child { margin-bottom: 0; }

.about-facts {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.fact-row:last-child { border-bottom: none; }
.fact-row:hover { background: rgba(255, 255, 255, 0.02); }

.fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}

.fact-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-1);
  font-weight: 500;
}

/* =====================================================
   SETTINGS
   ===================================================== */
.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--trans);
}

.tab-btn:hover { color: var(--text-2); background: rgba(255,255,255,0.02); }

.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: var(--cyan-dim);
}

.tab-panel {
  display: none;
  padding: 32px;
}

.tab-panel.active { display: block; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.settings-grid.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background var(--trans);
}

.setting-row:last-child { border-bottom: none; }

.setting-row.highlight {
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  border-radius: 8px;
  background: var(--cyan-dim);
  border-bottom-color: transparent;
}

.setting-name {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 400;
}

.setting-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
  text-align: right;
}

.setting-value.on  { color: #22c55e; }
.setting-value.off { color: var(--text-3); }
.setting-value.accent { color: var(--cyan); }

/* --- Crosshair Layout --- */
.crosshair-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.crosshair-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 180px;
}

.crosshair-preview-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

.crosshair-preview {
  width: 120px; height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.crosshair-svg {
  width: 80px; height: 80px;
}

.crosshair-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.crosshair-code-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.crosshair-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}

.crosshair-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  color: var(--text-3);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--trans);
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--cyan); background: var(--cyan-dim); }
.copy-btn.copied { color: #22c55e; }

/* =====================================================
   GEAR
   ===================================================== */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gear-grid > .gear-card:nth-child(4),
.gear-grid > .gear-card:nth-child(5) {
  grid-column: auto;
}

.gear-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--trans);
}

.gear-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-card);
  transform: translateY(-3px);
}

.gear-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  overflow: hidden;
}

.gear-img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.gear-card:hover .gear-img { transform: scale(1.05); }

.gear-img-wrap--icon {
  background: rgba(0,212,255,0.04);
}
.gear-img-icon {
  font-size: 3.2rem;
  color: rgba(0,212,255,0.2);
}

.gear-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gear-icon {
  width: 40px; height: 40px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.gear-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-weight: 500;
}

.gear-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.gear-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.gear-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.gear-specs li:last-child { border-bottom: none; }

.gear-specs li span:first-child { color: var(--text-3); }
.gear-specs li span:last-child  { color: var(--text-1); font-family: var(--font-mono); font-size: 0.8rem; }

/* =====================================================
   PC SPECS
   ===================================================== */
.specs-grid {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 96px 160px 1fr 1fr;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  transition: background var(--trans);
}

.spec-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 60px;
}

.spec-img {
  max-width: 90px;
  max-height: 56px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s;
}
.spec-row:hover .spec-img { transform: scale(1.06); }

.spec-img-wrap--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-os-icon {
  font-size: 2rem;
  color: rgba(0,212,255,0.35);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(255, 255, 255, 0.02); }

.spec-component {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-icon {
  width: 20px;
  color: var(--text-3);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.spec-icon.accent { color: var(--cyan); }

.spec-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

.spec-value {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

.spec-detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: right;
}

/* =====================================================
   PHOTOS / GALLERY
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--trans);
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover { border-color: var(--border-glow); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  color: var(--text-2);
  font-size: 1.4rem;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--trans);
}

.lightbox-close:hover { color: var(--cyan); background: var(--cyan-dim); }

/* =====================================================
   VIDEOS
   ===================================================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--trans);
}

.video-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-card);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  transition: background var(--trans);
}

.video-play-btn i {
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform var(--trans), box-shadow var(--trans);
}

.video-card:hover .video-play-btn i {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

.video-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-badge.youtube { background: #ff0000; color: white; }
.video-badge.twitch  { background: #9146ff; color: white; }

.video-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.video-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
}

.video-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* =====================================================
   ACHIEVEMENTS
   ===================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ach-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--trans);
}

.ach-card:hover {
  transform: translateY(-2px);
}

.ach-card.gold  { border-color: rgba(245, 158, 11, 0.2); }
.ach-card.gold:hover  { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08); }

.ach-card.silver { border-color: rgba(148, 163, 184, 0.2); }
.ach-card.silver:hover { border-color: rgba(148, 163, 184, 0.4); box-shadow: 0 8px 32px rgba(148, 163, 184, 0.08); }

.ach-card.bronze { border-color: rgba(205, 127, 50, 0.2); }
.ach-card.bronze:hover { border-color: rgba(205, 127, 50, 0.4); box-shadow: 0 8px 32px rgba(205, 127, 50, 0.08); }

.ach-card.blue { border-color: var(--border-glow); }
.ach-card.blue:hover { border-color: rgba(0, 212, 255, 0.35); box-shadow: var(--glow-card); }

.ach-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ach-badge.gold   { background: rgba(245, 158, 11, 0.12); color: var(--gold); }
.ach-badge.silver { background: rgba(148, 163, 184, 0.12); color: var(--silver); }
.ach-badge.bronze { background: rgba(205, 127, 50, 0.12); color: var(--bronze); }
.ach-badge.blue   { background: var(--cyan-dim); color: var(--cyan); }

.ach-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ach-placement {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ach-card.gold   .ach-placement { color: var(--gold); }
.ach-card.silver .ach-placement { color: var(--silver); }
.ach-card.bronze .ach-placement { color: var(--bronze); }
.ach-card.blue   .ach-placement { color: var(--cyan); }

.ach-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ach-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 2px;
}

.ach-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 6px;
  display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--trans);
}

.footer-logo:hover { color: var(--text-1); }
.footer-logo span { color: var(--cyan); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
}

.footer-copy strong { color: var(--text-2); }

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  color: var(--text-3);
  font-size: 1rem;
  transition: color var(--trans);
}

.footer-socials a:hover { color: var(--cyan); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gear-grid > .gear-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-row {
    grid-template-columns: 72px 130px 1fr;
  }

  .spec-detail { display: none; }
  .spec-img-wrap { width: 72px; height: 48px; }
  .spec-img { max-width: 68px; max-height: 44px; }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid > .video-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(7, 9, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
    display: block;
  }

  .nav-toggle { display: flex; }

  .section { padding: 70px 0; }

  .section-header { margin-bottom: 40px; }

  .hero-stats {
    padding: 12px 16px;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat { padding: 8px 16px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .settings-grid.two-col {
    grid-template-columns: 1fr;
  }

  .crosshair-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .crosshair-preview-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: unset;
  }

  .gear-grid {
    grid-template-columns: 1fr;
  }

  .gear-grid > .gear-card:nth-child(5) {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid > .video-card:last-child {
    grid-column: auto;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 56px 110px 1fr;
    padding: 12px 16px;
    gap: 12px;
  }
  .spec-img-wrap { width: 56px; height: 40px; }
  .spec-img { max-width: 52px; max-height: 36px; }

  .tab-btn {
    padding: 14px 16px;
    font-size: 0.76rem;
  }

  .tab-panel { padding: 24px 20px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(48px, 18vw, 80px); }

  .hero-stat-divider { display: none; }

  .hero-stat { padding: 6px 12px; }

  .section-title { font-size: 28px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .hero-socials { flex-wrap: wrap; justify-content: center; }
}

/* =====================================================
   HERO — Profile Link
   ===================================================== */
.hero-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--trans);
  margin-top: -4px;
}

.hero-profile-link:hover {
  background: var(--cyan-mid);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-1px);
}

/* =====================================================
   SETTINGS — Grid Section Header
   ===================================================== */
.settings-grid-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  opacity: 0.8;
}

/* =====================================================
   WOOTING / KEYBOARD TAB
   ===================================================== */

.wt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.wt-share-wrap { margin-top: 4px; }

/* 8000 Hz badge */
.wt-hz-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
  line-height: 1;
}
.wt-hz-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-shadow: 0 0 14px rgba(0,212,255,0.45);
}
.wt-hz-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 2px;
}
.wt-hz-label {
  font-size: 0.62rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

/* Two-column grid */
.wt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.wt-section-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.wt-section-title i { color: var(--cyan); }

/* Actuation depth groups */
.wt-ap-group { margin-bottom: 20px; }

.wt-ap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.wt-ap-keys {
  font-size: 0.78rem;
  color: var(--text-2);
}

.wt-ap-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Depth bar */
.wt-ap-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.wt-ap-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.wt-ap-default {
  width: 50%; /* 2.00 / 4.00 mm */
  background: rgba(139, 154, 179, 0.35);
}

.wt-ap-low {
  width: 17.5%; /* 0.70 / 4.00 mm */
  background: linear-gradient(90deg, var(--cyan), rgba(0,212,255,0.55));
  box-shadow: 0 0 10px rgba(0,212,255,0.45);
}

.wt-ap-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.wt-ap-scale span {
  font-size: 0.62rem;
  color: var(--text-2);
  opacity: 0.5;
}

/* Key cap chips */
.wt-key-chips,
.wt-rt-keys { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

.wt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.wt-key-sm {
  min-width: 22px;
  height: 22px;
  font-size: 0.65rem;
}

/* Responsive */
@media (max-width: 640px) {
  .wt-header { flex-direction: column; }
  .wt-hz-badge { align-self: flex-start; flex-direction: row; gap: 10px; align-items: center; padding: 8px 16px; }
  .wt-hz-num { font-size: 1.3rem; }
  .wt-hz-label { margin-top: 0; }
  .wt-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =====================================================
   CROSSHAIR — Info layout (replaces left column grid)
   ===================================================== */
.crosshair-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crosshair-note {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.crosshair-note strong { color: var(--text-1); }

/* =====================================================
   CONFIG & BINDS
   ===================================================== */
.config-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.config-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.config-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.config-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.config-card-title i { color: var(--cyan); font-size: 0.85rem; }

.config-card-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-3);
  margin-left: 4px;
}

.cfg-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.cfg-path {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.cfg-path-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

.cfg-path code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  word-break: break-all;
}

.cfg-download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 18px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cfg-download-btn:hover {
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.5);
}
.cfg-download-btn i { font-size: 1rem; }
.cfg-download-btn span:first-of-type { flex: 1; }
.cfg-download-badge {
  font-size: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  padding: 2px 8px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 700;
}

/* ----- Binds ----- */
.binds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.bind-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  opacity: 0.8;
}

.bind-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bind-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.bind-row:last-child { border-bottom: none; }

.bind-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.key-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.key-plus {
  font-size: 0.65rem;
  color: var(--text-3);
  line-height: 1;
}

.bind-action {
  font-size: 0.82rem;
  color: var(--text-2);
  text-align: right;
  line-height: 1.4;
}

.bind-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ----- Nade Config ----- */
.copy-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all var(--trans);
  flex-shrink: 0;
}

.copy-btn-large:hover {
  background: var(--cyan-mid);
  box-shadow: 0 0 16px rgba(0,212,255,0.15);
}

.copy-btn-large.copied { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }

.code-block {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--text-3) transparent;
  margin-top: 4px;
}

.code-block::-webkit-scrollbar { height: 4px; }
.code-block::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 2px; }

/* =====================================================
   WINDOWS TWEAKS
   ===================================================== */
.tweaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tweak-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: all var(--trans);
}

.tweak-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-card);
}

.tweak-status {
  flex-shrink: 0;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  align-self: flex-start;
  margin-top: 2px;
}

.tweak-status.on       { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.tweak-status.off      { background: rgba(255,68,68,0.1);   color: var(--red); border: 1px solid rgba(255,68,68,0.2); }
.tweak-status.max      { background: var(--cyan-dim);       color: var(--cyan); border: 1px solid var(--border-glow); }

.tweak-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.tweak-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tweak-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* =====================================================
   RESPONSIVE — New sections
   ===================================================== */
@media (max-width: 1024px) {
  .binds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .config-top-row {
    grid-template-columns: 1fr;
  }

  .binds-grid {
    grid-template-columns: 1fr;
  }

  .config-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .copy-btn-large { width: 100%; justify-content: center; }

  .tweaks-grid {
    grid-template-columns: 1fr;
  }

  .crosshair-layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   UTILITY
   ===================================================== */
.hidden { display: none !important; }

/* =====================================================
   FACEIT STATS — Nav link
   ===================================================== */
.nav-link.nav-link-faceit            { color: #FF5500; }
.nav-link.nav-link-faceit:hover,
.nav-link.nav-link-faceit.active     { color: #FF5500; background: rgba(255,85,0,0.1); }

/* =====================================================
   FACEIT STATS — Live dot
   ===================================================== */
.fi-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* =====================================================
   FACEIT STATS — Skeleton loader
   ===================================================== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.fi-skel-card,
.fi-skel-match,
.fi-skel-label {
  background: linear-gradient(
    90deg,
    var(--card) 25%,
    var(--card-hover) 50%,
    var(--card) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}

.fi-skel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.fi-skel-card  { height: 96px; }

.fi-skel-label {
  width: 180px;
  height: 16px;
  margin-bottom: 16px;
}

.fi-skel-matches { display: flex; flex-direction: column; gap: 10px; }
.fi-skel-match   { height: 52px; border-radius: var(--radius); }

/* =====================================================
   FACEIT STATS — Error state
   ===================================================== */
.fi-error {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fi-error-icon {
  font-size: 2.4rem;
  color: #FF5500;
  opacity: 0.8;
}

.fi-error-msg {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
}

.fi-error-sub { font-size: 0.85rem; color: var(--text-3); }

.fi-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255,85,0,0.1);
  border: 1px solid rgba(255,85,0,0.3);
  border-radius: 8px;
  color: #FF5500;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  transition: all var(--trans);
}

.fi-retry-btn:hover {
  background: rgba(255,85,0,0.18);
  box-shadow: 0 0 20px rgba(255,85,0,0.15);
}

/* =====================================================
   FACEIT STATS — Stat cards
   ===================================================== */
.fi-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.fi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--trans);
}

.fi-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-card);
  transform: translateY(-2px);
}

/* Level card — diamond badge */
.fi-diamond {
  width: 50px; height: 50px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fi-diamond::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--lc, #CCCCCC);
  transform: rotate(45deg);
  border-radius: 4px;
}

.fi-diamond-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(0,0,0,0.85);
  line-height: 1;
}

/* Generic icon cards */
.fi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.fi-icon-elo { background: rgba(255,85,0,0.08); border-color: rgba(255,85,0,0.2); color: #FF5500; }

.fi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.fi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}

.fi-val {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
  white-space: nowrap;
}

.fi-elo-val { color: #FF5500; }

.fi-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   FACEIT STATS — Recent matches
   ===================================================== */
.fi-matches-section { display: flex; flex-direction: column; gap: 12px; }

.fi-matches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fi-matches-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fi-matches-title i { color: var(--cyan); }

.fi-timestamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.fi-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fi-match {
  display: grid;
  grid-template-columns: 36px 1fr auto auto 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--trans);
  border-left-width: 3px;
}

.fi-match:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: translateX(3px);
}

.fi-w { border-left-color: #22c55e; }
.fi-l { border-left-color: var(--red); }

.fi-badge {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.fi-badge-w { background: rgba(34,197,94,0.15); color: #22c55e; }
.fi-badge-l { background: rgba(255,68,68,0.12);  color: var(--red); }

.fi-map {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.fi-score {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.fi-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.fi-ext-icon {
  font-size: 0.65rem;
  color: var(--text-3);
  transition: color var(--trans);
}

.fi-match:hover .fi-ext-icon { color: var(--cyan); }

.fi-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  padding: 32px;
}

/* =====================================================
   FACEIT STATS — Responsive
   ===================================================== */
@media (max-width: 1200px) {
  .fi-stats-row { grid-template-columns: repeat(3, 1fr); }
  .fi-skel-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .fi-stats-row { grid-template-columns: repeat(2, 1fr); }
  .fi-skel-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .fi-match {
    grid-template-columns: 36px 1fr auto 24px;
    gap: 12px;
    padding: 12px 16px;
  }

  .fi-date { display: none; }

  .fi-val { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .fi-stats-row { grid-template-columns: 1fr 1fr; }

  .fi-match {
    grid-template-columns: 32px 1fr auto;
  }

  .fi-ext-icon { display: none; }
}

/* ===================================================================
   STEAM CARD
   =================================================================== */

.st-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.st-card:hover { border-color: rgba(255,255,255,0.1); }

/* Left: avatar + profile */
.st-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.st-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.st-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: block;
  border: 2px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

.st-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: #555;
  transition: background 0.3s;
}

.st-profile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.st-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-logo-icon {
  color: #1b9ede;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.st-status-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.st-game {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.st-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.07);
  margin: 0 28px;
  flex-shrink: 0;
}

/* Right: hours stats */
.st-right {
  display: flex;
  gap: 36px;
  flex-shrink: 0;
}

.st-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.st-stat-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.st-stat-label {
  font-size: 0.68rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.csstats-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.csstats-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.csstats-header h3 { font-size: 1rem; margin: 0 0 6px; }
.csstats-header p, .csstats-detail { font-size: 0.75rem; color: var(--text-2); }
.csstats-header p { margin: 0; }
.csstats-header a { font-size: 0.75rem; color: var(--cyan); text-decoration: underline; }
.csstats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#csstatsBest { color: #eb4b4b; }
#csstatsTracking { margin: 20px 0 0; }
@media (max-width: 480px) { .csstats-grid { grid-template-columns: 1fr; } }

/* Skeleton */
.st-skeleton {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.st-skel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}

.st-skel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-skel-line {
  height: 13px;
  border-radius: 4px;
  width: 35%;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}
.st-skel-line.st-skel-wide { width: 55%; }

.st-skel-stats {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.st-skel-stat {
  width: 80px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* Error */
.st-error {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 14px 24px;
  margin-bottom: 28px;
  color: var(--text-2);
  font-size: 0.84rem;
}
.st-error > i { color: #f59e0b; }
.st-retry-btn {
  padding: 5px 12px !important;
  font-size: 0.74rem !important;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .st-card { flex-wrap: wrap; gap: 16px; }
  .st-divider { display: none; }
  .st-right { gap: 24px; }
  .st-stat-val { font-size: 1.15rem; }
}

/* ===================================================================
   PERFORMANCE CHARTS  (#charts section)
   =================================================================== */

/* Layout */
.ch-layout  { display: flex; flex-direction: column; gap: 20px; }
.ch-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Cards */
.ch-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.ch-card:hover { border-color: rgba(255,255,255,0.1); }
.ch-card-full  { width: 100%; }

.ch-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.ch-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-card-title i { color: var(--cyan); font-size: 0.85rem; }

.ch-card-sub {
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Canvas wrapper */
.ch-wrap {
  position: relative;
  width: 100%;
}
.ch-wrap canvas {
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.15));
}

/* Skeleton */
.ch-skeleton  { display: flex; flex-direction: column; gap: 20px; }
.ch-skel-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ch-skel {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
}
.ch-skel-full  { height: 320px; }
.ch-skel-half  { height: 340px; }
.ch-skel-hmap  { height: 120px; }

/* ----- GitHub-style Match Activity Heatmap ----- */

.hm-gh { display: flex; flex-direction: column; gap: 0; }

.hm-gh-header { margin-bottom: 10px; }
.hm-gh-count  {
  font-size: 0.78rem;
  color: var(--text-2);
  opacity: 0.75;
}

/* Horizontal scroll wrapper (hides scrollbar, enables touch scroll) */
.hm-gh-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hm-gh-scroll::-webkit-scrollbar { display: none; }

/* Inner canvas — min-width keeps it from collapsing */
.hm-gh-canvas {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  min-width: max-content;
}

/* Month labels row — positioned absolutely relative to the weeks area */
.hm-gh-months {
  position: relative;
  height: 18px;
  margin-left: 34px; /* match day-label column width + gap */
  overflow: visible;
}
.hm-gh-months span {
  position: absolute;
  top: 0;
  font-size: 10px;
  color: var(--text-2);
  opacity: 0.6;
  white-space: nowrap;
  user-select: none;
}

/* Row: day labels on left, week columns on right */
.hm-gh-body {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.hm-gh-days {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  width: 30px;
  padding-top: 1px;
}
.hm-gh-day {
  height: 13px;
  line-height: 13px;
  font-size: 10px;
  color: var(--text-2);
  opacity: 0.55;
  text-align: right;
  padding-right: 4px;
  user-select: none;
}

/* Week columns */
.hm-gh-weeks {
  display: flex;
  gap: 3px;
}
.hm-gh-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Individual cells */
.hm-cell {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  cursor: default;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.hm-cell:hover { opacity: 0.75; }

/* Intensity levels — cyan scheme */
.hm-l0 { background: rgba(255,255,255,0.06); }
.hm-l1 { background: rgba(0, 212, 255, 0.20); }
.hm-l2 { background: rgba(0, 212, 255, 0.42); }
.hm-l3 { background: rgba(0, 212, 255, 0.68); }
.hm-l4 { background: rgba(0, 212, 255, 0.92); box-shadow: 0 0 5px rgba(0,212,255,0.45); }
.hm-lx { background: transparent; } /* future dates */

/* Legend */
.hm-gh-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}
.hm-gh-footer span {
  font-size: 10px;
  color: var(--text-2);
  opacity: 0.55;
}
.hm-gh-footer .hm-cell {
  width: 11px;
  height: 11px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .ch-row { grid-template-columns: 1fr; }
  .ch-skel-row { grid-template-columns: 1fr; }
  .ch-skel-half { height: 280px; }
}

@media (max-width: 480px) {
  .ch-card { padding: 16px; }
  .ch-card-head { flex-direction: column; gap: 4px; }
}
