:root {
  color-scheme: dark;
  --ink: #070604;
  --panel: rgba(13, 11, 8, .94);
  --panel-soft: rgba(24, 18, 11, .9);
  --line: rgba(224, 158, 44, .35);
  --line-hot: rgba(255, 202, 94, .8);
  --gold: #e4a52f;
  --gold-light: #ffe09a;
  --cream: #f4e6c7;
  --muted: #ad9e83;
  --green: #52d58b;
  --red: #ff6f58;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background: #060504;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
button, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.pc-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,3,2,.96), rgba(4,3,2,.52) 48%, rgba(4,3,2,.9)),
    linear-gradient(0deg, #060504 2%, transparent 50%),
    url("assets/images/hero-bg.jpg") center 22% / cover no-repeat;
  filter: saturate(.85);
}
.pc-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 15%, rgba(230,144,35,.18), transparent 34rem);
  box-shadow: inset 0 0 160px #000;
}

.pc-shell { position: relative; z-index: 1; width: min(1460px, calc(100% - 40px)); margin: auto; padding: 24px 0 18px; }
.pc-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(18,14,9,.97), rgba(8,7,5,.96));
  box-shadow: 0 22px 70px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.04);
}
.pc-brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.pc-brand img { width: 110px; height: 64px; object-fit: contain; }
.pc-brand span { display: grid; gap: 4px; }
.pc-brand strong { color: var(--gold-light); font-family: Georgia, serif; letter-spacing: .11em; font-size: clamp(.92rem, 1.6vw, 1.25rem); }
.pc-brand small { color: #806d50; letter-spacing: .2em; font-size: .64rem; font-weight: 800; }
.pc-security { display: flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 900; letter-spacing: .09em; }
.pc-sandbox, .pc-lock { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #110e09; }
.pc-sandbox { color: #211402; background: linear-gradient(180deg, #ffd870, #b87315); }
.pc-lock { color: var(--green); }

.pc-status { margin: 14px 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10,8,6,.95); }
.pc-status.success { border-color: rgba(82,213,139,.6); color: var(--green); }
.pc-status.error { border-color: rgba(255,111,88,.65); color: #ffad9f; }
.pc-status.pending { color: var(--gold-light); }

.pc-loading { min-height: 620px; display: grid; place-content: center; justify-items: center; text-align: center; }
.pc-loading h1 { margin: 22px 0 2px; color: var(--gold-light); font: 700 clamp(1.5rem,3vw,2.4rem) Georgia,serif; }
.pc-loading p { color: var(--muted); }
.pc-spinner { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(229,169,54,.18); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pc-app { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 16px; margin-top: 16px; }
.pc-player-card, .pc-content {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,14,10,.97), rgba(7,6,5,.97));
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.025);
}
.pc-player-card { align-self: start; position: sticky; top: 16px; padding: 24px 20px; border-radius: 8px 8px 18px 18px; text-align: center; }
.pc-avatar { width: 92px; height: 92px; margin: auto; padding: 4px; border: 1px solid var(--line-hot); border-radius: 50%; background: #120b05; box-shadow: 0 0 35px rgba(229,169,54,.15); }
.pc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pc-player-card > div:nth-child(2) > span, .pc-server-picker span, .pc-gold-balance span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.pc-player-card h1 { margin: 5px 0 2px; color: var(--gold-light); font-size: 1.35rem; overflow-wrap: anywhere; }
.pc-player-card p { margin: 0 0 20px; color: var(--muted); }
.pc-player-card p b { color: var(--cream); }
.pc-server-picker { display: grid; gap: 7px; text-align: left; margin: 18px 0; }
.pc-server-picker select { width: 100%; padding: 11px; color: var(--cream); border: 1px solid var(--line); border-radius: 8px; background: #0b0907; }
.pc-gold-balance { display: flex; align-items: center; gap: 11px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: rgba(229,169,54,.06); }
.pc-gold-balance img { width: 42px; height: 42px; object-fit: contain; }
.pc-gold-balance span { display: grid; }
.pc-gold-balance strong { color: var(--gold-light); font-size: 1.3rem; letter-spacing: 0; }

.pc-content { min-width: 0; padding: 25px; border-radius: 8px 8px 18px 18px; }
.pc-title-row, .pc-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.pc-kicker { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .2em; }
.pc-title-row h2, .pc-section-head h2 { margin: 3px 0; color: var(--gold-light); font: 700 clamp(1.7rem,3vw,2.35rem) Georgia,serif; }
.pc-title-row p { margin: 0; color: var(--muted); }
.pc-filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.pc-filters button, .pc-section-head button {
  padding: 9px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #0d0b08; cursor: pointer; font-weight: 800; font-size: .75rem;
}
.pc-filters button.active, .pc-filters button:hover, .pc-section-head button:hover { color: #271602; background: linear-gradient(180deg,#ffd66d,#b97717); }

.pc-offers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 22px; }
.pc-offer {
  position: relative; min-height: 290px; display: grid; grid-template-rows: 108px auto 1fr auto; gap: 10px; padding: 14px; overflow: hidden; border: 1px solid rgba(211,146,38,.27); border-radius: 12px; background: linear-gradient(155deg,rgba(35,24,12,.88),rgba(10,8,6,.96) 54%); transition: transform .18s,border-color .18s,box-shadow .18s;
}
.pc-offer:hover, .pc-offer.selected { transform: translateY(-3px); border-color: var(--line-hot); box-shadow: 0 15px 42px rgba(0,0,0,.35),inset 0 0 35px rgba(229,169,54,.05); }
.pc-offer-art { display: grid; place-items: center; border-radius: 9px; background: radial-gradient(circle,rgba(229,169,54,.18),transparent 64%); }
.pc-offer-art img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.pc-offer h3 { margin: 0; color: var(--gold-light); font-size: 1.07rem; }
.pc-offer p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pc-offer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.pc-price { color: white; font-size: 1.08rem; font-weight: 900; }
.pc-buy { padding: 9px 14px; color: #211402; border: 1px solid #ffd774; border-radius: 8px; background: linear-gradient(180deg,#ffd86e,#c58119); cursor: pointer; font-weight: 900; }
.pc-badge { position: absolute; top: 11px; right: -28px; width: 110px; padding: 4px; transform: rotate(38deg); text-align: center; color: #1e1102; background: #f0b541; font-size: .62rem; font-weight: 1000; }

.pc-checkout { position: relative; display: grid; grid-template-columns: 1fr auto minmax(240px,330px); align-items: center; gap: 20px; margin: 22px 0 6px; padding: 20px; border: 1px solid var(--line-hot); border-radius: 13px; background: linear-gradient(120deg,rgba(48,29,10,.94),rgba(8,7,5,.98)); box-shadow: 0 16px 50px rgba(0,0,0,.42); }
.pc-checkout-close { position: absolute; top: 6px; right: 8px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; }
.pc-checkout h3 { margin: 3px 0; color: var(--gold-light); font-size: 1.35rem; }
.pc-checkout p { margin: 0; color: var(--muted); font-size: .8rem; }
.pc-checkout-price { display: grid; text-align: right; }
.pc-checkout-price span { color: var(--muted); font-size: .68rem; font-weight: 900; }
.pc-checkout-price strong { color: white; font-size: 1.5rem; }
.pc-paypal-wrap { min-width: 220px; }
paypal-button { display: block; width: 100%; min-height: 48px; }
.pc-payment-note { margin-top: 6px !important; text-align: center; font-size: .65rem !important; }

.pc-history { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.pc-section-head { align-items: center; }
.pc-section-head h2 { font-size: 1.45rem; }
.pc-history-list { display: grid; gap: 8px; margin-top: 14px; }
.pc-history-row { display: grid; grid-template-columns: minmax(130px,1fr) 120px 110px 120px; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid rgba(229,169,54,.18); border-radius: 8px; background: rgba(4,4,3,.55); font-size: .82rem; }
.pc-history-row strong { color: var(--cream); overflow-wrap: anywhere; }
.pc-history-row span, .pc-history-row time { color: var(--muted); }
.pc-history-row .fulfilled { color: var(--green); }
.pc-history-row .pending { color: var(--gold-light); }
.pc-history-row .failed, .pc-history-row .refunded, .pc-history-row .reversed { color: var(--red); }
.pc-empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; }
.pc-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 5px 0; color: #796b56; font-size: .72rem; }

@media (max-width: 1050px) {
  .pc-app { grid-template-columns: 220px minmax(0,1fr); }
  .pc-offers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pc-checkout { grid-template-columns: 1fr auto; }
  .pc-paypal-wrap { grid-column: 1/-1; }
}
@media (max-width: 720px) {
  .pc-shell { width: min(100% - 18px,1460px); padding-top: 9px; }
  .pc-header { padding: 10px 12px; }
  .pc-brand img { width: 72px; height: 48px; }
  .pc-brand span { display: none; }
  .pc-security { font-size: .58rem; }
  .pc-lock { display: none; }
  .pc-app { grid-template-columns: 1fr; }
  .pc-player-card { position: static; display: grid; grid-template-columns: auto 1fr; gap: 11px; text-align: left; align-items: center; }
  .pc-avatar { width: 62px; height: 62px; grid-row: span 2; }
  .pc-player-card p { margin-bottom: 0; }
  .pc-server-picker, .pc-gold-balance { grid-column: 1/-1; margin: 0; }
  .pc-content { padding: 16px 12px; }
  .pc-title-row { align-items: start; flex-direction: column; }
  .pc-filters { justify-content: start; }
  .pc-offers { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc-offer { min-height: 260px; padding: 10px; }
  .pc-checkout { grid-template-columns: 1fr; }
  .pc-checkout-price { text-align: left; }
  .pc-history-row { grid-template-columns: 1fr auto; }
  .pc-history-row time { display: none; }
  .pc-footer { flex-direction: column; gap: 2px; }
}
@media (max-width: 430px) { .pc-offers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
