/* ===== GLOBAL - STRICT BLACK, GREY, YELLOW ===== */
:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --grey-dark: #141414;
  --grey-mid: #2a2a2a;
  --grey: #5c5c5c;
  --grey-light: #9e9e9e;
  --grey-pale: #e0e0e0;
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --nav-offset: 88px;
}

html {
  background: #000000;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  overflow-x: hidden;
}
/* Lenis smooth scroll - disable native smooth when active */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto; }
html.lenis-scrolling iframe { pointer-events: none; }

/* Grey scrollbar - no blue */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", Roboto, sans-serif;
  background: #000000;
  color: var(--grey-pale);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Page transition: fade out before redirect */
body.page-transition-out {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

/* Page transition: fade in on load */
body.page-transition-initial {
  opacity: 0;
}
body.page-transition-in {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

p {
  margin: 0;
  color: var(--grey-light);
  line-height: 1.6;
}

/* ===== HEADER / BANNER ===== */
.header {
  position: relative;
  text-align: center;
  padding: 70px 20px 50px;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 60px;
  background-color: #0a0a0a;
  background-image: url("hero-stadium.png"), linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Dark overlay so text stays readable - light enough for photo to show */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header h1 i {
  margin-right: 0.35em;
  opacity: 0.95;
}

.header p {
  color: var(--grey-pale);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 700px;
  margin: 12px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== SECTIONS ===== */
.card {
  background: #1a1a1a;
  margin: 30px auto;
  padding: 28px 30px;
  max-width: 1100px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid #3a3a3a;
}


.card h2 {
  color: var(--grey-pale);
  font-size: 1.35rem;
  margin-bottom: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card h2 i {
  color: var(--yellow);
  margin-right: 0.4em;
}

.card p,
.card .card-desc {
  margin: 0 0 12px 0;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.card-desc {
  color: var(--grey-light);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.card-desc a,
.card p a {
  color: var(--yellow);
  text-decoration: none;
}

.card p a:hover {
  text-decoration: underline;
}

/* Login/register - single card pages */
body:not(:has(.header)) .card {
  margin-top: 80px;
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filters input,
.filters select {
  background: #0a0a0a;
  border: 1px solid var(--grey-mid);
  color: var(--grey-pale);
  padding: 10px 12px;
  border-radius: 8px;
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23facc15' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.filters input:focus,
.filters select:focus,
.input-group input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.input-group {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.input-group-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#playerDataCard.is-loaded #playerResetBtn,
.card.is-loaded .btn-reset-player,
#compareTwoSection.is-loaded .btn-reset-player,
#playerRecommendationSection.is-loaded .btn-reset-player {
  display: inline-flex !important;
}

#playerResetBtn,
.card .btn-reset-player {
  display: none;
}

.input-group input {
  background: #0a0a0a;
  border: 1px solid var(--grey-mid);
  color: var(--grey-pale);
  padding: 10px 12px;
  border-radius: 8px;
  margin-right: 8px;
  min-width: 220px;
}

/* Standalone inputs (login, register - direct children of card) */
.card > input[type="text"],
.card > input[type="password"],
.card > input:not([type]) {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  background: #0a0a0a;
  border: 1px solid var(--grey-mid);
  color: var(--grey-pale);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.card input::placeholder,
.filters input::placeholder,
.input-group input::placeholder {
  color: var(--grey);
}

.input-group input.placeholder-italic::placeholder {
  font-style: italic;
}

.input-group input.tm-player-input {
  min-width: 320px;
}

.tm-autocomplete-wrap {
  position: relative;
  display: inline-block;
}

.tm-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tm-autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--grey-pale);
  font-size: 0.95rem;
  border-bottom: 1px solid #252525;
  transition: background 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tm-autocomplete-item:last-child {
  border-bottom: none;
}

.tm-autocomplete-item:hover {
  background: #252525;
  color: var(--yellow);
}

.tm-autocomplete-item.tm-autocomplete-empty {
  cursor: default;
  color: var(--grey);
  font-style: italic;
}

.tm-autocomplete-meta {
  font-size: 0.85rem;
  color: var(--grey);
  margin-left: 6px;
}

/* Kill browser autofill blue tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--grey-pale);
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
}

button {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  border: none;
  color: var(--black);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

button:hover {
  opacity: 0.92;
}

.btn-reset-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2a2a2a;
  color: var(--grey-pale);
  border: 1px solid var(--grey-mid);
  padding: 10px 14px;
  min-width: auto;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}

.btn-reset-player.hidden {
  display: none !important;
}

.btn-reset-player:hover {
  background: #353535;
  opacity: 1;
}

.btn-reset-player:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== CARD LIST ===== */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 18px;
}

/* ===== PLAYER CARD ===== */
.player-card {
  background: linear-gradient(145deg, #0a0a0a, #141414);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.12);
}

.player-card h4 {
  color: var(--yellow);
  margin-bottom: 6px;
  line-height: 1.3;
}

.player-card p {
  margin: 4px 0 10px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.score-pill {
  background: var(--yellow);
  color: var(--black);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
}

/* ===== COMPARE BUTTON ===== */
.compare-btn {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.compare-btn:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ===== PREDICTION ===== */
.player-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #0a0a0a, #141414);
  border: 1px solid #2a2a2a;
  padding: 22px;
  border-radius: 14px;
  margin-top: 18px;
}

.player-result h3 {
  margin-bottom: 8px;
  color: var(--yellow);
  line-height: 1.3;
}

.player-result p {
  margin: 4px 0;
  line-height: 1.6;
}

.score-badge {
  font-size: 2rem;
  font-weight: bold;
  color: var(--yellow);
}

/* ===== COMPARISON ===== */
.compare-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.compare-card {
  background: linear-gradient(145deg, #0a0a0a, #141414);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.compare-card h3 {
  color: var(--yellow);
  margin-bottom: 10px;
  line-height: 1.3;
}

.compare-card p {
  margin: 6px 0;
  line-height: 1.6;
}

.hidden {
  display: none;
}

.tm-loading-msg {
  margin: 8px 0 12px 0;
  color: var(--grey-light);
  font-style: italic;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.pagination span {
  color: var(--grey-light);
}

/* ===== TRANSFERMARKT FULL PROFILE ===== */
.tm-full-profile {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.tm-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tm-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tm-profile-topbar .btn-reset-player {
  flex-shrink: 0;
}

.tm-profile-loaded-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.tm-profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.tm-profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #2a2a2a;
  background: #0a0a0a;
  display: block;
}

.tm-profile-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 2px solid #2a2a2a;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--grey);
}

.tm-profile-main h3 {
  margin-bottom: 8px;
  color: var(--yellow);
  line-height: 1.3;
}

.tm-profile-main p {
  margin: 6px 0;
  line-height: 1.6;
}

.tm-profile-meta-row,
.profile-meta-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.player-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  vertical-align: middle;
}

.player-favorite-btn:hover {
  color: var(--yellow);
  transform: scale(1.08);
}

.player-favorite-btn.is-favorited,
.player-favorite-btn.is-favorited:hover {
  color: var(--yellow);
}

.player-favorite-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.player-favorite-btn i {
  font-size: 1.15rem;
}

.navbar-favorites-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-favorites-link i {
  color: var(--yellow);
  font-size: 0.85rem;
}

.navbar-link-active {
  color: var(--yellow) !important;
}

.favorites-page {
  background: var(--bg, #000);
  color: #fff;
}

.favorites-shell {
  padding-top: 110px;
  padding-bottom: 64px;
  max-width: 960px;
}

.favorites-header {
  margin-bottom: 28px;
}

.favorites-eyebrow {
  color: var(--grey);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.favorites-header h1,
.favorites-empty h2 {
  color: var(--yellow);
  margin-bottom: 8px;
}

.favorites-desc {
  color: var(--grey-light);
  max-width: 560px;
}

.favorites-grid {
  display: grid;
  gap: 16px;
}

.favorite-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.favorite-card:hover {
  border-color: rgba(250, 204, 21, 0.45);
  transform: translateY(-1px);
}

.favorite-card-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.favorite-card-photo,
.favorite-card-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
}

.favorite-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: var(--grey);
  font-size: 1.6rem;
}

.favorite-card-main h3 {
  color: var(--yellow);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.favorite-card-meta {
  color: var(--grey-light);
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.favorite-card-value {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--grey-light);
}

.favorite-card-link {
  color: var(--yellow);
  font-size: 0.8rem;
}

.favorites-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed #2a2a2a;
  border-radius: 16px;
  background: #0a0a0a;
}

.favorites-empty-icon {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.favorites-empty p {
  color: var(--grey-light);
  margin-bottom: 20px;
}

.favorites-loading,
.favorites-error {
  color: var(--grey-light);
}

.profile-favorites-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-details {
  flex: 1;
  min-width: 280px;
}

.tm-season-selector {
  margin-bottom: 1.25rem;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

.tm-season-selector label {
  display: block;
  color: var(--yellow);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tm-season-selector select {
  width: 100%;
  max-width: 200px;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid #2a2a2a;
  color: var(--grey-pale);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.tm-section {
  margin-bottom: 1.25rem;
}

.tm-section h4 {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #2a2a2a;
  line-height: 1.4;
}

.tm-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-section li {
  padding: 0.35rem 0;
  color: var(--grey-pale);
  font-size: 0.9rem;
  line-height: 1.6;
}

.tm-section li strong {
  color: var(--grey-light);
  margin-right: 0.35rem;
}

.tm-link {
  margin-top: 0.75rem;
}

.tm-link a {
  color: var(--yellow);
  text-decoration: none;
}

.tm-link a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stats-table th,
.stats-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
}

.stats-table th {
  color: var(--yellow);
  font-weight: 600;
}

.stats-table td {
  color: var(--grey-pale);
}

/* ===== USER BAR / LOGOUT ===== */
.user-bar {
  margin-top: 16px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 18px;
  border-radius: 10px;
}

.user-bar span {
  margin-right: 12px;
  color: var(--grey-pale);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
}

.logout-btn:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ===== AI FUTURE PERFORMANCE PREDICTION ===== */
.section-desc {
  color: var(--grey-light);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.input-group input[readonly] {
  cursor: default;
  background: #141414;
}

.future-pred-result {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.future-pred-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.future-pred-header h3 {
  margin-bottom: 4px;
}

.future-pred-msg {
  font-size: 0.9rem;
  color: var(--grey);
}

.future-pred-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.future-pred-percentage {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.future-pred-grade {
  font-size: 0.95rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.future-pred-breakdown,
.future-pred-projections {
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}

.future-pred-breakdown h4,
.future-pred-projections h4 {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.future-pred-breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.future-pred-breakdown li {
  padding: 4px 0;
  color: var(--grey-pale);
  font-size: 0.9rem;
}

.projection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.projection-item {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.projection-item .year {
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 4px;
}

.projection-item .pct {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--yellow);
}

.projection-item .projection-detail {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--grey-pale);
  font-weight: 400;
}

.future-pred-narrative {
  margin-top: 10px;
}

.future-pred-narrative ul {
  margin: 6px 0 0 1rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--grey-pale);
  line-height: 1.45;
}

.market-value-range,
.market-value-confidence {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--grey-pale);
}

.market-value-flags {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #e67e22;
}

.market-value-drivers {
  margin-top: 12px;
}

.market-value-drivers h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.market-value-drivers ul {
  margin: 0 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--grey-pale);
  line-height: 1.45;
}

/* Market Value Calculation */
.market-value-result .market-value-badge .future-pred-percentage {
  font-size: 1.75rem;
}

.market-value-comparison {
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.market-value-comparison p {
  margin: 0;
}

.market-value-comparison .mv-over {
  color: #22c55e;
}

.market-value-comparison .mv-under {
  color: #ef4444;
}

.retired-player-msg {
  padding: 16px 20px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 10px;
  color: var(--grey-pale);
  display: flex;
  align-items: center;
  gap: 12px;
}

.retired-player-msg i {
  color: var(--yellow);
  font-size: 1.25rem;
}

/* ===== INSIGHTS DASHBOARD (Simple / Advanced) ===== */
.insights-dashboard {
  margin-top: 4px;
}

.insights-shell {
  background: linear-gradient(165deg, #0c0c0c 0%, #101010 50%, #0a0a0a 100%);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.insights-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid #252525;
}

.insights-toolbar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.insights-toolbar-title i {
  margin-right: 8px;
  color: var(--yellow);
}

.insights-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: var(--grey-pale);
}

.insights-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.insights-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #333;
  border-radius: 999px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.insights-toggle-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.insights-toggle input:checked + .insights-toggle-slider {
  background: #3d6b2e;
}

.insights-toggle input:checked + .insights-toggle-slider::after {
  transform: translateX(20px);
}

.insights-toggle-text {
  font-weight: 600;
  color: var(--grey-light);
}

.insights-simple,
.insights-advanced {
  padding: 20px 22px 24px;
}

.insights-advanced {
  border-top: 1px dashed #333;
  background: rgba(0, 0, 0, 0.25);
}

.insights-adv-intro {
  font-size: 0.88rem;
  color: var(--grey);
  margin: 0 0 14px;
  line-height: 1.5;
}

.insights-adv-list {
  margin: 0 0 16px 1.1rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--grey-pale);
  line-height: 1.5;
}

.insights-meta {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.45;
  margin-top: 14px;
}

.insights-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #252525;
}

.insights-hero--compact {
  margin-bottom: 12px;
  padding-bottom: 14px;
  gap: 12px;
  align-items: center;
}

.insights-hero-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.insights-status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.insights-status-pill.insights-outlook--elite {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.insights-status-pill.insights-outlook--solid {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.insights-status-pill.insights-outlook--risky {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.insights-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(100%, 440px);
}

.insights-status-reason {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--grey-pale);
  font-weight: 500;
}

.insights-status-hints {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--grey-pale);
  opacity: 0.95;
}

.insights-status-hints li {
  margin-bottom: 3px;
}

.insights-inline-title {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.insights-muted {
  color: var(--grey);
  font-weight: 500;
}

.insights-ml-note {
  font-size: 0.72rem;
  color: var(--grey);
  margin: 2px 0 6px;
}

.insights-bp {
  font-size: 0.88rem;
  color: var(--grey-light);
  line-height: 1.45;
  margin: 0 0 6px;
}

.insights-bp-line {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 4px;
}

.insights-kf-plain {
  margin: 0 0 6px;
  padding-left: 1.1rem;
  color: var(--grey-light);
  font-size: 0.88rem;
  line-height: 1.45;
}

.insights-kf-plain li {
  margin-bottom: 6px;
}

.insights-bullets--tight {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.insights-bullets--tight li {
  margin-bottom: 4px;
}

.insights-range-line--tight {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.insights-proj-card--compact {
  padding: 10px 10px 12px;
}

.insights-proj-card--compact .insights-proj-score {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.insights-proj-card--compact .insights-proj-band {
  margin-bottom: 6px;
  font-size: 0.62rem;
}

.insights-proj-one {
  margin: 0;
  font-size: 0.78rem;
  color: var(--grey-pale);
  line-height: 1.35;
}

.insights-proj-grid--simple {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.insights-name {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.insights-outlook {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #333;
}

.insights-outlook-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.insights-outlook-hint {
  font-size: 0.8rem;
  color: var(--grey-pale);
  max-width: 280px;
  line-height: 1.35;
}

.insights-outlook--elite {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.08);
}

.insights-outlook--elite .insights-outlook-label {
  color: #fbbf24;
}

.insights-outlook--solid {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.insights-outlook--solid .insights-outlook-label {
  color: #6ee7b7;
}

.insights-outlook--risky {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.07);
}

.insights-outlook--risky .insights-outlook-label {
  color: #fca5a5;
}

.insights-score-block {
  text-align: right;
  min-width: 120px;
}

.insights-score-num {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.03em;
}

.insights-score-pct-suffix {
  font-size: 0.52em;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0;
}

.insights-score-num.insights-eur {
  font-size: 2rem;
}

.insights-score-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--grey);
}

.insights-range-line {
  font-size: 0.92rem;
  color: var(--grey-pale);
  margin: 0 0 18px;
  line-height: 1.5;
}

.insights-range-line i {
  margin-right: 8px;
  color: var(--yellow);
  opacity: 0.85;
}

.insights-bullets {
  margin: 0 0 20px;
  padding-left: 1.15rem;
  color: var(--grey-light);
  line-height: 1.55;
  font-size: 0.95rem;
}

.insights-bullets li {
  margin-bottom: 8px;
}

.insights-bullets--why li {
  font-size: 0.92rem;
}

.insights-section {
  margin-bottom: 22px;
}

.insights-section:last-child {
  margin-bottom: 0;
}

.insights-section-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.insights-section-title i {
  color: var(--yellow);
  opacity: 0.9;
  font-size: 0.95rem;
}

.insights-key-factors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-kf-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #252525;
  border-radius: 12px;
}

.insights-kf-icon {
  color: var(--yellow);
  margin-top: 3px;
  opacity: 0.9;
  flex-shrink: 0;
}

.insights-kf-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 4px;
}

.insights-kf-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey-pale);
  line-height: 1.45;
}

.insights-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.insights-proj-grid--adv {
  grid-template-columns: 1fr;
}

.insights-proj-card {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: left;
}

.insights-proj-card--adv {
  text-align: left;
}

.insights-proj-year {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 6px;
}

.insights-proj-year small {
  font-weight: 600;
  color: var(--grey-pale);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.insights-proj-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 6px;
}

.insights-proj-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  margin-left: 2px;
}

.insights-proj-band {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.insights-band--high {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.insights-band--mid {
  background: rgba(234, 179, 8, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.insights-band--low {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.insights-proj-line {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--grey-pale);
  line-height: 1.4;
}

.insights-proj-detail,
.insights-proj-expl {
  font-size: 0.78rem;
  color: var(--grey);
  margin: 6px 0 0;
  line-height: 1.4;
}

.insights-proj-meta {
  font-size: 0.75rem;
  color: var(--grey);
  margin-left: 6px;
  font-weight: 500;
}

.insights-subhead {
  font-size: 0.88rem;
  margin: 16px 0 10px;
  color: var(--grey-light);
}

.insights-metric-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}

.insights-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #222;
  font-size: 0.82rem;
}

.insights-metric-row:last-child {
  border-bottom: none;
}

.insights-metric-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.insights-metric-label {
  color: var(--grey-pale);
  flex: 1;
  min-width: 0;
}

.insights-metric-val {
  font-weight: 600;
  color: #e0e0e0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.insights-flags-raw {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 12px;
  line-height: 1.45;
}

/* ===== FIFA SCOUTING CARD ===== */
.fifa-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.fifa-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.35), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 8px
    );
  pointer-events: none;
}

.fifa-card-inner {
  position: relative;
  z-index: 1;
}

.fifa-card--gold {
  background: linear-gradient(145deg, #3d2f08 0%, #7a5c12 28%, #c9a227 55%, #8b6914 100%);
  border: 2px solid #e8c547;
}

.fifa-card--silver {
  background: linear-gradient(145deg, #1a1a1a 0%, #4a4a4a 40%, #9a9a9a 70%, #5a5a5a 100%);
  border: 2px solid #d8d8d8;
}

.fifa-card--bronze {
  background: linear-gradient(145deg, #2a1408 0%, #6b3a18 45%, #cd7f32 75%, #8b4513 100%);
  border: 2px solid #e09855;
}

.fifa-card--empty,
.fifa-card--unavailable {
  background: linear-gradient(145deg, #111 0%, #222 100%);
  border: 2px solid #444;
}

.fifa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 0;
}

.fifa-card-pos {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
}

.fifa-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.65);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
}

.fifa-card-body {
  padding: 8px 16px 16px;
}

.fifa-card-ratings {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.fifa-ovr-block,
.fifa-pot-block {
  text-align: center;
}

.fifa-ovr-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

.fifa-pot-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  color: #b8ffb8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}

.fifa-ovr-label,
.fifa-pot-label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.fifa-card-visual {
  text-align: center;
  min-width: 0;
}

.fifa-card-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin: 0 auto 8px;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.fifa-card-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.fifa-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fifa-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
}

.fifa-card-meta dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 2px;
}

.fifa-card-meta dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fifa-card-note {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.fifa-proj-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.fifa-proj-item {
  text-align: center;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fifa-proj-lbl {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.fifa-proj-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.fifa-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.fifa-stat {
  text-align: center;
  padding: 8px 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

.fifa-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.fifa-stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.fifa-card-source {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.fifa-card-source i {
  margin-right: 6px;
  color: var(--yellow);
}

.fifa-card-summary {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--grey-pale);
  line-height: 1.45;
}

.insights-simple .fifa-card {
  margin-top: 4px;
}

.fifa-card--compact .fifa-card-ratings {
  grid-template-columns: 58px 1fr 58px;
}

.fifa-card--compact .fifa-ovr-num {
  font-size: 2.1rem;
}

.fifa-card--compact .fifa-pot-num {
  font-size: 1.35rem;
}

.fifa-card--compact .fifa-card-photo {
  width: 72px;
  height: 72px;
}

.fifa-card--compact .fifa-card-name {
  font-size: 0.9rem;
}

.fifa-card--compact .fifa-stats-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fifa-card--compact .fifa-card-meta {
  grid-template-columns: 1fr;
}

.compare-two-card .fifa-card {
  margin: 0;
  border-radius: 14px;
}

.compare-two-card.insights-dashboard {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.compare-two-card .insights-toolbar {
  padding: 10px 14px;
}

.compare-two-card .insights-simple,
.compare-two-card .insights-advanced {
  padding: 14px 14px 16px;
}

.compare-two-card .insights-name {
  font-size: 1.1rem;
}

.compare-two-card .insights-score-num {
  font-size: 2rem;
}

.compare-two-card .insights-proj-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .compare-two-card .insights-proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== COMPARE TWO PLAYERS (Performance Prediction) ===== */
#compareTwoSection.card h2 {
  margin-bottom: 0.5rem;
}

#compareTwoSection .section-desc {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.compare-two-inputs {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.compare-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.compare-input-wrap label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 10px;
}

.compare-player-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Ensure compare dropdown appears above other content */
#compareTwoSection .tm-autocomplete-wrap {
  position: relative;
}

#compareTwoSection .tm-autocomplete-list {
  z-index: 200;
}

.compare-vs {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  padding: 12px 16px;
  margin: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-two-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.compare-two-result {
  margin-top: 8px;
}

.compare-two-message {
  color: var(--grey-light);
  font-style: italic;
  margin: 12px 0;
}

.compare-two-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 780px) {
  .compare-two-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .compare-vs-badge {
    order: 0;
    margin: 8px 0;
  }
}

.compare-two-card {
  background: linear-gradient(145deg, #0a0a0a, #141414);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.compare-two-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-two-card-header h3 {
  margin: 0;
  color: var(--yellow);
  font-size: 1.1rem;
  line-height: 1.3;
}

.compare-two-card .future-pred-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.compare-two-card .future-pred-percentage {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yellow);
}

.compare-two-card .future-pred-grade {
  font-size: 0.85rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-two-card .future-pred-breakdown,
.compare-two-card .future-pred-projections {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #2a2a2a;
}

.compare-vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  padding: 12px 20px;
  border-radius: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: center;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
}

/* ===== NEW LANDING PAGE SECTIONS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.navbar-brand:hover { opacity: 0.9; }
.site-logo {
  height: 36px;
  width: auto;
  display: block;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-links a {
  color: var(--grey-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.navbar-links a:hover { color: white; }

/* App nav dropdown */
.navbar-dropdown {
  position: relative;
}
.navbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navbar-dropdown-trigger .fa-chevron-down {
  font-size: 0.62rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}
.navbar-dropdown:hover .navbar-dropdown-trigger,
.navbar-dropdown.open .navbar-dropdown-trigger {
  color: white;
}
.navbar-dropdown.open .navbar-dropdown-trigger .fa-chevron-down {
  transform: rotate(180deg);
}
.navbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 8px;
  transform: translateX(-50%) translateY(4px);
  min-width: 250px;
  padding: 8px;
  background: rgba(8, 8, 8, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}
.navbar-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.navbar-dropdown.open .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.navbar-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--grey-light);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.navbar-dropdown-menu a:hover {
  color: white;
  background: rgba(250, 204, 21, 0.1);
}
.navbar-dropdown-menu a i {
  width: 18px;
  color: var(--yellow);
  text-align: center;
  font-size: 0.85rem;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.navbar-profile-link:hover {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.08);
}
.navbar-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(250, 204, 21, 0.35);
  flex-shrink: 0;
}
.navbar-profile-name {
  line-height: 1.2;
}
.navbar-user .logout-btn { padding: 6px 14px; font-size: 0.9rem; }

.user-profile-page {
  padding-top: 110px;
  padding-bottom: 60px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.08), transparent 28%),
    #000;
}
.user-profile-shell {
  max-width: 720px;
}
.profile-loading {
  color: #9e9e9e;
  text-align: center;
  padding: 48px 0;
}
.profile-alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.profile-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.user-profile-layout {
  display: grid;
  gap: 20px;
}
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, #facc15, #eab308);
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.profile-avatar:hover {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45);
}
.profile-avatar-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.profile-avatar.has-photo {
  background: #111;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 50;
  transition: max-height 0.22s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.profile-avatar-wrap.open .profile-avatar-menu {
  max-height: 80px;
  opacity: 1;
  visibility: visible;
}
.profile-avatar-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #e5e5e5;
  font-size: 0.86rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.profile-avatar-menu button:hover {
  background: rgba(250, 204, 21, 0.12);
  color: #fff;
}
.profile-avatar-menu button i {
  color: #facc15;
  width: 16px;
}
.profile-detail-copy-wide {
  flex: 1;
  min-width: 0;
}
.profile-phone-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-add-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.profile-add-btn:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: #facc15;
}
.profile-modal-card-wide {
  max-width: 460px;
}

.avatar-preview-editor {
  margin: 18px 0 10px;
}

.avatar-preview-viewport {
  position: relative;
  overflow: hidden;
  background: #050505;
  border: 2px solid rgba(250, 204, 21, 0.35);
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
}

.avatar-preview-viewport--editor {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  cursor: grab;
}

.avatar-preview-viewport--editor.is-dragging {
  cursor: grabbing;
}

.avatar-preview-viewport--hero {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.avatar-preview-viewport--navbar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.avatar-preview-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  max-width: none;
}

.avatar-preview-editor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.avatar-preview-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--grey);
  font-size: 0.78rem;
}

.avatar-preview-hint i {
  color: var(--yellow);
  margin-right: 6px;
}

.avatar-preview-hint-mobile {
  display: none;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-avatar-mobile-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-avatar-mobile-btn:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: #facc15;
}

body.profile-modal-open {
  overflow: hidden;
}

#avatarPreviewModal {
  z-index: 1105;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.avatar-preview-zoom-label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--grey-light);
  font-size: 0.82rem;
}

.avatar-preview-zoom-label input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

.avatar-preview-samples {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-preview-samples-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.avatar-preview-samples-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.avatar-preview-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar-preview-sample span {
  font-size: 0.76rem;
  color: var(--grey-light);
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.profile-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.profile-modal-card {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.profile-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}
.profile-modal-close {
  background: none;
  border: none;
  color: #9e9e9e;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.profile-modal-close:hover { color: #fff; }
.profile-modal-desc {
  margin: 0 0 16px;
  color: #9e9e9e;
  font-size: 0.88rem;
}
.profile-modal-phone-row {
  margin-bottom: 18px;
}
.profile-modal-phone-row input {
  width: 100%;
  padding: 14px 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.profile-modal-phone-row input:focus {
  outline: none;
  border-color: #facc15;
}
.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.profile-modal-actions .btn {
  min-width: 110px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.profile-modal-actions .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.profile-modal-actions .btn-primary {
  background: linear-gradient(135deg, #facc15, #eab308);
  border: none;
  color: #000;
}
.profile-modal .auth-country-picker {
  flex: 0 0 76px;
}
.profile-modal .auth-country-trigger {
  min-height: 48px;
  background: #111 !important;
}
.profile-modal .auth-country-menu {
  width: 188px;
}

/* Shared country code picker (register + profile) */
.auth-phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.auth-country-picker {
  position: relative;
  flex: 0 0 76px;
}
.auth-country-trigger {
  width: 100%;
  height: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 8px;
  background: #0a0a0a !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 12px;
  color: #facc15 !important;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color 0.2s ease;
}
.auth-country-trigger:hover {
  transform: none !important;
  box-shadow: none !important;
}
.auth-country-picker.open .auth-country-trigger {
  border-color: #facc15;
}
.auth-country-trigger .fa-chevron-down {
  font-size: 0.58rem;
  color: #9e9e9e;
  transition: transform 0.2s ease;
}
.auth-country-picker.open .auth-country-trigger .fa-chevron-down {
  transform: rotate(180deg);
  color: #facc15;
}
.auth-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 188px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 200;
  transition: max-height 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.auth-country-picker.open .auth-country-menu {
  max-height: 148px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}
.auth-country-option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: #e5e5e5 !important;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  margin-top: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-country-option:hover {
  transform: none !important;
  box-shadow: none !important;
}
.auth-country-option .dial {
  color: #facc15 !important;
  font-weight: 700;
  min-width: 36px;
  flex-shrink: 0;
}
.auth-country-option .name {
  color: #d4d4d4 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-country-option:hover,
.auth-country-option.active {
  background: rgba(250, 204, 21, 0.12) !important;
}
.auth-country-option:hover .name,
.auth-country-option.active .name {
  color: #fff !important;
}
.auth-country-menu::-webkit-scrollbar { width: 5px; }
.auth-country-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.profile-hero-copy h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
}
.profile-eyebrow {
  margin: 0 0 6px;
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-member-id {
  margin: 8px 0 0;
  color: #9e9e9e;
  font-size: 0.92rem;
}
.profile-details-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-section-title {
  margin: 0 0 18px;
  font-size: 1rem;
  color: #fff;
}
.profile-detail-list {
  display: grid;
  gap: 12px;
}
.profile-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.profile-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  flex-shrink: 0;
}
.profile-detail-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.profile-detail-label {
  color: #9e9e9e;
  font-size: 0.82rem;
}
.profile-detail-value {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  word-break: break-word;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.profile-back-btn {
  min-width: 220px;
  text-align: center;
}

/* Legacy profile classes (kept for compatibility) */
.user-profile-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
}
.user-profile-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.user-profile-card .profile-subtitle {
  color: #9e9e9e;
  margin-bottom: 28px;
}
.user-profile-grid {
  display: grid;
  gap: 16px;
}
.user-profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.user-profile-row:last-child { border-bottom: none; }
.user-profile-label {
  color: #9e9e9e;
  font-size: 0.9rem;
}
.user-profile-value {
  color: #fff;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 768px) {
  .profile-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .profile-hero-copy h1 {
    font-size: 1.5rem;
  }
  .profile-details-card {
    padding: 18px;
  }
  .profile-detail-item {
    padding: 12px 14px;
  }
  .profile-avatar-mobile-btn {
    display: inline-flex;
  }
  .profile-avatar-menu {
    display: none;
  }
  .profile-avatar {
    cursor: pointer;
  }
  #avatarPreviewModal .profile-modal-card-wide {
    max-width: none;
  }
  #avatarPreviewModal .profile-modal-card {
    padding: 18px 16px;
  }
  .avatar-preview-viewport--editor {
    width: min(72vw, 240px);
    height: min(72vw, 240px);
  }
  .avatar-preview-zoom-label input[type="range"] {
    min-height: 28px;
  }
  .avatar-preview-samples-row {
    gap: 24px;
  }
  .avatar-preview-hint-desktop {
    display: none;
  }
  .avatar-preview-hint-mobile {
    display: block;
  }
  #avatarPreviewModal .profile-modal-actions {
    flex-direction: column;
  }
  #avatarPreviewModal .profile-modal-actions .btn {
    width: 100%;
    min-height: 44px;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("hero-stadium.png") center/cover;
  opacity: 0.72;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8px 16px 0;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: -24px -48px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}
.hero-badge i.fa-futbol {
  color: var(--yellow);
  font-size: 1rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 48px rgba(0, 0, 0, 0.45);
}
.hero-accent {
  color: var(--yellow);
  -webkit-text-fill-color: var(--yellow);
  background: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 20px rgba(250, 204, 21, 0.35);
}
.hero-desc {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f5f5f5;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--black);
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(250, 204, 21, 0.8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(250, 204, 21, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.hero-btns .btn-secondary {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}
.hero-btns .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}
.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* SECTIONS */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 16px;
}
.text-accent { color: var(--yellow); }
.section-desc {
  text-align: center;
  color: var(--grey-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.section .section-desc { margin-bottom: 24px; }

/* FEATURES */
.section-features { background: var(--black); }
.features-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.features-grid::-webkit-scrollbar { height: 6px; }
.features-grid::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.35);
  border-radius: 999px;
}
.feature-card {
  flex: 1 1 0;
  min-width: 190px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 18px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.22);
  transition: transform 0.25s, background 0.25s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08);
  background: rgba(250, 204, 21, 0.16);
}
.feature-card h3 {
  color: white;
  font-size: 0.98rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.feature-card p {
  color: var(--grey-light);
  font-size: 0.82rem;
  line-height: 1.55;
}
@media (min-width: 1200px) {
  .features-grid { overflow-x: visible; }
  .feature-card { min-width: 0; }
}

/* PRODUCT */
.section-product { background: var(--black-soft); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-content .section-title { text-align: left; }
.product-desc {
  color: var(--grey-light);
  margin-bottom: 24px;
  line-height: 1.7;
  text-align: left;
}
.product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.product-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--grey-pale);
  font-size: 0.92rem;
  line-height: 1.45;
}
.product-list li i { color: var(--yellow); margin-top: 3px; flex-shrink: 0; }
.product-preview { display: flex; justify-content: center; }
.preview-window {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  max-width: 400px;
  width: 100%;
}
.preview-window--app { max-width: 420px; }
.preview-header {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  display: flex;
  gap: 8px;
}
.preview-header span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.preview-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.preview-module-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preview-module-label i { color: var(--yellow); }
.preview-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--grey);
  font-size: 0.85rem;
}
.preview-club-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--grey-pale);
  font-size: 0.85rem;
}
.preview-club-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 0.75rem;
}
.preview-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preview-stat {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.preview-stat strong {
  display: block;
  color: var(--yellow);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.preview-stat span {
  color: var(--grey);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.preview-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--grey-pale);
  font-size: 0.82rem;
}
.preview-vs {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.75rem;
}
.preview-result {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.preview-result strong { color: var(--yellow); font-size: 1.5rem; }

/* APP SECTION */
.section-app { background: var(--black); }
.section-app .card { margin-bottom: 32px; }
.section-app .card[id] {
  scroll-margin-top: var(--nav-offset);
}

/* Player Data: dropdown must sit above following cards and not be clipped */
#playerDataCard {
  overflow: visible;
  position: relative;
  z-index: 5;
}
#playerDataCard .tm-autocomplete-wrap {
  position: relative;
  z-index: 400;
}
#playerDataCard .tm-autocomplete-list {
  z-index: 500;
}

/* TESTIMONIALS */
.section-testimonials { background: var(--black-soft); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.testimonial-card p {
  color: var(--grey-pale);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.2);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial-author strong { display: block; color: white; }
.testimonial-author span { color: var(--grey); font-size: 0.9rem; }

/* PRICING */
.section-pricing { background: var(--black); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}
.pricing-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-8px);
}
.pricing-featured {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.1);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-card h3 { color: white; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.pricing-price span { color: var(--grey); font-size: 1rem; font-weight: 400; }
.pricing-card > p { color: var(--grey); margin-bottom: 24px; font-size: 0.95rem; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.pricing-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-pale);
  margin-bottom: 10px;
}
.pricing-card li i { color: var(--yellow); }
.pricing-card .btn { width: 100%; }

/* CTA */
.section-cta {
  background: linear-gradient(135deg, rgba(250,204,21,0.08) 0%, rgba(250,204,21,0.02) 100%);
  padding: 100px 0;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 16px;
}
.cta-desc {
  color: var(--grey-light);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-brand a:hover { opacity: 0.9; }
.footer-brand p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-links h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.footer-bottom p { color: var(--grey); font-size: 0.9rem; }

/* Static content pages (About, Blog, Legal, etc.) */
.static-page {
  min-height: 100vh;
  background: #000;
  color: var(--grey-pale);
}
.static-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #2a2a2a;
  max-width: 1200px;
  margin: 0 auto;
}
.static-page-nav a.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.static-page-nav a.brand:hover { opacity: 0.9; }
.static-page-nav a.back {
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.95rem;
}
.static-page-nav a.back:hover { text-decoration: underline; }
.static-page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.static-page-body h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
  font-weight: 700;
}
.static-page-body .lead {
  color: var(--grey-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}
.static-page-body h2 {
  color: var(--yellow);
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}
.static-page-body p {
  color: var(--grey-light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.static-page-body ul {
  margin: 0 0 16px 1.25rem;
  color: var(--grey-light);
  line-height: 1.7;
}
.static-page-body li { margin-bottom: 8px; }

/* PLAYER RECOMMENDATION SYSTEM */
.recommend-card-wrap .section-desc {
  max-width: 720px;
  margin-bottom: 28px;
}
.recommend-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.recommend-group + .recommend-group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #222;
}
.recommend-group-title {
  color: var(--yellow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.recommend-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 42rem;
  padding: 0 12px 0 16px;
}
.recommend-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.recommend-filter-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
  column-gap: 32px;
}
.recommend-filter-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 36rem;
  column-gap: 24px;
  row-gap: 20px;
}
.recommend-field {
  min-width: 0;
}
.recommend-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.recommend-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 8px;
}
.recommend-field select {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 32px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239e9e9e' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--grey-pale);
  font-family: inherit;
  font-size: 0.875rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.recommend-field select:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}
.recommend-range input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--yellow);
  cursor: pointer;
  margin-top: 4px;
}
.recommend-range label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.rec-range-val {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.75rem;
  float: none;
}
.recommend-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.recommend-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  color: var(--grey-light);
  font-size: 0.9rem;
  cursor: pointer;
}
.recommend-check input { accent-color: var(--yellow); }

/* Smart filter autocomplete */
.recommend-autocomplete { position: relative; }
.recommend-autocomplete input[type="text"] {
  width: 100%;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  color: #fff;
  font-size: 0.8125rem;
}
.recommend-autocomplete input[type="text"]:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.15);
}
.rec-autocomplete-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.rec-autocomplete-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}
.rec-autocomplete-chip:hover { background: rgba(250, 204, 21, 0.2); }
.rec-autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.rec-autocomplete-list li button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.rec-autocomplete-list li button:hover,
.rec-autocomplete-list li button.is-selected {
  background: rgba(250, 204, 21, 0.1);
}
.rec-autocomplete-list .rec-autocomplete-meta {
  display: block;
  margin-top: 3px;
  color: var(--grey);
  font-size: 0.75rem;
}
.recommend-filter-row:not(.recommend-filter-row--2):not(.recommend-filter-row--3) .recommend-autocomplete-multi {
  max-width: 22rem;
}

@media (max-width: 1100px) {
  .recommend-filter-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .recommend-filter-row--2,
  .recommend-filter-row--3 { grid-template-columns: 1fr; column-gap: 0; }
}

.club-result-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.35);
}
.club-result-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.club-crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.club-crest--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.club-result-title h3 {
  margin: 0 0 6px;
  color: #fff;
}
.club-result-meta {
  color: var(--grey);
  font-size: 0.9rem;
  margin: 0 0 8px;
}
.club-tm-link {
  color: var(--yellow);
  font-size: 0.8rem;
  text-decoration: none;
}
.club-stats-grid {
  margin-bottom: 18px;
}
.club-squad-wrap {
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.club-squad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.club-squad-table th,
.club-squad-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #222;
}
.club-squad-table th {
  color: var(--grey);
  background: rgba(0, 0, 0, 0.4);
  font-weight: 600;
}
.club-squad-player a,
a.club-squad-player-link {
  color: #fff;
  text-decoration: none;
}
.club-squad-player a:hover,
a.club-squad-player-link:hover {
  color: var(--yellow);
}
.club-squad-table td.club-squad-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.club-squad-photo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.club-squad-photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
}
.club-squad-value {
  text-align: right;
  color: var(--yellow);
  font-weight: 600;
}
.club-squad-num {
  color: var(--grey);
  width: 36px;
}

.recommend-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.recommend-card-link:hover {
  border-color: rgba(250, 204, 21, 0.45);
  transform: translateY(-1px);
}
.recommend-card-body {
  display: flex;
  gap: 16px;
}
.recommend-photo-wrap .recommend-photo,
.recommend-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.recommend-photo-wrap .recommend-photo-placeholder {
  width: 80px;
  height: 80px;
}
.recommend-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.recommend-view-link {
  color: var(--yellow);
  font-size: 0.8rem;
  margin-top: 10px;
}
.recommend-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.recommend-actions button {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
}
.recommend-summary {
  color: var(--grey-light);
  margin-bottom: 16px;
}
.recommend-card {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.recommend-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.recommend-rank {
  display: inline-block;
  background: var(--yellow);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
}
.recommend-card h3 {
  display: inline;
  color: #fff;
  font-size: 1.15rem;
}
.recommend-meta {
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 6px;
}
.recommend-score-wrap { text-align: right; }
.recommend-score {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yellow);
}
.recommend-score-label {
  font-size: 0.75rem;
  color: var(--grey);
}
.recommend-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.recommend-stats div {
  background: #000;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px 12px;
}
.recommend-stats span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
}
.recommend-stats strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 0.95rem;
}
.recommend-insights h4 {
  color: var(--yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.recommend-insights ul {
  margin: 0;
  padding-left: 18px;
  color: var(--grey-light);
  font-size: 0.9rem;
  line-height: 1.55;
}
.recommend-insights li { margin-bottom: 8px; }
.recommend-db-count {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--grey);
}

/* PLAYER PROFILE PAGE */
.profile-page { background: var(--black); }
.profile-container {
  padding-top: 110px;
  padding-bottom: 60px;
  max-width: 980px;
}
.profile-root { display: flex; flex-direction: column; gap: 28px; }
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.profile-back:hover { color: var(--yellow); }
.profile-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
@media (min-width: 768px) {
  .profile-hero { flex-direction: row; align-items: flex-start; }
}
.profile-hero-photo img,
.profile-photo-placeholder {
  width: 144px;
  height: 144px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(250,204,21,0.3);
  background: rgba(0,0,0,0.4);
}
.profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--grey);
}
.profile-kicker {
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.profile-hero-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 8px;
}
.profile-meta {
  color: var(--grey-light);
  margin-bottom: 14px;
}
.profile-headline {
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 640px;
}
.profile-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(250,204,21,0.1);
  border: 1px solid rgba(250,204,21,0.25);
}
.profile-score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
}
.profile-score-label {
  font-size: 0.85rem;
  color: var(--grey-light);
  line-height: 1.4;
}
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.profile-stat-grid div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-stat-grid span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 6px;
}
.profile-stat-grid strong {
  font-size: 1.05rem;
  color: #fff;
}
.profile-charts {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .profile-charts { grid-template-columns: 1fr 1fr; }
}
.profile-chart {
  padding: 22px;
  border-radius: 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-chart h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.profile-bar-row + .profile-bar-row { margin-top: 12px; }
.profile-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--grey-light);
  margin-bottom: 6px;
}
.profile-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.profile-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), #ca8a04);
}
.profile-panels {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .profile-panels { grid-template-columns: 1fr 1fr; }
}
.profile-panel {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-panel h3 {
  color: var(--yellow);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.profile-panel-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.profile-panel p:last-child {
  color: var(--grey-light);
  line-height: 1.55;
  font-size: 0.92rem;
}
.profile-insights {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-insights h3 {
  color: var(--yellow);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.profile-insights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-insights li {
  color: var(--grey-light);
  line-height: 1.55;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.profile-role-fit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--grey-light);
  font-size: 0.92rem;
}
.profile-seasons {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-seasons h3 {
  color: var(--yellow);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.profile-seasons-scroll { overflow-x: auto; }
.profile-seasons table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.profile-seasons th,
.profile-seasons td {
  padding: 10px 14px 10px 0;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-seasons th {
  color: var(--grey);
  font-weight: 600;
  text-transform: capitalize;
}
.profile-seasons td { color: var(--grey-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Tablet: prevent input overflow */
  .input-group input.tm-player-input { min-width: 0; max-width: 100%; }
  .input-group input { min-width: 0; max-width: 100%; }
}
@media (max-width: 900px) {
  .recommend-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.navbar-backdrop {
  display: none;
}
@media (max-width: 768px) {
  .recommend-filters { grid-template-columns: 1fr; }
  .recommend-panel { padding: 18px; }
  .recommend-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar-toggle { display: block; }
  .navbar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .navbar-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-drawer-open { overflow: hidden; }
  .navbar-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(0,0,0,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1001;
  }
  .navbar-links.open { transform: translateX(0); }
  .navbar-dropdown {
    width: 100%;
    padding-bottom: 4px;
  }
  .navbar-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.95rem;
  }
  .navbar-dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.26s ease,
      visibility 0.26s ease,
      margin 0.26s ease,
      padding 0.26s ease,
      border-color 0.26s ease;
  }
  .navbar-dropdown-menu::before {
    display: none;
  }
  .navbar-dropdown.open .navbar-dropdown-menu {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    max-height: 240px;
    margin-top: 6px;
    padding: 4px 6px;
    border-color: rgba(255, 255, 255, 0.08);
    transform: none !important;
  }
  .navbar-dropdown-menu a {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 8px;
    line-height: 1.25;
    white-space: normal;
    border-radius: 7px;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      opacity 0.22s ease,
      transform 0.22s ease;
  }
  .navbar-dropdown.open .navbar-dropdown-menu a {
    opacity: 1;
    transform: translateY(0);
  }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(1) { transition-delay: 0.04s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(2) { transition-delay: 0.06s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(3) { transition-delay: 0.08s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(4) { transition-delay: 0.10s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(5) { transition-delay: 0.12s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(6) { transition-delay: 0.14s; }
  .navbar-dropdown.open .navbar-dropdown-menu a:nth-child(7) { transition-delay: 0.16s; }
  .navbar-dropdown-menu a i {
    width: 14px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .navbar-user { flex-direction: column; align-items: flex-start; width: 100%; }
  .hero { padding-top: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Mobile: fix input/button overflow - stack vertically, full width */
  /* font-size 16px prevents iOS Safari zoom on input focus */
  input, select, textarea { font-size: 16px !important; }
  .container { padding-left: 16px; padding-right: 16px; }
  .card { padding: 20px 18px; max-width: 100%; box-sizing: border-box; }
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .input-group input,
  .input-group input.tm-player-input,
  .input-group .tm-autocomplete-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }
  .input-group button { width: 100%; }
  .input-group-actions {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .input-group-actions button {
    width: auto;
    flex: 1 1 0;
  }
  #playerDataCard.is-loaded #playerResetBtn {
    flex: 0 0 auto;
    min-width: 96px;
  }
  .tm-autocomplete-wrap { width: 100%; }
  .tm-details { min-width: 0; }
  .compare-two-inputs { flex-direction: column; }
  .compare-input-wrap { width: 100%; }
}
@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .card { padding: 18px 14px; }
  .navbar-inner { padding: 0 16px; }
}
