/* ==========================================================================
   AUCTION PLATFORM - SHARED STYLES
   Modern, high-energy dark draft theme for Admin, Team Bidders & Spectators
   ========================================================================== */

:root {
  --bg0: #0a1410;
  --panel: #12251c;
  --panel2: #0d1d15;
  --panel3: #173024;
  --line: rgba(143, 209, 79, 0.18);
  --line2: rgba(143, 209, 79, 0.45);
  --gold: #8fd14f;
  --gold2: #b8ee7d;
  --chalk: #f0f4ec;
  --muted: #96ab9d;
  --dim: #5f7a6b;
  --red: #e0563f;
  --green: #3ecf7a;
  --blue: #4da3ff;
  --purple: #b06bff;
  --disp: 'Bebas Neue', sans-serif;
  --body: 'Barlow', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: #101a08;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #2b4a38;
  border-radius: 6px;
}

body {
  font-family: var(--body);
  color: var(--chalk);
  min-height: 100vh;
  padding-bottom: 52px;
  background:
    radial-gradient(720px 340px at 12% -6%, rgba(143, 209, 79, 0.12), transparent 70%),
    radial-gradient(720px 340px at 88% -6%, rgba(62, 207, 122, 0.10), transparent 70%),
    var(--bg0);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(900px 400px at 50% -10%, rgba(143, 209, 79, 0.07), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ================= TOP GLOBAL NAVIGATION ================= */
.top-nav {
  position: relative;
  z-index: 10;
  background: #070e0b;
  border-bottom: 1px solid rgba(143, 209, 79, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--gold2);
  border-color: var(--line);
  background: rgba(143, 209, 79, 0.06);
}

.nav-link.active {
  color: #101a08;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
}

.nav-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gold);
}

.nav-sync-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s infinite;
}

/* ================= HEADER ================= */
header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 48, 36, 0.85), rgba(13, 29, 21, 0.4));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .emo {
  font-size: 38px;
  filter: drop-shadow(0 2px 6px rgba(143, 209, 79, 0.4));
}

.brand-logo-img {
  height: 40px;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand .ttl {
  font-family: var(--disp);
  font-size: 30px;
  letter-spacing: 1.5px;
  line-height: 0.95;
  outline: none;
  border-bottom: 1px dashed transparent;
}

.brand .ttl:focus {
  border-bottom-color: var(--gold);
}

.brand .sub {
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: 3.5px;
  color: var(--gold);
  font-weight: 600;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff7a63;
  border: 1px solid rgba(255, 122, 99, 0.4);
  padding: 3px 10px;
  border-radius: 3px;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a43;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 90, 67, 0.5);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 5px rgba(255, 90, 67, 0);
  }
}

.hstats {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.hchip {
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 4px;
  text-align: center;
  min-width: 104px;
}

.hchip b {
  display: block;
  font-family: var(--disp);
  font-size: 21px;
  color: var(--gold2);
  letter-spacing: 0.5px;
}

.hchip span {
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.hbtns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icobtn {
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--chalk);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  transition: 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icobtn:hover {
  border-color: var(--gold);
  color: var(--gold2);
  transform: translateY(-1px);
}

#clock {
  font-family: var(--disp);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--muted);
  min-width: 88px;
  text-align: center;
}

/* ================= PANELS & CHIPS ================= */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.phead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--gold);
}

.chip {
  font-family: var(--cond);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.chip.gold {
  background: rgba(143, 209, 79, 0.14);
  border-color: var(--line2);
  color: var(--gold2);
}

/* ================= HERO & STAGE ================= */
.hero {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 10px;
  background: linear-gradient(120deg, #1a3327, #12251c 55%, #0d1d15);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: '🏋️';
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 140px;
  opacity: 0.06;
  transform: rotate(-12deg);
}

.mono {
  width: 104px;
  height: 104px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-size: 44px;
  color: var(--gold2);
  border: 2px solid var(--line2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 26px rgba(143, 209, 79, 0.12);
  letter-spacing: 1px;
}

.hinfo {
  min-width: 0;
}

.hname {
  font-family: var(--disp);
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 0.95;
  letter-spacing: 1px;
}

.hbadges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-11deg) scale(3);
  opacity: 0;
  font-family: var(--disp);
  font-size: 72px;
  letter-spacing: 8px;
  padding: 4px 26px;
  border: 5px solid;
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
}

.stamp.in {
  animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.stamp.sold {
  color: var(--gold2);
  border-color: var(--gold2);
  background: rgba(12, 20, 8, 0.7);
  text-shadow: 0 0 24px rgba(143, 209, 79, 0.6);
}

.stamp.unsold {
  color: #aab8ae;
  border-color: #aab8ae;
  background: rgba(8, 14, 10, 0.7);
}

@keyframes stampIn {
  to {
    transform: translate(-50%, -50%) rotate(-11deg) scale(1);
    opacity: 1;
  }
}

/* ================= CHAMFER BOARD ================= */
.chamfer {
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: linear-gradient(135deg, var(--gold), rgba(143, 209, 79, 0.25));
  padding: 1.5px;
}

.chamfer-in {
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: linear-gradient(180deg, #0c1c12, #081209);
  padding: 18px 26px 20px;
  text-align: center;
}

.board.flash .chamfer-in {
  animation: boardFlash 0.5s ease;
}

@keyframes boardFlash {
  0% {
    box-shadow: inset 0 0 0 3px var(--gold2), inset 0 0 60px rgba(143, 209, 79, 0.3);
  }
  100% {
    box-shadow: none;
  }
}

.blabel {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--muted);
}

.bamount {
  font-family: var(--disp);
  font-size: clamp(50px, 5.6vw, 92px);
  line-height: 0.95;
  color: var(--gold2);
  text-shadow: 0 0 34px rgba(143, 209, 79, 0.3);
}

.bamount.bump {
  animation: bump 0.35s ease;
}

@keyframes bump {
  40% { transform: scale(1.06); }
}

.brow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.leadchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.leadchip i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex: none;
}

.callout {
  font-family: var(--disp);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--gold);
  min-height: 26px;
  animation: blink 1s infinite;
}

.callout:empty {
  animation: none;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

.tbar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.tbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.25s linear;
  border-radius: 3px;
}

.tbar.danger span {
  background: var(--red);
}

.ttime {
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 5px;
}

/* ================= PADDLES ================= */
.paddles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}

.paddle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--panel3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tc, #888);
  transition: 0.15s;
  text-align: left;
}

.paddle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  border-color: var(--tc);
}

.paddle.lead {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(143, 209, 79, 0.3);
}

.paddle.off {
  opacity: 0.42;
  pointer-events: none;
}

.paddle.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.pname {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
}

.ppurse {
  font-family: var(--disp);
  font-size: 19px;
  color: var(--gold2);
  letter-spacing: 0.5px;
}

.psub {
  font-family: var(--cond);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.8px;
}

.ptag {
  position: absolute;
  top: -8px;
  right: 8px;
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--gold);
  color: #101a08;
  padding: 2px 8px;
  border-radius: 2px;
  display: none;
}

.paddle.lead .ptag {
  display: block;
}

/* ================= ACTION BUTTONS ================= */
.abtn {
  font-family: var(--disp);
  font-size: 26px;
  letter-spacing: 3px;
  padding: 13px 8px 11px;
  border-radius: 6px;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.abtn svg {
  width: 22px;
  height: 22px;
}

.soldbtn {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #101a08;
  box-shadow: 0 6px 20px rgba(143, 209, 79, 0.3);
}

.soldbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(143, 209, 79, 0.45);
}

.abtn.ghost {
  border: 1px solid var(--line);
  color: var(--chalk);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.abtn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold2);
}

/* ================= TICKER ================= */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(8, 18, 10, 0.96);
  border-top: 1px solid var(--line2);
  z-index: 50;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker .cap {
  flex: none;
  background: var(--gold);
  color: #101a08;
  font-family: var(--disp);
  font-size: 17px;
  letter-spacing: 2px;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.tickwrap {
  overflow: hidden;
  flex: 1;
}

.tickinner {
  display: inline-flex;
  white-space: nowrap;
  animation: tick var(--dur, 45s) linear infinite;
  font-family: var(--cond);
  font-size: 15px;
  letter-spacing: 1px;
}

.tickinner span {
  padding: 0 34px;
  color: var(--chalk);
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

/* ================= TOASTS & CONFETTI ================= */
#toasts {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: #1a3326;
  border: 1px solid var(--line2);
  color: var(--chalk);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px);
  transition: 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast.err {
  border-color: var(--red);
  color: #ffb0a2;
}

.cf {
  position: fixed;
  width: 8px;
  height: 13px;
  z-index: 99;
  pointer-events: none;
  border-radius: 2px;
}
