:root{
  --bg:#0b0d10; --card:#12161b; --ink:#e6e7ea; --muted:#a6adbb;
  --accent:#6aa8ff; --accent-2:#74f0c0; --stroke:#1d232c;
  --ok:#79e391; --warn:#ffd479; --err:#ff5c73;
  --focus:0 0 0 3px rgba(106,168,255,.35); --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans";
  background: radial-gradient(1200px 800px at 80% -10%, rgba(116,240,192,.08), transparent 60%), var(--bg);
  color:var(--ink); line-height:1.5;
}

/* Header */
.site-header{max-width:860px;margin:28px auto 0;padding:0 16px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px}
.logo-dot{width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent-2));box-shadow:0 0 18px rgba(116,240,192,.45)}
h1{font-size:20px;margin:0}
.hdr-actions{display:flex;align-items:center;gap:10px}

/* Layout */
.wrap{max-width:860px;margin:22px auto 40px;padding:0 16px}
.card{background:linear-gradient(180deg,#12161b,#101419);border:1px solid var(--stroke);border-radius:var(--radius);padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.card-title{margin:0 0 6px 0;font-size:18px}
.muted{color:var(--muted)} .small{font-size:13px} .tiny{font-size:12px}
.label{display:block;font-size:14px;color:var(--muted);margin:16px 0 6px}

/* Mini info blocks (who/benefits) */
.grid-two{display:grid;grid-template-columns:1fr;gap:12px;margin:12px 0 8px}
@media (min-width:720px){ .grid-two{grid-template-columns:1fr 1fr} }
.mini-h{margin:0 0 6px 0;font-size:13px;color:#cfd6e6}
.mini-list{margin:0;padding-left:16px}
.mini-list li{margin:4px 0}

/* Collapsible */
.collapse-ctl{display:none}
.collapse-body{max-height:520px;overflow:hidden;transition:max-height .25s ease}
.collapse-toggle{
  display:flex;align-items:center;justify-content:center;
  width:100%; gap:8px; cursor:pointer; user-select:none;
  color:var(--muted); font-size:13px; margin:6px 0 10px 0;
}
.collapse-toggle .arrow{
  width:12px;height:12px;display:inline-block;
  border-right:2px solid #7fa7ff;border-bottom:2px solid #7fa7ff;
  transform:rotate(225deg);
  transform-origin:center; transition:transform .2s ease, opacity .2s ease;
}
.collapse-ctl:not(:checked) + .collapse-body + .collapse-toggle .arrow{ transform:rotate(45deg); }
.collapse-ctl:not(:checked) + .collapse-body{max-height:0}

/* Callout note */
.callout{border:1px solid var(--stroke);border-radius:12px;padding:10px 12px;background:#0f1419;margin:10px 0}
.callout.note{border-color:#2b3a4f}
.callout strong{color:#cfe3ff}

/* Inputs / buttons */
.input,.output{width:100%;background:#0e1216;color:var(--ink);border:1px solid #1c232d;border-radius:12px;padding:12px 12px;resize:vertical}
.input:focus,.output:focus{outline:none;box-shadow:var(--focus);border-color:#2a3746}
.toggles{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 4px}
.toggle{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink)}
.toggle input{width:18px;height:18px;accent-color:var(--accent)}
.btn{background:#141a21;border:1px solid #243041;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer}
.btn:hover{border-color:#304055}
.btn.primary{background:linear-gradient(180deg,#1a2330,#141a21);border-color:#2b3a4f}
.btn.subtle{opacity:.9}
.btn.icon{padding:6px 9px;border-radius:8px}
.result-actions{display:flex;gap:10px;margin-top:10px}

/* Status */
.status{margin-top:6px;font-size:14px}
.status.ok{color:#79e391} .status.warn{color:#ffd479} .status.err{color:#ff5c73}

/* Summary */
.smt-summary{margin-top:6px; padding:6px 10px; border:1px dashed #2b3a4f; border-radius:10px}

/* Ultra-clean table + anti-copy */
.tbl-wrap{margin-top:10px; overflow:auto; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;}
.tbl{
  width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed;
}
.tbl thead th{
  text-align:left; font-weight:600; font-size:13px; color:#cfd6e6;
  background:#0f1419; border:1px solid var(--stroke); border-bottom:none;
  padding:12px 14px; line-height:1.4;
}
.tbl thead th:nth-child(1){ width:120px; }
.tbl thead th:nth-child(2){ width:160px; }
.tbl thead th:nth-child(3){ width:auto; }
.tbl tbody td{
  border:1px solid var(--stroke); border-top:none; padding:12px 14px; line-height:1.55;
  vertical-align:top; background:#0c1015; word-wrap:break-word;
}
.tbl tbody tr:first-child td{ border-top:1px solid var(--stroke) }
.tbl code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13.5px; line-height:1.6; white-space:normal; overflow-wrap:anywhere; word-break:break-word;
}
.tbl tbody tr:nth-child(odd) td{ background:#0d1218; }
.tbl tbody tr:hover td{ background:#10161d; }
.tbl .badge-net{ display:inline-block; padding:2px 8px; border-radius:999px; border:1px solid #2b3a4f; font-size:12px; color:#cfe3ff; background:#0f1419; }
.dim{opacity:.7}

/* Supported networks strip */
.net-strip{ margin:16px 0 10px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.net-title{ color:#cfd6e6; font-size:12.5px; margin-right:4px; }
.net-badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  border:1px solid #2b3a4f; background:#0f1419; color:#cfe3ff; font-size:12.5px; text-decoration:none;
}
.net-badge:hover{ border-color:#3a4e6a; }

/* Info button + tooltip */
.i-tip{
  margin-left:6px; width:18px; height:18px; border-radius:50%;
  border:1px solid #2b3a4f; background:#0f1419; color:#cfe3ff;
  font-size:12px; line-height:16px; text-align:center; cursor:pointer;
}
.i-tip:hover{ border-color:#3a4e6a; }
.i-tip:focus{ outline:none; box-shadow:var(--focus); }
.tip-pop{
  will-change: top, left;
  touch-action: manipulation;
  position:fixed; z-index:9999; max-width:280px;
  background:#0f1419; color:#e6e7ea; border:1px solid #2b3a4f; border-radius:10px;
  padding:10px 12px; box-shadow:0 10px 30px rgba(0,0,0,.45);
  font-size:12.5px; line-height:1.45;
  display:none;
}

/* Footer */
.foot{margin-top:16px;text-align:center;font-size:13px}

/* --- Mobile readability for long URLs in Result column --- */
@media (max-width: 720px){
  .tbl{ table-layout:auto; }
  .tbl thead th:nth-child(1){ width:84px; }
  .tbl thead th:nth-child(2){ width:110px; }
  .tbl tbody td{ padding:10px 10px; }
  .tbl tbody td:nth-child(3),
  .tbl tbody td:nth-child(3) code{
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    hyphens:auto;
  }
  .tbl-wrap{ overflow-x:hidden; }
}

/* ==================== MODAL & PRICING (NOVO) ==================== */
.modal-overlay{
  position:fixed; inset:0; z-index:10000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn{ from{ opacity:0 } to{ opacity:1 } }

.modal{
  width:min(880px, 94vw);
  background:linear-gradient(180deg,#12161b,#101419);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  padding:16px;
  transform:translateY(6px);
  animation: slideUp .18s ease-out;
}
@keyframes slideUp{ from{ transform:translateY(16px); opacity:.98 } to{ transform:translateY(0); opacity:1 } }

.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:8px;
}
.modal-head h3{ margin:0; font-size:18px }
.btn.icon{ background:#141a21; border:1px solid #243041; color:#cfe3ff }
.btn.icon:hover{ border-color:#304055 }

/* Pricing grid */
.pricing-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:720px){
  .pricing-grid{ grid-template-columns:repeat(3, 1fr); }
}

/* Plan card */
.plan-card{
  text-align:left;
  background:linear-gradient(180deg,#141923,#10141a);
  border:1px solid #263140;
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  color:inherit;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  position:relative;
}
.plan-card:hover{
  transform: translateY(-2px);
  border-color:#35507a;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.plan-card:focus{ outline:none; box-shadow:var(--focus) }

.plan-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px;
}
.plan-name{ font-weight:700; letter-spacing:.2px }
.pill{
  display:inline-block; padding:4px 8px; font-size:12px; border-radius:999px;
  background:#0f1419; border:1px solid #2b3a4f; color:#cfe3ff;
}
.price{
  font-size:22px; font-weight:800; letter-spacing:.3px; margin:4px 0 8px;
}
.plan-list{ margin:0 0 10px 16px; padding:0; font-size:13px; color:#cbd6ee }
.plan-list li{ margin:4px 0 }
.plan-cta{
  text-align:center; font-weight:600; padding:10px 12px; border-radius:10px;
  border:1px solid #2b3a4f; background:#0f1419;
}
.plan-card:hover .plan-cta{ border-color:#3a4e6a }

/* Popular ribbon na PRO */
.plan-card.popular{ border-color:#40619b; }
.top-ribbon{
  position:absolute; top:10px; right:10px;
  font-size:11.5px; padding:4px 8px; border-radius:999px;
  color:#0d1320; background:linear-gradient(135deg,#6aa8ff,#74f0c0);
  font-weight:700; letter-spacing:.2px;
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce){
  .modal-overlay, .modal, .plan-card{ animation:none; transition:none }
}
