:root {
  --navy: #0A1628;
  --navy-light: #0F2040;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --white: #FFFFFF;
  --green: #2ECC71;
  --red: #E74C3C;
  --yellow: #F39C12;
  --blue: #3498DB;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  height: 52px;
  flex-shrink: 0;
}
.header-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
  animation: pulse-badge 1.5s infinite;
  margin-right: 12px;
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:0.6} }
.header-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}
.status-chip {
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.conn-dot { width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; display: inline-block; }
.conn-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn-dot.offline { background: #666; }

.main-grid {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  flex: 1;
  overflow: hidden;
}

.panel {
  padding: 16px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.panel-center { border-right: 1px solid rgba(255,255,255,0.06); }
.panel-right { border-right: none; }

.panel-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.8;
}

/* LEFT PANEL */
.leading-team { text-align: center; padding: 12px 0; }
.team-logo-large {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
}
.team-logo-large img { width: 100%; height: 100%; object-fit: cover; }
.team-name-large {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.bid-amount-display {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin: 12px 0;
}
.bid-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.5); }
.bid-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  transition: all 0.3s;
}
.bid-value.pulse { animation: bid-pulse 0.4s ease-out; }
@keyframes bid-pulse {
  0% { transform: scale(1); color: var(--gold); }
  50% { transform: scale(1.1); color: var(--gold-light); }
  100% { transform: scale(1); color: var(--gold); }
}

.bid-history-section { margin-top: 8px; }
.section-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.bid-history-list { max-height: 160px; overflow-y: auto; }
.bid-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.bid-history-item .bh-team { color: rgba(255,255,255,0.7); font-weight: 500; }
.bid-history-item .bh-amount { color: var(--gold); font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.no-bids { color: rgba(255,255,255,0.3); font-size: 13px; text-align: center; padding: 12px 0; }

.players-sold-stat { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.stat-value { font-family: 'Rajdhani', sans-serif; font-size: 48px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); }

/* CENTER PANEL */
.panel-center { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.player-photo-wrap {
  position: relative;
  width: 180px;
  height: 200px;
  flex-shrink: 0;
}
.player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--navy-light);
  border: 2px solid rgba(201,168,76,0.3);
  animation: fade-in 0.4s ease;
}
@keyframes fade-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.sold-overlay, .unsold-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-align: center;
}
.sold-overlay { background: rgba(46,204,113,0.9); }
.sold-overlay.show { display: flex; animation: overlay-pop 0.5s ease; }
.unsold-overlay { background: rgba(231,76,60,0.9); }
.unsold-overlay.show { display: flex; animation: overlay-pop 0.5s ease; }
@keyframes overlay-pop { 0%{transform:scale(0.7);opacity:0} 100%{transform:scale(1);opacity:1} }
.sold-check { font-size: 48px; }
.sold-text { font-size: 28px; letter-spacing: 2px; color: #fff; }
.sold-team { font-size: 14px; color: rgba(255,255,255,0.9); }
.sold-price { font-size: 20px; color: #fff; margin-top: 4px; }
.unsold-x { font-size: 48px; }
.unsold-text { font-size: 28px; letter-spacing: 2px; color: #fff; }

.player-info { text-align: center; width: 100%; }
.player-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.player-meta { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 4px; }
.player-badges { margin-top: 6px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.badge-cat {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.cat-local { background: rgba(46,204,113,0.2); color: var(--green); border: 1px solid rgba(46,204,113,0.4); }
.cat-foreign { background: rgba(52,152,219,0.2); color: var(--blue); border: 1px solid rgba(52,152,219,0.4); }
.cat-emerging { background: rgba(243,156,18,0.2); color: var(--yellow); border: 1px solid rgba(243,156,18,0.4); }
.badge-style {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.career-highlight {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  margin: 7px auto 0;
  max-width: 540px;
  line-height: 1.35;
}
.player-stats { display: flex; gap: 16px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.pstat { text-align: center; }
.pstat-value { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); }
.pstat-label { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; }

.price-timer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.price-block { text-align: center; }
.price-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); }
.price-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  transition: all 0.3s;
}
.price-value.gold { color: var(--gold); }
.price-value.pulse-val { animation: bid-pulse 0.4s ease-out; }

.timer-block { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
.timer-ring-prog {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.5s;
}
.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.status-banner {
  width: 100%;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}
.status-banner.live { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }
.status-banner.paused { background: rgba(243,156,18,0.15); color: var(--yellow); border: 1px solid rgba(243,156,18,0.3); }
.status-banner.sold { background: rgba(46,204,113,0.15); color: var(--green); }
.status-banner.unsold { background: rgba(231,76,60,0.15); color: var(--red); }

/* RIGHT PANEL */
.teams-grid { display: flex; flex-direction: column; gap: 6px; }
.team-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.team-logo-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}
.team-logo-sm img { width: 100%; height: 100%; object-fit: cover; }
.team-card-info { flex: 1; min-width: 0; }
.team-card-name { font-size: 12px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card-budget { font-size: 11px; color: rgba(255,255,255,0.4); }
.budget-bar { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 4px; }
.budget-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.5s; }
.team-card-count { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.6); }

.next-players-list { display: flex; flex-direction: column; gap: 6px; }
.next-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.np-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(201,168,76,0.2); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.np-name { font-size: 13px; font-weight: 500; flex: 1; }
.np-cat { font-size: 11px; padding: 2px 6px; border-radius: 3px; }
