/* Store theme (layout after the Minemen Club Tebex store, in PITFALL gold). */
:root {
  --main: #14161b;
  --primary: #111216;
  --secondary: #272a33;
  --active: #2f333e;
  --text: #ffffff;
  --muted: #a7a6a8;
  --faint: rgba(255, 255, 255, 0.5);
  --accent: #ffaa00;
  --accent-dark: #b87a00;
  --danger: #e55353;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--main); color: var(--muted);
  font-family: "Roboto", system-ui, sans-serif; line-height: 1.55; overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3, h4, h5, .poppins { font-family: "Poppins", sans-serif; color: var(--text); }
button { font: inherit; }
.hidden { display: none !important; }

/* Top bar */
.topbar { background: var(--primary); height: 105px; padding: 0 50px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.topbar-left, .topbar-right { flex: 1; display: flex; align-items: center; }
.topbar-right { justify-content: flex-end; gap: 15px; }
.topbar-left a { font-family: "Poppins"; font-weight: 700; color: var(--text); text-decoration: none; font-size: 15px; letter-spacing: 1px; opacity: .8; }
.topbar-left a:hover { opacity: 1; }
.logo-mid { position: relative; top: 42px; text-decoration: none; }
.logo-mid span {
  display: block; font-family: "Silkscreen", monospace; font-size: 64px; line-height: 1; color: var(--accent);
  text-shadow: 0 6px 0 #5a3a00, 0 12px 30px rgba(0, 0, 0, .6);
}
.top-btn {
  background: var(--main); color: var(--text); border: 0; border-radius: var(--radius);
  padding: 10px 15px; cursor: pointer; transition: background .2s; display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.top-btn:hover { background: var(--secondary); }
.top-btn img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.top-btn .who { font-family: "Poppins"; font-weight: 600; font-size: 14px; }

/* Header */
.jumbo {
  padding: 110px 40px 100px;
  background: var(--header-bg, radial-gradient(ellipse 70% 90% at 50% 10%, rgba(255, 170, 0, .22), transparent 70%), linear-gradient(160deg, #2a1d10, #14161b 70%));
  background-size: cover; background-position: center 25%; background-attachment: fixed;
}
.jumbo-inner { display: flex; align-items: center; justify-content: center; gap: 50px; }
.title { text-align: center; }
.title h1 { margin: 0; font-size: 3em; font-weight: 700; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .5); }
.title .desc { font-family: "Poppins"; font-weight: 700; font-size: 1.2em; color: var(--accent); }
.pill { background: rgba(17, 18, 22, .55); border-radius: var(--radius); padding: 18px 20px; color: var(--text); display: flex; align-items: center; gap: 15px; text-decoration: none; min-width: 190px; cursor: pointer; border: 0; transition: background .2s; }
.pill:hover { background: rgba(17, 18, 22, .8); }
.pill .ico { font-size: 1.9em; line-height: 1; }
.pill .t { display: flex; flex-direction: column; }
.pill .top { font-family: "Poppins"; font-weight: 700; text-transform: uppercase; font-size: 1.05em; }
.pill .bottom { font-size: 14px; color: var(--muted); }
.pill .bottom b { font-family: "Poppins"; color: var(--accent); }
.pill.right-align .t { text-align: right; }

.banner { background: #b71c1c; color: #fff; font-weight: 700; text-align: center; padding: 5px 16px; }

/* Category bar */
.catbar { background: var(--primary); display: flex; justify-content: center; flex-wrap: wrap; padding: 8px; gap: 4px; margin: 15px 15px 0; border-radius: var(--radius); }
.catbar a { font-family: "Poppins"; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 10px 18px; border-radius: var(--radius); transition: background .2s; font-size: 15px; }
.catbar a:hover, .catbar a.active { background: var(--main); }
.catbar a.active { color: var(--accent); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); max-width: 1400px; margin: 0 auto; }
.panel { background: var(--primary); margin: 15px; border-radius: var(--radius); padding: 40px; }
.panel h2 { margin: 0 0 6px; font-size: 1.6em; }
.panel .lead { margin: 0 0 28px; }
.widget h4 { border-left: 4px solid var(--accent); padding-left: 15px; margin: 0 0 20px; font-size: 1.2em; line-height: 1.5; }
.welcome h3 { text-decoration: underline; font-size: 1.4em; margin: 1.2em 0 .4em; }
.welcome h3:first-child { margin-top: 0; }
.welcome p { margin: 0 0 .6em; }
.welcome .small { font-size: 12px; font-style: italic; margin-top: 2em; }

/* Packages */
.packages { display: grid; gap: 15px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
#rankList { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } /* 4 ranks: 2x2, not 3+1 */
.pkg { background: var(--main); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; border: 1px solid transparent; }
.pkg.featured { border-color: var(--accent); }
.pkg .ribbon { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #1a1000; font: 700 11px "Poppins"; letter-spacing: 1px; padding: 2px 10px; border-radius: 999px; }
.pkg .badge { font-family: "Silkscreen", monospace; font-size: 22px; }
.pkg .from { font-size: 13px; margin-top: 4px; }
.pkg .price { font-family: "Poppins"; font-weight: 700; color: var(--text); font-size: 1.8em; margin: 10px 0 0; }
.pkg .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.pkg .price del { font-size: 15px; color: var(--danger); margin-right: 6px; font-weight: 600; }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; font-size: 14px; }
.pkg li { padding: 5px 0 5px 20px; position: relative; border-top: 1px solid var(--secondary); }
.pkg li::before { content: "✔"; position: absolute; left: 0; color: var(--rc, var(--accent)); }
.pkg .note { font-size: 13px; margin: 0 0 10px; color: var(--muted); }
.pkg .note.bad { color: var(--danger); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 11px 18px; font: 600 15px "Poppins"; cursor: pointer; text-decoration: none; transition: background .2s, opacity .2s; }
.btn-primary { background: var(--accent); color: #1a1000; }
.btn-primary:hover { background: #ffbb33; }
.btn-dark { background: var(--secondary); color: var(--text); }
.btn-dark:hover { background: var(--active); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

/* Sidebar */
.account { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account img { width: 64px; height: 64px; border-radius: var(--radius); image-rendering: pixelated; background: var(--main); }
.account .label { font-size: 12px; text-transform: uppercase; }
.account .name { font-family: "Poppins"; font-weight: 700; font-size: 1.25em; color: var(--text); }
.rank-tag { font-family: "Silkscreen", monospace; font-size: 14px; }
.feat .price { font-family: "Poppins"; font-weight: 700; color: var(--text); font-size: 1.4em; }
.feat { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }

/* Footer */
footer { margin: 15px; }
.footer-content { background: var(--primary); color: var(--faint); padding: 18px 35px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0; gap: 16px; flex-wrap: wrap; }
.footer-content .ip { font-family: "Poppins"; font-weight: 700; font-size: 1.2em; }
.footer-content .flogo { font-family: "Silkscreen", monospace; color: var(--accent); font-size: 26px; text-decoration: none; }
.footer-copy { background: var(--primary); border-top: 1px solid var(--secondary); color: var(--faint); padding: 14px 35px; font-size: 13px; border-radius: 0 0 var(--radius) var(--radius); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-copy a { color: var(--faint); font-weight: 700; text-decoration: none; }

/* Username gate */
.gate { position: fixed; inset: 0; z-index: 20; background: rgba(8, 9, 12, .82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-box { background: var(--primary); border-radius: 14px; padding: 36px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.gate-box .glogo { font-family: "Silkscreen", monospace; color: var(--accent); font-size: 40px; line-height: 1; margin-bottom: 18px; }
.gate-box h3 { margin: 0 0 6px; font-size: 1.3em; }
.gate-box p { margin: 0 0 20px; font-size: 14px; }
.gate-head { width: 72px; height: 72px; border-radius: var(--radius); image-rendering: pixelated; background: var(--main); margin: 0 auto 18px; display: block; }
.gate input { width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--secondary); color: var(--text); border-radius: var(--radius); padding: 13px 14px; font: 500 16px "Poppins"; text-align: center; margin-bottom: 12px; outline: none; }
.gate input:focus { border-color: var(--accent); }
.gate .err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0 0 10px; }
.gate .cancel { background: none; border: 0; color: var(--muted); margin-top: 12px; cursor: pointer; text-decoration: underline; font-size: 13px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--accent); color: #1a1000; font: 700 14px "Poppins"; padding: 10px 18px; border-radius: var(--radius); transition: .2s; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .jumbo-inner { gap: 20px; }
  .pill { min-width: 0; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; height: 80px; }
  .topbar-left { display: none; }
  .topbar { justify-content: space-between; }
  .logo-mid { top: 0; }
  .logo-mid span { font-size: 34px; text-shadow: 0 3px 0 #5a3a00; }
  .top-btn .who { display: none; }
  .jumbo { padding: 48px 16px; background-attachment: scroll; }
  .jumbo-inner { flex-direction: column; }
  .jumbo-inner .pill { width: 100%; max-width: 320px; }
  .pill.right-align { flex-direction: row-reverse; justify-content: flex-end; }
  .pill.right-align .t { text-align: left; }
  .title { order: -1; }
  .title h1 { font-size: 2em; }
  .panel { padding: 24px 16px; margin: 12px; }
  .catbar { margin: 12px 12px 0; }
  footer { margin: 12px; }
}

.welcome code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 4px; font-size: 0.95em; }
