/* ==========================================================================
   PirateMC Shop — Large Scaled Up Layout (3x Larger Visual Elements)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #121212;
  --bg-card: #1e1e1e;
  --bg-card-hover: #262626;
  --bg-input: #161616;
  --gold: #ffc700;
  --gold-hover: #ffd633;
  --gold-dark: #cc9f00;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #777777;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --radius: 8px;
  --font: 'Inter', sans-serif;
  --green: #4ade80;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.hidden { display: none !important; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }

/* --------------------------------------------------------------------------
   TOPBAR (LARGE)
   -------------------------------------------------------------------------- */
.topbar {
  padding: 24px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 1640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.online-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
}

.online-text {
  font-size: 16px;
  color: var(--text-muted);
}

.online-text strong {
  color: var(--text);
  font-weight: 800;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-icon {
  font-size: 24px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-icon:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   HOME VIEW (LARGE CARDS)
   -------------------------------------------------------------------------- */
.cards-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  min-height: calc(100vh - 180px);
}

.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1640px;
  width: 100%;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 80px 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 400px;
}

.mode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mode-card__img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 180px;
}

.mode-card__img img {
  max-width: 180px;
  max-height: 180px;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
  transition: transform 0.3s;
}

.mode-card:hover .mode-card__img img {
  transform: scale(1.1);
}

.mode-card__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
}

.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #000;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.gold-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   SHOP VIEW (LARGE 2-COLUMN SPLIT GRID)
   -------------------------------------------------------------------------- */
.shop-container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 48px 40px 100px;
  width: 100%;
  flex: 1;
}

/* Tipply alert box */
.alert-box-tipply {
  background: rgba(255, 199, 0, 0.1);
  border: 1px solid rgba(255, 199, 0, 0.35);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  color: #eaeaea;
  line-height: 1.6;
}

.alert-box-tipply i {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.alert-box-tipply strong {
  color: var(--gold);
}

.alert-box-tipply a {
  color: var(--gold);
  text-decoration: underline;
}

/* 2-Column Split Grid */
.checkout-split-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Product Card */
.product-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-summary__image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  min-height: 180px;
}

.product-summary__image img {
  max-width: 200px;
  max-height: 200px;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.7));
}

.product-summary__title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
}

.product-summary__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.product-summary__desc code {
  background: rgba(255,255,255,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* Promo Code Box inside Left Card */
.promo-box {
  width: 100%;
  text-align: left;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.promo-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.promo-input-row {
  display: flex;
  gap: 10px;
}

.promo-input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
}

.promo-input-row input:focus {
  border-color: var(--gold);
}

.promo-btn {
  background: #2c2c2c;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.promo-btn:hover {
  background: var(--gold);
  color: #000;
}

.voucher-feedback {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 700;
}

.voucher-feedback.success { color: var(--green); }
.voucher-feedback.error { color: #f87171; }

/* Right Column: Form Steps */
.checkout-form-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-step-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.step-num {
  background: #141414;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-step-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.form-step-body {
  padding: 32px;
}

/* Inputs row in Step 1 */
.inputs-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.custom-form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.2s;
  height: 56px;
}

.custom-form-input:focus {
  border-color: var(--gold);
}

/* Skin Head Preview */
.player-head-preview {
  width: 56px;
  height: 56px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

#player-head-img {
  width: 46px;
  height: 46px;
  image-rendering: pixelated;
}

/* Variant Preset Cards Grid in Step 2 */
.preset-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.preset-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-card:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.preset-card.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 900;
}

/* Slider Section */
.slider-container {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.gold-amount-badge {
  background: var(--gold);
  color: #000;
  font-size: 16px;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 4px;
}

#amount-slider {
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 2%, rgba(255,255,255,0.15) 2%, rgba(255,255,255,0.15) 100%);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.1s linear;
}

#amount-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 199, 0, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#amount-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 22px rgba(255, 199, 0, 0.9);
}

#amount-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 199, 0, 0.7);
}

.slider-minmax {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

.slider-bonus-badge {
  background: rgba(255, 199, 0, 0.15);
  border: 1px solid rgba(255, 199, 0, 0.4);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.15);
}

/* Custom amount box */
.custom-amount-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.custom-amount-box label {
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
}

.custom-amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
}

.currency-tag {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
}

/* Bottom Checkout Actions Box */
.checkout-actions-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.checkout-notice {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.checkout-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
}

.terms-checkbox-wrap input[type="checkbox"] { display: none; }

.custom-check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-hover);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}

.terms-checkbox-wrap input:checked + .custom-check-box {
  background: var(--gold);
  border-color: var(--gold);
}

.terms-checkbox-wrap input:checked + .custom-check-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.terms-checkbox-wrap a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 800;
}

.gold-buy-btn {
  background: var(--gold);
  color: #000;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 18px 48px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.gold-buy-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   FAQ & TERMS VIEW (LARGE)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  flex: 1;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}

.faq-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.faq-answer p strong {
  color: var(--text);
}

.faq-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 6px;
  transition: opacity 0.2s;
  margin-top: 10px;
}

.faq-discord-btn:hover {
  opacity: 0.9;
}

.direct-link {
  color: var(--gold);
  font-weight: 800;
  font-size: 16px;
  text-decoration: underline;
}

.faq-back {
  text-align: center;
}

/* --------------------------------------------------------------------------
   FOOTER (LARGE WITH MOJANG DISCLAIMER)
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 60px;
  margin-top: auto;
  background: #0d0d0d;
}

.footer__inner {
  max-width: 1640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-copy {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.08em;
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   MODALS & TOASTS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal__card {
  background: #202020;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.modal__header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal__header h3 i { color: var(--gold); }

.modal__close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal__close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.modal__body {
  padding: 28px;
}

.confirm-grid { margin-bottom: 20px; }

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.confirm-row span { color: var(--text-muted); }
.confirm-row strong { font-weight: 700; }

.confirm-row--total {
  border-bottom: none;
  padding-top: 20px;
}

.confirm-row--total strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

.confirm-info {
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
}

.modal__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}

#toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #282828;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  min-width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.toast.success { border-left: 5px solid var(--green); }
.toast.error   { border-left: 5px solid #f87171; }
.toast.info    { border-left: 5px solid var(--gold); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .checkout-split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar { padding: 18px 24px; }
  .inputs-row { flex-direction: column; }
  .checkout-bottom-row { flex-direction: column; align-items: stretch; }
  .gold-buy-btn { width: 100%; }
}
