/* Global Professional Theme - Inspired by Apple clean aesthetic */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #0b0d12;
  --muted: #667085;
  --border: #e4e7ec;
  --primary: #0071e3; /* Apple blue */
  --primary-600: #0062cc;
  --accent: #0ea5e9;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --ring: rgba(0, 113, 227, 0.25);
  --radius: 14px;
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #e6f2ff 0%, transparent 60%),
              radial-gradient(1200px 600px at 100% 0%, #f3e8ff 0%, transparent 60%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.container-narrow { max-width: 760px; }
.container-wide { max-width: 1280px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text);
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; }

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.site-nav a:hover { background: var(--surface-2); }

.hero {
  padding: 80px 0;
  text-align: center;
}
.hero-title { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero-subtitle { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); margin: 0 auto 28px; max-width: 720px; }

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.card-body { padding: 20px; }
.card-section + .card-section { border-top: 1px solid var(--border); }

.grid-2 {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px;
}
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 14px; }
.label { font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 6px; display: block; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: var(--surface-2); border-radius: 6px; padding: 2px 6px; border: 1px solid var(--border); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; padding: 10px 0; }
.list li + li { border-top: 1px solid var(--border); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

/* Index-specific helpers */
.center-full-height { min-height: calc(100vh - 64px - 72px); display: flex; align-items: center; justify-content: center; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 999px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.badge.success { background: rgba(34, 197, 94, .12); color: #16794f; }
.badge.info { background: rgba(14, 165, 233, .12); color: #0b77a3; }

/* Utility spacing */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.pt-0{padding-top:0}.pt-8{padding-top:8px}.pt-16{padding-top:16px}.pt-24{padding-top:24px}.pt-32{padding-top:32px}
.pb-0{padding-bottom:0}.pb-8{padding-bottom:8px}.pb-16{padding-bottom:16px}.pb-24{padding-bottom:24px}.pb-32{padding-bottom:32px}

/* Discord button used on index */
.discord-btn {
  position: fixed; top: 16px; right: 16px; display: inline-flex; align-items:center; gap: 8px;
  background: #5865F2; color: #fff; border-radius: 999px; padding: 10px 14px; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 16px rgba(88,101,242,.3);
}
.discord-btn:hover { background: #4752c4; }
.discord-icon { width: 18px; height: 18px; }

/* Page: Checkout */
.checkout-wrapper { padding: 32px 0; }

/* Page: Payment (FiPay) - eBay-inspired tweaks */
.brand-ebay { --primary: #3665f3; --primary-600: #2a50c2; }
.payment-methods { display: grid; grid-template-columns: 1fr; gap: 16px; }
.payment-option {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff;
}
.payment-option input { accent-color: var(--primary); }

.order-summary .price { font-weight: 700; }
.order-summary .total { font-size: 20px; font-weight: 800; }

/* Shadows for floating feel */
.floating { box-shadow: var(--shadow-lg); }