/* XrayClick — modern UI (dark x-ray theme with cyan glow) */
:root {
  --bg: #0b0f1e; --bg2: #101729; --panel: #141d33; --panel2: #182340;
  --ink: #e8ecf7; --muted: #8f9bb8; --line: #232f4d;
  --cyan: #22d3ee; --violet: #7c6fe8; --green: #34d399;
  --red: #f87171; --amber: #fbbf24;
  --radius: 14px; --shadow: 0 12px 40px rgba(3, 7, 18, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .4em 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 1rem; }
code { background: var(--panel2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.hidden { display: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 30, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 14px rgba(34, 211, 238, .35);
  transition: transform .2s, box-shadow .2s;
}
.brand:hover .brand-logo { transform: scale(1.08); box-shadow: 0 0 20px rgba(34, 211, 238, .55); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--ink); background: var(--panel2); text-decoration: none; }
.nav-links a.on { color: var(--cyan); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle, .nav-burger { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 20px; font-size: .98rem;
  font-weight: 700; cursor: pointer; transition: .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), #4ade9e); color: #06121c; }
.btn.primary:hover { box-shadow: 0 8px 24px rgba(34, 211, 238, .35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.bad { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn.sm { padding: 7px 13px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 14px 28px; font-size: 1.08rem; border-radius: 12px; }
.btn.wide { width: 100%; }
.inline { display: inline; }

/* layout */
main { min-height: 60vh; }
.section { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.section.narrow { max-width: 760px; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.lead { font-size: 1.12rem; color: #c3cbe0; max-width: 62ch; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }

/* hero */
.hero {
  max-width: 860px; margin: 0 auto; padding: 70px 20px 40px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.pill {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px; padding: 5px 14px;
  background: rgba(34, 211, 238, .08);
}
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; justify-content: center; }
.hero-panel { display: grid; gap: 14px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.stat-num {
  display: block; font-size: 2rem; font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: .9rem; }

/* cards */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  margin: 14px 0;
}
.card-icon { font-size: 1.9rem; }
.card h3 { margin: .3rem 0 .6rem; }
.cta-band {
  text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(600px 200px at 50% 0, rgba(124, 111, 232, .18), transparent);
}

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.price-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), var(--shadow); }
.best {
  position: absolute; top: -12px; right: 14px; font-size: .72rem; font-weight: 800;
  background: var(--cyan); color: #06121c; padding: 3px 10px; border-radius: 999px;
}
.price { font-size: 2.2rem; font-weight: 800; color: var(--cyan); }
.price span { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0; }
.price-card li { padding: 4px 0; color: #c3cbe0; font-size: .93rem; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .93rem; }
.stack input, .stack select, .stack textarea {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 13px; font: inherit; font-weight: 500;
}
.stack input:focus, .stack select:focus, .stack textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; }
.warn-box { border: 1px solid var(--amber); border-radius: 10px; padding: 10px; }
.captcha-row { display: flex; gap: 16px; align-items: center; }
.captcha-row #captcha-box {
  background: #0e162b; border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 8px; min-width: 220px; flex: 0 0 auto;
}
.captcha-row svg { display: block; width: 210px; height: 62px; }

/* flashes & badges */
.flashes { max-width: 1120px; margin: 14px auto 0; padding: 0 20px; }
.flash { border-radius: 10px; padding: 12px 16px; margin: 6px 0; font-weight: 600; font-size: .95rem; }
.flash-ok { background: rgba(52, 211, 153, .12); border: 1px solid var(--green); color: var(--green); }
.flash-error { background: rgba(248, 113, 113, .12); border: 1px solid var(--red); color: var(--red); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: 2px 10px; background: var(--panel2); color: var(--muted);
}
.badge.ok { background: rgba(52, 211, 153, .15); color: var(--green); }
.badge.warn { background: rgba(251, 191, 36, .15); color: var(--amber); }
.warn-text { color: var(--amber); }

/* plan usage meter (member dashboard) */
.meter { height: 10px; border-radius: 6px; background: var(--panel2);
         border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; min-width: 2px; border-radius: 6px;
              background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.card.limit-over { border-color: var(--red); box-shadow: 0 0 0 1px rgba(248, 113, 113, .25); }

/* member sites (dashboard) */
.site-row { border-top: 1px solid var(--line); padding: 12px 0; display: grid;
            gap: 8px; }
.site-row:first-of-type { border-top: 0; }
.snippet { width: 100%; font-family: Consolas, monospace; font-size: .8rem;
           color: var(--cyan); background: var(--panel2); border: 1px solid var(--line);
           border-radius: 8px; padding: 8px; resize: vertical; }
.badge.bad { background: rgba(248, 113, 113, .15); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--panel2); border: 1px solid var(--line); color: var(--cyan);
  border-radius: 999px; padding: 4px 12px; font-size: .85rem;
}

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.row-hot td { background: rgba(251, 191, 36, .06); }
.row-flag td { background: rgba(248, 113, 113, .05); }

/* modal capture */
#capture {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(4, 8, 20, .72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
#capture.open { display: flex; }
.modal {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; max-width: 430px; width: 92%;
  box-shadow: var(--shadow); text-align: center;
}
.modal h3 { margin: 0 0 8px; font-size: 1.4rem; }
.modal p { color: #c3cbe0; }
.modal .btn { margin-top: 6px; }
.modal-x {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  color: var(--muted); font-size: 1.6rem; cursor: pointer;
}
.modal-x:hover { color: var(--ink); }
.modal small { display: block; margin-top: 12px; }
#cap-result { margin-top: 12px; color: var(--green); font-weight: 700; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.footer-grid {
  max-width: 1120px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px;
}
.footer h4 { margin: 0 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer a { display: block; padding: 3px 0; color: #c3cbe0; }
.brand.light { color: var(--ink); }
.footer-base {
  border-top: 1px solid var(--line); text-align: center; padding: 14px;
  color: var(--muted); font-size: .82rem;
}

/* FAQ details */
details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin: 10px 0;
}
details[open] { border-color: rgba(34, 211, 238, .4); }
summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
details p { color: #c3cbe0; }

/* admin */
.admin-nav {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 20px;
}
.admin-nav a { color: var(--muted); font-weight: 600; padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.admin-nav a:hover { color: var(--ink); text-decoration: none; background: var(--panel2); }
.admin-nav a.on { color: var(--cyan); background: var(--panel2); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.filter-row input, .filter-row select {
  background: var(--bg2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; font: inherit;
}
.big-code { font-size: 4.4rem; color: var(--cyan); margin: .2em; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ok-card { border-color: var(--green); }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .grid3, .price-grid { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .price-grid, .grid4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-burger { display: block; margin-left: auto; cursor: pointer; }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line);
    padding: 10px 20px;
  }
  .nav-cta { margin-left: auto; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .tbl { font-size: .84rem; display: block; overflow-x: auto; }
}




/* popup studio */
.popup-preview-bg { background: rgba(5,8,18,.92); border-radius: 12px; padding: 34px 18px; display: flex; justify-content: center; }
.popup-preview { background: #141d33; color: #e8ecf7; max-width: 380px; width: 100%; border-radius: 14px; padding: 26px; text-align: center; transition: opacity .2s ease; }
.pp-head { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.pp-sub { color: #8f9bb8; margin-bottom: 14px; }
.pp-input { width: 100%; padding: 10px; border-radius: 9px; border: 1px solid #232f4d; background: #0b0f1e; color: #e8ecf7; margin-bottom: 10px; }
.pp-btn { width: 100%; padding: 10px; border-radius: 9px; border: 0; color: #06121c; font-weight: 700; cursor: pointer; }
.pp-foot { margin-top: 10px; font-size: .7rem; color: #5d6885; min-height: 1em; }
label.chk { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 10px 0; }
label.chk input { width: auto; }

.card.inset { box-shadow: none; background: rgba(34, 211, 238, 0.05); margin-top: 12px; }

.row-actions { display: flex; gap: 6px; }
