/* site.css — shared design for all Axiom Capital subpages.
 *  Mirrors index.html exactly: same nav, same footer, same colors, same buttons. */
:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface2: #1a2235;
  --border: #1e2d45;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --gold: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --glow: rgba(34,197,94,0.15);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter','Segoe UI',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; line-height:1.6; }
a { color:inherit; }
.mono { font-family:'JetBrains Mono',monospace; }

/* NAV — identical to index.html */
nav { display:flex; align-items:center; justify-content:space-between; padding:16px 40px; border-bottom:1px solid var(--border); background:rgba(10,14,23,0.95); backdrop-filter:blur(12px); position:sticky; top:0; z-index:100; }
.logo { font-size:20px; font-weight:800; letter-spacing:-0.5px; text-decoration:none; color:var(--text); }
.logo span { color:var(--accent); }
.nav-links { display:flex; gap:32px; }
.nav-links a { color:var(--text-dim); text-decoration:none; font-size:14px; font-weight:500; transition:color .2s; }
.nav-links a:hover, .nav-links a.active { color:var(--text); }
.nav-right { display:flex; align-items:center; gap:16px; }
.btn { padding:10px 24px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; border:none; transition:all .2s; text-decoration:none; display:inline-block; }
.btn-primary { background:linear-gradient(135deg,var(--accent),#15803d); color:#04160b; box-shadow:0 4px 18px rgba(34,197,94,.35); }
.btn-primary:hover { background:var(--accent-dim); transform:translateY(-1px); }
.btn-outline { background:transparent; color:var(--text); border:1px solid var(--border); }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }
.btn-invest { background:linear-gradient(135deg,var(--accent),#16a34a); color:#04160b; font-weight:800; font-size:15px; padding:11px 28px; border-radius:999px; letter-spacing:.3px; box-shadow:0 0 0 0 rgba(34,197,94,.6); animation:investPulse 2.2s infinite; transition:transform .15s, box-shadow .15s; text-decoration:none; display:inline-block; }
.btn-invest:hover { transform:translateY(-2px) scale(1.04); }
@keyframes investPulse {
  0% { box-shadow:0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow:0 0 0 14px rgba(34,197,94,0); }
  100% { box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

/* PAGE HERO — matches index.html hero styling */
.page-hero { text-align:center; padding:60px 20px 30px; }
.page-hero h1 { font-size:42px; font-weight:800; letter-spacing:-1px; margin-bottom:12px; }
.page-hero p { color:var(--text-dim); font-size:17px; max-width:640px; margin:0 auto; }

/* SECTIONS */
.section { max-width:1100px; margin:0 auto; padding:40px 20px; }
.section h2 { font-size:26px; font-weight:700; margin-bottom:16px; }
.section p, .section li { color:var(--text-dim); margin-bottom:12px; font-size:15px; }
.section a { color:var(--blue); }

/* CARDS */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; }
.card h3 { font-size:16px; font-weight:600; margin-bottom:8px; color:var(--accent); }
.card p { font-size:14px; color:var(--text-dim); margin:0; }
.card i { color:var(--accent); font-size:20px; margin-bottom:10px; display:block; }

/* TABLES */
table { width:100%; border-collapse:collapse; margin:16px 0; background:var(--surface); border-radius:12px; overflow:hidden; }
th, td { padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); font-size:14px; }
th { color:var(--accent); font-weight:600; background:var(--surface2); }
td { color:var(--text-dim); }
tr:last-child td { border-bottom:none; }

/* BADGES */
.badge, .badget { display:inline-flex; align-items:center; gap:8px; background:var(--glow); border:1px solid rgba(34,197,94,.3); color:var(--accent); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }

/* FOOTER — identical to index.html */
footer { padding:40px 20px; border-top:1px solid var(--border); color:var(--text-dim); font-size:13px; margin-top:40px; }
.footer-grid { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-bottom:24px; }
.footer-col h4 { font-size:13px; font-weight:600; color:var(--text); margin-bottom:12px; }
.footer-col a { display:block; color:var(--text-dim); text-decoration:none; margin-bottom:8px; font-size:13px; transition:color .2s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { text-align:center; padding-top:24px; border-top:1px solid var(--border); font-size:11px; opacity:0.6; }

/* MOBILE */
@media (max-width:820px) {
  nav { padding:12px 16px; flex-wrap:wrap; gap:10px; justify-content:center; }
  .nav-links { order:3; width:100%; justify-content:center; gap:18px; flex-wrap:wrap; }
  .nav-right { gap:10px; }
  .btn-invest { font-size:14px; padding:9px 22px; }
  .page-hero { padding:36px 16px 20px; }
  .page-hero h1 { font-size:30px; }
  .section { padding:28px 16px; }
  .card-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:420px) {
  .footer-grid { grid-template-columns:1fr; }
}

/* LIVE PORTFOLIO GRAPH — visual polish only; no page copy is changed. */
.graph-container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  background:
  radial-gradient(ellipse at 8% 0%, rgba(34, 197, 94, 0.055), transparent 42%),
  linear-gradient(155deg, var(--surface, var(--bg-card, #111827)), var(--surface2, var(--bg-dark, #0a1428)));
  border: 1px solid var(--border, rgba(148, 163, 184, 0.18));
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.graph-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 38%, rgba(34, 197, 94, 0.018));
}

.graph-header,
canvas#graph,
.graph-legend {
  position: relative;
  z-index: 1;
}

.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.graph-title {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--text, var(--text-light, #e2e8f0));
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btc-price-badge,
.graph-badge,
.profit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  border: 1px solid transparent;
}

.btc-price-badge {
  color: var(--gold, #f59e0b);
  background: rgba(245, 158, 11, 0.105);
  border-color: rgba(245, 158, 11, 0.16);
}

.graph-badge,
.profit-badge {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.095);
  border-color: rgba(34, 197, 94, 0.16);
}

canvas#graph {
  display: block;
  width: 100%;
  height: 320px;
  overflow: visible;
  border-radius: 12px;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 12px;
  color: var(--text-dim, var(--text-muted, #94a3b8));
  font-size: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.legend-dot.buy {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.30);
}

.legend-dot.sell {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.22);
}

.legend-profit {
  margin-left: auto;
  color: #22c55e;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .graph-container {
    padding: 14px;
    border-radius: 14px;
  }

  .graph-title {
    flex-basis: 100%;
    font-size: 14px;
  }

  .graph-header {
    gap: 8px;
  }

  .btc-price-badge,
  .graph-badge,
  .profit-badge {
    padding: 5px 9px;
    font-size: 11px;
  }

  canvas#graph {
    height: 270px;
  }

  .graph-legend {
    gap: 10px 14px;
  }

  .legend-profit {
    margin-left: 0;
    width: 100%;
  }
}


/* Shared form, account and responsive improvements for subpages. */
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
img, canvas, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(34,197,94,.65); outline-offset: 3px; }
.nav-links { align-items: center; list-style: none; margin: 0; padding: 0; }
input, select, textarea { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: 8px; }
button:disabled, .btn:disabled { cursor: not-allowed; opacity: .6; }
.table-wrap, .table-responsive { max-width: 100%; overflow-x: auto; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.active, .status.paid { color: #bbf7d0; background: rgba(34,197,94,.14); }
.status.locked, .status.failed, .status.expired { color: #fecaca; background: rgba(239,68,68,.15); }
@media (max-width: 820px) {
  nav { width: 100%; }
  .nav-links { display: flex; justify-content: center; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav-right { justify-content: center; flex-wrap: wrap; }
  .nav-links { gap: 10px 14px; font-size: 13px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: clamp(26px, 8vw, 36px); }
  th, td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* AXIOM_THEME_COMPAT_ALIASES: preserve the existing site theme */
:root {
  --bg-card: var(--surface);
  --bg-dark: var(--bg);
  --text-light: var(--text);
  --text-muted: var(--text-dim);
}
