/* ga-ui.css — shared UI primitives (buttons first) */

:root{
  --btn-bg:#182036;
  --btn-bg2:#243157;
  --btn-border: rgba(255,255,255,.12);
  --btn-text:#cfd4ff;

  --btn-primary:#1bd760;
  --btn-primary2:#16c250;
  --btn-primary-text:#04150b;

  --btn-secondary:#2f3a5e;
  --btn-secondary-text:#cfe0ff;

  --btn-focus: rgba(120,170,255,.35);
}


.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;

  border:1px solid var(--btn-border);
  background:linear-gradient(180deg,var(--btn-bg),var(--btn-bg2));
  color:var(--btn-text);
  font-weight:600;

  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn.primary{
  border:0;
  background:linear-gradient(180deg,var(--btn-primary),var(--btn-primary2));
  color:var(--btn-primary-text);
  padding:10px 16px;
  font-size:14px;
  box-shadow: 0 0 0 1px rgba(27,215,96,.25), 0 10px 24px rgba(27,215,96,.12);
}

.btn.secondary{
  background: var(--btn-secondary);
  color: var(--btn-secondary-text);
  border:1px solid var(--btn-border);
}

/* For toggle buttons (TopCharts): .btn + .on */
.btn.on{
  border:0;
  background:linear-gradient(180deg,var(--btn-primary),var(--btn-primary2));
  color:var(--btn-primary-text);
}

/* Hover: lift + brighten */
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.25);
}
.btn.secondary:hover{
  filter: brightness(1.12);
  box-shadow: 0 0 0 1px rgba(120,140,200,.25), 0 10px 22px rgba(0,0,0,.25);
}
.btn.primary:hover,
.btn.on:hover{
  box-shadow: 0 0 0 1px rgba(27,215,96,.22), 0 14px 30px rgba(27,215,96,.10);
}

/* Active/pressed: push down */
.btn:active{
  transform: translateY(1px);
  filter: brightness(.98);
  box-shadow:none;
}

/* Keyboard focus */
.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px var(--btn-focus), 0 0 0 1px rgba(255,255,255,.12);
}

/* Disabled */
.btn:disabled,
.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  filter:none;
  box-shadow:none;
}

/* Optional “brand” variant used in GamesBrowser sometimes */
.btn.brand{
  border:0;
  background:linear-gradient(135deg,#6e6bff,#7f5af0);
  color:#fff;
}

/* ---------- Size/layout helpers (reusable site-wide) ---------- */
.btn.lg{
  padding:14px 18px;
  font-size:16px;
  border-radius:12px;
}

.btn.block{
  width:100%;
}

/* ---------------- Pricing page helpers (signup.php) ---------------- */
body.pricing .old-price{
  display:block;
  font-size:13px;
  opacity:.55;
  text-decoration:line-through;
  margin-bottom:4px;
}

body.pricing .new-price{
  display:inline-flex;
  align-items:baseline;
  gap:8px;

  padding:8px 12px;
  border-radius:12px;

  background:linear-gradient(180deg, rgba(27,215,96,.22), rgba(27,215,96,.08));
  border:1px solid rgba(27,215,96,.35);
  box-shadow: 0 0 0 1px rgba(27,215,96,.12), 0 14px 30px rgba(27,215,96,.10);

  color: var(--btn-primary);
  font-weight:900;
  letter-spacing:.2px;

  width:fit-content;
}

body.pricing .new-price .amount{
  font-size:28px;
  line-height:1.05;
  font-variant-numeric: tabular-nums;
}

body.pricing .new-price .per{
  font-size:16px;
  opacity:.9;
  font-weight:800;
}

body.pricing .promo-badge{
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(27,215,96,.12);
  border:1px solid rgba(27,215,96,.35);
  color:#dfffe9;
  font-weight:800;
}


/* ---------------- Pricing page links + inline Terms panel ---------------- */

/* Clean, readable, highlighted links (scoped to pricing page only) */
body.pricing a.gdi-link{
  color:#fff;
  font-weight:700;
  text-decoration:none;

  border-bottom:1px solid rgba(255,255,255,.38);
  padding:1px 2px;
  border-radius:8px;

  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease, background-color .12s ease;
}

/* Clean, readable, highlighted links (site-wide) */
a.gdi-link{
  color:#fff;
  font-weight:700;
  text-decoration:none;

  border-bottom:1px solid rgba(255,255,255,.38);
  padding:1px 2px;
  border-radius:8px;

  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease, background-color .12s ease;
}

a.gdi-link:hover{
  filter: brightness(1.08);
  border-bottom-color: rgba(255,255,255,.85);
}

a.gdi-link:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(110,107,255,.35);
}

/* “Pill” variant */
a.gdi-link.gdi-pill{
  border:1px solid rgba(255,255,255,.16);
  border-bottom:none;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(110,107,255,.10), 0 10px 22px rgba(0,0,0,.22);
}

a.gdi-link.gdi-pill:hover{
  background:rgba(255,255,255,.10);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(110,107,255,.18), 0 14px 30px rgba(0,0,0,.28);
}

/* Inline Terms panel */
body.pricing .terms-panel{
  margin-top:14px;
  padding:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

body.pricing .terms-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

body.pricing .terms-title{
  font-weight:800;
  letter-spacing:.2px;
}

body.pricing .terms-iframe{
  width:100%;
  height:min(78vh, 980px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:#0b0f1a;
}


/* Auth split buttons (Login + Sign up) */
.auth-split{
  display:flex;
  gap:10px;
  width:100%;
}
.auth-split > a{
  flex:1;
  text-decoration:none;
}
.auth-split .btn{
  width:100%;
}


.legal-nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.legal-nav a{
  display:flex;
  align-items:center;
  gap:8px;
  color:#7f89a8;
  text-decoration:none;
  padding:5px 8px;
  margin:0;
  border-radius:8px;
  font-size:13px;
  line-height:1.2;
  min-height:auto;
}

.legal-nav a:hover{
  background:rgba(255,255,255,.04);
  color:#b9c2df;
}

.legal-label{
  color:#7f89a8;
  font-size:11px;
  letter-spacing:.04em;
  margin-bottom:4px;
}

.legal-icon{
  width:14px;
  text-align:center;
  opacity:.85;
}