/* ============================================
   MMOGrounds — topup.css
   Individual top-up page styles (/topup/[slug])
   ============================================ */

/* LOADING / ERROR STATES */
.tu-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .05em;
}

.tu-error {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.tu-error h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.tu-error p  { color: var(--muted2); margin-bottom: 24px; font-size: 15px; }
.tu-error a  { color: var(--accent); text-decoration: underline; }

/* PAGE WRAPPER */
.tu-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--gutter) 80px;
}

/* BREADCRUMB */
.tu-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.tu-breadcrumb a { color: var(--muted2); transition: color .15s; }
.tu-breadcrumb a:hover { color: var(--accent); }
.tu-breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ABOVE-THE-FOLD: 2-col grid */
.tu-atf {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-bottom: 12px;
}

/* LEFT: game panel */
.tu-game-panel { min-width: 0; }

.tu-banner {
  position: relative;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
}
.tu-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.tu-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.tu-banner-text {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
}
.tu-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.tu-h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.tu-intro {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.75;
}
.tu-intro strong { color: var(--text); font-weight: 600; }

/* RIGHT: packages panel (sticky) */
.tu-packages-panel {
  position: sticky;
  top: 76px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.tu-packages-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Package cards */
.tu-pkg-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.tu-pkg-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s;
}
.tu-pkg-card:hover { border-color: var(--border3); }
.tu-pkg-amount {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.tu-pkg-subtext {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.tu-pkg-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 10px 16px;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.tu-pkg-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}
.tu-price-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* HOW-TO inside left column */
.tu-howto {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.tu-howto-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

/* CONTENT SECTIONS */
.tu-section {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  margin-top: 36px;
}
.tu-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.tu-section p {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.75;
}
.tu-section p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tu-section p a:hover { color: var(--accent2); }

/* HOW-TO STEPS */
.tu-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tu-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.65;
  counter-increment: step;
}
.tu-steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accentdim);
  border: 1px solid rgba(240,192,64,.2);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* TRUST LIST */
.tu-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tu-trust li {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.tu-trust li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.tu-trust strong { color: var(--text); font-weight: 600; }

/* FAQ */
.tu-faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tu-faq-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.tu-faq-item:last-child { border-bottom: none; }
.tu-faq-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.tu-faq-item p {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  margin: 0;
}

/* RELATED TOP-UPS */
.tu-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tu-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.tu-related-card:hover {
  border-color: var(--border3);
  background: var(--bg3);
}
.tu-related-cover {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg3);
}
.tu-related-placeholder {
  width: 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 6px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--border3);
}
.tu-related-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.tu-related-curr {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
}
.tu-hub-link { font-size: 14px; }
.tu-hub-link a { color: var(--accent); }
.tu-hub-link a:hover { text-decoration: underline; }

/* DISCLAIMER */
.tu-disclaimer {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .tu-atf {
    grid-template-columns: 1fr;
  }
  .tu-packages-panel {
    position: static;
  }
  .tu-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .tu-banner  { height: 180px; }
  .tu-h1      { font-size: 20px; }
  .tu-section h2 { font-size: 18px; }
  .tu-faq-item { padding: 16px; }
  .tu-related { grid-template-columns: 1fr; }
  .tu-page    { padding-top: 20px; }
}
