:root {
  --red: #FF4848;
  --red-2: #E32D2D;
  --blue: #006CFF;
  --blue-2: #0059D2;
  --green: #9BD359;
  --green-2: #72AD2B;
  --purple: #9671FC;
  --purple-2: #7C56E4;
  --yellow: #FFD371;
  --yellow-2: #E6B444;
  --white: 255,255,255;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}
body {
  font-family: 'Nunito Sans', sans-serif;
  font-style: italic;
  background: #000000;
  color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
}
ul {
  padding-left: 20px;
  margin: 20px 0;
}

/* ====================
HEADER
==================== */

.search-box{
  width: fit-content;
  height: fit-content;
  position: relative;
}
input[type=text].input-search{
  height: 50px;
  width: 50px;
  border-style: none;
  padding: 10px;
  margin: 0;
  font-size: 18px;
  outline: none;
  transition: all .5s ease-in-out;
  padding-right: 40px;
  color: #FFFFFF;
}
input[type=text].input-search::placeholder{
  color:rgba(255,255,255,.5);
  font-size: 18px;
  font-weight: 100;
}
.btn-search{
  width: 50px;
  height: 50px;
  border-style: none;
  font-size: 20px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  color: #FFFFFF;
  background-color:transparent;
  pointer-events: painted;
  z-index: 1;
}
.btn-search:focus ~ input[type=text].input-search{
  width: 250px;
  border-radius: 0px;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}
input[type=text].input-search:focus{
  width: 250px;
  border-radius: 0px;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}

/*USER MENU*/

/* Estilos para header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.btn-icon {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.btn-icon:hover {
  background: rgba(255,255,255,0.2);
}
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  color: inherit;
  font: inherit;
  transition: background 0.2s;
}
.user-menu:hover {
  background: rgba(255,255,255,0.1);
}
.user-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-arrow {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Flyout específicos (reutilizan .flyout-menu) */
.flyout-menu {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
}
.flyout-item {
  color: #eee;
}
.flyout-item:hover {
  background: var(--red);
}

/* ====================
SIDEBAR MENU DESKTOP
==================== */

.sidebar {
  width: 260px;
  background-color: #000000;
  border-right: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease-in-out;
  z-index: 15;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}
.sidebar.collapsed {
  width: 80px;
}
.sidebar.collapsed .launcher-download {
  display: none;
}
.sidebar-logo {
  border-bottom: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.logo-img {
  display: block;
  max-width: 100%;
  height: auto;
}
.logo-normal {
  display: block;
  max-width: 200px;
}
.logo-icon {
  max-width: 50px;
  display: none;
}
.sidebar.collapsed .logo-normal {
  display: none;
}
.sidebar.collapsed .logo-icon {
  display: block;
}
.sidebar-nav {
  flex: 1;
  overflow-y: scroll;
}
.nav-menu {
  list-style: none;
  padding: 0;
}
.menu-item {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  text-decoration: none;
  color: rgba(255,255,255,1);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.menu-link:hover, .menu-link:active {
  background-color: var(--red);
}
.menu-link i {
  width: 24px;
  font-size: 1.2rem;
  text-align: center;
  color: rgba(255,255,255,1);
}
.menu-text {
  white-space: nowrap;
  font-size: 0.95rem;
}
.dropdown-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 6px;
  display: none;
}
.submenu .menu-item {
  border-bottom: none;
}
.submenu .menu-item .menu-link {
  color: rgba(255,255,255,0.5);
}
.submenu .menu-item .menu-link:hover {
  background-color: transparent;
  color: var(--red);
}
.submenu .menu-item .menu-link i {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}
.submenu.open {
  display: block;
}
.submenu .menu-link {
  padding: 8px 15px;
  font-size: 0.9rem;
}
.submenu .submenu {
  padding-left: 15px;
}
.sidebar.collapsed .menu-text,
.sidebar.collapsed .dropdown-arrow {
  display: none;
}
.sidebar.collapsed .submenu {
  display: none !important;
}
.sidebar.collapsed .menu-link {
  justify-content: center;
  gap: 0;
  padding: 12px 0;
}
.sidebar.collapsed .menu-link i {
  margin: 0;
  font-size: 1.4rem;
}
.flyout-menu {
  position: fixed;
  background: #000000;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
  padding: 8px 0;
  min-width: 200px;
  z-index: 2000;
  border: 1px solid rgba(255,255,255,0.5);
}
.flyout-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.flyout-menu button.flyout-item {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.flyout-item i {
  width: 20px;
  font-size: 1rem;
}
.flyout-item:hover {
  background-color: var(--red);
}
.flyout-menu button.flyout-item:hover {
  background-color: var(--red);
}
.flyout-item:focus-visible,
.user-menu:focus-visible,
.sidebar button.menu-link:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -2px;
}
.sidebar button.menu-link {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
}
.sidebar button.menu-link:hover,
.sidebar button.menu-link:active {
  background-color: var(--red);
}
.flyout-divider {
  height: 1px;
  background: #eef2f6;
  margin: 6px 0;
}
/* Para submenús anidados dentro del flyout (segundo nivel) */
.flyout-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 8px 0;
  display: none;
  border: 1px solid #e9eef3;
}
.flyout-item.has-flyout {
  position: relative;
}
.flyout-item.has-flyout .flyout-item-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.flyout-arrow {
  margin-left: auto;
  font-size: 0.7rem;
}

/* Botón colapsar fijo */
.collapse-btn-wrapper {
  padding: 16px 8px 20px;
  display: flex;
  justify-content: center;
}
.collapse-btn {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 12px;
  width: 90%;
  transition: 0.2s;
}
.sidebar.collapsed .collapse-btn {
  width: 48px;
  padding: 8px 0;
}
.collapse-btn i {
  margin-right: 6px;
}
.sidebar.collapsed .collapse-btn span {
  display: none;
}
.launcher-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 250px;
  border-top: 1px solid rgba(255,255,255,0.5);
  overflow: hidden;
}
.video-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  opacity: 0.3;
}

/* ====================
SIDEBAR MENU MOBILE
==================== */



/* ====================
GRID
==================== */

.app {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #000000;
}
.sticky-header {
  color: #FFFFFF;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  min-height: 80px;
}
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
  color: #FFFFFF;
}
.sticky-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
}
.grid-section {
  margin-bottom: 40px;
  padding: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.row-asymmetric {
  display: grid;
  grid-template-columns: 1fr 3fr; /* 25% / 75% */
  gap: 20px;
}

/* En móvil se apilan */
@media (max-width: 1024px) {
  .row-asymmetric {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll horizontal ---------- */
.scroll-x {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  position: relative;
}
.scroll-x .card {
  scroll-snap-align: initial;
  margin: 0 0 10px 0;
}
/* WebKit scrollbar */
.scroll-x::-webkit-scrollbar {
  height: 8px;
}
.scroll-x::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
}
.scroll-x::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 8px;
}
.scroll-nav {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.scroll-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .15s;
}
.scroll-nav button:hover {
  background: rgba(255,255,255,0.3);
}
.scroll-nav button[hidden] {
  display: none;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.m0 {
  margin: 0px !important;
}
.m10 {
  margin: 10px !important;
}
.m20 {
  margin: 20px !important;
}
.m30 {
  margin: 30px !important;
}
.m40 {
  margin: 40px !important;
}
.mt10 {
  margin-top: 10px !important;
}
.mt20 {
  margin-top: 20px !important;
}
.mt30 {
  margin-top: 30px !important;
}
.mt40 {
  margin-top: 40px !important;
}
.mb10 {
  margin-top: 10px !important;
}
.mb20 {
  margin-top: 20px !important;
}
.mb30 {
  margin-top: 30px !important;
}
.mb40 {
  margin-top: 40px !important;
}
.mlr0 {
  margin-left: 0px !important;
  margin-right: 0px !important;
}
.mlr10 {
  margin-left: 10px !important;
  margin-right: 10px !important;
}
.mlr20 {
  margin-left: 20px !important;
  margin-right: 20px !important;
}
.mlr30 {
  margin-left: 30px !important;
  margin-right: 30px !important;
}
.mlr40 {
  margin-left: 40px !important;
  margin-right: 40px !important;
}
.mtb0 {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}
.mtb10 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
.mtb20 {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}
.mtb30 {
  margin-top: 30px !important;
  margin-bottom: 30px !important;
}
.mtb40 {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}
.p0 {
  padding: 0px !important;
}
.p10 {
  padding: 10px !important;
}
.p20 {
  padding: 20px !important;
}
.p30 {
  padding: 30px !important;
}
.p40 {
  padding: 40px !important;
}
.plr0 {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.plr10 {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.plr20 {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.plr30 {
  padding-left: 30px !important;
  padding-right: 30px !important;
}
.plr40 {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.ptb0 {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.ptb10 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.ptb20 {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.ptb30 {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}
.ptb40 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.vertical-align-top {
  align-items: flex-start;
}
.vertical-align-botton {
  align-items: flex-end;
}
.vertical-align-center {
  align-items: center;
}
.vertical-align-top {
  align-items: flex-start;
}
.vertical-align-bottom {
  align-items: flex-end;
  justify-content: flex-end;
}
.full-image, .full-image img, .full-video, .full-video video {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.full-image img, .full-video video {
  margin: 0;
}
.half-image, .half-image img, .half-video, .half-video video {
  width: 50%;
  height: auto;
}
.card {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  position: relative;
}
.scroll-box {
  overflow-y: scroll;
  min-height: 300px;
  max-height: 400px;
}
.blured {
  backdrop-filter: blur(20px);
}

/* ====================
SECTIONS
==================== */

/*GENERAL*/

.card-banner {
  position: relative;
  width: auto;
  height: 250px;
}
.card-polygon-bg {
  background-color: var(--red);
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0,100% 0,100% 100%,0 calc(100% - 20px));
}
.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.card-image img {
  width: auto;
  height: 120%;
}
.icon-square {
  display: flex;
  flex-wrap: wrap;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  position: relative;
}
.icon-square-big {
  width: 100px;
  height: 100px;
}
.icon-corner {
  width: 25%;
  height: 25%;
  position: absolute;
}
.icon-corner:nth-child(1) {
  border-top: 3px solid #FFFFFF;
  border-left: 3px solid #FFFFFF;
  top: 0;
  left: 0;
}
.icon-corner:nth-child(2) {
  border-top: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  top: 0;
  right: 0;
}
.icon-corner:nth-child(3) {
  border-bottom: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  bottom: 0;
  right: 0;
}
.icon-corner:nth-child(4) {
  border-bottom: 3px solid #FFFFFF;
  border-left: 3px solid #FFFFFF;
  bottom: 0;
  left: 0;
}
.icon-square img {
  width: 80%;
  height: 80%;
}
.icon-square-center {
  margin: 0 auto 20px auto;
}

/*DASHBOARD*/

.dashboard-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.stats-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 40px 10px 10px;
  position: relative;
}
.stats-icon {
  position: absolute;
  right: 10px;
}
.stats-value {
  font-size: 20pt;
  margin: 0;
  text-transform: uppercase;
}
.header-title-banner {
  background-image: url('../img/bg-urban.webp');
  background-size: cover;
  width: 100%;
  height: 150px;
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
}
.header-title-text {
  background: linear-gradient(90deg, rgba(255,72,72,0.6) 0%, rgba(0,0,0,0) 100%);
  width: 60%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 40px;
  font-size: 40pt;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Bebas Neue';
  position: relative;
  z-index: 1;
}
.header-title-text i {
  margin-right: 20px;
}
.header-title-img {
  width: auto;
  height: 100%;
  position: absolute;
  overflow: hidden;
  text-align: right;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
}
.header-title-img img {
  width: auto;
  height: 100%;
}

/*STORE*/

.item-box {
  padding: 0;
  position: relative;
}
.item-box:hover {
  transform: scale(1.05);
  transition: all 0.3s;
}
.item-box .badge {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 5px;
}
.item-box:hover .item-box-picture {
  background: rgba(150, 113, 252, 0);
  background: radial-gradient(circle, var(--red) 0%, rgba(0,0,0,1) 100%);
  transition: all 0.3s;
}
.item-box-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,1) 100%);
  width: 100%;
  height: auto;
  overflow: hidden;
}
.item-box-picture img {
  width: 100%;
  height: auto;
}
.item-box-content {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.5);
}
.item-box-content h4 {
  margin: 0 0 10px 0;
  font-size: 20pt;
}
.item-box-content p {
  margin: 0;
  font-size: 10pt;
}
.inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ====================
SLIDER
==================== */

.slider-container {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.25);
  background: #000;
  border: 1px solid rgba(255,255,255,0.5);
}
.slider-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.slider-wrapper:active {
  cursor: grabbing;
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  background: #1e1e2f;
}
.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.slide-content {
  position: absolute;
  bottom: 12%;
  left: 5%;
  right: 5%;
  z-index: 10;
  color: white;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
  max-width: 550px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
  padding: 1.2rem 2rem;
  border-radius: 24px;
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.slide-link .slide-content {
  pointer-events: none;
}
.slide-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-desc {
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.slide.active .slide-title,
.slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 28px;
  font-weight: bold;
}
.nav-btn:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.05);
}
.btn-prev {
  left: 20px;
}
.btn-next {
  right: 20px;
}
.dots-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 20;
  padding: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.3);
}
.dot.active {
  background-color: var(--red);
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 8px var(--red);
  border: 1px solid var(--red);
}
.slider-wrapper.dragging {
  cursor: grabbing;
}
.slider-wrapper.dragging .slider-track {
  transition: none;
}

/* ====================
ACCORDION
==================== */

.accordion-item {
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.accordion-item:hover, .accordion-item:active {
  border: 1px solid rgba(255,255,255,1);
}
.accordion-item:hover .accordion-header, .accordion-item:active .accordion-header {
  background-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,1);
}
.accordion-header {
  color: rgba(255,255,255,0.5);
  font-family: 'Bebas Neue';
  font-size: 18pt;
  padding: 15px 70px 15px 15px;
  cursor: pointer;
  font-weight: bold;
}
.accordion-header-icon {
  background-color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #000000;
  width: 45px;
  height: 45px;
  font-size: 40pt;
  transition: all 0.3s;
}
.accordion-header-icon i {
  transform: rotate(90deg);
  transition: all 0.3s;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
  margin-bottom: 0;
  padding: 20px 0;
}
.accordion-item.active {
  border: 1px solid var(--red);
}
.accordion-item.active .accordion-header {
  color: var(--red);
}
.accordion-item.active .accordion-header-icon {
  background-color: rgba(255,255,255,1);
}
.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 0 20px;
}
.accordion-item.active .accordion-header-icon i {
  transform: rotate(0deg);
}

/* ====================
TABS
==================== */

.tabs-container {
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.tabs-header {
  background-color: rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 15px;
  padding: 0.75rem 1rem 0 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-top: 1px solid rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(5px);
}
.tabs-header::-webkit-scrollbar {
  height: 4px;
}
.tabs-header::-webkit-scrollbar-track {
  border-radius: 8px;
}
.tabs-header::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.tab-button {
  font-family: 'Bebas Neue';
  background-color: rgba(0,0,0,0.5);
  flex: 0 0 auto;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  margin-bottom: -1px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(255,255,255,0.5);
}
.tab-button:hover {
  background-color: rgba(0,0,0,1);
  color: #FFFFFF;
}
.tab-button.active {
  color: #FFFFFF;
  background: var(--red);
  margin-bottom: -1px;
}
.tab-button-blue.active {
  background: var(--blue);
}
.tab-button-green.active {
  background: var(--green);
}
.tab-button-yellow.active {
  background: var(--yellow);
}
.tab-button-purple.active {
  background: var(--purple);
}
.tabs-content {
  background-color: rgba(0,0,0,0.5);
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px);}
  to   { opacity: 1; transform: translateY(0);}
}
.tab-pane p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.tab-pane p:last-child {
  margin-bottom: 0;
}
.badge {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 5px 20px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  display: inline-block;
  backdrop-filter: blur(20px);
}
.badge-yellow {
  color: var(--yellow);
  border-color: var(--yellow);
}
.badge-green {
  color: var(--green);
  border-color: var(--green);
}
.badge-blue {
  color: var(--blue);
  border-color: var(--blue);
}
.badge-red {
  color: var(--red);
  border-color: var(--red);
}
.badge-purple {
  color: var(--purple);
  border-color: var(--purple);
}
.badge-position-tl {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}
.badge-position-tr {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
hr {
  margin: 0.5rem 0;
  border-color: #edf2f7;
}
.note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #5b6e8c;
  text-align: right;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.75rem;
}

/* ====================
TEXT
==================== */

h1,h2,h3,h4,h5 {
  font-style: normal;
  padding: 0;
  margin: 10px 0;
  line-height: normal;
}
h1 {
  font-size: 40pt;
}
h2 {
  font-size: 30pt;
}
h3 {
  font-size: 20pt;
}
h4 {
  font-size: 14pt;
}
p {
  padding: 0;
  margin: 0 0 20px 0;
}
.primary-font {
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1em;
}
.secondary-font {
  font-family: 'Bebas Neue';
  line-height: 1em;
}
.text-small, p .text-small, .text-medium p {
  font-size: 10pt !important;
}
.text-medium, p.text-medium, .text-medium p {
  font-size: 15pt !important;
}
.text-large, p.text-large, .text-large p {
  font-size: 17pt !important;
}
.title-large {
  width: 100%;
  font-size: 60pt;
  line-height: normal;
}
.title-large .title-small {
  line-height: 0;
}
.title-medium {
  width: 100%;
  font-size: 35pt;
  line-height: normal;
}
.title-small {
  width: 100%;
  font-size: 20pt;
  line-height: normal;
}
.text-lines {
  width: 920px;
  height: 200px;
  margin-bottom: -35px;
}
.text-lines text {
  display: block;
  width: 100%;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  stroke: var(--red);
  animation: dash 5s linear forwards, filling 4s ease-in forwards;
  font-size: 150pt;
  text-align: center;
}
.text-center {
  text-align: center;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes filling {
  from{
    fill: var(--red);
    fill-opacity: 0;
  }
  to {
    fill: var(--red);
    fill-opacity: 1;
  }
}

.bg-red {
  background-color: var(--red);
}
.bg-blue {
  background-color: var(--blue);
}
.bg-green {
  background-color: var(--green);
}
.bg-purple {
  background-color: var(--purple);
}
.bg-yellow {
  background-color: var(--yellow);
}
.color-red {
  color: var(--red) !important;
}
.color-blue {
  color: var(--blue) !important;
}
.color-green {
  color: var(--green) !important;
}
.color-purple {
  color: var(--purple) !important;
}
.color-yellow {
  color: var(--yellow) !important;
}
.color-white {
  color: var(--white) !important;
}
.bg-opacity-10-yellow {
  background-color: rgba(255,211,113,0.1) !important;
}
.bg-opacity-20-yellow {
  background-color: rgba(255,211,113,0.2) !important;
}
.bg-opacity-30-yellow {
  background-color: rgba(255,211,113,0.3) !important;
}
.bg-opacity-10-blue {
  background-color: rgba(0,108,255,0.1) !important;
}
.bg-opacity-20-blue {
  background-color: rgba(0,108,255,0.2) !important;
}
.bg-opacity-30-blue {
  background-color: rgba(0,108,255,0.3) !important;
}
.bg-opacity-10-green {
  background-color: rgba(155,211,89,0.1) !important;
}
.bg-opacity-20-green {
  background-color: rgba(155,211,89,0.2) !important;
}
.bg-opacity-30-green {
  background-color: rgba(155,211,89,0.3) !important;
}
.bg-opacity-10-purple {
  background-color: rgba(150,113,252,0.1) !important;
}
.bg-opacity-20-purple {
  background-color: rgba(150,113,252,0.2) !important;
}
.bg-opacity-30-purple {
  background-color: rgba(150,113,252,0.3) !important;
}
.bg-opacity-10-red {
  background-color: rgba(255,72,72,0.1) !important;
}
.bg-opacity-20-red {
  background-color: rgba(255,72,72,0.2) !important;
}
.bg-opacity-30-red {
  background-color: rgba(255,72,72,0.3) !important;
}
.bg-bordered-purple {
  background-color: rgba(150,113,252,0.1) !important;
  color: var(--purple) !important;
  border: 1px solid var(--purple) !important;
}
.bg-bordered-green {
  background-color: rgba(155,211,89,0.1) !important;
  color: var(--green) !important;
  border: 1px solid var(--green) !important;
}
.bg-bordered-yellow {
  background-color: rgba(255,211,113,0.1) !important;
  color: var(--yellow) !important;
  border: 1px solid var(--yellow) !important;
}
.bg-bordered-blue {
  background-color: rgba(0,108,255,0.1) !important;
  color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
}
.bg-bordered-red {
  background-color: rgba(255,72,72,0.1) !important;
  color: var(--red) !important;
  border: 1px solid var(--red) !important;
}
.bordered-red {
  border: 1px solid var(--red) !important;
}
.bordered-blue {
  border: 1px solid var(--blue) !important;
}
.bordered-green {
  border: 1px solid var(--green) !important;
}
.bordered-purple {
  border: 1px solid var(--purple) !important;
}
.bordered-yellow {
  border: 1px solid var(--yellow) !important;
}
.border-red {
  border-color: var(--red) !important;
}
.border-blue {
  border-color: var(--blue) !important;
}
.border-green {
  border-color: var(--green) !important;
}
.border-purple {
  border-color: var(--purple) !important;
}
.border-yellow {
  border-color: var(--yellow) !important;
}

/* ====================
LOGIN
==================== */

.back-home {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.4);
  padding: 10px 20px 10px 10px;
  display: flex;
  align-items: center;
  border-radius: 15px;
  gap: 10px;
  transition: 0.3s all;
  z-index: 100;
}
.back-home:hover {
  background: rgba(255,72,72,0.5);
}
.back-home-icon {
  width: 60px;
  height: 60px;
}
.back-home-icon img {
  width: 100%;
  height: auto;
  box-shadow: 0 0 10px rgba(255,72,72,1);
  border-radius: 10px;
}
.back-home-text {
  text-transform: uppercase;
  font-size: 20px;
}
.back-home-text a {
  color: white;
  text-decoration: none;
}
.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}
.login-image {
  flex: 1; /* ocupa 50% en flex */
  background: url('../img/bg-neighborhood.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  padding: 2rem;
  text-align: center;
}
.login-logo {
  width: 300px;
  height: auto;
}
.login-logo img {
  width: 100%;
  height: auto;
}
.login-image h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  backdrop-filter: blur(4px);
}
.login-form-wrapper {
  flex: 1;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-form {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.1);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all 1s ease;
}
.login-form h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.login-form p.subtitle {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.login-form .form-group {
  margin-bottom: 1.5rem;
}
.login-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.login-form .input-group {
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  transition: background 0.2s, box-shadow 0.2s;
}
.login-form .input-group i {
  color: var(--red);
  font-size: 1rem;
  margin-right: 0.6rem;
}
.login-form .input-group input {
  width: 100%;
  padding: 7px 0;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
}
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.8rem;
  font-size: 0.9rem;
}
.form-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.form-options a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.form-options a:hover {
  text-decoration: underline;
}
.btn-login {
  font-size: 1.5em !important;
  width: 100%;
}
.register-link {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
}
.register-link a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.register-link a:hover {
  text-decoration: underline;
}

/* Mensaje de error/éxito */
#message {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  display: none;
}

#message.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
}

#message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

/* ====================
PROFILE
==================== */

.header-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50%;
  z-index: 0;
}
.header-bg::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,1));
}
.header-bg-profile {
  background-image: url("../img/bg-school-bus.webp");
}

/* ====================
FORMS
==================== */

input[type=text], input[type=number], input[type=password], input[type=tel], input[type=search], input[type=date], input[type=time], input[type=email], textarea {
  width: 100%;
  color: #FFFFFF;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12pt;
  margin: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus {
  border-color: rgba(255,255,255,1);
}

/* ====================
BUTTONS
==================== */

.btn-red {
  background-color: var(--red);
}
.btn-red:hover {
  background-color: var(--red-2);
}
.btn-blue {
  background-color: var(--blue);
}
.btn-blue:hover {
  background-color: var(--blue-2);
}
.btn-green {
  background-color: var(--green);
}
.btn-green:hover {
  background-color: var(--green-2);
}
.btn-purple {
  background-color: var(--purple);
}
.btn-purple:hover {
  background-color: var(--purple-2);
}
.btn-outline {
  background: rgba(var(--white),0.1);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(var(--white),0.5);
  font-size: 0.85rem;
  color: rgba(var(--white),1);
  transition: 0.2s;
}
.btn-outline:hover {
  background: rgba(var(--white),1);
  color: #000000;
  transform: translateY(-5%);
}
.btn {
  color: white;
  text-align: center;
  text-decoration: none;
  font-style: normal;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  transition: 0.2s;
  line-height: normal;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-5%);
}
.btn-primary {
  background: var(--red);
  border: 1px solid var(--red);
}
.btn-primary:hover {
  background:  var(--red-2);
  border: 1px solid var(--red-2);
  transform: translateY(-5%);
}
.btn-large {
  display: inline-block;
  font-family: 'Bebas Neue';
  font-size: 25pt;
  padding: 0.6rem 3rem;
  margin-bottom: 20px;
}
.btn-medium {
  display: inline-block;
  font-family: 'Bebas Neue';
  font-size: 18pt;
  padding: 0.4rem 1rem;
  margin-bottom: 20px;
}
.btn-launcher {
  display: flex;
  flex-wrap: wrap;
  background: url('../img/bg-blood.jpg') center var(--red);
  background-size: 100% auto;
  color: rgba(var(--white),1);
  padding: 10px 30px;
  margin: 0 0 20px 0;
  text-decoration: none;
  font-size: 30pt;
  text-transform: uppercase;
  font-style: normal;
  align-items: center;
  transition: all 0.3s;
}
.btn-launcher:hover, .btn-launcher:active {
  background-size: 120% auto;
  cursor: pointer;
  transform: translateY(-5%);
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}
.btn-launcher-icon {
  width: 60px;
  height: 60px;
  font-size: 40pt;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.btn-launcher-content {
  font-family: 'Bebas Neue';
  line-height: normal;
}
.btn-launcher-content h3 {
  margin: 0;
}
.btn-launcher-content p {
  font-size: 14pt;
  margin: 0;
}
.btn-close {
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 30px;
  border: none;
  border-radius: 50%;
  margin: 0;
  padding: 0;
}
.btn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  padding: 0;
}
.linked-icon {
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 30px;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.3s;
}
.linked-icon:hover {
  transform: translateY(-5px);
}

/* ====================
STATS
==================== */

.player-stats {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* max-width: 1000px; */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    margin-bottom: 20px;
}
/* PANEL ANIMATION */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
/* LEFT PANEL */
.left-panel {
  background: radial-gradient(rgba(255,72,72,0.3), rgba(255,72,72,0));
  flex: 1;
  max-width: 600px;
  padding: 40px;
  border-right: 1px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fillBar 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* RIGHT PANEL */
.right-panel {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* PROFILE */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.profile-pic-container {
  position: relative;
}
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--red);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
  object-fit: cover;
}
.prestige-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background-color: var(--red);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid rgba(var(--white),1);
}
.player-name {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.favorite-weapon {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
}
/* CHART CONTAINER */
.chart-container {
  width: 100%;
  height: 400px;
  position: relative;
}
/* STATS BARS */
.stat-group {
  margin-bottom: 25px;
}
.group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,1);
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.group-title {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}
.group-value {
  color: rgba(255,72,72,1);
  font-size: 20px;
  font-weight: bold;
}
.stat-item {
  margin-bottom: 15px;
}
.stat-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 14px;
  margin-bottom: 6px;
}
.stat-name {
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  font-size: 18px;
}
.stat-value {
  font-weight: bold;
  font-family: 'Bebas Neue';
  font-size: 24px;
}
.bar-bg {
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.1));
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0; /* Empieza en 0 para animar */
  background: linear-gradient(90deg, rgba(255,72,72,0), rgba(255,72,72,1));
  /* Animación de llenado */
  animation: fillBar 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fillBar {
  to { width: var(--target-width); }
}

/* Responsive (Para móviles) */
@media (max-width: 768px) {
  .player-stats {
    flex-direction: column;
  }
  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}


/* ====================
PAGINATION
==================== */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.pagination button {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.pagination button:hover:not(:disabled):not(.active) {
  background: rgba(150,113,252,0.1);
  border-color: rgba(150,113,252,1);
}
.pagination button.active {
  background: rgba(150,113,252,1);
  border-color: rgba(150,113,252,1);
  color: rgba(255,255,255,1);
  font-weight: 700;
}
.pagination button:disabled {
  opacity: .35; cursor: not-allowed;
}
.pagination .dots {
  padding: 0 6px;
  color: rgba(255,255,255,0.5);
  user-select: none;
}
.pagination-info {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
}
/* P0 presentation: scoped, reversible hiding; original components remain in DOM. */
.player-stats-p0 .p0-hidden { display: none !important; }
.player-stats-p0 .p0-hidden .bar-fill { animation: none; }
.player-stats-p0 .dashboard-content { gap: 16px; }
.player-stats-p0 .dashboard-content > h1 { margin: 0; }
.player-stats-p0 .grid-section { margin: 0; padding: 0; gap: 0; }
.player-stats-p0 #playerStatsStatus { margin: 0 0 16px; line-height: 1.5; }
.player-stats-p0 .tabs-content { padding: 0; border: 0; background: transparent; backdrop-filter: none; }
.player-stats-p0 #player-stats { flex-direction: column; margin: 0; }
.player-stats-p0 .left-panel { max-width: none; padding: 24px; border-right: 0; border-bottom: 1px solid #444; align-items: stretch; animation: none; background: #171717; }
.player-stats-p0 .profile-section { display: grid; grid-template-columns: 96px minmax(0,1fr); column-gap: 24px; align-items: center; margin: 0; text-align: left; }
.player-stats-p0 .profile-pic-container { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.player-stats-p0 .profile-pic { width: 80px; height: 80px; border-width: 2px; box-shadow: none; }
.player-stats-p0 .prestige-badge { position: static; max-width: 100%; border: 0; border-radius: 3px; text-align: center; overflow-wrap: anywhere; }
.player-stats-p0 .player-name { margin: 0; align-self: end; overflow-wrap: anywhere; }
.player-stats-p0 .favorite-weapon { align-self: start; margin-top: 8px; color: #ccc; overflow-wrap: anywhere; }
.player-stats-p0 .right-panel { padding: 24px; gap: 28px; min-width: 0; }
.player-stats-p0 .stat-group { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; }
.player-stats-p0 .stat-group:last-child { grid-template-columns: repeat(3,minmax(0,1fr)); }
.player-stats-p0 .group-header { grid-column: 1 / -1; border-color: #444; margin: 0; padding-bottom: 12px; }
.player-stats-p0 .stat-item { margin: 0; padding: 20px; background: #171717; border: 1px solid #444; border-top: 2px solid var(--red); min-width: 0; }
.player-stats-p0 .stat-labels { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.player-stats-p0 .stat-name { font-size: 15px; color: #ccc; overflow-wrap: anywhere; }
.player-stats-p0 .stat-value { font-size: 32px; line-height: 1.2; overflow-wrap: anywhere; }
.armory-p0 .armory-primary, .armory-p0 .armory-secondary { display: flex; flex-wrap: wrap; justify-content: flex-start; overflow: visible; gap: 8px; padding: 12px; }
.armory-p0 .armory-primary { background: #171717; }
.armory-p0 .armory-secondary { background: #0d0d0d; border-top: 1px solid #444; }
.armory-p0 .armory-categories .tab-button { margin: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; background: #272727; color: #fff; border: 1px solid #555; }
.armory-p0 .armory-primary .tab-button { flex: 1 1 160px; font-size: 22px; }
.armory-p0 .armory-categories .tab-button.active { background: var(--red); border-color: var(--red); }
.armory-p0 .armory-categories .tab-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.armory-p0 .armory-secondary[hidden], .armory-p0 .tab-pane[hidden] { display: none !important; }
.armory-p0 .armory-categories .tabs-content { min-width: 0; }
.armory-p0 .inventory { min-width: 0; }
.armory-p0 .inventory .item-box { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.armory-p0 .pagination { flex-wrap: wrap; }
/* P1: local status surfaces, radar and inactive future-section templates. */
.player-stats-p0 .interface-state, .armory-p0 .interface-state {
  margin: 0 0 16px; padding: 12px 16px; border: 1px solid #505050;
  border-left: 3px solid #999; border-radius: 4px; background: #171717;
  color: #eee; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;
}
.player-stats-p0 .interface-state:empty, .armory-p0 .interface-state:empty { display: none; }
.player-stats-p0 .interface-state[data-state="loading"], .armory-p0 .interface-state[data-state="loading"] { border-left-color: #eee; }
.player-stats-p0 .interface-state[data-state="loading"]::before, .armory-p0 .interface-state[data-state="loading"]::before {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px;
  border: 2px solid #777; border-top-color: #fff; border-radius: 50%; animation: p1-status-spin 1s linear infinite;
}
.player-stats-p0 .interface-state[data-state="error"], .armory-p0 .interface-state[data-state="error"] { border-left-color: #ff6262; background: #281919; }
.player-stats-p0 .interface-state[data-state="partial"], .armory-p0 .interface-state[data-state="partial"] { border-left-color: #e8c775; }
.player-stats-p0 .interface-state[data-state="loaded"], .armory-p0 .interface-state[data-state="success"] { border-left-color: #b5d7bd; }
.player-stats-p0 .interface-state[data-state="empty"], .armory-p0 .interface-state[data-state="empty-index"], .armory-p0 .interface-state[data-state="wallet-required"] { border-style: dashed; border-left-style: solid; }
@keyframes p1-status-spin { to { transform: rotate(360deg); } }
.player-stats-p0 .stats-main { display: grid; grid-template-columns: minmax(0,370px) minmax(0,1fr); gap: 24px; align-items: center; }
.player-stats-p0 .stats-main > .stat-group { grid-template-columns: repeat(2,minmax(0,1fr)); }
.player-stats-p0 .player-radar { width: 100%; min-width: 0; margin: 0; padding: 16px; border: 1px solid #444; background: #171717; box-sizing: border-box; }
.player-stats-p0 #radarStatus[data-state="loaded"] { display: none; }
.player-stats-p0 .player-radar .interface-state { margin-top: 12px; margin-bottom: 0; }
.player-stats-p0 .player-radar .group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.player-stats-p0 .estimate-label { font: 12px Arial,sans-serif; letter-spacing: .04em; padding: 4px 8px; color: #fff; background: #393939; border: 1px solid #777; border-radius: 3px; }
.player-stats-p0 .chart-note { margin: 12px 0; color: #ddd; line-height: 1.6; font-size: 14px; }
.player-stats-p0 .chart-container { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; height: auto; min-width: 0; margin-inline: auto; }
.player-stats-p0 .chart-container canvas { display: block; max-width: 100%; }
.player-stats-p0 .challenge-grid, .player-stats-p0 .map-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 16px; padding: 0; margin: 20px 0 0; }
.player-stats-p0 .challenge-card, .player-stats-p0 .map-card { list-style: none; border: 1px solid #555; border-top: 2px solid var(--red); background: #171717; padding: 20px; min-width: 0; overflow-wrap: anywhere; }
.player-stats-p0 .challenge-card h4, .player-stats-p0 .map-card h4 { margin: 0; color: #fff; font-size: 18px; line-height: 1.4; }
.player-stats-p0 .map-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 16px; }
/* Approved Phase 2 copy and inactive component fields; no existing card layout changes. */
.player-stats-p0 .player-stats-introduction,
.player-stats-p0 .player-stats-retrieved-at { margin: 0 0 16px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.player-stats-p0 .player-stats-introduction small { color: #ddd; }
.player-stats-p0 .challenge-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.player-stats-p0 .challenge-card-heading i { color: #ff4848; font-size: 24px; }
.player-stats-p0 .challenge-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.player-stats-p0 .challenge-progress { display: grid; gap: 8px; font-size: 14px; }
/* Presentation hooks only; inactive templates keep their unassigned Progress placeholder. */
.player-stats-p0 .challenge-state [data-challenge-state] { display: none; }
.player-stats-p0 .challenge-card:is([data-state="in-progress"], [data-state="completed"]) .challenge-state-placeholder { display: none; }
.player-stats-p0 .challenge-card[data-state="in-progress"] [data-challenge-state="in-progress"],
.player-stats-p0 .challenge-card[data-state="completed"] [data-challenge-state="completed"] { display: inline; }
.player-stats-p0 .challenge-card[data-state="completed"] { border-color: var(--red); }
.player-stats-p0 .challenge-card[data-state="completed"] .challenge-state { color: #fff; font-weight: 700; }
.player-stats-p0 .challenge-progress progress { width: 100%; accent-color: #ff4848; }
.player-stats-p0 .challenge-details { display: grid; gap: 12px; margin: 16px 0 0; font-size: 14px; }
.player-stats-p0 .challenge-details > div { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.player-stats-p0 .challenge-details dd { margin: 0; color: #ddd; }
/* A future renderer may assign these variants only when real progression data exists. */
.player-stats-p0 .map-state { display: inline-block; margin-top: 16px; padding: 4px 8px; border: 1px solid #777; color: #fff; background: #222; font-size: 14px; line-height: 1.4; }
.player-stats-p0 .map-state[data-state="locked"] { border-style: dashed; }
.player-stats-p0 .map-state[data-state="unlocked"] { border-color: #ff4848; }
.player-stats-p0 .map-state[data-state="coming-soon"] { border-style: dotted; }
.player-stats-p0 .map-state[hidden], .player-stats-p0 .challenge-progress progress[hidden] { display: none; }
.player-stats-p0 .player-future-section { margin-top: 28px; }
/* Armory styling only: existing NFT cards, status text and pagination renderer are retained. */
.armory-p0 .inventory { grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); gap: 24px; }
.armory-p0 .inventory[hidden], .armory-p0 .pagination[hidden] { display: none; }
.armory-p0 .inventory .item-box { border: 1px solid #555; background: #171717; }
.armory-p0 .inventory .item-box:hover { transform: none; border-color: #ff6262; }
.armory-p0 .item-box-picture { aspect-ratio: 1; }
.armory-p0 .item-box-picture img { height: 100%; object-fit: contain; }
.armory-p0 .item-box-content { padding: 20px; align-items: flex-start; }
.armory-p0 .item-box-content > div { min-width: 0; width: 100%; }
.armory-p0 .item-box-content h4 { font-size: 26px; line-height: 1.25; margin-bottom: 12px; }
.armory-p0 .item-box-content p { color: #ddd; font-size: 14px; line-height: 1.6; margin-top: 4px; }
.armory-p0 .inventory .badge { background: #222; color: #fff; border: 1px solid #777; font-size: 12px; max-width: calc(100% - 16px); white-space: normal; }
.armory-p0 .pagination { gap: 8px; margin-top: 28px; }
.armory-p0 .pagination button { min-width: 44px; min-height: 44px; color: #fff; border-color: #777; }
.armory-p0 .pagination button.active { background: var(--red); border-color: var(--red); }
.armory-p0 .pagination button:hover:not(:disabled):not(.active) { background: #3a2222; border-color: #ff6262; }
.armory-p0 .pagination button:disabled { opacity: .6; }
.armory-p0 .pagination-info { font-size: 14px; color: #ddd; line-height: 1.6; }
.armory-p0 :is(button,a,[tabindex]):focus-visible, .player-stats-p0 :is(button,a,[tabindex]):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .player-stats-p0 .interface-state::before, .armory-p0 .interface-state::before { animation: none; }
}
