/* --- Design Variables --- */
:root {
  --bg-color: #06070c;
  --bg-card: rgba(14, 17, 30, 0.7);
  --bg-card-hover: rgba(22, 26, 44, 0.85);
  --bg-input: #0e101a;
  --border-color: rgba(255, 255, 255, 0.05);
  
  --primary-color: #00f0ff; /* CS.MONEY Neon Cyan */
  --primary-hover: #80f8ff;
  --text-primary: #ffffff;
  --text-secondary: #8e99b0;
  --text-muted: #535f75;
  
  /* Rarity/Rank Colors */
  --gold-glow: rgba(255, 215, 0, 0.45);
  --gold-color: #ffd700;
  --silver-glow: rgba(192, 192, 192, 0.35);
  --silver-color: #c0c0c0;
  --bronze-glow: rgba(205, 127, 50, 0.3);
  --bronze-color: #cd7f32;
  
  /* Status Colors */
  --win-color: #00e676;
  --win-glow: rgba(0, 230, 118, 0.2);
  --loss-color: #ff1744;
  --loss-glow: rgba(255, 23, 68, 0.2);
  
  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  --font-logo: 'Outfit', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --border-radius: 12px;
  
  /* CS.MONEY Brand Accents */
  --accent-cyan: #00f0ff;
  --accent-purple: #bc00dd;
  --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #bc00dd 100%);
  --accent-glow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* --- Global Reset & Scrollbars --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* CS2 subtle background grid / glow effect */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.06) 0%, rgba(188, 0, 221, 0.03) 40%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 3px;
  border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: var(--accent-glow);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --- Header --- */
.app-header {
  background: rgba(12, 13, 22, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  animation: logo-spin 8s linear infinite;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.55rem;
  letter-spacing: 0.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(188, 0, 221, 0.4);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-primary, .btn-orange {
  background: var(--accent-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover, .btn-orange:hover {
  background: var(--accent-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.45);
  filter: brightness(1.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* --- Main Layout --- */
.main-content {
  flex: 1;
  width: 90%;
  max-width: 1400px;
  margin: 2rem auto;
  position: relative;
}

.view-state {
  animation: fadeIn 0.4s ease-out;
}

.hidden {
  display: none !important;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.text-gold { color: var(--gold-color); }
.text-orange { color: var(--primary-color); }

/* --- Onboarding View --- */
.onboarding-card {
  max-width: 600px;
  margin: 5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.card-header-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.onboarding-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.onboarding-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.guide-steps {
  text-align: left;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-num {
  background: var(--primary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.step-desc h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.step-desc p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Faceit Skill Level Badges --- */
.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--text-primary);
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: #111;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Authentic Faceit Badge Colors & Glows */
.level-1 { border-color: #979797; box-shadow: 0 0 8px rgba(151, 151, 151, 0.4); color: #eeeeee; }
.level-2 { border-color: #489437; box-shadow: 0 0 8px rgba(72, 148, 55, 0.4); color: #489437; }
.level-3 { border-color: #489437; box-shadow: 0 0 8px rgba(72, 148, 55, 0.4); color: #489437; }
.level-4 { border-color: #9fb630; box-shadow: 0 0 8px rgba(159, 182, 48, 0.4); color: #9fb630; }
.level-5 { border-color: #d5c62e; box-shadow: 0 0 8px rgba(213, 198, 46, 0.4); color: #d5c62e; }
.level-6 { border-color: #d5c62e; box-shadow: 0 0 8px rgba(213, 198, 46, 0.4); color: #d5c62e; }
.level-7 { border-color: #e4a22e; box-shadow: 0 0 8px rgba(228, 162, 46, 0.4); color: #e4a22e; }
.level-8 { border-color: #e4a22e; box-shadow: 0 0 8px rgba(228, 162, 46, 0.4); color: #e4a22e; }
.level-9 { border-color: #d95e26; box-shadow: 0 0 8px rgba(217, 94, 38, 0.4); color: #d95e26; }
.level-10 {
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  color: #ff0000;
  background: radial-gradient(circle at center, #1b0000 0%, #000000 100%);
  animation: level10-pulse 2s infinite alternate;
}

/* --- Podium Section --- */
.podium-section {
  margin-bottom: 3.5rem;
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  min-height: 420px;
}

.podium-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.podium-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25);
}

/* 1st, 2nd, 3rd specific heights and order on desktop */
.podium-card.rank-1 {
  min-height: 440px;
  order: 2;
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 22px var(--gold-glow);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, var(--bg-card) 50%);
}
.podium-card.rank-1:hover {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.45);
}

.podium-card.rank-2 {
  min-height: 405px;
  order: 1;
  border-color: rgba(192, 192, 192, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 16px var(--silver-glow);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.03) 0%, var(--bg-card) 55%);
}
.podium-card.rank-2:hover {
  border-color: rgba(192, 192, 192, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(192, 192, 192, 0.3);
}

.podium-card.rank-3 {
  min-height: 380px;
  order: 3;
  border-color: rgba(205, 127, 50, 0.2);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 12px var(--bronze-glow);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.02) 0%, var(--bg-card) 60%);
}
.podium-card.rank-3:hover {
  border-color: rgba(205, 127, 50, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(205, 127, 50, 0.25);
}

/* Crown and placement badges */
.crown-icon {
  position: absolute;
  top: -28px;
  font-size: 2.2rem;
  color: var(--gold-color);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  animation: crown-float 2s ease-in-out infinite alternate;
}

.placement-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  z-index: 10;
}

.rank-1 .placement-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border: 2px solid #ffffff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.rank-2 .placement-badge {
  background: linear-gradient(135deg, #e0e0e0 0%, #888888 100%);
  border: 2px solid #ffffff;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.rank-3 .placement-badge {
  background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
  border: 2px solid #ffffff;
  color: #fff;
  box-shadow: 0 0 10px rgba(210, 105, 30, 0.3);
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 1.2rem;
}

.podium-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  background: #181922;
}

.rank-1 .podium-avatar {
  width: 110px;
  height: 110px;
  border-color: var(--gold-color);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.rank-2 .podium-avatar { border-color: var(--silver-color); }
.rank-3 .podium-avatar { border-color: var(--bronze-color); }

.podium-level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  transform: scale(1.1);
}

.player-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.rank-1 .player-name { font-size: 1.4rem; }

.player-elo {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.podium-stats-summary {
  display: flex;
  width: 100%;
  justify-content: space-around;
  border-top: none;
  padding-top: 0.5rem;
  margin-top: auto;
}

.podium-stat-item {
  display: flex;
  flex-direction: column;
}

.podium-stat-item .stat-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.podium-stat-item .stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.2rem;
  font-weight: 700;
}

/* --- Leaderboard Grid --- */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.player-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.card-rank {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 24px;
}

.card-avatar-wrapper {
  position: relative;
}

.card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: #181922;
}

.card-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  transform: scale(0.85);
}

.card-player-info {
  display: flex;
  flex-direction: column;
}

.card-player-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.card-player-elo {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: none;
  padding-top: 0.5rem;
  margin-top: auto;
}

.card-stat-box {
  text-align: center;
}

.card-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.card-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.2rem;
  font-weight: 700;
}

/* Hover reveal overlay */
.view-stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 21, 31, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.player-card:hover .view-stats-overlay {
  opacity: 1;
}

/* --- Drawer (Settings) --- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0.3s;
}

.drawer.open {
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer.open .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -5px 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.settings-section {
  margin-bottom: 2.5rem;
}

.settings-section h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.input-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.api-status-msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.api-status-msg.success { color: var(--win-color); }
.api-status-msg.error { color: var(--loss-color); }

.friends-list-container {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.friends-list-container h5 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.friends-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.friends-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.friends-list li .remove-friend-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.friends-list li .remove-friend-btn:hover {
  color: var(--loss-color);
  transform: scale(1.1);
}

/* --- Modal (Detailed Stats) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  visibility: hidden;
  transition: visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 95%;
  max-width: 1000px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.modal.open .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-player-summary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.modal-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  object-fit: cover;
  background: #181922;
}

.modal-player-meta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-elo-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 -2px 8px rgba(0, 240, 255, 0.5);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Detailed Overview Tab */
.stats-grid-detailed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.detail-stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.detail-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.3rem 0;
}

.detail-stat-card .stat-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Recent Results Form Grid */
.recent-results-container {
  display: flex;
  gap: 0.4rem;
  margin: 0.6rem 0 0.5rem 0;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
}

.form-badge.form-w {
  background: var(--win-color);
  box-shadow: 0 0 6px var(--win-glow);
}

.form-badge.form-l {
  background: var(--loss-color);
  box-shadow: 0 0 6px var(--loss-glow);
}

.modal-action-zone {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-faceit {
  background: #ff5500;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-faceit:hover {
  background: #ff661a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.45);
}

/* Map Performance Tab */
.map-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-stat-row {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 1;
}

.map-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(1px);
  z-index: -1;
  transition: var(--transition);
}

.map-stat-row:hover .map-background-overlay {
  opacity: 0.25;
}

.map-info {
  width: 120px;
  display: flex;
  flex-direction: column;
}

.map-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: capitalize;
}

.map-played {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.map-progress-bar-container {
  flex: 1;
  margin: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-track {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s ease-out;
}

.map-kd-val {
  text-align: right;
  width: 80px;
}

.map-kd-val .kd-num {
  font-size: 1.1rem;
  font-weight: 700;
}

.map-kd-val .kd-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Toast Notifications --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(19, 21, 31, 0.95);
  border: 1px solid var(--border-color);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 400;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

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

.toast-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.toast.success .toast-icon { color: var(--win-color); }
.toast.error .toast-icon { color: var(--loss-color); }

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.spinner-icon {
  font-size: 4rem;
  color: var(--primary-color);
  animation: logo-spin 2s linear infinite;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  margin-bottom: 1.5rem;
}

.spinner-container p {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes crown-float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-4px) rotate(2deg); }
}

@keyframes level10-pulse {
  from { box-shadow: 0 0 8px rgba(255, 0, 0, 0.4); }
  to { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), inset 0 0 5px rgba(255, 0, 0, 0.2); }
}

/* --- Footer --- */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 5rem;
  background: rgba(19, 21, 31, 0.3);
}

.footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-container p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .podium-card.rank-1, .podium-card.rank-2, .podium-card.rank-3 {
    height: auto;
    order: unset; /* Stack them naturally in DOM rank order */
    padding-top: 2.5rem;
    max-width: 400px;
  }
  
  .crown-icon {
    top: -20px;
  }
  
  .stats-grid-detailed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-content {
    margin: 1.5rem auto;
  }
  
  .onboarding-card {
    padding: 2rem 1.5rem;
  }
  
  .map-stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;
  }
  
  .map-progress-bar-container {
    margin: 0;
    width: 100%;
  }
  
  .map-kd-val {
    text-align: left;
    width: auto;
  }
}

/* --- Gamification, Achievements & Case Opener Styles --- */

/* --- Header Navigation --- */
.header-nav {
  display: flex;
  gap: 1.5rem;
  margin: 0 1.5rem;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-cyan);
  box-shadow: 0 -2px 10px rgba(0, 240, 255, 0.7);
  border-radius: 2px;
}

/* --- Rarity Themes --- */
.rarity-mil-spec { color: #5e98d9; }
.rarity-restricted { color: #4b69ff; }
.rarity-classified { color: #d32ce6; }
.rarity-covert { color: #eb4b4b; }
.rarity-special { color: #e4ae39; }

.bg-rarity-mil-spec { background-color: rgba(94, 152, 217, 0.1); border-color: #5e98d9 !important; }
.bg-rarity-restricted { background-color: rgba(75, 105, 255, 0.1); border-color: #4b69ff !important; }
.bg-rarity-classified { background-color: rgba(211, 44, 230, 0.1); border-color: #d32ce6 !important; }
.bg-rarity-covert { background-color: rgba(235, 75, 75, 0.1); border-color: #eb4b4b !important; }
.bg-rarity-special { 
  background-color: rgba(228, 174, 57, 0.15); 
  border-color: #e4ae39 !important;
  box-shadow: 0 0 15px rgba(228, 174, 57, 0.4);
}

/* --- Achievements / Badges --- */
.achievements-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.card-header .achievements-row {
  justify-content: flex-start;
  margin-top: 0.2rem;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  cursor: help;
  position: relative;
  transition: var(--transition);
}

.achievement-badge:hover {
  transform: scale(1.15);
}

.achievement-badge.badge-carry { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 5px rgba(255,215,0,0.3); }
.achievement-badge.badge-assassin { border-color: #eb4b4b; color: #eb4b4b; box-shadow: 0 0 5px rgba(235,75,75,0.3); }
.achievement-badge.badge-headshot { border-color: #00e676; color: #00e676; box-shadow: 0 0 5px rgba(0,230,118,0.3); }
.achievement-badge.badge-on_fire { border-color: #ffaa00; color: #ffaa00; box-shadow: 0 0 10px rgba(255, 170, 0, 0.5); }
.achievement-badge.badge-backpacker { border-color: #c0c0c0; color: #c0c0c0; box-shadow: 0 0 5px rgba(192,192,192,0.3); }
.achievement-badge.badge-damage { border-color: #d32ce6; color: #d32ce6; box-shadow: 0 0 5px rgba(211,44,230,0.3); }

/* Achievement Tooltip */
.achievement-badge::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #11131c;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  pointer-events: none;
}

.achievement-badge:hover::before {
  opacity: 1;
  visibility: visible;
}

/* --- ELO Level-Up Progress bar --- */
.level-progress-container {
  width: 100%;
  margin-top: 0.8rem;
}

.level-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 3px;
}

.level-progress-track {
  background: rgba(255, 255, 255, 0.05);
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.level-progress-fill {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.8s ease-out;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.level-progress-max {
  font-size: 0.75rem;
  color: var(--gold-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* --- Case Opener Layout --- */
.case-opener-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.player-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.custom-select, .custom-select-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.7rem 1.2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  margin-top: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus, .custom-select-sm:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.cooldown-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid var(--loss-color);
  color: var(--loss-color);
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  align-self: flex-start;
}

.case-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.case-header-visual {
  margin-bottom: 1.8rem;
}

.case-icon-lg {
  font-size: 4rem;
  color: var(--gold-color);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  margin-bottom: 0.75rem;
}

.case-title-txt {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Spinner Window and Track */
.spinner-view-window {
  width: 100%;
  height: 150px;
  background: #090a0f;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.spinner-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: var(--primary-color);
  z-index: 10;
  box-shadow: 0 0 10px var(--primary-color), 0 0 5px rgba(255,85,0,0.5);
  pointer-events: none;
}

.spinner-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  gap: 10px;
  transform: translateX(0px);
  will-change: transform;
}

.spinner-item {
  width: 130px;
  height: 110px;
  flex-shrink: 0;
  background: #141620;
  border: 1px solid rgba(255,255,255,0.03);
  border-bottom: 4px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s;
}

.spinner-item-img {
  width: 75px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.spinner-item-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.btn-orange:disabled {
  background: var(--bg-input);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  border: 1px solid var(--border-color);
}

/* --- Inventory Showcase Layout --- */
.inventory-showcase-zone {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.showcase-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.showcase-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inventory-selector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.inventory-selector-row .custom-select-sm {
  margin-top: 0;
  max-width: 180px;
  padding: 0.5rem 1rem;
}

.inventory-val-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-color);
  color: var(--gold-color);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Inventory Grid and Cards */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

.inventory-grid::-webkit-scrollbar {
  width: 4px;
}

.inventory-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  transition: var(--transition);
}

.inventory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.inventory-card-img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.inventory-card-info {
  width: 100%;
}

.inventory-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.1rem;
}

.inventory-card-wear {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.inventory-card-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-color);
  margin-top: 0.2rem;
}

/* Modal specific inventory tweaks */
.modal-inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.modal-inventory-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Comparison Tool Styles --- */
.compare-container {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.compare-select-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.compare-select-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  max-width: 250px;
}

.compare-select-box label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-vs-badge {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #0e101a;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  margin-top: 1.2rem;
}

/* Compare Content */
.compare-results-box {
  animation: fadeIn 0.4s ease-out;
}

.compare-headers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.compare-player-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.compare-player-header.p1-align {
  justify-content: flex-end;
  text-align: right;
}

.compare-player-header.p2-align {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row-reverse;
}

.compare-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #181922;
  object-fit: cover;
}

.compare-player-header.p1-align .compare-avatar { 
  border-color: var(--accent-cyan); 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}
.compare-player-header.p2-align .compare-avatar { 
  border-color: var(--accent-purple); 
  box-shadow: 0 0 10px rgba(188, 0, 221, 0.25);
}

.compare-player-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
}

.compare-metric-title {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Compare Stats Progress rows */
.compare-stats-table {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  text-align: center;
}

.comp-val {
  font-size: 1.35rem;
  font-weight: 900;
}

.comp-val.p1-val { color: var(--accent-cyan); text-align: right; }
.comp-val.p2-val { color: var(--accent-purple); text-align: left; }

.comp-val.winner {
  text-shadow: 0 0 12px currentColor;
}

.comp-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.comp-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.comp-bar-track {
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.comp-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-bar-fill.p1-fill {
  background: var(--accent-cyan);
  box-shadow: -2px 0 6px var(--accent-cyan);
}

.comp-bar-fill.p2-fill {
  background: var(--accent-purple);
  box-shadow: 2px 0 6px var(--accent-purple);
}

/* Compare Maps Advantage */
.compare-maps-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.compare-maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.compare-map-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  min-height: 100px;
  justify-content: space-between;
}

.compare-map-card .map-background-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: -1;
}

.comp-map-name {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: capitalize;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

.comp-map-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.comp-map-stat-row.map-winrates {
  font-weight: 700;
}

.comp-map-stat-row .p1-text { color: var(--primary-color); }
.comp-map-stat-row .p2-text { color: var(--gold-color); }

.comp-map-bar-track {
  background: rgba(255,255,255,0.05);
  height: 4px;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  margin-top: 0.2rem;
}

/* Adjustments for smaller screen headers */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .header-nav {
    margin: 0.5rem 0;
  }
  
  .case-opener-grid {
    grid-template-columns: 1fr;
  }
  
  .inventory-showcase-zone {
    height: 450px;
  }
  
  .compare-headers {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    text-align: center;
  }
  
  .compare-player-header.p1-align,
  .compare-player-header.p2-align {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .compare-metric-title {
    margin: 0.5rem 0;
  }
}

/* --- Steam & Faceit Activity Footer/Modal Styles --- */

.podium-activity {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.podium-activity .activity-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
}

.card-activity-footer {
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  margin-top: 0.6rem;
}

.card-activity-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #5e98d9;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #5e98d9;
}

.status-ingame {
  color: #00e676;
}

.status-ingame .status-pulse {
  width: 7px;
  height: 7px;
  background-color: #00e676;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
  box-shadow: 0 0 8px #00e676;
}

.status-online {
  color: #5e98d9;
}

.status-offline {
  color: var(--text-muted);
}

.modal-activity-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  background: var(--bg-input);
  padding: 1.2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.activity-status-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.activity-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px #00e676;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* --- Colorful Case Spinner Radial Glows --- */
.spinner-item.rarity-mil-spec {
  background: radial-gradient(circle, rgba(94, 152, 217, 0.12) 0%, #141620 75%);
  border-color: rgba(94, 152, 217, 0.25) !important;
}
.spinner-item.rarity-restricted {
  background: radial-gradient(circle, rgba(75, 105, 255, 0.15) 0%, #141620 75%);
  border-color: rgba(75, 105, 255, 0.25) !important;
}
.spinner-item.rarity-classified {
  background: radial-gradient(circle, rgba(211, 44, 230, 0.18) 0%, #141620 75%);
  border-color: rgba(211, 44, 230, 0.25) !important;
}
.spinner-item.rarity-covert {
  background: radial-gradient(circle, rgba(235, 75, 75, 0.22) 0%, #141620 75%);
  border-color: rgba(235, 75, 75, 0.3) !important;
  box-shadow: 0 0 10px rgba(235, 75, 75, 0.15);
}
.spinner-item.rarity-special {
  background: radial-gradient(circle, rgba(228, 174, 57, 0.25) 0%, #141620 75%);
  border-color: rgba(228, 174, 57, 0.4) !important;
  animation: goldPulseSpinnerBorder 1.5s infinite alternate;
}

@keyframes goldPulseSpinnerBorder {
  0% {
    box-shadow: inset 0 0 10px rgba(228, 174, 57, 0.15), 0 0 5px rgba(228, 174, 57, 0.1);
  }
  100% {
    box-shadow: inset 0 0 15px rgba(228, 174, 57, 0.3), 0 0 12px rgba(228, 174, 57, 0.4);
  }
}

/* --- CS2 Premier Style ELO Rating Badge --- */
.elo-rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.8rem 0;
  gap: 0.35rem;
}

.rating-capsule {
  display: inline-flex;
  align-items: center;
  background: #f1b813; /* CS Premier yellow rating color */
  border-radius: 20px;
  padding: 0.18rem 0.75rem;
  color: #0b0c11;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  gap: 0.3rem;
  box-shadow: 0 0 12px rgba(241, 184, 19, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-emblem {
  background: #0b0c11;
  color: #f1b813;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
}

.rating-value {
  font-size: 2.2rem; /* Big, clean, highly visible rating! */
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-logo), 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  line-height: 1.1;
}

/* Grid card specific ratings */
.grid-elo-rating-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.grid-rating-capsule {
  background: #f1b813;
  color: #0b0c11;
  padding: 0.1rem 0.4rem;
  border-radius: 12px;
  font-size: 0.62rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* --- COSMETIC CUSTOMIZATIONS --- */
/* Custom Avatar Frames */
.avatar-wrapper {
  position: relative;
  display: inline-block;
}
.frame-default {
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.frame-cyan-glow {
  border: 3px solid #00f0ff;
  box-shadow: 0 0 15px #00f0ff;
  border-radius: 50%;
}
.frame-purple-pulse {
  border: 3px solid #bc00dd;
  box-shadow: 0 0 15px #bc00dd;
  border-radius: 50%;
  animation: pulse-purple 2s infinite alternate;
}
.frame-gold-crown {
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px #ffd700;
  border-radius: 50%;
}
@keyframes pulse-purple {
  0% { box-shadow: 0 0 5px #bc00dd; }
  100% { box-shadow: 0 0 22px #bc00dd; }
}

/* Custom Card Banners/Themes */
.theme-default {
  background: var(--bg-card);
}
.theme-cyberpunk {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(188, 0, 221, 0.08) 100%), var(--bg-card) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.15) !important;
}
.theme-gold-champion {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(12, 13, 22, 0.9) 100%), var(--bg-card) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 215, 0, 0.25) !important;
}
.theme-hyperbeast {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.08) 0%, rgba(0, 255, 128, 0.08) 100%), var(--bg-card) !important;
  border-color: rgba(255, 0, 128, 0.35) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 0, 128, 0.15) !important;
}

/* Custom Nickname and Title styling */
.player-title-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Store Cards */
.store-item-card {
  background: rgba(14, 17, 30, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}
.store-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-color);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.1);
}
.store-item-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

/* Progress bar customizations for Missions */
.mission-card {
  background: rgba(14, 17, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}
.mission-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mission-progress-bar {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.mission-progress-fill {
  height: 100%;
  border-radius: 4px;
}
.mission-progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-primary);
  min-width: 45px;
  text-align: right;
}

/* Sub tabs styling */
.sub-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sub-tab:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--text-primary);
}
.sub-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(188, 0, 221, 0.25) 100%);
  border-color: #00f0ff;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Dashboard columns layout */
.dashboard-columns-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.dashboard-main-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-side-col {
  position: sticky;
  top: 100px;
}

@media (max-width: 1200px) {
  .dashboard-columns-layout {
    grid-template-columns: 1fr !important;
  }
  .dashboard-side-col {
    position: static !important;
  }
}

/* Modal Overview Tab Split Layout */
.modal-overview-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.modal-overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-overview-coach {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .modal-overview-split {
    grid-template-columns: 1fr;
  }
}

/* Guestbook styles */
.comment-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition);
}

.comment-bubble:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.15);
}

.comment-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  font-weight: 700;
  color: var(--cyan-color);
  font-size: 0.85rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

/* --- Weekly Tournaments Styles --- */
.tournament-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .tournament-split-layout {
    grid-template-columns: 1fr;
  }
  #rules-ru-box {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
  }
}

/* Bracket Columns */
.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2.5rem;
  min-width: 280px;
  flex: 1;
  position: relative;
}

.bracket-round-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.match-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.match-card:hover {
  border-color: rgba(255, 85, 0, 0.2);
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.05);
}

.match-card.active {
  border-color: rgba(255, 85, 0, 0.35);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.08);
  background: rgba(255, 85, 0, 0.01);
}

.match-info-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.4rem;
}

.match-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition);
}

.match-team-row.eliminated {
  text-decoration: line-through;
  opacity: 0.3;
  background: rgba(0, 0, 0, 0.1);
}

.match-team-row.winner {
  color: #ff8800;
  font-weight: 800;
  background: rgba(255, 85, 0, 0.06);
  border: 1px solid rgba(255, 85, 0, 0.25);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.05);
}

.match-winner-select {
  background: #090909;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='orange' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 25px;
  transition: var(--transition);
}

.match-winner-select:focus {
  border-color: #ff8800;
  box-shadow: 0 0 5px rgba(255, 136, 0, 0.2);
}

.match-winner-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Glass panel highlighting for console connection string */
.glass-panel-accent {
  background: rgba(255, 85, 0, 0.02);
  border: 1px solid rgba(255, 85, 0, 0.15);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.03);
}

/* Detailed Recent Matches Table */
.recent-match-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.recent-match-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.recent-match-row td {
  padding: 1rem 0.5rem;
  vertical-align: middle;
}

.recent-match-row.win {
  border-left: 3px solid #00e676;
}

.recent-match-row.loss {
  border-left: 3px solid #ff3333;
}

.recent-match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
}

.recent-match-score-badge.win {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00e676;
  color: #00e676;
}

.recent-match-score-badge.loss {
  background: rgba(255, 51, 51, 0.15);
  border: 1px solid #ff3333;
  color: #ff3333;
}

.recent-match-elo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-match-elo-change {
  font-weight: 700;
  font-size: 0.85rem;
}

.recent-match-elo-change.win {
  color: #00e676;
}

.recent-match-elo-change.loss {
  color: #ff3333;
}

/* --- Mobile Responsiveness Enhancements --- */
.steam-info-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.mobile-nav-wrapper, .mobile-tabs-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .modal-tabs {
    display: none !important;
  }
  
  .mobile-tabs-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .mobile-tabs-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .mobile-tabs-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  }
}

@media (max-width: 600px) {
  .steam-info-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .steam-left-col {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 0 !important;
    padding-bottom: 1.5rem;
  }

  .header-nav {
    display: none !important;
  }
  
  .mobile-nav-wrapper {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0.5rem auto;
  }
  
  .mobile-nav-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .mobile-nav-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  }
}

@media (max-width: 480px) {
  .comment-bubble-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}




