/* =========================================================
   TriadClan • TriadClient — Utility Mod Website
   Stable CSS (layout + modal + reveal fixed)
   CLEANED (no duplicates, payments fixed)
   ========================================================= */

:root{
  --bg:#0b0d12;
  --panel: rgba(16,21,36,.72);
  --panel2: rgba(15,19,32,.62);
  --text:#e7eaf2;
  --muted:#a9b0c3;
  --line: rgba(255,255,255,.10);

  --accent:#7c5cff;
  --accent2:#00e5ff;

  --radius:18px;
  --radius2:24px;
  --shadow:0 14px 50px rgba(0,0,0,.38);
  --shadow2:0 18px 70px rgba(0,0,0,.55);
  --max:1180px;

  --ease:cubic-bezier(.2,.9,.2,1);
  --dur:650ms;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1100px 520px at 10% -10%, rgba(124,92,255,.28), transparent 55%),
    radial-gradient(1000px 520px at 90% 0%, rgba(0,229,255,.14), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(124,92,255,.10), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:24px}

/* Progress bar */
.progress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index:9999;
}

/* Nav */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(12px);
  background: rgba(11,13,18,.62);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.logo{
  width:40px;
  height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display:grid;
  place-items:center;
  font-weight:1000;
  color:#061018;
}
.title{font-weight:1000; letter-spacing:.2px}
.brand small{display:block; color:var(--muted); font-weight:700; margin-top:2px}

/* Links */
.links{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.links a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:850;
  font-size:13px;
  border:1px solid transparent;
  transition: 180ms var(--ease);
}
.links a:hover{
  color:var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.links a.active{
  color:var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

/* Right side */
.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 260px;
  justify-content:flex-end;
}

/* Theme control (supports both .tools and .theme markup) */
.tools, .theme{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:900;
  font-size:13px;
  position:relative;
}
.tools span, .theme span{opacity:.9}

.tools select, .theme select{
  -webkit-appearance:none;
  appearance:none;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding:8px 34px 8px 10px;
  outline:none;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  line-height:1.1;
}
.tools select:hover, .theme select:hover{
  border-color: rgba(255,255,255,.22);
}
.tools select:focus, .theme select:focus{
  border-color: color-mix(in srgb, var(--accent) 60%, rgba(255,255,255,.18));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.tools::after, .theme::after{
  content:"▾";
  position:absolute;
  right:12px;
  pointer-events:none;
  color: rgba(255,255,255,.70);
  font-size:12px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--text);
  transition: 180ms var(--ease);
  white-space:nowrap;
  cursor:pointer;
  font-weight:900;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}
.btn:active{transform: translateY(0px) scale(.99)}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#061018;
}
.btn.ghost{
  background: rgba(255,255,255,.03);
}

/* Hero */
.hero{padding:28px 0 14px}

.card{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.hero-card{
  padding:22px;
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(600px 260px at 85% 10%, rgba(0,229,255,.14), transparent 60%);
  pointer-events:none;
  opacity:.95;
}
.hero-card > *{position:relative; z-index:1}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:950;
  font-size:13px;
  margin-bottom:14px;
}
.dot{
  width:9px; height:9px;
  border-radius:50%;
  background:#39d98a;
  box-shadow: 0 0 18px rgba(57,217,138,.45);
}

h1{
  margin:0 0 10px;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height:1.02;
  letter-spacing:-1px;
}
.sub{
  margin:0 0 16px;
  color:var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 78ch;
  font-weight:650;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

/* Hero grid */
.hero-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:16px;
  align-items:stretch;
  width:100%;
}

.panel{
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: var(--panel2);
}
.panel h3{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.2px;
  color: rgba(231,234,242,.92);
}

.pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  margin-top:10px;
}
.pill b{display:block; font-size:13px}
.pill small{display:block; color:var(--muted); font-weight:800; margin-top:2px}

code.inline{
  padding:4px 8px;
  border-radius:10px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  color:#d7dbff;
  font-weight:950;
  font-size:12px;
  white-space:nowrap;
}

/* Sections */
section{padding:18px 0}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
}
.section-title h2{margin:0; font-size:18px}
.section-title p{margin:0; color:var(--muted); font-size:13px; font-weight:750}

/* Tiles */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.tile{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  transition: 220ms var(--ease);
}
.tile:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.14);
}
.icon{
  width:44px; height:44px;
  border-radius: 16px;
  display:grid; place-items:center;
  margin-bottom:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-size:18px;
  user-select:none;
}
.tile h3{margin:0 0 8px; font-size:15px}
.tile p{margin:0; color:var(--muted); line-height:1.65; font-size:14px; font-weight:650}

/* Footer */
.footer{
  padding:34px 0 44px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
  font-weight:700;
}

/* Reveal — SAFE fallback */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform: translateY(10px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.show{ opacity:1; transform:none; }

/* Modal */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.66);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index: 9999;
}
.backdrop.is-open{ display:flex; }

.modal{
  width: min(780px, 100%);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(16,21,36,.96);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal-body{ padding:16px; color:var(--muted); line-height:1.75; font-weight:650; }

body.modal-open{ overflow:hidden; }

/* ===== Payments layout (NEW) ===== */
.pay-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
.pay-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius: 18px;
  padding:14px;
}
.pay-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.pay-title{
  font-weight:1000;
  letter-spacing:.2px;
}
.pay-addr{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  overflow:auto;
}
.pay-note{
  margin-top:10px;
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}

/* ===== Payments BACKWARD COMPAT (OLD crypto-grid / addr) ===== */
.crypto-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
.addr{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius:18px;
  padding:14px;
}
.addr-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.addr code{
  display:block;
  margin-top:8px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  overflow:auto;
}
.mini{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}

/* Mobile */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .crypto-grid{ grid-template-columns:1fr; }
  .pay-grid{ grid-template-columns:1fr; }
  .links{ display:none; }
  .theme{ display:none; }
  .nav-right{ min-width:auto; }
}
@media (max-width: 520px){
  .wrap{ padding:16px; }
  .nav-inner{ padding:12px 16px; }
}
