:root {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --accent-primary: #FF4B2B;
  --accent-secondary: #FF6B4B;
  --accent-glow: rgba(255, 75, 43, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --success: #4CAF50;
  --warning: #FFC107;
  --gradient-racing: linear-gradient(135deg, #FF4B2B 0%, #FF6B4B 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 75, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 75, 43, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.glow-orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {

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

  50% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: flex-start;
}

.hero-center {
  display: flex;
  justify-content: center;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-highlight {
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  background: var(--gradient-racing);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-secondary {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-top: 4px;
}

.branding-hero {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.round-info {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.round-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.round-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-primary);
}

.round-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
}



.countdown-container {
  text-align: center;
}

.countdown-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

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

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  min-width: 80px;
}

.countdown-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-unit {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 5px;
}

.countdown-separator {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--accent-primary);
  font-weight: 900;
}

.countdown-item.urgent .countdown-value {
  color: var(--accent-primary);
  animation: urgentPulse 0.5s ease-in-out infinite;
}

@keyframes urgentPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-right {
  display: flex;
  align-items: center;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: 25px;
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  animation: statusPulse 2s ease-in-out infinite;
}

.server-status.revealed .status-dot {
  background: var(--success);
  animation: none;
}

.server-status.pending .status-dot {
  background: var(--warning);
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
}

.status-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

main {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.reveal-zone {
  margin-bottom: 60px;
}

.reveal-container {
  display: flex;
  justify-content: center;
}

.reveal-frame {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 2px solid var(--border-color);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.reveal-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-racing);
}

.reveal-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pre-raffle {
  text-align: center;
}



.reveal-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 5px;
  color: var(--text-primary);
  margin-top: 20px;
}

.reveal-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.branding-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 5px;
}

.reveal-subtext span {
  color: var(--accent-primary);
  font-weight: 700;
}

.raffle-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  background: var(--gradient-racing);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: btnGlow 2s ease-in-out infinite;
  font-family: 'Orbitron', sans-serif;
}

@keyframes btnGlow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(255, 75, 43, 0.3);
  }
}

.raffle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--accent-glow);
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
}

.slot-machine {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.slot-window {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slot-reel {
  position: absolute;
  width: 100%;
  transition: transform 0.1s linear;
}

.slot-item {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.slot-frame-top,
.slot-frame-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
}

.slot-frame-top {
  top: 0;
  background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
}

.slot-frame-bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, transparent 100%);
}

.result-container {
  text-align: center;
  animation: resultReveal 0.5s ease-out;
}

@keyframes resultReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

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

.result-circuit {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-racing);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: resultGlow 1.5s ease-in-out infinite;
  text-shadow: none;
}

@keyframes resultGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px var(--accent-glow));
  }

  50% {
    filter: drop-shadow(0 0 30px var(--accent-glow));
  }
}

.result-details {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.detail-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.circuits-pool {
  margin-bottom: 60px;
}

.circuits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.circuit-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.circuit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 75, 43, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.circuit-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(255, 75, 43, 0.2);
}

.circuit-card:hover::before {
  opacity: 1;
}

.circuit-card.used {
  opacity: 0.4;
  pointer-events: none;
}

.circuit-card.used::after {
  content: attr(data-round);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff3333;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff0000,
    0 0 40px #ff0000;
  z-index: 2;
}

.circuit-layout {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 15px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 75, 43, 0.4));
}

.circuit-card:hover .circuit-layout {
  opacity: 1;
}

.circuit-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.circuit-country {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.circuit-country-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.circuit-flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.result-flag {
  width: 24px;
  height: auto;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
}

.calendar-flag {
  width: 18px;
  height: auto;
  border-radius: 1px;
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.9;
}

.circuit-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.circuit-laps {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(255, 75, 43, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.circuit-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.circuit-download-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.calendar-section {
  margin-bottom: 60px;
}

.calendar-container {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.calendar-table th,
.calendar-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.calendar-table th {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.calendar-table td {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.calendar-table tr:hover td {
  background: rgba(255, 75, 43, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.status-badge.completed {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success);
}

.status-badge.today {
  background: rgba(255, 75, 43, 0.2);
  color: var(--accent-primary);
  animation: todayPulse 1.5s ease-in-out infinite;
}

@keyframes todayPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 75, 43, 0);
  }
}

.status-badge.upcoming {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.circuit-name-cell {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

.circuit-name-cell.secret {
  color: var(--accent-primary);
  animation: secretPulse 1s ease-in-out infinite;
}

@keyframes secretPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.circuit-name-cell.hidden-circuit {
  color: var(--text-muted);
}

.standings-section {
  margin-bottom: 60px;
}

.standings-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
}

.standings-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 30px;
  border-radius: 25px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  letter-spacing: 1px;
}

.standings-tab:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.standings-tab.active {
  background: var(--gradient-racing);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

.standings-container {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.standings-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.standings-table {
  width: 100%;
}

.standings-table td {
  font-weight: 500;
  font-size: 1rem;
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-secondary);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-primary);
}

.pos-1 {
  background: linear-gradient(135deg, #FFD700, #FDB931);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pos-2 {
  background: linear-gradient(135deg, #E0E0E0, #9E9E9E);
  color: #000;
  box-shadow: 0 0 10px rgba(224, 224, 224, 0.4);
}

.pos-3 {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.driver-name,
.team-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-bar {
  width: 4px;
  height: 24px;
  border-radius: 2px;
}

.points-cell {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

@media (max-width: 600px) {
  .hide-mobile {
    display: none;
  }
}

.footer {
  padding: 20px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-divider {
  color: var(--text-muted);
}

.branding-footer {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  background: var(--gradient-racing);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .hero-left {
    flex-direction: column;
    gap: 15px;
  }

  .countdown-item {
    padding: 10px 15px;
    min-width: 60px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  main {
    padding: 20px;
  }

  .result-circuit {
    font-size: 2rem;
  }

  .result-details {
    flex-direction: column;
    gap: 15px;
  }

  .reveal-frame {
    padding: 20px;
  }

  .circuit-name {
    font-size: 0.9rem;
    word-break: break-word;
    white-space: normal;
  }

  .circuits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .slot-item {
    font-size: 1.5rem;
  }

  .hero-right {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .circuits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .countdown {
    gap: 3px;
  }

  .countdown-item {
    padding: 6px 6px;
    min-width: 45px;
  }

  .countdown-value {
    font-size: 1.1rem;
  }

  .countdown-separator {
    font-size: 1.2rem;
  }

  .reveal-frame {
    padding: 15px;
  }

  .calendar-table th,
  .calendar-table td {
    padding: 6px 4px;
    font-size: 0.7rem;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

.glitch-effect {
  animation: glitch 0.3s ease-in-out;
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }

  52% {
    opacity: 1;
  }

  54% {
    opacity: 0.9;
  }
}

.neon-flicker {
  animation: neonFlicker 2s ease-in-out infinite;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: var(--gradient-racing);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 25px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* --- Profile Modal & Card Styles --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 55, 0, 0.2);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.profile-loading {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(90deg);
}

.profile-card {
  padding: 40px;
}

.profile-header {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

.profile-image-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--accent-primary);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 55, 0, 0.4);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title-info h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 1px;
}

.profile-subtitle {
  color: var(--accent-secondary);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.profile-section {
  margin-bottom: 35px;
}

.profile-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-section-title::before {
  content: '';
  width: 15px;
  height: 2px;
  background: var(--accent-primary);
}

.profile-bio {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  font-style: italic;
}

.palmares-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.palmares-item {
  background: rgba(255, 55, 0, 0.08);
  border: 1px solid rgba(255, 55, 0, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.palmares-item:hover {
  background: rgba(255, 55, 0, 0.15);
  transform: translateY(-2px);
}

.palmares-item::before {
  content: '🏆';
  font-size: 1rem;
}

.recent-results-table {
  width: 100%;
  border-collapse: collapse;
}

.recent-results-table th {
  text-align: left;
  color: var(--text-muted);
  padding: 12px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.recent-results-table td {
  padding: 15px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.result-pos {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  width: 40px;
}

.result-pos.top-3 {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(255, 55, 0, 0.5);
}

.standings-table tbody tr {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.standings-table tbody tr:hover {
  background: rgba(255, 55, 0, 0.08) !important;
  transform: translateX(10px);
  box-shadow: -5px 0 0 var(--accent-primary);
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-card {
    padding: 25px;
  }

  .profile-title-info h2 {
    font-size: 1.8rem;
  }
}