/* ===================================================================
   GENA SAMURAI • MAJESTIC RP • SUPREME CENTERPIECE THEME
   Visual Style: Tactical Dark, Japanese Bushido, Neon Cyberpunk, 808 Pumping Beats
   =================================================================== */

:root {
  --bg-dark: #080a0e;
  --bg-card: rgba(13, 16, 23, 0.88);
  --bg-card-hover: rgba(18, 22, 33, 0.95);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(229, 169, 60, 0.5);
  --border-red: rgba(255, 45, 85, 0.5);
  --border-cyan: rgba(0, 240, 255, 0.4);

  --gold-primary: #e5a93c;
  --gold-light: #f7d084;
  --samurai-red: #ff2d55;
  --samurai-red-glow: rgba(255, 45, 85, 0.45);

  --gta-green: #37d67a;
  --gta-green-glow: rgba(55, 214, 122, 0.4);
  --gta-cyan: #00f0ff;
  --gta-purple: #bf5af2;

  --text-main: #ffffff;
  --text-sub: #a6adb9;
  --text-dim: #6d7585;

  --font-main: 'Montserrat', sans-serif;
  --font-hud: 'Teko', sans-serif;
  --font-cyber: 'Orbitron', monospace;
  --font-kanji: 'Yuji Boku', serif;

  --shadow-main: 0 16px 50px rgba(0, 0, 0, 0.8);
  --glow-gold: 0 0 25px rgba(229, 169, 60, 0.35);
  --glow-red: 0 0 30px rgba(255, 45, 85, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
}

/* Стили для SVG иконки громкости */
.speaker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--samurai-red);
}

.speaker-icon svg {
  filter: drop-shadow(0 0 6px var(--samurai-red-glow));
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* По умолчанию играет: показываем волны, скрываем крестик */
.icon-sound-on {
  display: block;
}

.icon-sound-off {
  display: none;
}

/* Когда звук выключен (класс .muted на виджете) */
.floating-speaker-widget.muted .icon-sound-on {
  display: none;
}

.floating-speaker-widget.muted .icon-sound-off {
  display: block;
}

.floating-speaker-widget.muted .speaker-icon {
  color: #888888;
}

.floating-speaker-widget.muted .speaker-icon svg {
  filter: none;
}

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

body.samurai-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.4;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb {
  background: var(--samurai-red);
  border-radius: 3px;
}

/* ===================================================================
   BACKGROUND VIDEO & CANVASES
   =================================================================== */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.48) contrast(1.15) saturate(1.1);
  transition: filter 0.5s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(12, 15, 22, 0.55) 0%, rgba(5, 7, 10, 0.94) 100%);
}

.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 4px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.scanlines.disabled {
  opacity: 0 !important;
}

.vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===================================================================
   TOP GTA V & MAJESTIC RP HUD
   =================================================================== */
.gta-hud-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.96) 0%, rgba(10, 13, 18, 0.85) 85%, rgba(10, 13, 18, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.majestic-brand {
  display: flex;
  flex-direction: column;
}

.m-logo {
  font-family: var(--font-hud);
  font-size: 1.55rem;
  letter-spacing: 1.5px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
}

.m-logo strong {
  color: var(--samurai-red);
  margin-left: 2px;
}

.m-slogan {
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 0.8px;
}

.collooors{
  color: #d61f43;
}

.server-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(229, 169, 60, 0.25);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gta-green);
  box-shadow: 0 0 10px var(--gta-green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.server-info {
  display: flex;
  flex-direction: column;
}

.server-title {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--gold-light);
}

.server-sub {
  font-size: 0.68rem;
  color: var(--text-sub);
}

.server-sub strong {
  color: #fff;
}

.hud-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.kanji-seal {
  font-family: var(--font-kanji);
  font-size: 1.8rem;
  color: var(--samurai-red);
  text-shadow: 0 0 12px var(--samurai-red-glow);
  opacity: 0.9;
}

.faction-header-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 45, 85, 0.35);
}

.f-rank {
  font-family: var(--font-cyber);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 700;
}

.f-name {
  font-family: var(--font-hud);
  font-size: 1.55rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Wanted Stars */
.wanted-level-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.wanted-label {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  color: var(--samurai-red);
  font-weight: 700;
}

.wanted-stars {
  display: flex;
  gap: 2px;
}

.star-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-btn.active {
  color: #ffcc00;
  text-shadow: 0 0 12px rgba(255, 204, 0, 0.9), 0 0 20px rgba(255, 45, 85, 0.6);
  animation: wanted-flash 0.9s infinite alternate;
}

@keyframes wanted-flash {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

/* Cash HUD */
.money-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cash-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.money-symbol,
.money-val {
  font-family: var(--font-hud);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gta-green);
  line-height: 0.9;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px var(--gta-green-glow);
}

.bank-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-sub);
  font-family: var(--font-cyber);
}

.bank-symbol,
.bank-val {
  color: #4da6ff;
  font-weight: 700;
}

.btn-hud-action {
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-hud);
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-hud-action:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: var(--glow-gold);
}

/* ===================================================================
   CENTERPIECE LAYOUT (HERO CENTER STAGE + FLANKING WINGS)
   =================================================================== */
.centerpiece-layout {
  max-width: 1720px;
  margin: 86px auto 100px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 330px minmax(580px, 760px) 330px;
  justify-content: center;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 10;
}

/* Side Panels */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
}

.panel-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 169, 60, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.header-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.card-header h3 {
  font-family: var(--font-hud);
  font-size: 1.3rem;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  line-height: 1;
}

/* Ranks Tree (samurai.py ranks!) */
.ranks-tree {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.rank-item.leader {
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.2) 0%, rgba(229, 169, 60, 0.15) 100%);
  border-color: var(--samurai-red);
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.2);
}

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.rank-item.leader .rank-num {
  background: var(--samurai-red);
  color: #fff;
}

.rank-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}

.rank-details strong {
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.rank-details span {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.rank-badge {
  font-family: var(--font-cyber);
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
}

.rank-badge.boss {
  background: var(--samurai-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 8px var(--samurai-red-glow);
}

/* Family Stats */
.family-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.f-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.f-stat-val {
  font-family: var(--font-hud);
  font-size: 1.55rem;
  line-height: 1;
  display: block;
}

.f-stat-lbl {
  font-size: 0.56rem;
  color: var(--text-dim);
  font-family: var(--font-cyber);
  letter-spacing: 0.8px;
}

.highlight-gold {
  color: var(--gold-primary) !important;
}

.highlight-green {
  color: var(--gta-green) !important;
}

.highlight-cyan {
  color: var(--gta-cyan) !important;
}

.highlight-red {
  color: var(--samurai-red) !important;
}

/* Creed List */
.creed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.78rem;
  color: #c4c9d4;
}

.creed-list li {
  position: relative;
  padding-left: 14px;
}

.creed-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--samurai-red);
}

.creed-list strong {
  color: #fff;
}

/* ===================================================================
   CENTER HERO STAGE (YOUR PHOTO AS THE SUPREME CENTERPIECE)
   =================================================================== */
.hero-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.samurai-hero-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: #000;
  border: 2px solid rgba(255, 45, 85, 0.45);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(255, 45, 85, 0.25),
    inset 0 0 25px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.samurai-hero-card:hover {
  border-color: var(--samurai-red);
  box-shadow:
    0 32px 75px rgba(0, 0, 0, 0.95),
    0 0 65px rgba(255, 45, 85, 0.45),
    0 0 30px rgba(229, 169, 60, 0.25);
}

.kanji-floating-bg {
  position: absolute;
  font-family: var(--font-kanji);
  font-size: 16rem;
  color: rgba(255, 45, 85, 0.05);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.kanji-floating-bg.left {
  top: -20px;
  left: -40px;
}

.kanji-floating-bg.right {
  bottom: -30px;
  right: -40px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

#main-samurai-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.samurai-hero-card:hover #main-samurai-photo {
  transform: scale(1.025);
}

.image-inner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.4) 0%,
      transparent 25%,
      transparent 55%,
      rgba(6, 8, 12, 0.92) 85%,
      rgba(4, 5, 8, 0.98) 100%);
  pointer-events: none;
}

/* Top Tag on Image */
.hero-top-tag {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.tag-project {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
}

.tag-status {
  background: rgba(55, 214, 122, 0.18);
  border: 1px solid var(--gta-green);
  color: var(--gta-green);
  font-family: var(--font-cyber);
  font-size: 0.64rem;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gta-green);
  box-shadow: 0 0 8px var(--gta-green);
  animation: pulse-dot 1.5s infinite;
}

.hero-bottom-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(0deg, rgba(8, 10, 16, 0.95) 0%, rgba(8, 10, 16, 0.75) 70%, transparent 100%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.m-red-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--samurai-red);
  margin-right: 5px;
  box-shadow: 0 0 8px var(--samurai-red);
}

.chip {
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c2c8d6;
  font-family: var(--font-cyber);
  letter-spacing: 0.5px;
}

.chip strong {
  color: #fff;
}

/* ===================================================================
   MUSIC CONTROLLER DECK ("МУЗОНЧИК КОТОРЫЙ КАЧАЕТ")
   =================================================================== */
.music-controller-deck {
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 20, 28, 0.94) 0%, rgba(9, 11, 16, 0.96) 100%);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 45, 85, 0.2);
  backdrop-filter: blur(16px);
  position: relative;
}

.deck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-wave-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.sound-wave-icon span {
  width: 3px;
  height: 6px;
  background: var(--samurai-red);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.sound-wave-icon.playing span:nth-child(1) {
  animation: wavePulse 0.6s infinite alternate;
}

.sound-wave-icon.playing span:nth-child(2) {
  animation: wavePulse 0.4s infinite alternate 0.15s;
}

.sound-wave-icon.playing span:nth-child(3) {
  animation: wavePulse 0.7s infinite alternate 0.3s;
}

.sound-wave-icon.playing span:nth-child(4) {
  animation: wavePulse 0.5s infinite alternate 0.1s;
}

@keyframes wavePulse {
  0% {
    height: 4px;
  }

  100% {
    height: 22px;
    background: var(--gold-primary);
  }
}

.now-playing-label {
  font-family: var(--font-cyber);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  display: block;
}

.track-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
}

.deck-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-play-pump {
  background: linear-gradient(135deg, var(--samurai-red) 0%, #d61f43 100%);
  border: none;
  color: #fff;
  font-family: var(--font-hud);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 0 20px var(--samurai-red-glow);
  transition: all 0.25s ease;
}

.btn-play-pump:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.6);
}

.btn-play-pump.playing {
  background: linear-gradient(135deg, var(--gta-green) 0%, #1fa851 100%);
  color: #000;
  box-shadow: 0 0 25px var(--gta-green-glow);
  animation: pumpingButton 0.8s infinite alternate;
}

@keyframes pumpingButton {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.04);
  }
}

.btn-bass-boost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-sub);
  font-family: var(--font-cyber);
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bass-boost.active {
  background: rgba(229, 169, 60, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: var(--glow-gold);
}

.visualizer-container {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

#visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.track-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.track-btn,
.custom-track-upload {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  font-family: var(--font-hud);
  font-size: 1.05rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-btn:hover,
.custom-track-upload:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.track-btn.active {
  background: var(--samurai-red);
  border-color: var(--samurai-red);
  color: #fff;
  font-weight: 700;
}

.custom-track-upload input {
  display: none;
}

/* ===================================================================
   RIGHT PANEL: GARAGE, ARSENAL, CONTACTS
   =================================================================== */
.garage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.car-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  transition: all 0.25s ease;
}

.car-mini-item:hover {
  border-color: rgba(229, 169, 60, 0.4);
  transform: translateY(-2px);
}

.car-mini-item img {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.car-details {
  display: flex;
  flex-direction: column;
}

.car-details strong {
  font-size: 0.78rem;
  color: #fff;
}

.car-details span {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Arsenal Rows */
.arsenal-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arsenal-row {
  display: grid;
  grid-template-columns: 1fr 60px 35px;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.weap-name {
  color: #d0d5e0;
}

.weap-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.weap-bar span {
  display: block;
  height: 100%;
  background: var(--gta-cyan);
}

.weap-rating {
  font-family: var(--font-cyber);
  font-size: 0.65rem;
  color: var(--gta-cyan);
  text-align: right;
  font-weight: 700;
}

/* Contacts List */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.discord-item .contact-icon {
  color: #5865F2;
}

.telegram-item .contact-icon {
  color: #229ED9;
}

.youtube-item .contact-icon {
  color: #FF0000;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c-label {
  font-family: var(--font-cyber);
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.c-val {
  font-size: 0.84rem;
  color: #fff;
}

.btn-mini-copy,
.btn-mini-link {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mini-copy:hover,
.btn-mini-link:hover {
  background: #fff;
  color: #000;
}

/* ===================================================================
   BOTTOM HUD: RADAR & CONTROLS DOCK
   =================================================================== */
.bottom-hud {
  position: fixed;
  bottom: 16px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  z-index: 90;
}

.minimap-container {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: auto;
}

.radar-disc {
  position: relative;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 22, 28, 0.95) 0%, rgba(6, 8, 12, 0.98) 100%);
  border: 3px solid rgba(255, 45, 85, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.radar-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 40% 40%, rgba(255, 45, 85, 0.15) 0%, transparent 40%),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.08) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.08) 50%, transparent 52%);
  background-size: 100% 100%, 25px 25px, 25px 25px;
}

.radar-gps-path {
  position: absolute;
  top: 45%;
  left: 30%;
  width: 45px;
  height: 3px;
  background: var(--samurai-red);
  transform: rotate(-35deg);
  box-shadow: 0 0 8px var(--samurai-red);
}

.radar-player-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #ffffff;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 3px #000);
}

.radar-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: pulse-blip 1.5s infinite;
}

.blip-objective {
  background: #ffcc00;
  box-shadow: 0 0 6px #ffcc00;
}

.blip-home {
  background: #37d67a;
  box-shadow: 0 0 6px #37d67a;
}

.blip-airdrop {
  background: #ff2d55;
  box-shadow: 0 0 6px #ff2d55;
}

@keyframes pulse-blip {

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

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.radar-compass {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--samurai-red);
}

.radar-location-info {
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 18, 0.88);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.location-street {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1;
}

.location-zone {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--gold-primary);
  font-family: var(--font-cyber);
}

.hud-controls-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 13, 18, 0.92);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(16px);
  pointer-events: auto;
  box-shadow: var(--shadow-main);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-label {
  font-family: var(--font-cyber);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.v-btn,
.toggle-btn,
.sfx-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
  font-family: var(--font-hud);
  font-size: 1rem;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v-btn.active,
.toggle-btn.active,
.sfx-toggle-btn.active {
  background: var(--samurai-red);
  border-color: var(--samurai-red);
  color: #fff;
  font-weight: 700;
}

/* ===================================================================
   MODALS: TABLET FORM & TOAST
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.tablet-modal-window {
  width: 680px;
  max-width: 95vw;
  max-height: 90vh;
  background: #0f121a;
  border: 2px solid var(--samurai-red);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), var(--glow-red);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tablet-header {
  background: #090b10;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 45, 85, 0.3);
}

.tablet-brand {
  font-family: var(--font-hud);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--samurai-red);
}

.tablet-body {
  padding: 24px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-cyber);
  font-size: 0.65rem;
  color: var(--text-sub);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 6px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--samurai-red);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.actions-right {
  display: flex;
  gap: 10px;
}

.btn-reset,
.btn-cancel,
.btn-save {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-reset {
  background: transparent;
  border: 1px solid rgba(255, 45, 85, 0.5);
  color: var(--samurai-red);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-sub);
}

.btn-save {
  background: var(--samurai-red);
  border: none;
  color: #fff;
  font-weight: 700;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111622;
  border: 1px solid var(--samurai-red);
  border-radius: 8px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), var(--glow-red);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--samurai-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* ===================================================================
   FLOATING BOTTOM-RIGHT SPEAKER WIDGET (MUSIC TOGGLE)
   =================================================================== */
.floating-speaker-widget {
  position: fixed;
  bottom: 78px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.speaker-wave-pulse {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--samurai-red);
  transform: translate(-50%, -50%);
  animation: acousticRing 1.8s infinite;
  pointer-events: none;
  opacity: 0.8;
}

.floating-speaker-widget.muted .speaker-wave-pulse {
  display: none;
}

@keyframes acousticRing {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.speaker-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.96) 0%, rgba(9, 11, 16, 0.98) 100%);
  border: 2px solid var(--samurai-red);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 15px var(--samurai-red-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.speaker-circle-btn:hover {
  transform: scale(1.1);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 45, 85, 0.7);
}

.speaker-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.speaker-badge {
  background: rgba(10, 13, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
}

.floating-speaker-widget.muted .speaker-circle-btn {
  border-color: #666;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.floating-speaker-widget.muted .speaker-badge {
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.3);
}

/* Пульсирующая неоновая подсказка первого запуска аудио */
.audio-start-prompt {
  position: fixed;
  bottom: 96px;
  right: 28px;
  background: rgba(14, 14, 20, 0.94);
  border: 1px solid var(--samurai-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 45, 85, 0.45);
  border-radius: 40px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: promptPulse 1.8s infinite ease-in-out;
}

.audio-start-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes promptPulse {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 45, 85, 0.35);
  }

  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 45, 85, 0.85);
    transform: translateY(-3px);
  }
}

/* Responsive */
@media (max-width: 1400px) {
  .centerpiece-layout {
    grid-template-columns: 290px 1fr 290px;
  }
}

@media (max-width: 1100px) {
  .centerpiece-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .gta-hud-header {
    padding: 0 14px;
  }

  .hud-center {
    display: none;
  }

  .bottom-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}