/* ================= BASE ================= */
    body {
      margin: 0;
      background-color: #000;
      /* Fondo negro base */
      background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(225, 6, 0, 0.12) 20%, rgba(225, 6, 0, 0.04) 50%, transparent 80%);
      background-attachment: fixed;
      font-family: 'Orbitron', sans-serif;
      color: #fff;
    }

    /* ================= HEADER ================= */
    header {
      height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, #111 0%, #0b0b0b 100%);
      border-bottom: 2px solid #e10600;
      position: relative;
      overflow: hidden;
    }

    header::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 55%);
      pointer-events: none;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
      z-index: 2;
    }

    .brand-logo {
      height: 86px;
      width: auto;
      opacity: 0;
      transform: translateY(14px) scale(.96);
      animation: logoIn .8s ease-out forwards;
      filter:
        drop-shadow(0 0 14px rgba(225, 6, 0, .35)) drop-shadow(0 0 30px rgba(255, 255, 255, .08));
    }

    .title {
      font-size: 44px;
      font-weight: 900;
      letter-spacing: 3px;
      color: #fff;
      text-transform: uppercase;
      position: relative;
      opacity: 0;
      transform: translateY(14px);
      animation: titleIn .8s ease-out forwards;
      animation-delay: .15s;
      text-shadow:
        0 0 10px rgba(225, 6, 0, .35),
        0 0 22px rgba(225, 6, 0, .18);
    }

    .title::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -12px;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, transparent, #e10600, transparent);
      animation: pulse 1.8s ease-in-out infinite;
    }

    .title::before {
      content: "";
      position: absolute;
      top: -20%;
      left: -40%;
      width: 30%;
      height: 140%;
      background: linear-gradient(90deg, transparent, rgba(225, 6, 0, .45), transparent);
      transform: skewX(-18deg);
      animation: scan 2.6s ease-in-out infinite;
    }

    @keyframes logoIn {
      to {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes titleIn {
      to {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: .7
      }

      50% {
        opacity: 1
      }
    }

    @keyframes scan {
      0% {
        left: -40%;
        opacity: 0
      }

      20% {
        opacity: .9
      }

      45% {
        left: 110%;
        opacity: 0
      }

      100% {
        left: 110%;
        opacity: 0
      }
    }

    @keyframes speedLine {
      from {
        left: 100%;
      }

      to {
        left: -200%;
      }
    }

    .speed-lines {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    section {
      animation: tabFadeIn 0.5s ease-out;
    }

    @keyframes tabFadeIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .glass {
      background: var(--glass);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--stroke);
      box-shadow: 0 8px 32px var(--shadow);
    }

    /* ================= UI TOKENS ================= */
    :root {
      --red: #e10600;
      --red2: #ff2a23;
      --bg: #0b0b0b;
      --panel: #101010;
      --panel2: #0d0d0d;
      --stroke: rgba(255, 255, 255, .10);
      --muted: rgba(255, 255, 255, .65);
      --ok: #49ff8a;
      --warn: #ffd34a;
      --bad: #ff3b6b;
      --glass: rgba(255, 255, 255, 0.03);
      --text: #ffffff;
      --shadow: rgba(0, 0, 0, 0.55);
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] {
      --bg: #f8f9fa;
      --panel: #ffffff;
      --panel2: #f1f3f5;
      --stroke: rgba(0, 0, 0, .08);
      --muted: rgba(0, 0, 0, .60);
      --text: #212529;
      --glass: rgba(0, 0, 0, 0.02);
      --shadow: rgba(0, 0, 0, 0.1);
      --red: #d90429;
      --red2: #ef233c;
    }

    body {
      color: var(--text);
      background-color: var(--bg);
      transition: var(--transition);
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--stroke);
      color: var(--text);
    }

    .btn,
    .tabbtn {
      transition: var(--transition);
    }

    /* ================= HAMBURGER ================= */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-around;
      width: 24px;
      height: 24px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 20;
    }

    .hamburger span {
      width: 24px;
      height: 2px;
      background: #fff;
      border-radius: 10px;
      transition: all 0.3s linear;
      position: relative;
      transform-origin: 1px;
    }

    .hamburger.open span:first-child {
      transform: rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.open span:last-child {
      transform: rotate(-45deg);
    }

    @media (max-width: 900px) {
      .hamburger {
        display: flex;
      }

      .navtabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 2px solid var(--red);
        backdrop-filter: blur(20px);
      }

      .navtabs.open {
        display: flex;
      }

      .tabbtn {
        width: 100%;
        text-align: left;
      }

      .nav-top-row {
        width: 100%;
      }
    }

    /* ================= NAVBAR ================= */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 10;
      background: linear-gradient(180deg, #0f0f0f 0%, #0b0b0b 100%);
      border-bottom: 1px solid rgba(225, 6, 0, .55);
    }

    .navwrap {
      max-width: 1280px;
      margin: 0 auto;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .navleft {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 999px;
      background: rgba(255, 255, 255, .03);
      color: #fff;
      font-size: 12px;
      letter-spacing: .6px;
      text-transform: uppercase;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--red);
      box-shadow: 0 0 14px rgba(225, 6, 0, .45);
    }

    .clock {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      color: rgba(255, 255, 255, .9);
    }

    .navtabs {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .tabbtn {
      appearance: none;
      border: 1px solid rgba(255, 255, 255, .14);
      background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
      color: #fff;
      padding: 10px 12px;
      border-radius: 14px;
      cursor: pointer;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .7px;
      transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
    }

    .tabbtn:hover {
      transform: translateY(-1px);
      border-color: rgba(225, 6, 0, .55);
      box-shadow: 0 0 14px rgba(225, 6, 0, .3), 0 12px 30px rgba(0, 0, 0, .55);
    }

    .tabbtn:active {
      transform: translateY(0);
    }

    .tabbtn.active {
      border-color: rgba(225, 6, 0, .95);
      box-shadow: 0 0 0 3px rgba(225, 6, 0, .18), 0 12px 30px rgba(0, 0, 0, .55);
    }

    .navright {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .mailboxToggle {
      position: relative;
      min-width: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      border-radius: 50%;
      width: 42px;
      height: 42px;
      padding: 0;
    }

    .mailboxBadge {
      position: absolute;
      top: -4px;
      right: -4px;
      min-width: 17px;
      height: 17px;
      border-radius: 999px;
      padding: 0 5px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #3ea6ff;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      border: 1px solid rgba(0, 0, 0, .7);
    }

    .mailboxPanel {
      position: fixed;
      top: 70px;
      right: 18px;
      width: min(430px, calc(100vw - 20px));
      max-height: min(82vh, 720px);
      z-index: 1200;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 16px;
      background: #1f1f1f;
      box-shadow: 0 24px 50px rgba(0, 0, 0, .65);
      display: none;
      flex-direction: column;
      overflow: hidden;
    }

    .mailboxPanel.open {
      display: flex;
    }

    .mailboxHead {
      padding: 12px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, .12);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: #262626;
    }

    .mailboxHeadTitle {
      font-weight: 900;
      font-size: 22px;
      letter-spacing: .2px;
      text-transform: none;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .mailboxHeadActions {
      display: flex;
      gap: 8px;
    }

    .mailboxIconBtn {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, .2);
      background: rgba(255, 255, 255, .08);
      color: #fff;
      cursor: pointer;
    }

    .mailboxBody {
      padding: 0;
      overflow-y: auto;
      display: block;
    }

    .mailboxSectionTitle {
      padding: 12px 14px 8px;
      font-size: 27px;
      font-weight: 700;
      color: rgba(255, 255, 255, .92);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .mailboxDivider {
      border-top: 1px solid rgba(255, 255, 255, .14);
      margin: 6px 0;
    }

    .mailboxItem {
      display: grid;
      grid-template-columns: 8px 52px 1fr 96px 24px;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .mailboxItem:hover {
      background: rgba(255, 255, 255, .05);
    }

    .mailboxDot {
      width: 4px;
      height: 4px;
      border-radius: 999px;
      background: #3ea6ff;
      opacity: .9;
      justify-self: center;
    }

    .mailboxAvatar {
      width: 46px;
      height: 46px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 900;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .2);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .mailboxText {
      font-size: 13px;
      line-height: 1.35;
      color: #f2f2f2;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .mailboxTime {
      margin-top: 4px;
      font-size: 12px;
      color: rgba(255, 255, 255, .65);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .mailboxThumb {
      width: 92px;
      height: 52px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 19px;
      color: #fff;
      background: linear-gradient(120deg, #3a3a3a, #1a1a1a);
    }

    .mailboxMore {
      font-size: 17px;
      color: rgba(255, 255, 255, .8);
      text-align: center;
      user-select: none;
    }

    .mailboxItem.unread .mailboxText {
      color: #fff;
      font-weight: 600;
    }

    .btn {
      appearance: none;
      border: 1px solid rgba(255, 255, 255, .14);
      background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
      color: #fff;
      padding: 10px 12px;
      border-radius: 14px;
      cursor: pointer;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .7px;
      transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, filter .12s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      border-color: rgba(225, 6, 0, .65);
      box-shadow: 0 0 16px rgba(225, 6, 0, .4), 0 14px 28px rgba(0, 0, 0, .55);
      filter: saturate(1.05);
    }

    .btn:active {
      transform: translateY(0);
    }

    .btn.red {
      border-color: rgba(225, 6, 0, .65);
      background: linear-gradient(180deg, rgba(225, 6, 0, .95), rgba(225, 6, 0, .55));
      color: #0b0b0b;
    }

    .btn.ghost {
      background: transparent;
      box-shadow: none;
    }

    /* ================= LAYOUT ================= */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 16px 14px 60px;
    }

    .grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 14px;
    }

    @media (max-width: 1040px) {
      .grid {
        grid-template-columns: 1fr;
      }
    }

    .card {
      border: 1px solid rgba(255, 255, 255, .15);
      background: linear-gradient(180deg, rgba(20, 20, 20, .85) 0%, rgba(10, 10, 10, .95) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 16px 60px rgba(0, 0, 0, .55);
      position: relative;
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .card:hover {
      border-color: rgba(255, 255, 255, .25);
      box-shadow: 0 8px 30px rgba(0, 0, 0, .7);
    }

    /* ANIMATIONS FOR TAB ENTRANCE */
    section {
      animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .card.animate-in {
      animation: cardSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }

    @keyframes cardSlideIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 15% 20%, rgba(225, 6, 0, .10), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .06), transparent 45%);
      opacity: .9;
    }

    .cardhead {
      position: relative;
      padding: 14px 14px 10px;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .h2 {
      margin: 0;
      font-size: 13px;
      font-weight: 950;
      letter-spacing: .9px;
      text-transform: uppercase;
    }

    .hint {
      margin-top: 4px;
      font-size: 12px;
      color: var(--muted);
      letter-spacing: .2px;
    }

    .cardbody {
      position: relative;
      padding: 14px;
    }

    .row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: flex-end;
    }

    .field {
      flex: 1 1 170px;
      min-width: 170px;
    }

    label {
      display: block;
      margin: 0 0 6px;
      font-size: 11px;
      letter-spacing: .7px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .78);
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: #000;
      color: #fff;
      outline: none;
      font-size: 13px;
      transition: border-color .12s ease, box-shadow .12s ease;
    }

    input::placeholder,
    textarea::placeholder {
      color: rgba(255, 255, 255, .45);
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(225, 6, 0, .85);
      box-shadow: 0 0 0 3px rgba(225, 6, 0, .18);
    }

    textarea {
      min-height: 84px;
      resize: vertical;
    }

    input[readonly] {
      opacity: .85;
      cursor: not-allowed;
    }

    .hr {
      height: 1px;
      background: rgba(255, 255, 255, .08);
      margin: 12px 0;
    }

    .small {
      font-size: 12px;
      color: var(--muted);
    }

    /* ================= TABLE BOARDS ================= */
    .board {
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 16px;
      overflow: hidden;
      background: rgba(0, 0, 0, .18);
    }

    .boardHeader {
      display: grid;
      grid-template-columns: 90px 1.35fr 1fr 170px 130px;
      gap: 10px;
      padding: 12px 12px;
      background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      font-size: 11px;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .82);
      align-items: center;
    }

    .entry {
      display: grid;
      grid-template-columns: 90px 1.35fr 1fr 170px 130px;
      gap: 10px;
      padding: 10px 12px;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .entry:last-child {
      border-bottom: 0;
    }

    .entry:hover {
      background: rgba(225, 6, 0, .06);
    }

    @media (max-width: 1040px) {

      .boardHeader,
      .entry {
        grid-template-columns: 70px 1.5fr 1fr 140px 110px;
      }
    }

    .pos {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-weight: 950;
    }

    .pos .n {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, .12);
      background: rgba(255, 255, 255, .03);
    }

    .profile {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .avatar {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .03);
      overflow: hidden;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .avatar .ph {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-weight: 950;
      color: rgba(255, 255, 255, .70);
      font-size: 12px;
    }

    .pName {
      min-width: 0;
    }

    .pName .name {
      font-weight: 980;
      letter-spacing: .35px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pName .sub {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .meta {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .badgeClass {
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, .12);
      background: rgba(255, 255, 255, .04);
      font-size: 12px;
      font-weight: 950;
      letter-spacing: .6px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .badgeClass.extreme {
      border-color: rgba(255, 59, 107, .35);
      background: rgba(255, 59, 107, .10);
    }

    .badgeClass.sport {
      border-color: rgba(255, 211, 74, .35);
      background: rgba(255, 211, 74, .10);
    }

    .badgeClass.standard {
      border-color: rgba(73, 255, 138, .30);
      background: rgba(73, 255, 138, .08);
    }

    .carText {
      min-width: 0;
    }

    .carText .brand {
      font-weight: 950;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .carText .model {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .score {
      text-align: right;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-weight: 950;
      font-size: 18px;
    }

    .actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btnMini {
      appearance: none;
      border: 1px solid rgba(255, 255, 255, .14);
      background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
      color: #fff;
      padding: 8px 10px;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 950;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .7px;
      transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
    }

    .btnMini:hover {
      transform: translateY(-1px);
      border-color: rgba(225, 6, 0, .55);
      box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
    }

    .btnMini:active {
      transform: translateY(0);
    }

    .btnMini.red {
      border-color: rgba(225, 6, 0, .65);
      background: linear-gradient(180deg, rgba(225, 6, 0, .95), rgba(225, 6, 0, .55));
      color: #0b0b0b;
    }

    /* ================= TIMES BOARD ================= */
    .timesHeader {
      display: grid;
      grid-template-columns: 1.2fr 1fr 180px 110px 140px;
      gap: 10px;
      padding: 12px 12px;
      background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      font-size: 11px;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .82);
      align-items: center;
    }

    .timeRow {
      display: grid;
      grid-template-columns: 1.2fr 1fr 180px 110px 140px;
      gap: 10px;
      padding: 10px 12px;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .timeRow:last-child {
      border-bottom: 0;
    }

    .timeRow:hover {
      background: rgba(225, 6, 0, .06);
    }

    @media (max-width: 1040px) {

      .timesHeader,
      .timeRow {
        grid-template-columns: 1fr 1fr 160px 90px 110px;
      }
    }

    .timeVal {
      text-align: right;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-weight: 950;
    }

    /* ================= PROFILE BIG ================= */
    .profileHero {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
    }

    .bigAvatar {
      width: 110px;
      height: 110px;
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .03);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 18px 42px rgba(0, 0, 0, .55);
    }

    .bigAvatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .bigAvatar .ph {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-weight: 950;
      color: rgba(255, 255, 255, .70);
    }

    .heroText {
      min-width: 240px;
      flex: 1 1 240px;
    }

    .heroName {
      font-size: 22px;
      font-weight: 980;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-shadow: 0 0 14px rgba(225, 6, 0, .22);
    }

    .heroSub {
      margin-top: 6px;
      color: rgba(255, 255, 255, .70);
      font-size: 12px;
      letter-spacing: .3px;
    }

    .heroStats {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .stat {
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, .12);
      background: rgba(255, 255, 255, .03);
      min-width: 140px;
    }

    .stat .k {
      font-size: 11px;
      letter-spacing: .7px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .78);
    }

    .stat .v {
      margin-top: 6px;
      font-weight: 980;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    /* ================= TOAST ================= */
    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%);
      z-index: 9999;
      display: none;
      max-width: 92vw;
      border-radius: 12px;
      padding: 12px 16px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(10, 10, 10, .95);
      backdrop-filter: blur(10px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
      color: #fff;
      font-size: 14px;
      letter-spacing: .2px;
      font-weight: 600;
      align-items: center;
      gap: 10px;
    }

    .toast.show {
      display: flex;
      animation: pop .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toast.success {
      border-bottom: 2px solid var(--ok);
      color: var(--ok);
    }

    .toast.error {
      border-bottom: 2px solid var(--red);
      color: var(--red);
    }

    .toast.warning {
      border-bottom: 2px solid var(--warn);
      color: var(--warn);
    }

    .toast.info {
      border-bottom: 2px solid #00e5ff;
      color: #00e5ff;
    }

    @keyframes pop {
      from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
      }
    }

    /* ================= AUTH OVERLAY ================= */
    .authOverlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: none;
      background: rgba(0, 0, 0, .80);
      backdrop-filter: blur(6px);
    }

    .authOverlay.show {
      display: flex;
    }

    .authCenter {
      width: 100%;
      max-width: 980px;
      margin: auto;
      padding: 16px 14px;
    }

    .authGrid {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 14px;
    }

    @media (max-width: 980px) {
      .authGrid {
        grid-template-columns: 1fr;
      }
    }

    .authHeroBox {
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 18px;
      overflow: hidden;
      background: linear-gradient(180deg, #101010 0%, #0c0c0c 100%);
      box-shadow: 0 16px 60px rgba(0, 0, 0, .55);
      position: relative;
    }

    .authHeroBox::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 15% 20%, rgba(225, 6, 0, .16), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .08), transparent 45%);
    }

    .authHeroInner {
      position: relative;
      padding: 16px;
    }

    .authTitle {
      font-size: 28px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin: 0;
      text-shadow:
        0 0 10px rgba(225, 6, 0, .35),
        0 0 22px rgba(225, 6, 0, .18);
    }

    .authSub {
      margin-top: 8px;
      color: rgba(255, 255, 255, .72);
      font-size: 13px;
      line-height: 1.5;
    }

    .authPills {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 12px;
    }

    .badgeOk {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(73, 255, 138, .28);
      background: rgba(73, 255, 138, .10);
      color: #fff;
      font-size: 12px;
      letter-spacing: .6px;
      text-transform: uppercase;
    }

    .badgeWarn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 211, 74, .28);
      background: rgba(255, 211, 74, .10);
      color: #fff;
      font-size: 12px;
      letter-spacing: .6px;
      text-transform: uppercase;
    }

    .authCard {
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 18px;
      overflow: hidden;
      background: linear-gradient(180deg, #101010 0%, #0c0c0c 100%);
      box-shadow: 0 16px 60px rgba(0, 0, 0, .55);
      position: relative;
    }

    .authCard::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 20% 10%, rgba(225, 6, 0, .12), transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .06), transparent 45%);
    }

    .authCardInner {
      position: relative;
      padding: 14px;
    }

    .authTabs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .authTab {
      appearance: none;
      border: 1px solid rgba(255, 255, 255, .14);
      background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
      color: #fff;
      padding: 10px 12px;
      border-radius: 14px;
      cursor: pointer;
      font-weight: 950;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .7px;
      transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
    }

    .authTab:hover {
      transform: translateY(-1px);
      border-color: rgba(225, 6, 0, .55);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    }

    .authTab.active {
      border-color: rgba(225, 6, 0, .95);
      box-shadow: 0 0 0 3px rgba(225, 6, 0, .18), 0 12px 30px rgba(0, 0, 0, .55);
    }

    .ruleLine {
      margin-top: 10px;
      height: 1px;
      background: rgba(255, 255, 255, .08);
    }

    .noteMini {
      margin-top: 10px;
      font-size: 12px;
      color: rgba(255, 255, 255, .62);
    }

    /* ================= RESPONSIVE HEADER ================= */
    @media (max-width:768px) {
      header {
        height: 120px
      }

      .brand-logo {
        height: 64px
      }

      .title {
        font-size: 28px;
        letter-spacing: 2px
      }
    }

    @media (max-width:420px) {
      .brand {
        gap: 10px
      }

      .brand-logo {
        height: 56px
      }

      .title {
        font-size: 24px
      }
    }

    @media (prefers-reduced-motion:reduce) {
      * {
        animation: none !important
      }
    }

    /* ================= NEW FEATURES STYLES ================= */
    /* 7. GLOW EFFECTS */
    .card:hover {
      border-color: rgba(225, 6, 0, 0.4);
      box-shadow: 0 0 25px rgba(225, 6, 0, 0.15), 0 16px 60px rgba(0, 0, 0, 0.6);
      transition: all 0.3s ease;
    }

    /* 4. LIVE INDICATOR */
    .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #ff3b6b;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      padding: 2px 8px;
      border: 1px solid #ff3b6b;
      border-radius: 4px;
      margin-left: 8px;
    }

    .live-dot {
      width: 6px;
      height: 6px;
      background: #ff3b6b;
      border-radius: 50%;
      animation: blink 1s infinite;
    }

    @keyframes blink {
      0% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.3;
        transform: scale(1.2);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* 3. ACHIEVEMENTS / MEDALS */
    .medals-box {
      display: flex;
      gap: 6px;
      margin-top: 10px;
    }

    .medal {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 12px;
      cursor: help;
      transition: transform 0.2s;
    }

    .medal:hover {
      transform: scale(1.2);
    }

    .medal.gold {
      border-color: #ffd700;
      color: #ffd700;
      text-shadow: 0 0 5px #ffd700;
    }

    .medal.silver {
      border-color: #c0c0c0;
      color: #c0c0c0;
      text-shadow: 0 0 5px #c0c0c0;
    }

    .medal.bronze {
      border-color: #cd7f32;
      color: #cd7f32;
      text-shadow: 0 0 5px #cd7f32;
    }

    /* 2. CALENDAR / EVENTS */
    .event-card {
      background: rgba(225, 6, 0, 0.05);
      border-left: 4px solid var(--red);
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    .event-date {
      font-size: 11px;
      color: var(--red);
      font-weight: 900;
      margin-bottom: 4px;
    }

    .event-title {
      font-size: 14px;
      font-weight: 800;
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }

    .calendar-weekdays div {
      text-align: center;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .7px;
      color: rgba(255, 255, 255, .7);
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 8px;
      padding: 6px 4px;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 12px;
    }

    .calendar-day {
      min-height: 84px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, .1);
      background: rgba(255, 255, 255, .03);
      padding: 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .calendar-day.empty {
      background: rgba(255, 255, 255, .015);
      opacity: .35;
    }

    .calendar-day.today {
      border-color: rgba(225, 6, 0, .7);
      box-shadow: inset 0 0 0 1px rgba(225, 6, 0, .28);
    }

    .calendar-day .day-num {
      font-weight: 900;
      font-size: 14px;
    }

    .calendar-day .day-pill {
      font-size: 10px;
      border-radius: 999px;
      padding: 3px 8px;
      border: 1px solid rgba(225, 6, 0, .4);
      background: rgba(225, 6, 0, .12);
      width: fit-content;
    }

    .calendar-day .day-pill.muted {
      border-color: rgba(255, 255, 255, .12);
      background: rgba(255, 255, 255, .03);
      color: rgba(255, 255, 255, .55);
    }

    .calendar-card.personal {
      border-left-color: var(--ok);
      background: rgba(73, 255, 138, .08);
    }

    .calendar-card.global {
      border-left-color: var(--red);
      background: rgba(225, 6, 0, .08);
    }

    .calendar-card.reset {
      border-left-color: var(--warn);
      background: rgba(255, 211, 74, .1);
    }

    /* 1. BRACKETS */
    .bracket-container {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      padding: 20px 0;
    }

    .bracket-round {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      min-width: 180px;
    }

    .bracket-match {
      background: #151515;
      border: 1px solid var(--stroke);
      border-radius: 8px;
      margin: 10px 0;
      overflow: hidden;
    }

    .bracket-player {
      padding: 8px 12px;
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid var(--stroke);
      font-size: 12px;
    }

    .bracket-player:last-child {
      border-bottom: 0;
    }

    .bracket-player.winner {
      color: var(--ok);
      font-weight: 900;
    }

    /* 5. COMPARISON */
    .compare-overlay {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90%;
      max-width: 800px;
      background: #0a0a0a;
      border: 1px solid var(--red);
      z-index: 10001;
      padding: 20px;
      border-radius: 18px;
      display: none;
      box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    }

    .compare-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 20px;
      align-items: center;
    }

    /* 6. TRACK INFO */
    .track-info-box {
      margin-top: 15px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      border: 1px dashed var(--stroke);
    }

    .track-layout-img {
      width: 100%;
      height: 120px;
      background: #111;
      border-radius: 8px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #333;
    }

    .ss-thumb-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .16);
      background: rgba(255, 255, 255, .04);
      color: #fff;
      cursor: pointer;
      font-size: 11px;
      font-family: 'Orbitron', sans-serif;
    }

    .ss-thumb-btn:hover {
      border-color: rgba(225, 6, 0, .55);
      box-shadow: 0 0 12px rgba(225, 6, 0, .3);
    }

    .ss-thumb {
      width: 42px;
      height: 28px;
      object-fit: cover;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, .18);
      display: block;
    }

    .history-duel-item {
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 10px;
      padding: 10px;
      margin-top: 10px;
      background: rgba(255, 255, 255, .03);
    }

    .history-race-item {
      margin-top: 8px;
      padding: 8px;
      border-radius: 8px;
      border: 1px dashed rgba(255, 255, 255, .12);
      background: rgba(0, 0, 0, .18);
    }

    .history-race-evidence {
      margin-top: 6px;
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .history-yt-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .16);
      background: rgba(255, 0, 0, .15);
      color: #fff;
      font-size: 11px;
      text-decoration: none;
    }

    .history-yt-link:hover {
      border-color: rgba(225, 6, 0, .75);
      box-shadow: 0 0 12px rgba(225, 6, 0, .35);
    }

    /* ======================================================== */
    /* ================= NAVBAR REORGANIZADO ================= */
    .navwrap {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
    }

    .nav-top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .nav-tabs-container {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .nav-group label {
      font-size: 9px;
      color: var(--red);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 2px;
      opacity: 0.8;
    }

    .nav-buttons {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .tabbtn {
      padding: 8px 10px;
      font-size: 11px;
      min-width: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .tabbtn i {
      font-size: 14px;
    }

    /* Animación para apertura de secciones */
    section {
      animation: sectionIn 0.4s ease-out;
    }

    @keyframes sectionIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Modal Styling for Highlights */
    .feature-modal {
      position: fixed;
      inset: 0;
      z-index: 10005;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .feature-modal.show {
      display: flex;
    }

    .feature-content {
      width: 100%;
      max-width: 900px;
      max-height: 90vh;
      overflow-y: auto;
      background: #0a0a0a;
      border: 1px solid var(--red);
      border-radius: 20px;
      box-shadow: 0 0 50px rgba(225, 6, 0, 0.2);
    }

    /* ======================================================== */
    /* ================= IMAGE SIZE LIMITS ================= */

    /* ================= HERO LOGIN BG ================= */
    .authOverlay {
      background: #000 !important;
    }

    .authOverlay.show {
      display: flex !important;
    }

    .authOverlay::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url('../hispa_racing_hero.png') center center / cover no-repeat;
      opacity: 0.35;
      z-index: 0;
      animation: heroPulse 6s ease-in-out infinite alternate;
    }

    .authOverlay::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 70%, rgba(225, 6, 0, 0.15) 100%);
      z-index: 1;
    }

    .authCenter {
      position: relative;
      z-index: 2;
    }

    @keyframes heroPulse {
      0% {
        opacity: 0.3;
        transform: scale(1);
      }

      100% {
        opacity: 0.45;
        transform: scale(1.03);
      }
    }

    /* ================= ENHANCED ANIMATIONS ================= */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeInScale {
      from {
        opacity: 0;
        transform: scale(0.92);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes glow {

      0%,
      100% {
        box-shadow: 0 0 8px rgba(225, 6, 0, 0.3);
      }

      50% {
        box-shadow: 0 0 25px rgba(225, 6, 0, 0.6), 0 0 50px rgba(225, 6, 0, 0.2);
      }
    }

    @keyframes countUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes speedLine {
      0% {
        transform: translateX(-100%) scaleX(0.5);
        opacity: 0;
      }

      30% {
        opacity: 0.7;
      }

      100% {
        transform: translateX(200%) scaleX(1.5);
        opacity: 0;
      }
    }

    @keyframes neonFlicker {

      0%,
      100% {
        text-shadow: 0 0 10px rgba(225, 6, 0, .4), 0 0 20px rgba(225, 6, 0, .2);
      }

      50% {
        text-shadow: 0 0 20px rgba(225, 6, 0, .8), 0 0 40px rgba(225, 6, 0, .4), 0 0 60px rgba(225, 6, 0, .2);
      }
    }

    /* Speed lines in header */
    header::before {
      content: '';
      position: absolute;
      top: 50%;
      left: -100%;
      width: 200px;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.6), transparent);
      animation: speedLine 3s linear infinite;
      z-index: 1;
    }

    /* Card entrance animations */
    .card {
      animation: fadeInUp 0.5s ease-out both;
    }

    .grid>.card:nth-child(1) {
      animation-delay: 0.05s;
    }

    .grid>.card:nth-child(2) {
      animation-delay: 0.15s;
    }

    .grid>.card:nth-child(3) {
      animation-delay: 0.25s;
    }

    .grid>.card:nth-child(4) {
      animation-delay: 0.35s;
    }

    /* Enhanced button hover */
    .btn.red:hover {
      animation: glow 1.5s ease-in-out infinite;
      filter: brightness(1.1);
    }

    /* Stats counter animation */
    .stat .v {
      animation: countUp 0.6s ease-out both;
    }

    /* ================= TOAST ENHANCED ================= */
    .toast {
      border-left: 4px solid var(--red);
      backdrop-filter: blur(12px);
    }

    .toast.show {
      animation: fadeInUp 0.3s ease-out;
    }

    /* ================= FOOTER ================= */
    .site-footer {
      background: linear-gradient(180deg, #0a0a0a, #050505);
      border-top: 2px solid rgba(225, 6, 0, 0.4);
      padding: 40px 14px 30px;
      margin-top: 60px;
      text-align: center;
    }

    .footer-brand {
      font-size: 20px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #fff;
      margin-bottom: 10px;
      animation: neonFlicker 3s ease-in-out infinite;
    }

    .footer-sub {
      color: rgba(255, 255, 255, 0.5);
      font-size: 12px;
      letter-spacing: 0.5px;
      margin-bottom: 16px;
    }

    .footer-links {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 0.5px;
      transition: color 0.2s;
    }

    .footer-links a:hover {
      color: var(--red);
    }

    .footer-stripe {
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--red), transparent);
      margin: 20px auto 16px;
      max-width: 300px;
      animation: pulse 2s ease-in-out infinite;
    }

    .footer-copy {
      color: rgba(255, 255, 255, 0.3);
      font-size: 11px;
    }

    /* ================= NEWS SECTION ================= */
    .news-card {
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      padding: 16px;
      background: linear-gradient(135deg, rgba(225, 6, 0, 0.05), transparent);
      margin-bottom: 12px;
      transition: border-color 0.2s, transform 0.2s;
    }

    .news-card:hover {
      border-color: rgba(225, 6, 0, 0.4);
      transform: translateY(-2px);
    }

    .news-date {
      font-size: 11px;
      color: var(--red);
      letter-spacing: 1px;
      text-transform: uppercase;
      font-weight: 900;
    }

    .news-title {
      font-size: 15px;
      font-weight: 900;
      margin-top: 6px;
      letter-spacing: 0.5px;
    }

    .news-body {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.7);
      margin-top: 8px;
      line-height: 1.6;
    }

    .news-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-top: 8px;
    }

    .news-badge.important {
      background: rgba(225, 6, 0, 0.2);
      border: 1px solid rgba(225, 6, 0, 0.4);
      color: #ff4444;
    }

    .news-badge.info {
      background: rgba(0, 150, 255, 0.15);
      border: 1px solid rgba(0, 150, 255, 0.3);
      color: #4da6ff;
    }

    .news-badge.event {
      background: rgba(255, 211, 74, 0.15);
      border: 1px solid rgba(255, 211, 74, 0.3);
      color: #ffd34a;
    }

    /* ================= CAR GALLERY ================= */
    .car-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
    }

    .car-card {
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(180deg, #111, #0a0a0a);
      transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
      cursor: default;
    }

    .car-card:hover {
      transform: translateY(-4px);
      border-color: rgba(225, 6, 0, 0.5);
      box-shadow: 0 12px 40px rgba(225, 6, 0, 0.15);
    }

    .car-card-img {
      width: 100%;
      height: 140px;
      background: #0d0d0d;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }

    .car-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s;
    }

    .car-card:hover .car-card-img img {
      transform: scale(1.08);
    }

    .car-card-img .car-emoji {
      font-size: 48px;
      filter: drop-shadow(0 0 10px rgba(225, 6, 0, 0.3));
    }

    .car-card-body {
      padding: 12px;
    }

    .car-card-name {
      font-weight: 900;
      font-size: 13px;
      letter-spacing: 0.3px;
    }

    .car-card-brand {
      font-size: 11px;
      color: var(--muted);
      margin-top: 3px;
    }

    .car-card-class {
      display: inline-block;
      margin-top: 8px;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .car-card-class.extreme {
      background: rgba(255, 59, 107, 0.12);
      border: 1px solid rgba(255, 59, 107, 0.3);
      color: #ff3b6b;
    }

    .car-card-class.sport {
      background: rgba(255, 211, 74, 0.12);
      border: 1px solid rgba(255, 211, 74, 0.3);
      color: #ffd34a;
    }

    .car-card-class.standard {
      background: rgba(73, 255, 138, 0.1);
      border: 1px solid rgba(73, 255, 138, 0.25);
      color: #49ff8a;
    }

    /* ================= STATS BADGES ================= */
    .rank-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.5px;
    }

    .rank-badge.gold {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.1));
      border: 1px solid rgba(255, 215, 0, 0.4);
      color: #ffd700;
    }

    .rank-badge.silver {
      background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
      border: 1px solid rgba(192, 192, 192, 0.3);
      color: #c0c0c0;
    }

    .rank-badge.bronze {
      background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
      border: 1px solid rgba(205, 127, 50, 0.3);
      color: #cd7f32;
    }

    /* ================= COUNTDOWN ================= */
    .countdown {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .countdown-unit {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 8px 12px;
      min-width: 50px;
      text-align: center;
    }

    .countdown-val {
      font-family: ui-monospace, monospace;
      font-weight: 900;
      font-size: 18px;
      color: var(--red);
    }

    .countdown-label {
      font-size: 9px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 2px;
    }

    /* ================= RACING MASTER PAGE LAYOUT ================= */
    .rm-ranking-page {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 0;
      height: calc(100vh - 180px);
      min-height: 700px;
      background: #eee;
      border-radius: 12px;
      overflow: hidden;
      font-family: 'Roboto', sans-serif;
    }

    /* Sidebar - Left */
    .rm-ranking-sidebar {
      background: #2a2a2a;
      display: flex;
      flex-direction: column;
      padding-top: 20px;
    }

    .rm-side-btn {
      appearance: none;
      border: none;
      background: transparent;
      color: #999;
      text-align: left;
      padding: 16px 20px;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      border-left: 4px solid transparent;
      transition: all 0.2s;
    }

    .rm-side-btn.active {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
      border-left-color: #e10600;
    }

    .rm-side-btn:hover:not(.active) {
      background: rgba(255, 255, 255, 0.02);
      color: #ccc;
    }

    /* Main Area - Right */
    .rm-ranking-main {
      display: flex;
      flex-direction: column;
      background: #f4f4f4;
      position: relative;
    }

    /* Decorative Background (optional) */
    .rm-ranking-main::before {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      width: 50%;
      height: 80%;
      background: url('https://imgur.com/gallery/your-racing-car-image.png') no-repeat center bottom;
      /* Placeholder or CSS gradient */
      background-size: contain;
      opacity: 0.15;
      pointer-events: none;
    }

    .rm-ranking-header {
      padding: 20px 30px;
      background: #fff;
      display: flex;
      align-items: center;
      gap: 15px;
      border-bottom: 1px solid #ddd;
    }

    .rm-h-title {
      font-size: 24px;
      font-weight: 900;
      letter-spacing: 1px;
      color: #222;
      text-transform: uppercase;
    }

    .rm-h-info {
      width: 20px;
      height: 20px;
      border: 1px solid #999;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 900;
      color: #666;
    }

    .rm-ranking-subtabs {
      background: #3a3a3a;
      display: flex;
      padding-left: 20px;
    }

    .rm-sub-btn {
      appearance: none;
      border: none;
      background: transparent;
      color: #aaa;
      padding: 12px 25px;
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .rm-sub-btn.active {
      background: #4a4a4a;
      color: #fff;
      box-shadow: inset 0 -3px 0 #e10600;
    }

    .rm-ranking-content {
      padding: 20px 30px;
      overflow-y: auto;
      flex: 1;
      z-index: 2;
    }

    .rm-search-bar {
      margin-bottom: 15px;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .rm-search-bar input {
      background: #fff;
      border: 1px solid #ddd;
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 13px;
      outline: none;
    }

    /* ================= ROW STYLE (RACING MASTER INSPIRED) ================= */
    .timeRow.premium {
      display: flex;
      align-items: center;
      gap: 0;
      padding: 0;
      background: #fff;
      border-radius: 8px;
      margin-bottom: 8px;
      border: none;
      overflow: hidden;
      color: #333;
      height: 70px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s;
    }

    .timeRow.premium:hover {
      transform: scale(1.005);
      background: #fdfdfd;
    }

    .time-pos {
      width: 65px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Orbitron', sans-serif;
      font-size: 28px;
      font-weight: 900;
      color: #fff;
      background: #555;
      flex-shrink: 0;
    }

    .timeRow.premium:nth-child(1) .time-pos {
      background: #e10600;
    }

    .timeRow.premium:nth-child(2) .time-pos {
      background: #f39c12;
    }

    .timeRow.premium:nth-child(3) .time-pos {
      background: #3498db;
    }

    .time-profile {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 15px;
      flex: 1.5;
    }

    .time-avatar {
      width: 50px;
      height: 50px;
      border: 2px solid #f1c40f;
      border-radius: 4px;
      overflow: hidden;
      background: #000;
    }

    .time-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .time-info {
      display: flex;
      flex-direction: column;
    }

    .time-name {
      font-weight: 800;
      font-size: 15px;
      color: #111;
    }

    .time-rank {
      font-size: 10px;
      color: #777;
      font-weight: 600;
      margin-top: 1px;
    }

    .time-car {
      flex: 1.2;
      padding: 0 15px;
      border-left: 1px solid #eee;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .car-name {
      font-size: 13px;
      font-weight: 700;
      color: #444;
    }

    .car-track {
      font-size: 10px;
      color: #999;
      text-transform: uppercase;
    }

    .time-score-box {
      width: 150px;
      height: 100%;
      background: #fafafa;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      padding-right: 20px;
    }

    .rank-badge-icon {
      width: 30px;
      height: 30px;
      background: url('https://cdn-icons-png.flaticon.com/512/179/179249.png') no-repeat center;
      background-size: contain;
    }

    .time-xp-row {
      display: flex;
      align-items: center;
      gap: 3px;
      font-weight: 900;
    }

    .xp-arrow {
      color: #8e44ad;
      font-size: 16px;
    }

    .xp-val {
      font-size: 22px;
      color: #333;
    }

    .time-actions {
      padding: 0 15px;
    }

    /* For very narrow screens */
    @media (max-width: 600px) {
      .time-car {
        display: none;
      }

      .time-score-box {
        width: 100px;
      }

      .xp-val {
        font-size: 18px;
      }
    }

    /* ================= WELCOME OVERLAY ================= */
    .welcome-overlay {
      position: fixed;
      inset: 0;
      z-index: 10010;
      background: rgba(0, 0, 0, 0.92);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .welcome-overlay.show {
      display: flex;
    }

    .welcome-box {
      max-width: 500px;
      width: 100%;
      text-align: center;
      animation: fadeInScale 0.6s ease-out;
    }

    .welcome-emoji {
      font-size: 64px;
      margin-bottom: 16px;
      animation: fadeInScale 0.8s ease-out 0.2s both;
    }

    .welcome-title {
      font-size: 28px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 12px;
      text-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
    }

    .welcome-sub {
      color: rgba(255, 255, 255, 0.7);
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 24px;
    }

    /* ================= MOBILE HAMBURGER ================= */
    .hamburger {
      display: none;
      appearance: none;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: transparent;
      color: #fff;
      font-size: 24px;
      padding: 6px 10px;
      border-radius: 10px;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      .hamburger {
        display: block;
      }

      .nav-tabs-container {
        display: none;
        width: 100%;
      }

      .nav-tabs-container.open {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 10px;
      }

      .nav-group {
        flex-direction: column;
      }

      .nav-buttons {
        flex-wrap: wrap;
      }

      .navright {
        width: 100%;
        justify-content: center;
      }

      .authGrid {
        grid-template-columns: 1fr !important;
      }

      .authHeroBox {
        display: none;
      }

      .grid {
        grid-template-columns: 1fr !important;
      }

      header {
        height: 100px;
      }

      .brand-logo {
        height: 56px;
      }

      .title {
        font-size: 24px;
      }
    }

    /* ================= PARTICLE OVERLAY FOR HEADER ================= */
    .particle-container {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 1;
    }

    .particle {
      position: absolute;
      width: 3px;
      height: 3px;
      background: rgba(225, 6, 0, 0.5);
      border-radius: 50%;
      animation: particleFloat 4s ease-in-out infinite;
    }

    /* ================= 1V1 LAYOUT FIX ================= */
    #viewVs .vs-grid {
      align-items: start;
    }

    /* Modo principal VS: registrar a la izquierda ocupando 2 filas,
       historial arriba derecha y pendientes abajo derecha */
    #viewVs[data-vs-mode="vs"] .vs-grid {
      grid-template-columns: minmax(430px, 1.25fr) minmax(320px, 1fr);
      grid-auto-flow: row;
    }

    #viewVs[data-vs-mode="vs"] #vsRegisterPanel {
      grid-column: 1;
      grid-row: 1 / span 2;
    }

    #viewVs[data-vs-mode="vs"] #vsSidePanels {
      grid-column: 2;
      grid-row: 1 / span 2;
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-self: start;
    }

    #viewVs .field {
      min-width: 0;
    }

    #viewVs #vsRegisterPanel .cardbody>.row>.field {
      flex: 1 1 100%;
      min-width: 0;
    }

    #viewVs #vsRegisterPanel .field .row .field {
      flex: 1 1 180px;
      min-width: 140px;
    }

    #viewVs #vsRegisterPanel input[type="file"] {
      font-size: 12px;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    @media (max-width: 1280px) {
      #viewVs[data-vs-mode="vs"] .vs-grid {
        grid-template-columns: 1fr;
      }

      #viewVs[data-vs-mode="vs"] #vsRegisterPanel,
      #viewVs[data-vs-mode="vs"] #vsSidePanels {
        grid-column: auto;
        grid-row: auto;
      }

      #viewVs[data-vs-mode="vs"] #vsSidePanels {
        gap: 14px;
      }
    }

    @media (max-width: 900px) {
      #viewVs .vs-grid {
        grid-template-columns: 1fr;
      }

      #viewVs #vsRegisterPanel,
      #viewVs #vsHistoryPanel,
      #viewVs #vsPendingPanel {
        grid-column: auto;
        grid-row: auto;
      }
    }

    @keyframes particleFloat {
      0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
      }

      20% {
        opacity: 0.8;
      }

      100% {
        transform: translateY(-120px) translateX(50px);
        opacity: 0;
      }
    }
