/* ============================================================
   NBA 2K26 Generator — Premium UI (clean rebuild)
   ============================================================ */

:root {
  --gold:       #C9A84C;
  --gold-light: #F0CB6E;
  --gold-dark:  #8B6914;
  --gold-glow:  rgba(201,168,76,0.28);
  --cyan:       #4ECDC4;
  --red:        #D42B2B;
  --bg:         #07090B;
  --bg-card:    rgba(255,255,255,0.04);
  --border:     rgba(201,168,76,0.2);
  --border-hi:  rgba(201,168,76,0.55);
  --text-1:     #F5F0E8;
  --text-2:     rgba(245,240,232,0.55);
  --text-3:     rgba(245,240,232,0.28);
  --radius:     4px;
}

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

html { overflow-y: scroll; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 90%, rgba(90,20,20,0.07) 0%, transparent 55%);
  color: var(--text-1);
  min-height: 100vh;
}

a { color: var(--text-2); text-decoration: none; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 100%);
  position: relative;
}
header::after {
  content: '';
  display: block;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
}

.header-inner h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 36px var(--gold-glow);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.header-inner h1 span {
  font-weight: 300;
  font-size: 0.68em;
  letter-spacing: 0.5em;
  color: var(--text-2);
  text-shadow: none;
}
.logo { max-width: 240px; margin: 0 auto 8px; filter: drop-shadow(0 0 18px var(--gold-glow)); }

/* Status bar */
.status-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--border);
  max-width: 560px;
  margin: 24px auto 0;
  background: rgba(6,8,9,0.92);
  backdrop-filter: blur(12px);
  border-left: 2px solid var(--gold);
}
.status-item {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid rgba(201,168,76,0.1);
  text-align: center;
}
.status-item:last-child { border-right: none; }
.status-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.status-value {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.88em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
}
.status-value.online { color: var(--cyan); text-shadow: 0 0 10px rgba(78,205,196,0.4); }

/* ── MAIN ───────────────────────────────────────────────── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.step { animation: fadeIn 0.4s ease; }
.step.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* ── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.section-label::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 8px auto 0;
}

/* ── USERNAME INPUT ─────────────────────────────────────── */
.input-row {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  padding: 20px 20px 20px 68px;
  margin-bottom: 24px;
}
.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  opacity: 0.55;
}
.text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.28);
  outline: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2em;
  font-weight: 600;
  color: var(--text-1);
  padding: 4px 0;
  letter-spacing: 0.04em;
}
.text-input::placeholder { color: var(--text-3); font-weight: 300; }
.text-input:focus { border-bottom-color: var(--gold); }

/* ── PLATFORM GRID ──────────────────────────────────────── */
.platform-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}
.platform-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 20px 8px;
  text-align: center;
  border-radius: var(--radius);
  min-width: 0;
}
.platform-btn:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.platform-btn.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.14);
  box-shadow: 0 0 20px var(--gold-glow);
}
.platform-btn img {
  max-height: 44px;
  max-width: 100%;
  margin: 0 auto;
  filter: brightness(0.6) saturate(0);
}
.platform-btn:hover img,
.platform-btn.active img { filter: brightness(1) saturate(1); }

/* ── CONTINUE BUTTON ────────────────────────────────────── */
.btn-continue {
  display: block;
  width: 280px;
  margin: 0 auto;
  padding: 0;
  height: 58px;
  line-height: 58px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-continue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.btn-continue:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 8px 32px rgba(201,168,76,0.45); }
.btn-continue:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-continue.pulse { animation: pulse 1.4s ease infinite; }
@keyframes pulse {
  0%   { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(201,168,76,0.65); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(201,168,76,0); }
  100% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* ── ACTIVITY FEED ──────────────────────────────────────── */
.activity-card { min-height: 200px; }
#activity-feed { max-height: 200px; overflow: hidden; }

.activity-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 10px 14px 8px;
  margin-bottom: 8px;
  display: none;
  animation: slideDown 0.5s ease;
}
.activity-item.visible { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.activity-user {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.activity-user img { width: 18px; opacity: 0.7; }
.activity-amounts {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88em;
  color: var(--text-2);
  display: flex;
  gap: 20px;
}
.activity-amounts span { color: var(--text-1); font-weight: 600; }

/* ── LOADER BARS ────────────────────────────────────────── */
.loader-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 20px;
  height: 40px;
  align-items: center;
}
.loader-bars span {
  display: inline-block;
  width: 8px;
  background: var(--gold);
  animation: loadBar 0.8s ease-in-out infinite;
  border-radius: 2px;
}
.loader-bars span:nth-child(1) { animation-delay: -0.32s; }
.loader-bars span:nth-child(2) { animation-delay: -0.16s; }
@keyframes loadBar {
  0%, 80%, 100% { height: 18px; }
  40%           { height: 36px; }
}

/* ── CONNECTING ─────────────────────────────────────────── */
.connecting-card { text-align: center; padding: 48px 32px; }
.connecting-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-1);
}

/* ── PLAYER INFO ────────────────────────────────────────── */
.player-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.player-info-box {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.info-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.info-icon { width: 28px; opacity: 0.6; }
.info-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--text-1);
}
.info-platform-img { max-height: 48px; max-width: 120px; }

/* ── RESOURCE GRID ──────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
}
.resource-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
  box-shadow: 0 0 20px var(--gold-glow);
}
.resource-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.14);
  box-shadow: 0 0 24px var(--gold-glow);
}
.res-amount-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.resource-card img { max-width: 80px; margin: 0 auto 10px; }
.res-amount-bottom {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  color: var(--gold);
  line-height: 1;
}
.res-unit {
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
  margin-top: 3px;
}
.res-free {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8em;
  color: var(--text-2);
  margin-top: 6px;
}

/* ── PROCESSING ─────────────────────────────────────────── */
.processing-card { text-align: center; padding: 40px 32px; }
.resource-preview {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.res-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.res-preview-box img { max-width: 70px; }
.res-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2em;
  color: var(--gold);
}
.res-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}
.proc-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 20px;
  min-height: 2em;
}
.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── VERIFICATION ───────────────────────────────────────── */
.verify-card { text-align: center; max-width: 660px; margin: 0 auto 32px; }
.verify-resource-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.verify-res-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 130px;
}
.verify-res-box img { max-width: 60px; }
.verify-text {
  color: var(--text-2);
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 20px;
}
.timer-row {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1em;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 24px;
}
.timer-val { color: var(--gold); font-weight: 700; font-size: 1.2em; margin-left: 6px; }
.btn-verify {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 2px;
  cursor: pointer;
  gap: 10px;
}
.btn-verify:hover { filter: brightness(1.1); box-shadow: 0 8px 32px rgba(201,168,76,0.4); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid rgba(201,168,76,0.08);
  color: var(--text-3);
  font-size: 0.72em;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.footer-copy span { display: block; margin-top: 4px; font-size: 0.88em; }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,9,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #0c0f13;
  border: 1px solid var(--border);
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
}
#modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
#modal-body { color: var(--text-2); font-size: 0.92em; line-height: 1.7; }
#modal-body h3 { color: var(--gold); font-family: 'Barlow Condensed', sans-serif; margin: 16px 0 6px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .platform-grid { gap: 6px; }
  .platform-btn { padding: 14px 4px; }
  .platform-btn img { max-height: 36px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .player-info-row { flex-direction: column; }
  .status-bar { flex-direction: column; max-width: 280px; }
  .status-item { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
  .status-item:last-child { border-bottom: none; }
  .logo { max-width: 200px; }
  .card { padding: 20px 16px; }
  .text-input { font-size: 1.6em; }
  .verify-resource-row { gap: 16px; }
}
@media (max-width: 420px) {
  .platform-grid { flex-wrap: wrap; }
  .platform-btn { flex: 1 1 30%; }
  .btn-continue { width: 100%; }
}
