@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  --accent: #b6f836;
  --accent-soft: #8fbf22;
  --accent-2: var(--accent-soft);
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --bg: #0e1014;
  --bg-1: #12151a;
  --bg-2: #171b21;
  --surface: #15181e;
  --surface-2: #1c2027;
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.15);
  --line-3: rgba(255, 255, 255, 0.24);
  --text: #eef1f5;
  --dim: rgba(255, 255, 255, 0.58);
  --dim-2: rgba(255, 255, 255, 0.42);
  --dim-3: rgba(255, 255, 255, 0.28);
  --ok: #6fe08a;
  --warn: #f5c451;
  --bad: #ff6b6b;
  --r: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(760px 460px at 50% -14%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 255, 255, 0.035), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.tiny { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.accent { color: var(--accent); }

.ico { width: 14px; height: 14px; flex: 0 0 auto; }
.btn .ico { width: 13px; height: 13px; stroke-width: 1.9; }
.alert::before, .empty::before, .run-empty::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.alert.error::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E"); }
.alert.success::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E"); }
.alert.info::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); }
.empty::before, .run-empty::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12l3-7h12l3 7v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7z'/%3E%3Cpath d='M3 12h5l1.5 2.5h5L16 12h5'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12l3-7h12l3 7v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7z'/%3E%3Cpath d='M3 12h5l1.5 2.5h5L16 12h5'/%3E%3C/svg%3E"); }

.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 500; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.section { padding: 84px 0; position: relative; z-index: 1; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent-grad);
  color: #080a04;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px -10px var(--accent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

.btn-sm { height: 34px; padding: 0 15px; font-size: 12.5px; }
.btn-block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.badge.ok { color: var(--ok); border-color: rgba(111, 224, 138, 0.28); background: rgba(111, 224, 138, 0.07); }
.badge.live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.badge.l4 { color: var(--dim); border-color: var(--line); font-size: 8.5px; letter-spacing: 0.1em; }
.badge.bad { color: var(--bad); border-color: rgba(255, 107, 107, 0.28); background: rgba(255, 107, 107, 0.07); }
.badge.warn { color: var(--warn); border-color: rgba(255, 196, 107, 0.28); background: rgba(255, 196, 107, 0.07); }
.badge.crypto { color: var(--text); }
.badge .ico { width: 11px; height: 11px; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- nav ---------- */
.announce { background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 18px; color: var(--accent); position: relative; z-index: 61; }
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, var(--bg) 62%, transparent);
}
.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 15px; }
.brand-mark {
  width: 32px; height: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a {
  font-size: 12.5px;
  color: var(--dim);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.09); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .link { font-size: 12.5px; color: var(--dim); }
.nav-actions .link:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 96px; position: relative; z-index: 1; }
.hero-inner { max-width: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker { font-size: 12.5px; color: var(--dim-2); margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 460px; color: var(--dim); font-size: 14px; font-weight: 300; }
.hero .hero-explain { margin-top: 14px; max-width: 400px; color: var(--dim-2); font-size: 12.5px; }

.hero-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; font-size: 12px; color: var(--dim-2); }
.hero-meta .dot { width: 5px; height: 5px; }
.hero-meta .sep { color: var(--dim-3); }
.hero-meta .link { color: var(--dim); }
.hero-meta .link:hover { color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(2, auto); gap: 40px; margin-top: 72px; justify-content: center; }
.stats > div { text-align: center; }
.stats .n { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.stats .l { font-size: 11px; color: var(--dim-2); margin-top: 3px; }

/* ---------- feature cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.cap .idx { font-size: 11px; color: var(--dim-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cap .idx .ico { width: 15px; height: 15px; color: var(--text); stroke-width: 1.8; }
.cap h4 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.cap p { font-size: 12.5px; color: var(--dim); font-weight: 300; line-height: 1.7; }
.seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 60px; }
.seo-grid h3 { font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.seo-grid p { font-size: 12.5px; color: var(--dim); font-weight: 300; line-height: 1.75; }

/* ---------- plans ---------- */
.layer-switch { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.layer-switch-tab { display: inline-flex; align-items: center; gap: 7px; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 8px 16px; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.layer-switch-tab .ico { width: 12px; height: 12px; stroke-width: 1.9; }
.layer-switch-tab:hover { color: var(--text); }
.layer-switch-tab.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.main .plans-grid { margin-top: 20px; }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.pop { border-color: var(--line-2); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.plan.pop .plan-name { color: var(--text); }
.plan-price { display: flex; align-items: baseline; gap: 7px; }
.plan-price b { font-family: "Geist Mono", monospace; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.plan-price span { font-size: 11px; color: var(--dim-2); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 4px 0; }
.plan li { font-size: 12px; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }
.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px; height: 13px; margin-top: 3px;
  background: var(--accent);
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
}
.plan-hint { font-size: 10.5px; color: var(--dim-2); text-align: center; margin-top: -3px; }

/* ---------- wallet ---------- */
.wallet { padding: 22px; }
.wallet-facts { display: grid; grid-template-columns: 1.3fr 1fr 1.45fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wallet-facts .l { display: block; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.wallet-facts .v { display: block; font-family: "Geist Mono", monospace; font-size: 12.5px; color: var(--dim); margin-top: 7px; }
.wallet-facts .v.big { font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; color: var(--text); }
.wallet-form { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.wallet-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--dim); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.on { background: var(--accent-grad); border-color: transparent; color: #080a04; font-weight: 600; }
.wallet-field { display: flex; gap: 8px; }
.wallet-field .input { flex: 1; min-width: 0; }
.wallet-hint { margin-top: 11px; font-size: 11px; color: var(--dim-2); }

.open-card { padding: 18px 20px; margin-top: 16px; border-color: color-mix(in srgb, var(--accent) 26%, transparent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.open-card > h3 { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.open-card > h3 .ico { width: 13px; height: 13px; color: var(--accent); stroke-width: 1.8; }
.open-card > .hint { font-size: 11.5px; color: var(--dim); margin: 6px 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.open-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.open-row + .open-row { margin-top: 12px; }
.open-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.open-name { font-size: 12.5px; }
.open-meta { font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--dim-2); }
.open-acts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ---------- misc sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split p { color: var(--dim); font-weight: 300; font-size: 14px; margin-bottom: 16px; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 600; }

.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim-2); font-family: "Geist Mono", monospace; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--dim); font-size: 13.5px; font-weight: 300; padding-top: 12px; max-width: 720px; }

.cta-band { border: 1px solid var(--line); border-radius: 18px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 46px; }
.footer h5 { font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 14px; }
.footer a { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 9px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 11px; color: var(--dim-2); }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 60px 24px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; backdrop-filter: blur(20px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); }
.auth-mark { width: 44px; height: auto; margin: 0 auto 20px; display: block; object-fit: contain; }
.auth h1 { font-size: 22px; text-align: center; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.auth h1 .ico { width: 19px; height: 19px; color: var(--accent); }
.auth .sub { text-align: center; color: var(--dim); font-size: 12.5px; margin-bottom: 26px; }
.err-ico { width: 42px; height: 42px; color: var(--accent); margin: 0 auto 20px; opacity: 0.9; }

.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); margin-bottom: 7px; font-weight: 500; }
.field label .ico { width: 12px; height: 12px; color: var(--text); stroke-width: 1.9; opacity: 0.85; }
.input, select.input, textarea.input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; padding: 11px 13px; resize: vertical; min-height: 84px; }
.input::placeholder { color: var(--dim-3); }
.input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.auth-foot { text-align: center; font-size: 12px; color: var(--dim); margin-top: 20px; }
.auth-foot a { color: var(--text); border-bottom: 1px solid var(--line-2); }

.cap-row { display: flex; gap: 8px; margin-bottom: 8px; }
.cap-box {
  flex: 1; height: 60px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-1);
  overflow: hidden; display: flex;
}
.cap-box svg { width: 100%; height: 100%; display: block; }
.cap-refresh {
  width: 44px; height: 60px; flex: none; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: none; color: var(--dim); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cap-refresh svg { width: 16px; height: 16px; }
.cap-refresh:hover { color: var(--text); border-color: var(--line-3); }
.cap-refresh:disabled { opacity: 0.5; cursor: default; }
.cap-input { font-family: "Geist Mono", monospace; letter-spacing: 0.32em; text-transform: uppercase; font-size: 13px; }
.cap-input::placeholder { letter-spacing: 0.08em; text-transform: none; }

/* ---------- alerts ---------- */
.alert { padding: 12px 15px; border-radius: 10px; font-size: 12.5px; margin-bottom: 16px; border: 1px solid; display: flex; gap: 9px; align-items: flex-start; }
.alert.error { color: #ffb4b4; background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.24); }
.alert.success { color: #b3f5c6; background: rgba(111, 224, 138, 0.08); border-color: rgba(111, 224, 138, 0.24); }
.alert.info { color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.app-bare { grid-template-columns: 1fr; }
.side-scrim { display: none; }
.side { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--bg-1); z-index: 20; }
.side .brand { padding: 0 8px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .grp { font-family: "Geist Mono", monospace; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim-3); padding: 18px 10px 8px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--dim); transition: background 0.14s, color 0.14s; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.side-link.active { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent); }
.side-link svg { width: 16px; height: 16px; color: var(--text); flex: 0 0 auto; }
.side-link.active svg { color: var(--accent); }
.side-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; transition: background 0.15s; }
.side-user:hover { background: rgba(255, 255, 255, 0.045); }
.side-user .avatar { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.side-user .n { font-size: 12.5px; font-weight: 500; }
.side-user .p { font-size: 10px; color: var(--dim-2); }

.main { padding: 26px 34px 60px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.main-head h1 { font-size: 25px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 11px; }
.main-head h1 .ico { width: 21px; height: 21px; color: var(--accent); stroke-width: 1.5; opacity: 0.85; }
.main-head .sub { font-size: 12.5px; color: var(--dim); margin-top: 5px; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-form .input, .filter-form select.input { width: auto; flex: 1 1 128px; min-width: 0; }
.filter-form .btn { flex: 0 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.panel-card { padding: 22px; }
.panel-card > h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panel-card > h3 .ico { width: 13px; height: 13px; color: var(--accent); stroke-width: 1.8; }
.panel-card > .hint { font-size: 11.5px; color: var(--dim-2); margin-bottom: 18px; }
.cfg-hint { font-size: 10.5px; color: var(--dim-2); margin: 5px 0 0; }
.cfg-hint strong { color: var(--dim); font-weight: 500; }

.acct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.acct .l { display: block; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.acct .v { display: block; font-family: "Geist Mono", monospace; font-size: 15px; margin-top: 7px; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 820px; }
.acct-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.acct-facts .l { display: block; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.acct-facts .v { display: block; font-family: "Geist Mono", monospace; font-size: 13px; margin-top: 6px; word-break: break-all; }
.acct-facts .v.small { font-size: 11.5px; color: var(--dim); }
.dash-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }

.pay-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: pay; display: flex; flex-direction: column; gap: 9px; }
.pay-steps li { counter-increment: pay; display: flex; gap: 10px; font-size: 12px; color: var(--dim); }
.pay-steps li::before { content: counter(pay); flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: "Geist Mono", monospace; font-size: 9px; color: var(--text); }
.pay-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.pay-facts .l { display: block; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.pay-facts .v { display: block; font-family: "Geist Mono", monospace; font-size: 13px; margin-top: 5px; }
.pay-facts .v.small { font-size: 11.5px; color: var(--dim); }

.pay-card { padding: 26px; max-width: 640px; }
.pay-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; padding-bottom: 20px; }
.pay-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); }
.pay-mark .ico { width: 19px; height: 19px; stroke-width: 1.7; }
.pay-mark.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pay-mark.live { color: var(--accent); }
.pay-mark.bad { color: var(--bad); border-color: rgba(255, 107, 107, 0.28); background: rgba(255, 107, 107, 0.06); }
.pay-state { display: inline-flex; align-items: center; gap: 7px; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim-2); }
.pay-state.ok { color: var(--ok); }
.pay-state.live { color: var(--accent); }
.pay-state.bad { color: var(--bad); }
.pay-amount { font-family: "Geist Mono", monospace; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.pay-lead { font-size: 12.5px; color: var(--dim); max-width: 42ch; }
.pay-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
.pay-card .pay-facts { border-top: 1px solid var(--line); padding-top: 16px; }
.pay-note { margin-top: 14px; font-size: 11px; color: var(--dim-2); text-align: center; }
.pay-coupon { display: inline-flex; align-items: center; gap: 5px; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--accent); }
.pay-coupon .ico { width: 12px; height: 12px; }
.pay-card form.pay-foot { margin-top: 16px; }

.news-bar { display: flex; align-items: center; gap: 9px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.news-bar svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }
.news-bar h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; margin: 0; }
.news-count { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.1em; color: var(--dim-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }

.news-list { padding: 18px 18px 4px; display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.news-list::-webkit-scrollbar { width: 6px; }
.news-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.news-list::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
.news-list > .empty { padding: 26px 0 30px; }

.news-item { position: relative; padding: 0 0 20px 20px; }
.news-item::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -4px; width: 1px; background: var(--line); }
.news-item:last-child::before { bottom: auto; height: 12px; }
.news-dot { position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-3); background: var(--surface); }
.news-item:first-child .news-dot { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.news-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.news-item h4 { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.45; color: var(--text); }
.news-item:not(:first-child) h4 { color: rgba(255, 255, 255, 0.86); }
.news-body { font-size: 12.5px; color: var(--dim); font-weight: 300; line-height: 1.7; margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; }
.news-item:first-child .news-body { color: rgba(255, 255, 255, 0.7); }
.news-meta { display: flex; align-items: center; gap: 7px; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim-2); margin-top: 9px; }
.news-meta .sep { color: var(--dim-3); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 17px 18px; }
.kpi .l { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); display: flex; align-items: center; gap: 6px; }
.kpi .l .ico { width: 11px; height: 11px; color: var(--text); stroke-width: 2; }
.kpi .v { font-family: "Geist Mono", monospace; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 7px; }

.attack-form { display: grid; grid-template-columns: 1fr 132px; gap: 12px; }
.attack-form .full { grid-column: span 2; }
.host-input { font-family: "Geist Mono", monospace; font-size: 12.5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-acts { display: flex; gap: 4px; justify-content: flex-end; }
.row-acts form { display: inline-flex; }

/* Configure attack — same board card as Running */
.form-card { overflow: hidden; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.form-title { font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.form-title .ico { width: 12px; height: 12px; color: var(--text); stroke-width: 1.9; }
.form-tag { font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.08em; color: var(--dim-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: none; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.form-tabs { display: flex; gap: 6px; }
.form-tag:hover { color: var(--text); border-color: var(--line-2); }
.form-tag.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.layer-links { display: flex; align-items: baseline; gap: 8px; }
.layer-link { color: var(--dim-2); transition: color 0.15s; }
.layer-link:hover { color: var(--text); }
.layer-link.on { color: var(--accent); }
.layer-hint { margin-bottom: 12px; }
.layer-hint a { color: var(--text); border-bottom: 1px solid var(--line-2); }
[data-layer-pane][hidden] { display: none; }
.form-body { padding: 18px; }
.form-body .alert + .alert, .form-body .alert + .cfg-form { margin-top: 14px; }
.form-body > .alert { margin-bottom: 0; }

.cfg-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cfg-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cfg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfg-row.cfg-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.cfg-label { font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); display: flex; align-items: center; gap: 6px; }
.cfg-label .ico { width: 11px; height: 11px; color: var(--text); stroke-width: 2; }
.cfg-label.spread { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cfg-num { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0; color: var(--dim-2); }
.cfg-num b { font-weight: 600; color: var(--accent); }
.cfg-input { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 300; outline: none; transition: border-color 0.18s; }
.cfg-input::placeholder { color: var(--dim-3); }
.cfg-input:hover { border-color: var(--line-2); }
.cfg-input:focus { border-color: var(--line-3); box-shadow: none; }
select.cfg-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.28)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select.cfg-input option { background: var(--bg-2); color: var(--text); }
.cfg-form .range { margin-top: 1px; }
.submit-btn {
  width: 100%; height: 44px; border: 0; border-radius: 10px;
  background: var(--accent); color: #080a04;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; transition: filter 0.16s, transform 0.12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn .ico { width: 14px; height: 14px; stroke-width: 2; }
.submit-btn:hover { filter: brightness(1.1); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; transform: none; }
.api-link { display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: 12px; color: var(--dim-2); padding: 1px 0 2px; transition: color 0.16s; }
.api-link .ico { width: 12px; height: 12px; color: var(--text); }
.api-link:hover { color: var(--text); }

.range {
  appearance: none; width: 100%; height: 20px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: transparent;
}
.range:focus { outline: none; box-shadow: none; border-color: transparent; }
.range:focus-visible::-webkit-slider-thumb { width: 15px; height: 14px; margin-top: -5px; }
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), rgba(255, 255, 255, 0.14) var(--p, 0%));
}
.range::-webkit-slider-thumb { appearance: none; width: 13px; height: 12px; margin-top: -4px; border: 0; border-radius: 0; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='11.7' y='1.2' width='2.2' height='6' rx='1.1' transform='rotate(14 12.8 4.2)' fill='%23fff'/%3E%3Cellipse cx='12' cy='14.4' rx='9.3' ry='7.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='11.7' y='1.2' width='2.2' height='6' rx='1.1' transform='rotate(14 12.8 4.2)' fill='%23fff'/%3E%3Cellipse cx='12' cy='14.4' rx='9.3' ry='7.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.range::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.range::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.range::-moz-range-thumb { width: 13px; height: 12px; border: 0; border-radius: 0; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='11.7' y='1.2' width='2.2' height='6' rx='1.1' transform='rotate(14 12.8 4.2)' fill='%23fff'/%3E%3Cellipse cx='12' cy='14.4' rx='9.3' ry='7.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Thicker bar: remove `range-thick` in views/panel.ejs to return to the thin one. */
.range-thick { height: 24px; }
.range-thick::-webkit-slider-runnable-track { height: 8px; }
.range-thick::-webkit-slider-thumb { width: 17px; height: 16px; margin-top: -4px; }
.range-thick:focus-visible::-webkit-slider-thumb { width: 19px; height: 18px; margin-top: -5px; }
.range-thick::-moz-range-track, .range-thick::-moz-range-progress { height: 8px; }
.range-thick::-moz-range-thumb { width: 17px; height: 16px; }

/* ---------- custom builder ---------- */
.builder { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.builder-field { display: flex; flex-direction: column; gap: 9px; }
.builder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.builder-head label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.builder-head b { font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 600; color: var(--text); }
.builder-scale { display: flex; justify-content: space-between; font-family: "Geist Mono", monospace; font-size: 10px; color: var(--dim-2); }
.term-tabs { display: flex; gap: 6px; }
.term-tab { flex: 1; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; color: var(--dim); font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.term-tab:hover { color: var(--text); border-color: var(--line-3); }
.term-tab.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.quote { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.quote-line { font-size: 11.5px; color: var(--dim); }
.quote-total { display: flex; align-items: baseline; gap: 8px; }
.quote-total b { font-family: "Geist Mono", monospace; font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.quote-total span { font-size: 11.5px; color: var(--dim-2); }
.quote-note { font-size: 11.5px; color: var(--dim-2); line-height: 1.6; }
.quote-note.bad { color: var(--bad); }
.quote .btn { margin-top: 8px; }
.buy-lead { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.buy-lead b { color: var(--text); }
.modal-acts { display: flex; gap: 8px; }
.modal-acts .btn { flex: 1; }

.meter { display: flex; align-items: center; gap: 7px; font-family: "Geist Mono", monospace; font-size: 10px; color: var(--dim-2); }
.meter .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--accent-grad); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); font-weight: 400; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.host { font-family: "Geist Mono", monospace; font-size: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim-2); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.empty::before { width: 20px; height: 20px; opacity: 0.5; }

.alert[hidden], .badge[hidden], .btn[hidden] { display: none; }

.run-card { overflow: hidden; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.run-title { display: flex; align-items: center; gap: 7px; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.run-title b { font-weight: 500; color: var(--dim-2); }
.run-refresh { display: inline-flex; align-items: center; gap: 6px; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: color 0.18s, border-color 0.18s; }
.run-refresh .ico { width: 11px; height: 11px; color: var(--text); stroke-width: 1.8; }
.run-refresh:hover { color: var(--text); border-color: var(--line-2); }
.run-refresh .ico { transition: transform 0.4s ease; }
.run-refresh:hover svg, .run-refresh.spin svg { transform: rotate(180deg); }

.run-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.run-table th { padding: 10px 12px; text-align: left; font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); border-bottom: 1px solid var(--line); }
.run-table th:first-child { padding-left: 18px; }
.run-table th:nth-child(2) { width: 78px; }
.run-table th:nth-child(3) { width: 68px; }
.run-table th:last-child { width: 44px; padding-right: 18px; }
.run-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--dim); }
.run-table td:first-child { padding-left: 18px; }
.run-table tbody tr:last-child td { border-bottom: 0; }
.run-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.run-host { font-family: "Geist Mono", monospace; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-method { white-space: nowrap; }
.run-time { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--dim-2); white-space: nowrap; }
.run-soon .run-time { color: var(--warn); }
.run-table td.run-cell { padding-right: 18px; text-align: right; }
.run-stop { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255, 107, 107, 0.18); background: rgba(255, 107, 107, 0.05); color: rgba(255, 107, 107, 0.5); cursor: pointer; transition: all 0.18s; }
.run-stop:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.38); color: var(--bad); box-shadow: 0 0 10px rgba(255, 107, 107, 0.12); }
.run-stop .ico { width: 10px; height: 10px; }
.run-empty { padding: 42px 18px; text-align: center; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--dim-3); }
.run-empty::before { display: inline-block; vertical-align: -3px; margin-right: 7px; opacity: 0.7; }
tbody tr { animation: row-in 0.2s ease; }
@keyframes row-in { from { opacity: 0.4; } to { opacity: 1; } }

.code-block { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 15px; font-family: "Geist Mono", monospace; font-size: 11.5px; overflow-x: auto; color: #cfe8a8; line-height: 1.75; white-space: pre; }
.code-block .k { color: var(--accent); }
.code-block .c { color: var(--dim-3); }

/* ---------- modal ---------- */
.modal-bg[hidden] { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; z-index: 100; }
.modal { width: 100%; max-width: 520px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.modal-head h3 .ico { width: 16px; height: 16px; color: var(--accent); }
.x { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--dim); display: grid; place-items: center; }
.x .ico { width: 13px; height: 13px; color: var(--text); stroke-width: 2; }
.x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 12.5px; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.switch { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); cursor: pointer; }
.switch input { appearance: none; width: 34px; height: 19px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); position: relative; cursor: pointer; transition: background 0.18s; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.switch input:checked { background: var(--accent-grad); }
.switch input:checked::after { transform: translateX(15px); }

.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 42px; height: 40px; padding: 3px; border-radius: 8px; border: 1px solid var(--line-2); background: none; cursor: pointer; }
.color-row .input { flex: 1; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.active { border-color: #fff; }

.grad-preview { height: 34px; border-radius: 8px; border: 1px solid var(--line-2); margin-bottom: 10px; background-repeat: no-repeat; background-size: cover; }

.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { padding: 13px 16px; border-radius: 10px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); animation: slide 0.28s ease; max-width: 340px; }
.toast.error { border-color: rgba(255, 107, 107, 0.4); color: #ffc0c0; }
.toast.success { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (min-width: 1081px) { .hide-sm { display: none; } }
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 258px; transform: translateX(-100%); transition: transform 0.24s ease; }
  body.side-open .side { transform: none; }
  .side-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 15; display: none; }
  body.side-open .side-scrim { display: block; }
  .main { padding: 20px 20px 60px; }
  .nav-links { display: none; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .plans-grid, .cap-grid, .grid-3, .seo-grid { grid-template-columns: 1fr; }
  .seo-grid { gap: 24px; }
  .stats { grid-template-columns: repeat(2, auto); gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .attack-form { grid-template-columns: 1fr; }
  .attack-form .full { grid-column: auto; }
  .cfg-row { grid-template-columns: 1fr; }
  .form-body { padding: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .acct { grid-template-columns: 1fr 1fr; }
  .layer-switch { padding: 3px; }
  .layer-switch-tab { padding: 7px 10px; font-size: 9.5px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-facts { grid-template-columns: 1fr; }
  .nav-actions .link { display: none; }
  .hero { padding: 68px 0 52px; }
  .hero h1 { font-size: 32px; }
  .stats { margin-top: 48px; }
  .run-table th:nth-child(2), .run-table td.run-method { display: none; }
  .run-table th:nth-child(3) { width: 60px; }
  .wallet-facts { grid-template-columns: 1fr 1fr; }
  .wallet-facts > div:last-child { grid-column: 1 / -1; }
  .wallet-field { flex-direction: column; }
  .wallet-field .btn { width: 100%; }
  .pay-card { padding: 20px; }
  .pay-amount { font-size: 32px; }
}
