/* ==========================================================================
   AccountFan.com brand layer
   Loaded LAST on the homepage so it wins over the legacy inline/page styles.
   All colours, radii and fonts come from the tokens below.
   ========================================================================== */

:root {
  --af-bg: #0a0a0f;
  --af-surface: #12121a;
  --af-surface-2: #1a1a24;
  --af-border: rgba(255, 255, 255, 0.08);
  --af-border-strong: rgba(255, 255, 255, 0.14);
  --af-text: #f5f5f7;
  --af-muted: #a1a1aa;
  --af-accent: #ff6b3d;
  --af-accent-hover: #ff8259;
  --af-accent-ink: #1a0b05;
  --af-accent-soft: rgba(255, 107, 61, 0.12);
  --af-success: #22c55e;
  --af-radius: 14px;
  --af-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Page reset (undo the old full-screen centred card layout) ---------- */
html {
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--af-bg) !important;
}

body.af {
  display: block !important;
  position: static !important;
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  perspective: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 107, 61, 0.14), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(124, 92, 255, 0.08), transparent 60%),
    var(--af-bg) !important;
  color: var(--af-text) !important;
  font-family: var(--af-font) !important;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.af::before,
body.af::after,
body.af .floating-space,
body.af .planet {
  display: none !important;
}

body.af a { color: inherit; }

.af-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.af-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--af-border);
}

.af-header .af-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.af-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--af-text);
}

body.af .af-logo img {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 61, 0.35));
  transition: transform 0.25s ease;
}

body.af .af-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.af-logo .af-tld { color: var(--af-muted); font-weight: 400; }

.af-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.af-nav a {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--af-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.af-nav a:hover { color: var(--af-text); }

/* the one button in the header */
.af-nav a.af-nav-cta {
  display: inline-flex;
  margin-left: 8px;
  padding: 8px 16px;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
  background: var(--af-accent);
  color: var(--af-accent-ink);
}

.af-nav a.af-nav-cta:hover { background: var(--af-accent-hover); color: var(--af-accent-ink); }

@media (max-width: 480px) {
  .af-logo { font-size: 18px; gap: 10px; }
  body.af .af-logo img { width: 32px !important; height: 32px !important; }
  .af-nav a.af-nav-cta { padding: 8px 12px; font-size: 13px; }
}

@media (min-width: 720px) {
  .af-nav a { display: inline-flex; }
}

/* ---------- Main grid: hero + purchase card ---------- */
.af-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

@media (min-width: 960px) {
  .af-main {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 64px;
    padding-top: 64px;
  }
  .af-hero { position: sticky; top: 112px; }
}

.af-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--af-border-strong);
  background: var(--af-surface);
  font-size: 14px;
  color: var(--af-muted);
  margin-bottom: 24px;
}

.af-eyebrow b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--af-accent);
  color: var(--af-accent-ink);
  font-size: 12px;
  font-weight: 700;
}

body.af .af-hero h1 {
  font-family: var(--af-font);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 24px;
  color: var(--af-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  animation: none;
}

.af-hero h1 em {
  font-style: normal;
  color: var(--af-accent);
}

.af-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--af-muted);
  max-width: 34em;
  margin: 0 0 32px;
}

.af-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* phones: get buyers to the checkout card fast */
  gap: 16px;
}

@media (min-width: 960px) {
  .af-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--af-border);
    max-width: 40em;
  }
}

@media (max-width: 959px) {
  .af-lead { font-size: 16px; margin-bottom: 0; }
}

.af-features li { display: block; }

/* bare accent icon, no tile */
.af-features .af-icon {
  display: block;
  color: var(--af-accent);
  margin-bottom: 12px;
}

.af-icon svg { width: 20px; height: 20px; display: block; }

.af-features strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--af-text);
  margin-bottom: 4px;
}

.af-features span {
  font-size: 14px;
  color: var(--af-muted);
}

/* ---------- Purchase card (legacy .container) ---------- */
body.af .container {
  width: 100% !important;
  max-width: 440px !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 32px 24px !important;
  box-sizing: border-box;
  overflow: visible !important;
  background: var(--af-surface) !important;
  border: 1px solid var(--af-border-strong) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  font-family: var(--af-font) !important;
}

body.af .container:hover { transform: none !important; }

@media (max-width: 480px) {
  body.af .container { padding: 24px 16px !important; }
  body.af .container .toggle-btn { padding: 10px 8px !important; }
}

@media (min-width: 960px) {
  body.af .container { margin: 0 !important; }
}

body.af .container * { font-family: var(--af-font); }

/* Product switcher -> segmented control */
body.af .account-toggle {
  flex-direction: row !important;
  gap: 4px !important;
  max-width: none !important;
  margin: 0 0 32px !important;
  padding: 4px !important;
  background: var(--af-surface-2);
  border: 1px solid var(--af-border);
  border-radius: 12px;
}

body.af .container .toggle-btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  background: transparent !important;
  color: var(--af-muted) !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

body.af .container .toggle-btn:hover { color: var(--af-text) !important; }

body.af .container .toggle-btn.active {
  background: var(--af-text) !important;
  color: var(--af-bg) !important;
}

body.af .container button::after,
body.af .container button::before { display: none !important; }

/* Price block */
body.af .container .price {
  display: block;
  font-size: 48px !important;
  line-height: 1.1;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  margin: 0 0 8px !important;
  background: none !important;
  color: var(--af-text) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

body.af .container .info-text {
  color: var(--af-muted) !important;
  font-size: 14px !important;
  margin: 0 0 16px !important;
}

/* Live stock pill */
body.af .discord-stock-pill {
  background: var(--af-surface-2) !important;
  border-color: var(--af-border-strong) !important;
  font-size: 12px !important;
  padding: 4px 12px 4px 8px !important;
  margin: 0 auto 24px !important;
  color: var(--af-muted) !important;
}

body.af .stock-pill-badge {
  font-size: 10px !important;
  padding: 2px 8px !important;
  background: rgba(34, 197, 94, 0.14) !important;
  color: #86efac !important;
}

/* Offer banners -> flat rows split by hairlines, no boxes */
body.af .special-offer-banner,
body.af .bulk-discount-banner {
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 0 !important;
  text-align: left;
  background: none !important;
  border: 0 !important;
  border-top: 1px solid var(--af-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

body.af .bulk-discount-banner { border-bottom: 1px solid var(--af-border) !important; }

body.af .discount-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-muted) !important;
  margin: 0 0 8px !important;
}

body.af .price-comparison {
  justify-content: flex-start !important;
  margin: 0 0 4px !important;
}

body.af .original-price { color: var(--af-muted) !important; }

body.af .discount-badge {
  background: var(--af-accent-soft) !important;
  color: var(--af-accent) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  animation: none !important;
}

body.af .per-server,
body.af .bulk-discount-text {
  color: var(--af-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

body.af .bulk-discount-details {
  color: var(--af-muted) !important;
  font-size: 12px !important;
  margin-top: 4px;
}

/* Inputs */
body.af .container input,
body.af .container select {
  width: 100%;
  box-sizing: border-box;
  background: var(--af-bg) !important;
  border: 1px solid var(--af-border-strong) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  color: var(--af-text) !important;
  transform: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

body.af .container input::placeholder { color: #71717a !important; }

body.af .container input:focus {
  outline: none;
  border-color: var(--af-accent) !important;
  box-shadow: 0 0 0 3px var(--af-accent-soft) !important;
}

body.af .container .input-group { margin-top: 24px; }

body.af .container label { color: var(--af-text) !important; }

/* Buttons: one accent for the primary action */
body.af .container button:not(.toggle-btn) {
  background: var(--af-accent) !important;
  background-image: none !important;
  color: var(--af-accent-ink) !important;
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 48px;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: background 0.15s !important;
}

body.af .container button:not(.toggle-btn):hover {
  background: var(--af-accent-hover) !important;
}

body.af .container button:not(.toggle-btn):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary (cancel) */
body.af .container button[onclick^="cancelPurchase"] {
  background: transparent !important;
  color: var(--af-text) !important;
  border: 1px solid var(--af-border-strong) !important;
}

body.af .container button[onclick^="cancelPurchase"]:hover {
  background: var(--af-surface-2) !important;
}

/* Order summary */
body.af .summary-box {
  background: var(--af-surface-2) !important;
  border: 1px solid var(--af-border) !important;
  border-radius: var(--af-radius) !important;
  text-align: left;
}

body.af .summary-title { color: var(--af-text) !important; }
body.af .summary-row.highlight span { color: var(--af-accent) !important; }

body.af .discount-banner {
  background: var(--af-accent-soft) !important;
  color: var(--af-accent) !important;
  border-radius: 10px !important;
  animation: none !important;
}

/* DeFi tab panels */
body.af .batch-info-box,
body.af .defi-guide,
body.af .trust-badge,
body.af .defi-badge,
body.af .batch-selection-info,
body.af .defi-accounts {
  background: var(--af-surface-2) !important;
  border: 1px solid var(--af-border) !important;
  border-radius: var(--af-radius) !important;
  box-shadow: none !important;
  animation: none !important;
}

body.af .defi-accounts { background: transparent !important; border: 0 !important; }

body.af .container h3 {
  color: var(--af-text) !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

body.af .step-num {
  background: var(--af-accent) !important;
  color: var(--af-accent-ink) !important;
}

body.af .protocol-tag {
  background: var(--af-surface-2) !important;
  border: 1px solid var(--af-border-strong) !important;
  color: var(--af-muted) !important;
}

/* ---------- How it works ---------- */
.af-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--af-border);
}

.af-section h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--af-text);
}

.af-section > .af-wrap > p {
  color: var(--af-muted);
  margin: 0 0 32px;
}

/* Steps as a timeline: one line, three markers, open text. No cards. */
.af-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  counter-reset: af-step;
  position: relative;
}

.af-steps li {
  counter-increment: af-step;
  position: relative;
  padding-left: 56px;
}

/* the connecting line (vertical on phones) */
.af-steps li::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -28px;
  width: 1px;
  background: var(--af-border-strong);
}

.af-steps li:last-child::after { display: none; }

.af-steps li::before {
  content: counter(af-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--af-accent);
  border: 1px solid rgba(255, 107, 61, 0.45);
  background: var(--af-bg);
}

@media (min-width: 720px) {
  .af-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .af-steps li { padding-left: 0; padding-top: 56px; }
  .af-steps li::after {
    left: 46px;
    right: -40px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

.af-steps strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.af-steps span { color: var(--af-muted); font-size: 15px; max-width: 26em; display: block; }

/* ---------- Help: the single place for Telegram + support ---------- */
.af-help .af-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.af-help p { color: var(--af-muted); margin: 0; }

.af-help-links { display: flex; flex-wrap: wrap; gap: 12px; }

.af-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--af-text);
  border: 1px solid var(--af-border-strong);
  transition: background 0.15s, border-color 0.15s;
}

.af-btn:hover { border-color: var(--af-muted); }
.af-btn svg { width: 18px; height: 18px; }

body.af .af-btn-primary {
  background: var(--af-accent);
  border-color: var(--af-accent);
  color: var(--af-accent-ink);
}

body.af .af-btn-primary:hover { background: var(--af-accent-hover); border-color: var(--af-accent-hover); }

/* ---------- Footer ---------- */
.af-footer {
  border-top: 1px solid var(--af-border);
  padding: 32px 0;
  color: var(--af-muted);
  font-size: 14px;
}

.af-footer .af-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.af-footer .af-logo { font-size: 16px; }
body.af .af-footer .af-logo img { width: 28px !important; height: 28px !important; }

