:root {
  --bg: #0f1115; --bg2: #161a22; --bg3: #1e232e; --line: #2a303c;
  --text: #e6e9ef; --muted: #8b93a5; --accent: #fe2c55; --accent2: #25f4ee; --gold: #f5c542; --green: #3ddc84;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.grow { flex: 1; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg3); padding: 1px 6px; border-radius: 5px; }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; color: #000; font-weight: 800; font-size: 13px; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--text); font-weight: 500; }
.top nav a:hover { color: var(--accent2); }
.nav-user { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; }
.nav-user img { width: 26px; height: 26px; border-radius: 50%; }

.page { max-width: 1040px; margin: 0 auto; padding: 32px 24px 60px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--bg3); color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 30px 0 50px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent2); background: #12313a; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.card-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border-radius: 10px; margin-bottom: 8px; }
.card-row .muted { margin-left: auto; font-size: 12.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.card-foot { color: var(--muted); font-size: 13px; padding: 6px 4px 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 50px; }
.feat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feat h3 { margin: 0 0 8px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing { display: flex; justify-content: center; margin-bottom: 50px; }
.price-card { width: 100%; max-width: 440px; background: var(--bg2); border: 1px solid var(--accent); border-radius: 16px; padding: 24px; box-shadow: 0 0 0 4px rgba(254,44,85,.12); }
.price-head { font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.price-value { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.price-value span:first-child { font-size: 44px; font-weight: 800; color: var(--gold); }
.price-card ul { margin: 0 0 18px; padding-left: 20px; color: var(--text); }
.price-card li { margin-bottom: 6px; }

.howto h2 { margin: 0 0 12px; }
.howto ol { color: var(--text); }
.howto li { margin-bottom: 6px; }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg3); }
.profile-head h1 { margin: 0; font-size: 24px; }
.notice { background: #1a2a1f; border: 1px solid #2c5a3a; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.notice.warn { background: #2a2418; border-color: #6b4a1a; }
.notice.err { background: #2a1a20; border-color: #6b1a2c; }
.block { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.block-head h2 { margin: 0; font-size: 18px; }
.keys { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.key { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.key .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.key .name input { background: transparent; border: 1px solid transparent; color: var(--text); font: inherit; font-weight: 600; padding: 3px 6px; border-radius: 6px; min-width: 200px; }
.key .name input:focus { border-color: var(--accent2); outline: 0; background: var(--bg2); }
.key .val { grid-column: 1 / -1; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--green); background: var(--bg2); padding: 8px 10px; border-radius: 8px; cursor: pointer; word-break: break-all; user-select: all; }
.key .val:hover { outline: 1px solid var(--accent2); }
.key .meta { color: var(--muted); font-size: 12.5px; }
.key.off .val { color: var(--muted); text-decoration: line-through; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--line); margin-left: 4px; }
.badge.ok { background: #1a4a3b; color: var(--green); }
.badge.pend { background: #4a3a1a; color: var(--gold); }
.badge.bad { background: #4a1a26; color: #ff8fa3; }
.empty { color: var(--muted); padding: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: 100%; max-width: 420px; }
.modal-box h3 { margin: 0 0 6px; }
.providers { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.provider { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.provider:hover { border-color: var(--accent2); }
.provider b { font-size: 15px; }
.provider span { color: var(--muted); font-size: 12.5px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 28px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .features { grid-template-columns: 1fr 1fr; }
  .top nav a:not(:last-child) { display: none; }
}

[hidden] { display: none !important; }

/* --- vitrine com fotos --- */
.card-row .pic { width: 34px; height: 34px; border-radius: 50%; background: var(--line); flex: none; position: relative; overflow: visible; }
.card-row .pic img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.card-row .pic .st { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg3); }
.card-row .pic .st.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.card-row .who { display: flex; flex-direction: column; line-height: 1.2; }
.card-row .who small { color: var(--muted); font-weight: 400; font-size: 12px; }
.card-row.live { border: 1px solid #1f4a3b; }

/* --- documentação da API --- */
.apidocs { margin-top: 50px; }
.apidocs h3 { font-size: 15px; margin: 18px 0 8px; }
.api-table td:first-child { white-space: nowrap; }
.api-table code { white-space: nowrap; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.examples pre { margin: 0; height: 100%; }
.rules { padding-left: 20px; }
.rules li { margin-bottom: 4px; }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }

.linkbtn { background: none; border: 0; color: var(--accent2); cursor: pointer; font: inherit; font-size: 12.5px; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* --- barra de rolagem e refinamentos --- */
* { scrollbar-width: thin; scrollbar-color: #3a4252 var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #fe2c55, #25f4ee); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
html { scroll-behavior: smooth; }
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(254,44,85,.12), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(37,244,238,.10), transparent 60%), var(--bg); }
.top { backdrop-filter: blur(10px); background: rgba(22,26,34,.85); }
.btn { transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; box-shadow: 0 6px 20px rgba(254,44,85,.25); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent2); }
.feat, .block, .price-card, .hero-card { transition: border-color .15s ease, transform .15s ease; }
.feat:hover { border-color: #3a4252; transform: translateY(-2px); }
.price-card { background: linear-gradient(180deg, #1a1e28, var(--bg2)); }
.price-card ul li::marker { color: var(--accent2); }
.hero-card { background: linear-gradient(180deg, #1a1e28, var(--bg2)); }
.card-row { transition: background .15s ease; }
.card-row:hover { background: #242a37; }
.card-row.live { background: #172a24; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }
.foot { background: var(--bg2); }
pre { box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.keys .key { transition: border-color .15s ease; }
.keys .key:hover { border-color: #3a4252; }
.howto h2, .apidocs h2 { display: flex; align-items: center; gap: 10px; }
.howto h2::before, .apidocs h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent2)); }
