:root {
    color-scheme: dark;
    --bg: #0a0a0b;
    --surface: #121214;
    --surface-2: #17171a;
    --line: #1f1f23;
    --line-2: #2a2a30;
    --text: #f4f4f5;
    --muted: #8b8b94;
    --accent: #8b5cf6;
    --accent-soft: #a78bfa;
    --accent-2: #7c3aed;
    --accent-strong: #6d28d9;
    --success: #22c55e;
    --danger: #ff6b81;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* FocusOnNavigate focuses the page <h1> (tabindex="-1") on every navigation; hide that
   programmatic focus ring. Safe: tabindex="-1" elements never receive keyboard focus. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1100px 460px at 50% -10%, rgba(139,92,246,.10), transparent 62%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
main { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(10,10,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, var(--accent), var(--accent-strong)); box-shadow: 0 0 28px rgba(124,58,237,.28); font-size: .9rem; letter-spacing: 0; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: .92rem; }
nav a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-actions > * { display: flex; align-items: center; gap: 10px; }
.nav-login, .nav-dashboard, .logout-form button { padding: 10px 13px; color: var(--muted); font: inherit; background: none; border: 0; cursor: pointer; }
.nav-register { padding: 10px 15px; border-radius: 9px; background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 700; }
.nav-register:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.logout-form { margin: 0; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 84px 0 72px; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: .98; }
.hero-status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.hero-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { font-size: clamp(3.3rem, 7.8vw, 7rem); line-height: .94; letter-spacing: -.07em; margin: 24px 0; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.28rem); line-height: 1.7; max-width: 720px; }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.button { border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; font-weight: 700; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(139,92,246,.26); }
.primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.secondary { background: var(--surface); border-color: var(--line-2); }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button.discord { display: flex; align-items: center; justify-content: center; gap: 10px; background: #5865f2; border-color: #5865f2; color: #fff; text-align: center; box-shadow: 0 10px 28px rgba(88,101,242,.26); }
.button.discord:hover { background: #4752c4; border-color: #4752c4; }
.button.discord svg { flex: 0 0 auto; }
.account-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.account-or::before, .account-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.saque-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.saque-row:last-child { border-bottom: 0; }
.saque-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.saque-pix { flex: 1; min-width: 180px; }
.saque-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.saque-actions input { flex: 1; min-width: 180px; padding: 10px 12px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.saque-actions .button { padding: 10px 16px; }
.saque-note { margin: 10px 0 0; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 48px; color: #c4c5ce; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-proof span::before { content: "✓"; color: var(--accent); margin-right: 7px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s ease, transform .15s ease; }
.features article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.features span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 10px; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.22); color: var(--accent-soft); font-family: ui-monospace, monospace; font-size: .82rem; font-weight: 700; }
.features h2 { font-size: 1.12rem; margin: 0 0 8px; }
h2 { font-size: 1.45rem; margin: 24px 0 12px; }
.features p, .security-card > p { color: var(--muted); line-height: 1.65; }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.process-section { padding: 110px 0 40px; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.process-grid article { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 34px 26px 34px 0; border-bottom: 1px solid var(--line); }
.process-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.process-grid article:nth-child(even) { padding-left: 34px; }
.process-grid strong { color: var(--accent); font-family: ui-monospace, monospace; }
.process-grid h3 { margin: 0 0 8px; font-size: 1.1rem; }
.process-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.security-card { margin: 90px 0; padding: 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.security-card h2 { font-size: 2rem; letter-spacing: -.03em; }
.security-list p { color: var(--muted); line-height: 1.65; }
.developer-section { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: center; margin: 50px 0 100px; padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.developer-section h2 { font-size: 2rem; margin: 12px 0; }
.developer-section p { color: var(--muted); line-height: 1.6; }
.developer-section pre { margin: 0; padding: 20px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #0a0a0b; color: #c4b5fd; }
.final-cta { margin: 80px 0 110px; padding: 70px 30px; text-align: center; border-radius: 20px; background: radial-gradient(640px 320px at 50% 125%, rgba(139,92,246,.20), transparent 62%), var(--surface); border: 1px solid var(--line); }
.final-cta h2 { max-width: 760px; margin: 18px auto; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.final-cta p:not(.eyebrow) { max-width: 660px; margin: 0 auto 30px; color: var(--muted); line-height: 1.6; }

/* Hero product preview (stylized dashboard window) */
.hero-preview { position: relative; perspective: 1500px; }
.preview-window { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0d0d0f; box-shadow: 0 44px 110px rgba(0,0,0,.65), 0 0 80px rgba(139,92,246,.10); transform: rotateY(-10deg) rotateX(4deg); transform-style: preserve-3d; }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #161618; border-bottom: 1px solid var(--line); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c33; }
.preview-bar em { margin-left: 12px; font-style: normal; font-size: .72rem; color: var(--muted); }
.preview-body { display: grid; grid-template-columns: 78px 1fr; min-height: 304px; }
.preview-side { padding: 14px 10px; background: #0b0b0d; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.preview-logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, var(--accent-soft), var(--accent-strong)); margin-bottom: 4px; }
.preview-nav { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); }
.preview-nav.on { background: rgba(139,92,246,.6); }
.preview-main { padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-stats i { position: relative; height: 50px; border-radius: 9px; border: 1px solid var(--line); background: #161618; }
.preview-stats i::before { content: ""; position: absolute; left: 10px; top: 11px; width: 46%; height: 11px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), transparent); }
.preview-cards { display: grid; gap: 10px; }
.preview-cards u { position: relative; display: block; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #161618; }
.preview-cards u::after { content: ""; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 24px; height: 13px; border-radius: 7px; background: rgba(139,92,246,.55); }

/* Metrics strip (honest platform stats, not fabricated counts) */
.metrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.metrics-strip div { padding: 26px 22px; background: var(--surface); text-align: center; }
.metrics-strip strong { display: block; margin-bottom: 4px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metrics-strip span { color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; background: rgba(8,6,12,.55); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.35fr 2fr; gap: 44px; }
.footer-brand .brand { font-size: 1.15rem; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 300px; line-height: 1.6; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.footer-cols a { display: block; padding: 5px 0; color: #c9cad2; font-size: .9rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Promo bar */
.promo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: rgba(139,92,246,.10); border-bottom: 1px solid var(--line); color: var(--text); font-size: .84rem; text-align: center; }
.promo-bar a { color: var(--accent-soft); font-weight: 700; }
.promo-bar .promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex-shrink: 0; }

/* Hero floating activity cards (EaseBot-style live feed) */
.activity-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(18,18,20,.92); box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 3; animation: float-card 4s ease-in-out infinite; }
.activity-card .ac-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-size: .95rem; }
.activity-card strong { display: block; font-size: .82rem; color: var(--text); }
.activity-card span { color: var(--muted); font-size: .72rem; }
.activity-1 { top: -16px; left: -26px; animation-delay: 0s; }
.activity-2 { bottom: -20px; right: -22px; animation-delay: 1.4s; }
.ac-green { background: rgba(34,197,94,.14); color: #4ade80; }
.ac-purple { background: rgba(139,92,246,.16); color: var(--accent-soft); }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Features section spacing + FAQ accordion */
.features-wrap { padding: 90px 0 20px; }
.faq-section { padding: 96px 0 40px; }
.faq-list { display: grid; gap: 12px; max-width: 840px; margin-top: 36px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-soft); font-size: 1.35rem; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.65; }

/* Legal pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: 64px 0 100px; }
.legal-head { margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-head .back-link { margin-bottom: 22px; }
.legal-head h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); letter-spacing: -.04em; margin: 10px 0 12px; }
.legal-updated { color: var(--muted); font-size: .88rem; }
.legal-page h2 { font-size: 1.22rem; margin: 40px 0 10px; color: var(--text); }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.75; font-size: .96rem; }
.legal-page ul { padding-left: 20px; display: grid; gap: 7px; margin: 12px 0; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { color: var(--accent-soft); }
.legal-toc { margin: 8px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--muted); font-size: .9rem; }
.legal-toc a:hover { color: var(--accent-soft); }
.legal-note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .86rem; line-height: 1.6; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--accent-soft); }

/* Pricing */
.pricing-section { padding: 96px 0 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 40px auto 0; }
.price-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 64px rgba(139,92,246,.14); }
.price-badge { position: absolute; top: -12px; left: 32px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.price-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.price-tag { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 6px; }
.price-tag .cur { font-size: 1.15rem; color: var(--muted); font-weight: 600; }
.price-tag .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.price-tag .per { color: var(--muted); font-size: .9rem; }
.price-desc { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0 0 22px; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; color: #d4d4d8; font-size: .9rem; line-height: 1.45; }
.price-features li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }
.price-features li.off { color: var(--muted); }
.price-features li.off::before { content: "–"; color: var(--muted); }
.price-card .button { width: 100%; margin-top: auto; text-align: center; }
.pricing-note { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 26px; }

/* Admin dashboard: lives in the customer-panel frame (.zb-app, panel.css); .zb-admin repaints the admin
   pages' --app-* palette with the site's (pure black, neutral greys, white primary buttons). */
.zb-admin {
    --app-bg: #000; --app-sidebar: #000; --app-card: #0a0a0b; --app-card-2: #111113;
    --app-line: rgba(255,255,255,.08); --app-line-2: rgba(255,255,255,.14);
    --app-text: #fff; --app-muted: #a1a1aa; --app-muted-2: #71717a;
}
.zb-admin .admin-main { max-width: 1280px; }
.zb-admin-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--zb-line); border-radius: 10px; background: var(--zb-card); color: var(--zb-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.zb-app .zb-admin-badge svg { width: 15px; height: 15px; color: #fff; }
.zb-admin .page-head { margin-bottom: 28px; }
.zb-admin .page-title { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.zb-admin .page-sub { color: var(--app-muted-2); font-size: 14px; }
.zb-admin .card { padding: 24px; border-radius: 18px; }
.zb-admin .card-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.zb-admin .card-sub { color: var(--app-muted-2); font-size: 13px; }
.zb-admin .stat { padding: 20px; border-radius: 16px; }
.zb-admin .stat-ico { background: var(--app-card-2) !important; border: 1px solid var(--app-line); color: #fff !important; }
.zb-admin .stat small { color: var(--app-muted-2); font-size: 12.5px; }
.zb-admin .stat strong { font-size: 28px; font-weight: 700; }
.zb-admin .table-head { color: var(--app-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.zb-admin .table-row { font-size: 14px; }
.zb-admin .button { border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: none; }
.zb-admin .button.primary { background: #fff; border-color: #fff; color: #000; }
.zb-admin .page-head .button { white-space: nowrap; padding: 11px 18px; }
.zb-admin .button.primary:hover { background: #e4e4e7; border-color: #e4e4e7; }
.zb-admin .app-content input:not([type="checkbox"]):not([type="radio"]),
.zb-admin .app-content textarea,
.zb-admin .app-content select,
.zb-admin .account-form input:not([type="checkbox"]) { background-color: var(--app-card-2); border: 1px solid var(--app-line-2); border-radius: 10px; color: #fff; }
.zb-admin .app-content input:focus, .zb-admin .app-content textarea:focus, .zb-admin .app-content select:focus,
.zb-admin .account-form input:focus { border-color: rgba(255,255,255,.35); box-shadow: none; }
.zb-admin .account-form label:not(.checkbox-row):not(.switch-row) > span { color: var(--app-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.zb-admin .count-chip { background: var(--app-card-2); }
.admin-mini { display: grid; gap: 10px; margin-top: 4px; }
.admin-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-mini-row strong { font-size: 1.15rem; }
.admin-cta { display: flex; width: fit-content; margin-top: 18px; }
.admin-note { margin: 16px 0 0; color: var(--app-muted); font-size: .82rem; }
.admin-note code { background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.status-pill.violet { color: #c4b5fd; border-color: rgba(139,92,246,.32); background: rgba(139,92,246,.12); }
.admin-table-cust .table-head, .admin-table-cust .table-row { grid-template-columns: 1.6fr 1.8fr .9fr .7fr .8fr; }
.admin-table-cust .table-row-link { border-radius: 10px; cursor: pointer; }
.cust-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 0 6px; padding: 6px 6px 6px 14px; border: 1px solid var(--app-line-2); border-radius: 14px; background: var(--app-card); color: var(--app-muted-2); }
.cust-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.zb-admin .app-content .cust-search input[type="search"] { flex: 1; min-width: 0; padding: 8px 4px; border: 0; background: transparent; box-shadow: none; color: #fff; font: inherit; font-size: 14px; outline: none; }
/* Clientes: Todos / Sem taxa. */
.cust-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.cust-tabs a { padding: 7px 14px; border: 1px solid var(--app-line-2); border-radius: 999px; color: var(--app-muted); font-size: .82rem; font-weight: 600; text-decoration: none; }
.cust-tabs a:hover { color: #fff; }
.cust-tabs a[aria-current="page"] { color: #fff; border-color: rgba(81,216,138,.45); background: rgba(81,216,138,.1); }
/* Estoque › one application (/admin/bots/{id}). */
.app-detail-head { display: grid; gap: 14px; }
.app-detail-head .back-link { margin-bottom: 0; }
.app-detail-title { display: flex; align-items: center; gap: 16px; }
.app-detail-title img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.06); }
.app-detail-title .page-sub code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: .9em; }
.app-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.app-detail-grid > .card { margin: 0; }
.admin-table-applist .table-head, .admin-table-applist .table-row { grid-template-columns: 1.6fr 1.3fr 1fr .8fr 1fr; }
.admin-table-applist .inv-app > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.app-renamed { color: #fbbf24; font-size: 12px; }
.app-identity { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.app-identity img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.06); object-fit: cover; }
.app-identity > div { display: grid; gap: 3px; min-width: 0; }
.app-identity strong { font-size: 16px; overflow-wrap: anywhere; }
.app-identity-form { display: grid; gap: 12px; }
.app-identity-form .form-actions { position: static; padding: 0; background: none; }
.zb-admin .app-content .app-identity-form input[type="file"] { padding: 9px 10px; font: inherit; font-size: 13px; color: var(--app-muted); }
.app-kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 16px; margin: 4px 0 0; font-size: 14px; }
.app-kv dt { color: var(--app-muted-2); }
.app-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.app-kv dd a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.app-kv-warn { color: #fbbf24; }
.app-kv-small { margin-top: 18px; font-size: 13px; }
.app-detail-actions, .app-detail-links { flex-wrap: wrap; margin-top: 18px; }
.app-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; color: var(--app-muted); font-size: 13.5px; line-height: 1.5; }
.app-check .inv-chip { flex-shrink: 0; }
.app-detail-copy { margin-top: 12px; }
.zb-admin .app-content .app-detail-form { display: flex; gap: 8px; margin-top: 4px; }
.zb-admin .app-content .app-detail-form input:not([type="hidden"]) { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px; }
a.stat-foot { color: var(--app-muted); text-decoration: underline; text-underline-offset: 3px; }
/* The whole row of the inventory opens the application's page; the links inside still work. */
.inv-row-link { position: relative; cursor: pointer; }
.inv-row-link:hover { background: rgba(255,255,255,.03); }
.inv-go { display: inline-flex; color: var(--app-muted); }
.inv-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-row-link:hover .inv-go { color: var(--app-text); }
.inv-row-link .inv-open { position: absolute; inset: 0; z-index: 0; border-radius: 10px; }
.inv-row-link > span { position: relative; z-index: 1; pointer-events: none; }
.inv-row-link > span a, .inv-row-link > span button, .inv-row-link > span form, .inv-row-link > span input { pointer-events: auto; }
@media (max-width: 1000px) { .app-detail-grid { grid-template-columns: 1fr; } }

/* Verificados OAuth (/admin/verificados). */
.oauth-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.zb-admin .app-content .oauth-filters label.cust-search { display: flex; flex: 1 1 300px; gap: 8px; max-width: none; margin: 0; font-weight: 400; }
.zb-admin .app-content .oauth-filters select { flex: 0 1 210px; width: auto; min-width: 160px; padding: 10px 12px; font: inherit; font-size: 13.5px; }
.oauth-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.oauth-grid > .card { margin: 0; }
.oauth-apps .table-head, .oauth-apps .table-row { grid-template-columns: 1.5fr 1.2fr 1.4fr .5fr .5fr 1.1fr; }
.oauth-members .table-head, .oauth-members .table-row { grid-template-columns: 1.6fr 1.3fr 1.4fr 1fr 1fr .9fr .9fr; }
.oauth-cell { display: grid; gap: 2px; min-width: 0; }
.oauth-cell > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-cell small, .oauth-sub { color: var(--app-muted-2); font-size: 12px; }
.oauth-cell a { color: inherit; text-decoration: none; }
.oauth-cell a:hover { text-decoration: underline; }
.oauth-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oauth-user img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.06); }
.oauth-bars { display: grid; gap: 12px; }
.oauth-bar { display: grid; gap: 6px; }
.oauth-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.oauth-bar-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-bar progress { width: 100%; height: 6px; border: 0; border-radius: 99px; background: rgba(255,255,255,.07); appearance: none; overflow: hidden; }
.oauth-bar progress::-webkit-progress-bar { background: rgba(255,255,255,.07); border-radius: 99px; }
.oauth-bar progress::-webkit-progress-value { background: #fff; border-radius: 99px; }
.oauth-bar progress::-moz-progress-bar { background: #fff; border-radius: 99px; }
.oauth-h3 { margin: 22px 0 10px; color: var(--app-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.oauth-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
@media (max-width: 1100px) { .oauth-grid { grid-template-columns: 1fr; } }

/* Cliente: the application card on top of the profile. */
.app-give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.app-give-grid > form { margin: 0; }
.app-give-grid .form-actions { position: static; background: none; padding-bottom: 0; }
.app-give-grid h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.app-give-or { margin: 0 0 12px; color: var(--app-muted-2); font-size: 12.5px; }
@media (max-width: 900px) { .app-give-grid { grid-template-columns: 1fr; } }
/* Admin › Cliente › Definir aplicação: the plan, its add-ons and the months. */
.grant-form { display: grid; gap: 16px; }
.grant-form .form-actions { position: static; background: none; padding-bottom: 0; }
.grant-block { display: grid; gap: 8px; }
.grant-label { color: var(--app-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.grant-label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.grant-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
/* The form's text-field look (.account-form input) is for typing, not for the plan's radio buttons. */
.zb-admin .account-form .grant-options input[type="radio"] { width: auto; padding: 0; margin-top: 3px; background: none; border: 0; border-radius: 0; accent-color: var(--accent-2); }
.grant-months { max-width: 240px; }
.grant-config { max-width: 520px; }
.grant-config small { display: block; margin-top: 6px; font-size: 12px; }
.app-pick-search { margin-bottom: 10px; }
.inv-confirm { font-size: 12.5px; white-space: nowrap; }
.app-pick-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.app-pick-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card-2); }
.app-pick-item img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.06); }
.app-pick-meta { display: grid; gap: 2px; flex: 1; min-width: 0; }
.app-pick-meta strong { font-size: 14px; }
.app-pick-meta small { color: var(--app-muted-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-pick-meta .inv-checks { margin-top: 4px; }
.zb-admin .app-pick-give { background: #fff; border-color: #fff; color: #000; }
.zb-admin .app-pick-give:hover { background: #e4e4e7; border-color: #e4e4e7; }
.app-pick-item.is-used { opacity: .7; }
/* "Dias de uso" next to "Dar" and on the client's bots: a small number box (blank = no end date). */
.days-input { width: 78px; padding: 7px 9px; border: 1px solid var(--app-line-2); border-radius: 8px; background: var(--app-card-2); color: #fff; font: inherit; font-size: .82rem; }
.days-input:focus { outline: none; border-color: rgba(255,255,255,.35); }
.app-pick-item .inline-form, .bot-access-form { display: flex; align-items: center; gap: 6px; }
.bot-access { display: block; margin-top: 4px; color: #fbbf24; font-size: 12px; }
.app-pick-owner { flex-shrink: 0; color: var(--app-muted); font-size: 12.5px; text-decoration: none; }
a.app-pick-owner:hover { color: #fff; text-decoration: underline; }
.app-pick-used { margin-top: 12px; }
.app-pick-used summary { cursor: pointer; color: var(--app-muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.admin-table-inv .table-head, .admin-table-inv .table-row { grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr; }
/* MED: the application the case came from, and the sale (product, buyer, value). */
.admin-table-med .table-head, .admin-table-med .table-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr) .8fr 1fr .9fr; align-items: start; }
.admin-table-medapp .table-head, .admin-table-medapp .table-row { grid-template-columns: minmax(0, 2fr) .7fr .7fr 1fr; }
.admin-table-bots .table-head, .admin-table-bots .table-row { grid-template-columns: 1.6fr .9fr .8fr 1.9fr 76px auto; align-items: center; }
/* Admin › Estoque: how long an application with a customer has before it goes back to the stock. */
.inv-left { color: var(--app-text); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.inv-left.is-forever { font-size: 1.25rem; line-height: 1; }
/* --- Admin › Estoque: application checks, redirect link, batch import --- */
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.inv-grid .card { height: 100%; }
.inv-grid .form-actions { position: static; background: none; padding-bottom: 0; }
@media (max-width: 900px) { .inv-grid { grid-template-columns: 1fr; } }
.inv-copy { display: flex; gap: 8px; }
.inv-copy input { flex: 1; min-width: 0; padding: 10px 12px; color: var(--app-text); background: #050407; border: 1px solid var(--app-line-2); border-radius: 8px; font: inherit; font-size: .88rem; }
.inv-copy .compact-button.is-copied, .inv-link-btn.is-copied { color: #4ade80; border-color: rgba(34,197,94,.4); }
.inv-batch { width: 100%; min-height: 150px; resize: vertical; padding: 12px 14px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 9px; outline: none; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; line-height: 1.6; }
.inv-batch:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.inv-batch::placeholder { color: #5b5b66; }
.inv-app { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inv-app img { width: 32px; height: 32px; border-radius: 50%; flex: none; background: rgba(255,255,255,.06); }
.inv-app > span { display: grid; min-width: 0; }
.inv-app small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-checks { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.inv-chip { padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid var(--app-line-2); color: var(--app-muted); }
.inv-chip.ok { color: #6ee7a0; border-color: rgba(81,216,138,.3); background: rgba(81,216,138,.08); }
.inv-chip.ok::before { content: "✓ "; }
.inv-chip.bad { color: #ff95a5; border-color: rgba(255,124,145,.3); background: rgba(255,124,145,.08); }
.inv-chip.bad::before { content: "✕ "; }
.inv-chip.warn { color: #e8c565; border-color: rgba(232,185,73,.4); background: rgba(232,185,73,.08); }
.inv-chip.warn::before { content: "! "; }
.inv-hint { flex-basis: 100%; font-size: .76rem; color: #e8c565; }
.inv-hint.ok { color: #6ee7a0; }
.inv-link-btn { padding: 0 6px; border: 1px solid rgba(232,185,73,.4); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.inv-row-hl { background: rgba(139,92,246,.07); }
.inv-fail-list { margin: 6px 0 0; padding-left: 18px; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions .inline-form { min-width: 0; }
.admin-extras-picker { position: relative; }
.admin-extras-picker summary { list-style: none; }
.admin-extras-picker summary::-webkit-details-marker { display: none; }
.admin-extras-options { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 40px)); max-height: 320px; overflow: auto; padding: 12px; border: 1px solid var(--app-line-2); border-radius: 10px; background: #111113; box-shadow: 0 8px 24px #0008; }
.admin-extras-option { display: grid; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--app-line-2); overflow-wrap: anywhere; }
.admin-extras-option:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-extras-option small { display: block; }
.zb-admin .admin-extras-option .inline-form { flex-flow: row wrap; }
.zb-admin .admin-extras-option .button { padding: 6px 10px; }
@media (max-width: 760px) { .admin-extras-options { right: auto; left: 0; } }
.admin-main a.compact-button { text-decoration: none; display: inline-block; }

/* --- Admin: clickable rows, customer detail & finance --- */
.table-row-link { color: inherit; }
.table-row-link:hover { background: rgba(255,255,255,.03); }
.inline-form { margin: 0; }
.admin-main .compact-button { padding: 7px 12px; border: 1px solid var(--app-line-2); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--app-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.admin-main .compact-button:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
/* A button that isn't available yet (its title says when it will be). */
.admin-main .compact-button.is-disabled, .admin-main .compact-button.is-disabled:hover { opacity: .45; cursor: not-allowed; background: rgba(255,255,255,.04); border-color: var(--app-line-2); }
.admin-main .btn-warn { border-color: rgba(232,185,73,.5); color: #e8c565; background: rgba(232,185,73,.08); }
.admin-main .btn-warn:hover { background: rgba(232,185,73,.16); border-color: rgba(232,185,73,.65); }
/* After .compact-button, like .btn-warn: a red compact button ("Remover", "Confirmar") keeps its color. */
.admin-main .btn-danger { border-color: rgba(239,96,96,.55); color: #f08a8a; background: rgba(239,96,96,.1); }
.admin-main .btn-danger:hover { background: rgba(239,96,96,.18); border-color: rgba(239,96,96,.7); }
.mini-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; border: 1px solid var(--app-line-2); color: var(--app-muted); vertical-align: middle; }
.mini-pill.ok { color: #6ee7a0; border-color: rgba(81,216,138,.3); background: rgba(81,216,138,.08); }
.mini-pill.warn { color: #e8c565; border-color: rgba(232,185,73,.3); background: rgba(232,185,73,.08); }
.mini-pill.danger { color: #ff95a5; border-color: rgba(255,124,145,.3); background: rgba(255,124,145,.08); }
.bot-guild { font-size: .74rem; }
.stat-foot { display: block; margin-top: 2px; color: var(--app-muted); font-size: .72rem; }
.admin-table-member .table-head, .admin-table-member .table-row { grid-template-columns: 1.1fr .9fr 1.9fr .8fr auto; }
.admin-table-detbot .table-head, .admin-table-detbot .table-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.2fr) auto; }
.admin-table-detbot .table-row > span { overflow-wrap: anywhere; }
/* minmax(0, ...): the plan's resource list (one line with "…") must not widen the table. */
.admin-table-detinv .table-head, .admin-table-detinv .table-row { grid-template-columns: minmax(0, 1fr) .8fr 1.2fr 1.2fr .9fr; }
.admin-table-detinv .table-row > :first-child { min-width: 0; }
.admin-table-detinv .bot-guild { display: block; }
/* Admin › Cliente › Saldo: the wallet's figures, the correction form and the corrections made. */
.wallet-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.wallet-figures > div { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card-2); }
.wallet-figures small { color: var(--app-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wallet-figures strong { font-size: 1.02rem; }
.wallet-figures .is-debt { border-color: rgba(255,124,145,.35); }
.wallet-figures .is-debt strong { color: #ff95a5; }
.adjust-form { gap: 14px; }
.adjust-fields { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; }
@media (max-width: 700px) { .adjust-fields { grid-template-columns: 1fr; } }
.adjust-title { margin: 22px 0 6px; font-size: 14px; font-weight: 700; }
.admin-table-adjust .table-head, .admin-table-adjust .table-row { grid-template-columns: minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, 1.1fr); align-items: start; }
.admin-table-adjust .table-row > span { overflow-wrap: anywhere; }
.adjust-plus { color: #6ee7a0; }
.adjust-minus { color: #ff95a5; }
.admin-table-pay .table-head, .admin-table-pay .table-row { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.admin-table-coupon .table-head, .admin-table-coupon .table-row { grid-template-columns: 1.2fr .8fr .9fr .7fr auto; }
.coupon-cell { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-table-tut .table-head, .admin-table-tut .table-row { grid-template-columns: minmax(0, 2.4fr) .9fr .5fr auto; }
.tut-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tut-cell > span { display: grid; gap: 2px; min-width: 0; }
.tut-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-thumb { flex: none; display: block; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #18181b; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Mid-size screens: the buttons go under the video, so the title keeps its room. */
@media (max-width: 1280px) and (min-width: 921px) {
    .admin-table-tut .table-head { display: none; }
    .admin-table-tut .table-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .admin-table-tut .table-row > .coupon-cell { grid-column: 1 / -1; }
}
.promo-banner { text-align: center; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.4); border-radius: 12px; padding: 12px 18px; font-weight: 700; margin: 0 auto 22px; max-width: 680px; }
.price-old { text-decoration: line-through; opacity: .45; font-size: .72em; margin-left: 8px; }
.fin-chart { width: 100%; height: 190px; display: block; margin-top: 4px; }
.fin-axis { stroke: var(--app-line-2); stroke-width: 1; }
.fin-bar { fill: rgba(139,92,246,.45); }
.fin-bar-current { fill: var(--accent); }
/* Finanças: stacked months (applications / fees) and the per-application table. */
.fin-bar-plan { fill: rgba(255,255,255,.82); }
.fin-bar-fee { fill: #22c55e; }
.fin-legend { display: flex; gap: 14px; color: var(--app-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.fin-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fin-dot-plan { background: rgba(255,255,255,.82); }
.fin-dot-fee { background: #22c55e; }
.admin-table-apps .table-head, .admin-table-apps .table-row { grid-template-columns: 1.5fr 1fr 1fr .8fr .8fr 1.4fr; align-items: start; }
.admin-table-apps .table-row > span { display: grid; gap: 2px; min-width: 0; }
.fin-app a { color: #fff; text-decoration: none; }
.fin-app a:hover { text-decoration: underline; }
.fin-sub { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--app-muted-2); font-size: 12px; }
.fin-fee { color: #4ade80; }
.fin-med-bad { color: #ff95a5; }
/* "Por aplicação": search, filter, sortable headers and pages. */
.oauth-filters.fin-filters { margin: 2px 0 10px; }
.fin-found { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 0 4px; color: var(--app-muted); font-size: 13px; }
.fin-found strong { color: #fff; font-weight: 600; }
.fin-sort a { color: inherit; text-decoration: none; }
.fin-sort a:hover, .fin-sort a.is-on { color: #fff; }
.fin-sort a.is-on::after { content: " ↓"; }
.fin-sort a.is-on.is-asc::after { content: " ↑"; }
.fin-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.fin-pager .is-disabled { opacity: .4; pointer-events: none; }
.fin-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.fin-pages a { min-width: 32px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; color: var(--app-muted); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.fin-pages a:hover { color: #fff; border-color: var(--app-line-2); }
.fin-pages a.is-on { color: #fff; border-color: var(--app-line-2); background: rgba(255,255,255,.06); }
@media (max-width: 1100px) {
    .admin-table-apps .table-head { display: none; }
    .admin-table-apps .table-row { grid-template-columns: 1fr 1fr; row-gap: 12px; }
    .admin-table-apps .table-row > .fin-app { grid-column: 1 / -1; }
    .admin-table-apps .table-row > span[data-label]::before { content: attr(data-label); color: var(--app-muted-2); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
}
.fin-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; text-align: center; }
.fin-labels strong { display: block; font-size: .78rem; }
.fin-labels small { color: var(--app-muted); font-size: .72rem; }
.fin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.fin-plan-list { display: grid; gap: 10px; margin-bottom: 16px; }
.fin-plan-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--app-line); border-radius: 11px; background: rgba(255,255,255,.015); }
.fin-plan-row strong { font-size: .95rem; }
.fin-counts { margin-top: 4px; }
@media (max-width: 920px) { .fin-cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: auto; height: auto; position: static; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 12px; }
    .admin-brand { padding: 4px 8px; }
    .admin-brand small { display: none; }
    .admin-nav { grid-auto-flow: column; }
    .admin-nav-item span { display: none; }
    .admin-foot { margin: 0; white-space: nowrap; }
    .admin-back { margin: 0; order: -1; }
    .admin-main { padding: 22px 16px 60px; }
}

/* Checkout / payment gateway */
.checkout-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(10,10,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.checkout-header-inner { width: min(1120px, calc(100% - 40px)); margin-inline: auto; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout-header-actions { display: flex; align-items: center; gap: 16px; }
.checkout-step-link { color: var(--muted); font-size: .9rem; }
.checkout-step-link:hover { color: var(--text); }
.checkout-exit { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.checkout-exit:hover { color: var(--text); }
.checkout-main { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.checkout-shell { padding: 48px 16px 80px; }
.checkout-shell.narrow { max-width: 620px; margin-inline: auto; }
.checkout-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.cstep { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.cstep.active { border-color: var(--accent); color: var(--accent-soft); background: rgba(139,92,246,.1); }
.cstep.done { color: var(--success); border-color: rgba(34,197,94,.3); }
.section-heading.center { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.checkout-lead { color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
.checkout-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 28px; }
.checkout-card.center { text-align: center; }
.pay-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px; align-items: start; max-width: 880px; margin: 0 auto; }
.pay-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pay-qr { background: #fff; padding: 14px; border-radius: 14px; line-height: 0; }
.pay-qr svg { width: 210px; height: 210px; display: block; }
.pay-qr svg rect { fill: #0a0a0b; }
.pay-live { display: inline-flex; align-items: center; gap: 8px; color: #f0b232; font-size: .85rem; font-weight: 600; }
.pay-live .pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b232; box-shadow: 0 0 10px rgba(240,178,50,.6); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pay-hint { color: var(--muted); font-size: .9rem; line-height: 1.55; text-align: center; margin: 18px 0 22px; }
.pay-code-label { display: block; font-size: .78rem; font-weight: 700; color: #dfe0e6; margin-bottom: 8px; }
.pay-code-row { display: flex; gap: 8px; }
.pay-code { flex: 1; min-width: 0; padding: 12px 13px; background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 9px; color: var(--muted); font: inherit; font-size: .8rem; }
.pay-copy { white-space: nowrap; }
.pay-demo { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-2); text-align: center; }
.pay-demo p { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.pay-summary h3 { margin: 0 0 16px; font-size: 1.05rem; }
.pay-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.pay-sum-row strong { color: var(--text); }
.pay-sum-row.total { border-bottom: 0; padding-top: 14px; font-size: 1rem; }
.pay-sum-row.total strong { font-size: 1.3rem; }
.pay-feat { margin: 16px 0 18px; }
.pay-back { color: var(--muted); font-size: .86rem; }
.pay-back:hover { color: var(--accent-soft); }
/* Right after signing in (WelcomeIntro.razor): logo + greeting on black, then it fades away. */
.zb-welcome {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #000; color: #fff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    animation: zb-welcome-out .45s ease 1.05s forwards; pointer-events: none;
}
.zb-welcome-inner { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 16px; }
.zb-welcome img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; animation: zb-welcome-logo .6s cubic-bezier(.2, .8, .2, 1) both; }
.zb-welcome img.is-avatar { border-radius: 50%; box-shadow: 0 0 0 3px #18181b, 0 0 0 5px #3f3f46; }
.zb-welcome strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; animation: zb-welcome-rise .5s cubic-bezier(.2, .8, .2, 1) .15s both; }
.zb-welcome span { color: #a1a1aa; font-size: .92rem; animation: zb-welcome-rise .5s cubic-bezier(.2, .8, .2, 1) .28s both; }
@keyframes zb-welcome-logo { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes zb-welcome-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes zb-welcome-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }
/* F5: the same screen, shorter, only while <html> has .zb-reload (set by the script in App.razor's <head>). */
.zb-welcome.zb-reload-intro { display: none; animation-duration: .4s; animation-delay: .8s; }
/* Switching to another saved account: the same short timing as F5. */
.zb-welcome.zb-switch-intro { animation-duration: .4s; animation-delay: .8s; }
html.zb-reload .zb-welcome.zb-reload-intro { display: grid; }
@media (prefers-reduced-motion: reduce) { .zb-welcome, html.zb-reload .zb-welcome.zb-reload-intro { display: none; } }

/* Real plan PIX: payer form and the gateway's QR. */
.pay-payer { display: grid; gap: 14px; }
.pay-payer h2 { margin: 0; font-size: 1.2rem; }
.pay-payer-lead, .pay-payer-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.pay-payer-note { text-align: center; font-size: .8rem; }
.pay-field { display: grid; gap: 7px; }
.pay-field span { font-size: .78rem; font-weight: 700; color: #dfe0e6; }
.pay-field input { padding: 12px 13px; background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font: inherit; font-size: .92rem; }
.pay-field input:focus { outline: none; border-color: rgba(255, 255, 255, .45); }
.pay-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(239, 68, 68, .35); border-radius: 9px; background: rgba(239, 68, 68, .08); color: #fca5a5; font-size: .86rem; }
.pay-qr.is-real img { display: block; width: 210px; height: 210px; image-rendering: pixelated; }
.pay-live.is-paid { color: #4ade80; }
.pay-live.is-paid .pill-dot { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
.success-card { max-width: 560px; margin: 0 auto; }
.success-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.14); color: var(--success); }
.success-ico svg { width: 30px; height: 30px; }
.deliver-steps { display: grid; gap: 10px; text-align: left; max-width: 340px; margin: 26px auto; }
.deliver-step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.deliver-step .pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.deliver-step.done { color: var(--text); }
.deliver-step.done .pill-dot { background: var(--success); }
.deliver-step.active { color: var(--accent-soft); }
.deliver-step.active .pill-dot { background: var(--accent); box-shadow: 0 0 10px rgba(139,92,246,.6); animation: pulse-dot 1.4s ease-in-out infinite; }
.checkout-note { margin-top: 18px; color: var(--muted); font-size: .8rem; }

/* --- Checkout split (/assinar/pagamento): summary on black, payment on light, "Recursos do plano" modal --- */
.ck-wrap { width: auto; margin: 0; }
.ck { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.ck a { color: inherit; }
.ck .is-hidden { display: none !important; }
.ck svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ck-side { background: #000; color: #fff; display: flex; justify-content: flex-end; padding: 40px 48px 60px; }
.ck-side-inner { width: 100%; max-width: 384px; }
/* Arriving from "Adquirir" (the page fades from black): both sides rise in. Only then: a reload or a
   form round trip shows the page at once instead of blinking. */
.ck.is-entering .ck-side-inner, .ck.is-entering .ck-main-inner { animation: ck-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.ck.is-entering .ck-main { animation: ck-fade .45s ease both; }
.ck.is-entering .ck-main-inner { animation-delay: .08s; }
@keyframes ck-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ck-side-inner, .ck-main-inner, .ck-main { animation: none; } }
.ck-back { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; text-decoration: none; }
.ck-back:hover { opacity: .85; }
.ck-plan-label { margin: 34px 0 6px; color: #d4d4d8; font-size: 15px; }
/* "Estender" from a bot's console: which bot the purchase is for. */
.ck-renew { margin: 0 0 14px; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.ck-renew strong { color: #f4f4f5; }
.ck-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-price { font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.ck-stepper { display: flex; align-items: center; gap: 18px; font-size: 18px; font-weight: 700; }
.ck-stepper button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.ck-stepper button:hover { background: rgba(255,255,255,.08); }
.ck-lines { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; display: grid; gap: 12px; }
.ck-line { display: flex; justify-content: space-between; gap: 12px; color: #e4e4e7; font-size: 15px; }
.ck-line-main span { display: grid; }
.ck-line-main strong { font-size: 16px; font-weight: 600; }
.ck-line-main small { color: #e4e4e7; font-size: 14px; }
.ck-total { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 17px; }
.ck-total strong { font-weight: 700; color: #fff; }
.ck-details { margin-top: 22px; padding: 16px 14px; border-radius: 10px; background: #0f0f10; }
.ck-details > strong { font-size: 15px; font-weight: 600; }
.ck-details ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ck-details li { display: flex; gap: 8px; color: #e4e4e7; font-size: 13px; }
.ck-details li::before { content: "✓"; color: #22c55e; font-weight: 800; }
.ck-addons-card { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 24px; padding: 14px 18px; border: 0; border-radius: 10px; background: #f4f4f5; color: #18181b; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease; }
.ck-addons-card:hover { transform: translateY(-1px); }
.ck-addons-plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #26b37f; color: #fff; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.ck-addons-text { display: grid; flex: 1; line-height: 1.3; }
.ck-addons-text strong { font-size: 15px; font-weight: 600; }
.ck-addons-text small { color: #8a8a93; font-size: 13px; }
.ck-addons-count { padding: 4px 9px; border-radius: 999px; background: #26b37f; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

.ck-main { background: #f7f7f8; color: #18181b; padding: 40px 48px 60px; }
.ck-main-inner { width: 100%; max-width: 384px; }
.ck-main h2 { margin: 18px 0 12px; font-size: 15px; font-weight: 600; }
.ck-main h2:first-child { margin-top: 0; }
.ck-field { display: flex; justify-content: space-between; gap: 12px; padding: 12px 12px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; font-size: 14px; margin-bottom: 30px; }
.ck-field span { color: #52525b; }
.ck-field strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-pay { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 26px; }
.ck-pay input { width: 16px; height: 16px; accent-color: #2563eb; margin: 0; }
.ck-pay svg { width: 22px; height: 22px; fill: #18181b; stroke: none; }
.ck-coupon { display: flex; gap: 8px; }
.ck-coupon input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #18181b; font: inherit; font-size: 15px; font-weight: 600; outline: none; }
.ck-coupon input:focus { border-color: #26b37f; }
.ck-coupon input::placeholder { color: #71717a; }
.ck-coupon-btn { padding: 0 14px; border: 0; border-radius: 8px; background: #d4d4d8; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ck-coupon-btn:hover { background: #a1a1aa; }
.ck-coupon-msg { margin: 8px 0 0; color: #16a34a; font-size: 13px; font-weight: 600; }
.ck-coupon-msg.is-error { color: #dc2626; }
.ck-terms { margin: 28px 0 24px; color: #71717a; font-size: 13.5px; line-height: 1.55; }
.ck-terms a { text-decoration: underline; }
.ck-submit { display: block; width: 100%; padding: 14px; border: 0; border-radius: 8px; background: #26b37f; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.ck-submit:hover { background: #1f9a6c; }
.ck-powered { margin: 16px 0 0; text-align: center; color: #71717a; font-size: 12px; }
.ck-powered strong { color: #3f3f46; }
.ck-powered a { text-decoration: underline; }

.ck-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); }
.ck-modal[hidden] { display: none; }
body.ck-lock { overflow: hidden; }
.ck-modal-box { display: flex; flex-direction: column; width: min(1160px, 100%); max-height: calc(100vh - 40px); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0a0a0a; color: #fff; overflow: hidden; }
.ck-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ck-modal-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.ck-modal-head p { margin: 4px 0 0; color: #a1a1aa; font-size: 13px; }
.ck-modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #1c1c1f; color: #fff; font-size: 20px; cursor: pointer; }
.ck-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px; overflow-y: auto; }
.ck-res { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: linear-gradient(180deg, #131315, #0d0d0f); cursor: pointer; }
.ck-res.is-on, .ck-res.is-included { border-color: rgba(38,179,127,.7); background: linear-gradient(180deg, #0f1f19, #0b1512); }
.ck-res.is-included { cursor: default; }
.ck-res-badge { position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 999px; background: #26b37f; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.ck-res-head { display: flex; align-items: center; gap: 12px; }
.ck-res-head strong { flex: 1; font-size: 13.5px; font-weight: 600; }
.ck-res-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #26262a; color: #d4d4d8; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.ck-res-ico.is-on { background: #1f3d31; color: #4ade80; }
.ck-res-price { padding: 3px 8px; border-radius: 6px; background: #14342a; color: #34d399; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ck-res p { margin: 0; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.ck-res-incl { margin-top: auto; color: #4ade80; font-size: 12.5px; font-weight: 600; }
.ck-toggle { appearance: none; -webkit-appearance: none; margin: auto 0 0; width: 44px; height: 24px; border-radius: 999px; background: #26262a; position: relative; cursor: pointer; transition: background-color .15s ease; }
.ck-toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #0a0a0a; transition: transform .15s ease; }
.ck-toggle:checked { background: #fff; }
.ck-toggle:checked::after { transform: translateX(20px); }
.ck-modal-foot { display: block; padding: 16px; border-top: 1px solid rgba(255,255,255,.08); color: #fff; }
.ck-modal-sum { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ck-modal-sum span { display: grid; gap: 2px; }
.ck-modal-sum small { color: #a1a1aa; font-size: 13px; }
.ck-modal-sum strong { color: #34d399; font-size: 19px; font-weight: 800; }
.ck-modal-count { text-align: right; }
.ck-modal-count strong { color: #fff; font-size: 15px; }
.ck-empty { max-width: 460px; margin: 18vh auto; padding: 0 20px; text-align: center; color: #fff; }
.ck-empty h1 { font-size: 26px; }
.ck-empty p { color: #a1a1aa; }
.ck-btn { display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
    .ck { grid-template-columns: 1fr; }
    .ck-side, .ck-main { justify-content: center; padding: 28px 20px 40px; }
    .ck-side-inner, .ck-main-inner { max-width: 520px; margin: 0 auto; }
    .ck-res-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) { .ck-res-grid { grid-template-columns: repeat(2, 1fr); } }

/* Checkout (/assinar → pagamento → entrega) in the site's look: black, Montserrat, neutral greys and
   white primary buttons instead of the old purple. */
.zb-checkout {
    --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --surface: #0a0a0b; --muted: #a1a1aa;
    min-height: 100vh; background: #000; color: #fff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.zb-checkout a { color: inherit; text-decoration: none; }
.zb-checkout .checkout-header { background: rgba(0,0,0,.8); border-bottom-color: var(--line); }
.checkout-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.checkout-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.zb-checkout .checkout-step-link, .zb-checkout .checkout-exit { color: var(--muted); font-size: 14px; font-weight: 500; }
.zb-checkout .checkout-step-link:hover, .zb-checkout .checkout-exit:hover { color: #fff; }
.zb-checkout .cstep { border-color: var(--line); background: transparent; color: #71717a; font-size: 13px; }
.zb-checkout .cstep.active { border-color: rgba(255,255,255,.3); background: #111113; color: #fff; }
.zb-checkout .cstep.done { border-color: rgba(34,197,94,.3); color: #4ade80; }
.zb-checkout .eyebrow { color: #71717a; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.zb-checkout .section-heading h2 { font-weight: 700; letter-spacing: -.03em; }
.zb-checkout .checkout-lead, .zb-checkout .price-desc, .zb-checkout .pricing-note { color: #71717a; }
.zb-checkout .price-card { padding: 30px; border-color: var(--line); border-radius: 20px; background: #0a0a0b; }
.zb-checkout .price-card.featured { border-color: rgba(255,255,255,.28); box-shadow: 0 24px 64px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); background: #0d0d0f; }
.zb-checkout .price-badge { background: #fff; color: #000; font-weight: 700; }
.zb-checkout .price-name { font-size: 16px; }
.zb-checkout .price-tag .amount { font-weight: 700; letter-spacing: -.03em; }
.zb-checkout .price-features li { color: #d4d4d8; }
.zb-checkout .price-features li::before { color: #22c55e; }
.zb-checkout .button { border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: none; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.zb-checkout .button:hover { transform: translateY(-1px); }
.zb-checkout .button.primary { background: #fff; border-color: #fff; color: #000; }
.zb-checkout .button.primary:hover { background: #e4e4e7; border-color: #e4e4e7; }
.zb-checkout .button.secondary { background: #111113; border-color: var(--line-2); color: #fff; }
.zb-checkout .button.secondary:hover { border-color: rgba(255,255,255,.3); }
.zb-checkout .promo-banner { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); color: #bbf7d0; }
.zb-checkout .checkout-card { border-color: var(--line); border-radius: 20px; background: #0a0a0b; }
.zb-checkout .pay-back:hover { color: #fff; }
.zb-checkout .pay-method.active { border-color: rgba(255,255,255,.3); background: #111113; }

/* Account */
.account-shell { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 120px); align-items: center; padding: 70px 0 90px; }
.account-copy h1 { font-size: clamp(3.1rem, 6.5vw, 6.2rem); }
.account-copy > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.back-link { display: inline-block; margin-bottom: 70px; color: var(--muted); font-size: .9rem; }
.account-benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; color: #c9cad2; }
.account-benefits li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.account-card { padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.account-heading { margin-bottom: 28px; }
.account-heading h2 { margin: 10px 0 0; font-size: 2rem; }
.account-form { display: grid; gap: 18px; }
.account-form label:not(.checkbox-row):not(.switch-row) { display: grid; gap: 8px; color: #dfe0e6; font-size: .86rem; font-weight: 700; }
.account-form input:not([type="checkbox"]) { width: 100%; padding: 14px 15px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; outline: none; }
.account-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.account-form select { width: 100%; padding: 14px 15px; color: var(--text); background: #0c0c0e; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; outline: none; }
.account-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.checkbox-row input { margin-top: 3px; accent-color: var(--accent-2); }
.full { width: 100%; cursor: pointer; font: inherit; color: white; }
.password-hint { margin: -8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(255,124,145,.35); border-radius: 8px; color: #ffc0ca; background: rgba(255,124,145,.08); font-size: .86rem; }
.success-alert { border-color: rgba(81,216,138,.35); color: #9cedbc; background: rgba(81,216,138,.08); }
.forgot-link { justify-self: end; margin-top: -10px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.account-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.account-switch a { color: var(--accent); font-weight: 700; }
.compact-account-shell { min-height: calc(100vh - 220px); }
.account-result { gap: 12px; }
.account-result h1 { margin: 0; }
.account-result p:not(.eyebrow) { max-width: 660px; line-height: 1.65; }
.account-result .button { justify-self: center; margin-top: 14px; }
.result-copy { color: var(--muted); line-height: 1.65; }
.center-button { display: block; text-align: center; }

/* Dashboard */
.dashboard-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 70px 0 38px; }
.dashboard-head h1 { margin: 10px 0; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.dashboard-head p:not(.eyebrow) { color: var(--muted); }
.role-badge, .data-tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid article { min-height: 125px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--app-line); border-radius: 13px; background: var(--app-card); }
.metric-grid span { color: var(--muted); font-size: .82rem; }
.metric-grid strong { font-size: 2.2rem; }
.metric-grid .small-value { font-size: 1.05rem; }
.dashboard-panel { margin-top: 22px; padding: 28px; border: 1px solid var(--app-line); border-radius: 15px; background: var(--app-card); }
.dashboard-panel:last-of-type { margin-bottom: 90px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 8px 0 0; }
.empty-panel { padding: 32px; border: 1px dashed #343849; border-radius: 11px; text-align: center; }
.empty-panel p { margin: 9px auto 0; max-width: 640px; color: var(--muted); line-height: 1.6; }
.data-list { display: grid; }
.data-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 17px 4px; border-top: 1px solid var(--line); }
.data-list article div:not(.status-dot) { display: grid; gap: 4px; }
.data-list article div span { color: var(--muted); font-size: .78rem; }
.bot-link:hover { color: var(--accent); }
.compact-button { padding: 9px 13px; background: rgba(255,255,255,.035); cursor: pointer; color: var(--text); font: inherit; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #5f6271; }
.status-dot.online { background: var(--success); box-shadow: 0 0 12px rgba(81,216,138,.55); }
.status-dot.faulted { background: var(--danger); }
.dashboard-loading, .empty-state { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.empty-state h1 { max-width: 800px; font-size: clamp(2.4rem, 6vw, 5rem); }
.empty-state p { color: var(--muted); }
.bot-details-head h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.dashboard-back { margin-bottom: 28px; }
.status-large { margin-bottom: 16px; }
.bot-metrics { margin-bottom: 22px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: center; }
.panel-copy { max-width: 700px; color: var(--muted); line-height: 1.6; }
.danger-button { background: rgba(255,124,145,.1); border-color: rgba(255,124,145,.42); color: #ffc0ca; cursor: pointer; font: inherit; }
.permission-note { max-width: 300px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
/* No min-width: these forms wrap a single button inside rows and cards, and a wide minimum squeezed the text beside them. */
.inline-form { display: flex; align-items: end; gap: 10px; }
.inline-form label { flex: 1; display: grid; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.inline-form input { width: 100%; padding: 13px 14px; color: var(--text); background: #050407; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.module-list { display: grid; }
.module-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; padding: 20px 4px; border-top: 1px solid var(--line); }
.module-list p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.module-state { min-width: 62px; color: var(--muted); font-size: .75rem; text-align: center; }
.module-state.enabled { color: var(--success); }
footer { padding: 28px 0 50px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; }
#blazor-error-ui { display: none; }

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 44px; }
    .hero-preview { max-width: 560px; }
    .preview-window { transform: none; }
    .activity-card { display: none; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .metrics-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    .site-header-inner { grid-template-columns: 1fr auto; }
    nav { display: none; }
    .header-actions { gap: 2px; }
    .nav-login { display: none; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
    .pay-grid { grid-template-columns: 1fr; }
    .features, .security-card { grid-template-columns: 1fr; }
    .features article + article { border-left: 0; border-top: 1px solid var(--line); }
    .security-card { gap: 12px; padding: 28px; }
    .process-grid, .account-shell, .form-grid { grid-template-columns: 1fr; }
    .process-grid article:nth-child(odd) { border-right: 0; }
    .process-grid article:nth-child(even) { padding-left: 0; }
    .developer-section { grid-template-columns: 1fr; }
    .account-shell { padding-top: 45px; }
    .back-link { margin-bottom: 45px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-head { align-items: flex-start; flex-direction: column; }
    .data-list article { grid-template-columns: auto minmax(0,1fr) auto; }
    .data-list article > span:not(.data-tag) { display: none; }
    .settings-grid { grid-template-columns: 1fr; gap: 18px; }
    .inline-form { min-width: 0; align-items: stretch; flex-direction: column; }
    .module-list article { grid-template-columns: minmax(0,1fr) auto; }
    .module-list article form { grid-column: 1 / -1; }
}

/* ============================================================
   Dashboard app shell (sidebar + topbar) - EaseBot-style
   ============================================================ */
:root {
    --app-bg: #0a0a0b;
    --app-sidebar: #0c0c0e;
    --app-card: #121214;
    --app-card-2: #17171a;
    --app-line: #1f1f23;
    --app-line-2: #2a2a30;
    --app-text: #f4f4f5;
    --app-muted: #8b8b94;
    --app-muted-2: #64646f;
}

.app-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
}

/* --- Sidebar --- */
.app-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 14px;
    background: var(--app-sidebar);
    border-right: 1px solid var(--app-line);
    overflow-y: auto;
}
.app-brand { display: flex; align-items: center; gap: 11px; padding: 6px 6px 2px; }
.app-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--accent), var(--accent-strong)); box-shadow: 0 6px 20px rgba(124,58,237,.35); font-weight: 800; color: #fff; }
.app-brand-mark.small { width: 26px; height: 26px; border-radius: 8px; font-size: .78rem; }
.app-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.app-brand-text strong { font-size: 1.02rem; letter-spacing: -.02em; }
.app-brand-text small { color: var(--app-muted); font-size: .72rem; }

.ws-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card); }
.ws-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(124,58,237,.16); color: var(--accent); font-weight: 800; border: 1px solid rgba(124,58,237,.32); }
.ws-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ws-meta strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-meta small { color: var(--app-muted); font-size: .72rem; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(81,216,138,.6); }

.side-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin: 14px 8px 6px; color: var(--app-muted-2); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--app-muted); font-size: .9rem; font-weight: 600; border: 1px solid transparent; transition: background .15s, color .15s; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--app-text); }
.nav-item.active { background: rgba(255,255,255,.07); color: #fff; border-color: var(--app-line-2); }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-empty { padding: 8px 12px; color: var(--app-muted-2); font-size: .82rem; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-muted-2); flex-shrink: 0; }
.nav-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(81,216,138,.55); }
.nav-dot.starting { background: #e8b949; }
.nav-dot.degraded { background: #e8b949; }
.nav-dot.faulted { background: var(--danger); }

.side-spacer { flex: 1; min-height: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card); }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #2a2340, #171022); color: var(--accent); font-weight: 800; border: 1px solid var(--app-line-2); }
.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.user-meta strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--app-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; border-radius: 9px; }
.user-open:hover { opacity: .85; }
.user-logout { margin: 0; }
.user-logout button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: transparent; border: 1px solid var(--app-line); color: var(--app-muted); cursor: pointer; }
.user-logout button:hover { color: var(--danger); border-color: rgba(255,124,145,.4); background: rgba(255,124,145,.08); }
.user-logout svg { width: 17px; height: 17px; }
.nav-logout { display: none; padding: 0; }
.nav-logout button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; background: transparent; border: 0; color: var(--app-muted); font: inherit; font-weight: 600; cursor: pointer; }
.nav-logout button:hover { color: var(--danger); }
.nav-logout svg { width: 18px; height: 18px; }

/* --- Main area --- */
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 60px; padding: 0 clamp(16px, 3vw, 34px); background: rgba(7,7,9,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--app-line); }
.topbar-brand { display: none; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.role-chip { padding: 6px 11px; border: 1px solid var(--app-line-2); border-radius: 999px; color: var(--app-muted); font-size: .76rem; font-weight: 600; }
.topbar-link { color: var(--app-muted); font-size: .84rem; font-weight: 600; }
.topbar-link:hover { color: var(--app-text); }
.app-content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(22px, 3vw, 38px) clamp(16px, 3vw, 34px) 80px; }

/* --- Page header --- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-title { margin: 0; font-size: clamp(1.5rem, 3vw, 1.95rem); letter-spacing: -.03em; }
.page-sub { margin: 7px 0 0; color: var(--app-muted); font-size: .94rem; line-height: 1.5; }
.page-sub strong, .card-sub strong { color: var(--app-text); font-weight: 700; }

/* --- Stat cards --- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--app-line); border-radius: 15px; background: var(--app-card); }
.stat-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.stat-ico svg { width: 21px; height: 21px; }
.ico-violet { background: rgba(124,58,237,.14); color: #b58bff; }
.ico-green { background: rgba(81,216,138,.13); color: var(--success); }
.ico-amber { background: rgba(232,185,73,.14); color: #e8b949; }
.ico-blue { background: rgba(88,140,255,.14); color: #78a4ff; }
.stat div { display: flex; flex-direction: column; min-width: 0; }
.stat small { color: var(--app-muted); font-size: .8rem; margin-bottom: 3px; }
.stat strong { font-size: 1.85rem; line-height: 1; letter-spacing: -.03em; }
.stat strong.stat-sm { font-size: 1.05rem; }

/* --- Cards --- */
.card { margin-top: 18px; padding: 22px; border: 1px solid var(--app-line); border-radius: 16px; background: var(--app-card); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.card-sub { margin: 5px 0 0; color: var(--app-muted); font-size: .85rem; line-height: 1.45; }
.count-chip { flex-shrink: 0; padding: 6px 11px; border: 1px solid var(--app-line-2); border-radius: 999px; color: var(--app-muted); font-size: .76rem; font-weight: 600; white-space: nowrap; }

/* --- Bot grid --- */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px; }
.bot-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-card-2); transition: border-color .15s, transform .15s, background .15s; }
.bot-card:hover { border-color: var(--accent-2); transform: translateY(-2px); background: #17121f; }
.bot-card-top { display: flex; align-items: center; justify-content: space-between; }
.bot-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, var(--accent-2), var(--accent-strong)); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(91,33,182,.3); }
.bot-name { font-size: 1.02rem; letter-spacing: -.01em; }
.bot-id { color: var(--app-muted); font-size: .78rem; font-family: ui-monospace, monospace; }
.bot-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--app-line); }
.bot-guild { display: inline-flex; align-items: center; gap: 6px; color: var(--app-muted); font-size: .78rem; min-width: 0; }
.bot-guild svg { width: 14px; height: 14px; flex-shrink: 0; }
/* max-width: an inline-flex line only ends in "…" when it can't grow past its cell. */
.bot-guild { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-manage { flex-shrink: 0; color: var(--accent); font-size: .82rem; font-weight: 700; }

/* --- Status pills --- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid var(--app-line-2); color: var(--app-muted); background: rgba(255,255,255,.02); }
.status-pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.online { color: #6ee7a0; border-color: rgba(81,216,138,.3); background: rgba(81,216,138,.1); }
.status-pill.starting { color: #ecc565; border-color: rgba(232,185,73,.3); background: rgba(232,185,73,.1); }
.status-pill.degraded { color: #ecc565; border-color: rgba(232,185,73,.3); background: rgba(232,185,73,.1); }
.status-pill.faulted { color: #ff95a5; border-color: rgba(255,124,145,.3); background: rgba(255,124,145,.1); }

/* --- Empty + state blocks --- */
.empty-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; border: 1px dashed var(--app-line-2); border-radius: 13px; }
.empty-card strong { font-size: 1rem; }
.empty-card p { margin: 0; max-width: 460px; color: var(--app-muted); font-size: .88rem; line-height: 1.55; }
.state-block { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.state-block h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.02em; max-width: 620px; }
.state-block p { margin: 0; max-width: 540px; color: var(--app-muted); line-height: 1.6; }
.state-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(124,58,237,.1); color: var(--accent); border: 1px solid rgba(124,58,237,.26); }
.state-icon svg { width: 30px; height: 30px; }
.state-icon.sm { width: 48px; height: 48px; border-radius: 14px; }
.state-icon.sm svg { width: 23px; height: 23px; }

/* --- Table --- */
.table { display: flex; flex-direction: column; }
.table-head, .table-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; align-items: center; gap: 14px; padding: 13px 8px; }
.table-head { color: var(--app-muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--app-line); }
.table-row { border-bottom: 1px solid var(--app-line); }
.table-row:last-child { border-bottom: 0; }
.t-strong { font-weight: 600; font-size: .9rem; }
.t-muted { color: var(--app-muted); font-size: .85rem; }

/* --- Re-skin legacy panels (BotDetails / TicketsConfig) inside the shell --- */
.app-content .dashboard-head { padding: 0 0 20px; align-items: flex-start; }
.app-content .dashboard-head h1, .app-content .bot-details-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; margin: 8px 0 4px; }
.app-content .dashboard-head p:not(.eyebrow) { color: var(--app-muted); }
.app-content .eyebrow { font-size: .7rem; }
.app-content .metric-grid { gap: 13px; }
.app-content .metric-grid article { border-color: var(--app-line); border-radius: 14px; background: var(--app-card); min-height: 108px; }
.app-content .dashboard-panel { margin-top: 16px; border-color: var(--app-line); border-radius: 16px; background: var(--app-card); }
.app-content .dashboard-panel:last-of-type { margin-bottom: 0; }
.app-content .panel-heading h2 { font-size: 1.15rem; }
.app-content .data-list article, .app-content .module-list article { border-top-color: var(--app-line); }
.app-content .module-list article { gap: 16px; }
.module-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.module-actions form { margin: 0; }
.app-content .module-state { min-width: 54px; }
.app-content .compact-button { border-radius: 9px; border-color: var(--app-line-2); background: rgba(255,255,255,.04); white-space: nowrap; }
.app-content .compact-button:hover { background: rgba(255,255,255,.08); border-color: var(--accent-2); }

/* --- Module config forms --- */
.module-config-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.module-config-form .dashboard-panel { margin: 0; }
.module-config-form .dashboard-panel h2 { margin: 0 0 4px; font-size: 1.12rem; }
.module-config-form .panel-copy { margin: 0 0 16px; }
.app-content label:not(.switch-row):not(.checkbox-row) { display: grid; gap: 7px; color: #dfe0e6; font-size: .82rem; font-weight: 600; }
.module-config-form .dashboard-panel > label:not(.switch-row) + label:not(.switch-row),
.module-config-form .dashboard-panel > label:not(.switch-row) + .switch-row,
.module-config-form .dashboard-panel > .field-grid { margin-top: 14px; }
.app-content label > span { color: var(--app-muted); }
.app-content input:not([type="checkbox"]):not([type="radio"]),
.app-content textarea,
.app-content select { width: 100%; padding: 11px 13px; color: var(--app-text); background: #0a0a0e; border: 1px solid var(--app-line-2); border-radius: 9px; font: inherit; outline: none; }
.app-content input:focus, .app-content textarea:focus, .app-content select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(124,58,237,.14); }
.app-content textarea { resize: vertical; line-height: 1.5; min-height: 60px; }
.app-content select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c99' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.switch-row { display: flex; align-items: center; gap: 11px; color: var(--app-text); font-size: .9rem; font-weight: 600; cursor: pointer; }
.switch-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-2); flex-shrink: 0; }
.switch-row small { color: var(--app-muted); font-weight: 500; }
.sub-rule { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--app-line); }
.sub-rule .field-grid { margin-top: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--app-bg) 40%); }
/* Inside a card the form is short: the button stays in place instead of floating over the fields while
   scrolling (and its fade showed as a black band on the card). */
.card .form-actions { position: static; padding-bottom: 0; background: none; }
.app-content code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; font-size: .85em; font-family: ui-monospace, monospace; color: #cbb7ff; }
.vars-hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vars-hint code { cursor: default; }
.app-content .empty-panel { border-color: var(--app-line-2); }
.app-content .role-badge, .app-content .data-tag { border-color: var(--app-line-2); color: var(--app-muted); }
.app-content .back-link { color: var(--app-muted); }
.app-content .back-link:hover { color: var(--app-text); }

/* --- Responsive: sidebar collapses to a top bar --- */
@media (max-width: 920px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-main { overflow-x: clip; }
    .app-content { max-width: 100%; }
    .page-sub, .card-sub, .bot-id { overflow-wrap: anywhere; }
    .app-content .settings-grid { grid-template-columns: 1fr; gap: 16px; }
    .app-content .module-list article { grid-template-columns: minmax(0,1fr) auto; row-gap: 12px; }
    .module-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .field-grid, .field-grid-3 { grid-template-columns: 1fr; }
    .app-sidebar { position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--app-line); }
    .app-brand { padding: 0; margin-right: auto; }
    .ws-card, .side-spacer, .user-card { display: none; }
    .side-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 13px; border: 1px solid var(--app-line-2); border-radius: 9px; color: var(--app-text); font-size: .88rem; font-weight: 600; cursor: pointer; }
    .side-toggle svg { width: 18px; height: 18px; }
    .side-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; background: var(--app-sidebar); border-bottom: 1px solid var(--app-line); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
    .nav-toggle-cb:checked ~ .side-nav { display: flex; }
    .nav-logout { display: flex; border-top: 1px solid var(--app-line); margin-top: 6px; padding-top: 6px; }
    .topbar-brand { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .page-head { flex-direction: column; align-items: flex-start; }
    /* Tables turn into one card per row: the first cell on top, the others two by two under their
       label (data-label). ".table > .table-row" outranks each table's desktop columns. */
    .table-head { display: none; }
    .table > .table-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: 14px 6px; }
    .table > .table-row > * { min-width: 0; overflow-wrap: anywhere; }
    .table > .table-row > :first-child, .table > .table-row > .cell-wide, .table > .table-row > .row-actions,
    .table > .table-row > .coupon-cell, .table > .table-row > .inv-checks, .table > .table-row > .tut-cell { grid-column: 1 / -1; }
    .table > .table-row > .row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .table > .table-row > .inv-go { display: none; }
    .table > .table-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--app-muted-2); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
}

/* ===== Toggle switch (login/register "manter conectado", "aceito") ===== */
.switch-row { display: flex; align-items: center; gap: 11px; cursor: pointer; margin: 2px 0 6px; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch-input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; pointer-events: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-input:checked + .switch-track { background: var(--accent); }
.switch-input:checked + .switch-track::after { transform: translateX(18px); }
.switch-input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(139,92,246,.3); }
.switch-text { flex: 1; }
/* status screens */
.state-badge { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; margin: 4px auto 14px; }
.state-ok { background: rgba(34, 197, 94, .16); color: var(--success); }
.state-warn-b { background: rgba(240, 178, 50, .16); color: #f0b232; }
.state-err { background: rgba(255, 107, 129, .16); color: var(--danger); }
.state-note { margin: 16px 0; padding: 12px 14px; border-radius: 11px; font-size: .86rem; line-height: 1.5; }
.state-warn { background: rgba(240, 178, 50, .1); border: 1px solid rgba(240, 178, 50, .3); color: #e8c37a; }
.state-ok-soft { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .28); color: #8be0a6; margin: 14px 0; padding: 10px 14px; border-radius: 11px; font-size: .82rem; }

/* Discord embed mockups */
.dc { max-width: 560px; background: #313338; border-radius: 12px; padding: 16px 18px; color: #dbdee1; font-size: .9rem; }
.dc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dc-avatar { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), var(--accent-strong)); color: #fff; font-weight: 800; font-size: .8rem; }
.dc-name { color: #f2f3f5; font-weight: 600; }
.dc-badge { background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; letter-spacing: .03em; }
.dc-time { color: #949ba4; font-size: .72rem; }
.dc-ephemeral, .dc-dm-tag { font-size: .74rem; color: #949ba4; margin-bottom: 8px; }
.dc-embed { position: relative; background: #2b2d31; border-radius: 4px; padding: 13px 15px 13px 16px; border-left: 4px solid var(--accent); max-width: 440px; }
.dc-embed.success { border-left-color: var(--success); }
.dc-embed-title { font-weight: 700; color: #f2f3f5; margin-bottom: 6px; }
.dc-embed-desc { color: #dbdee1; line-height: 1.5; margin-bottom: 10px; }
.dc-fields { display: flex; flex-direction: column; gap: 7px; margin: 10px 0; }
.dc-field { display: flex; justify-content: space-between; gap: 12px; }
.dc-field-name { color: #b5bac1; font-size: .82rem; }
.dc-field-val { color: #f2f3f5; font-weight: 600; font-size: .82rem; }
.dc-code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .78rem; background: #1e1f22; border-radius: 5px; padding: 9px 11px; margin: 8px 0; color: #c9cdd3; word-break: break-all; }
.dc-code.spoiler { background: #202225; color: #83858b; }
.dc-qr { width: 128px; height: 128px; background: #fff; padding: 7px; border-radius: 6px; margin: 8px 0; }
.dc-qr svg { width: 100%; height: 100%; fill: #000; }
.dc-embed-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #949ba4; font-size: .76rem; }
.dc-select { margin: 10px 0 8px; padding: 9px 12px; background: #1e1f22; border: 1px solid #111214; border-radius: 6px; color: #949ba4; font-size: .84rem; max-width: 440px; }
.dc-buttons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dc-btn { padding: 8px 14px; border-radius: 6px; background: #4e5058; color: #fff; font-size: .82rem; font-weight: 600; }
.dc-btn.primary { background: var(--accent-2); }
.dc-btn.success { background: #248046; }
.dc-btn.danger { background: #da373c; }

/* CTA buttons: the theme's base .button is inline, so .full's width:100% (and any vertical
   margin) is a no-op on it. Make the preview CTAs real full-width blocks - that activates the
   width and gives them breathing room above the text/blocks they follow. */
.dev-stage .button.full { display: block; width: 100%; text-align: center; margin-top: 18px; }
.dev-stage .checkout-card.center .checkout-lead { margin-bottom: 8px; }
.dev-stage .dc-buttons { margin-top: 12px; }
.dev-stage .var-row + .coupon-row { margin-top: 2px; }

/* Admin › Saques: note line and the approve / reject / resolve actions under a withdrawal. */
.admin-table-inv .admin-wd-note, .admin-table-inv .admin-wd-actions { grid-column: 1 / -1; }
.admin-wd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Wraps: on a phone the button goes under the note field instead of being squeezed to one letter per line. */
.admin-wd-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; margin: 0; }
.admin-wd-actions input { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 13px; }
.button.ghost { border: 1px solid rgba(255,255,255,.16); background: transparent; color: inherit; }
.button.ghost:hover { border-color: rgba(255,255,255,.32); }
