:root {
    color-scheme: dark;
    --bg: #020617;
    --surface: #0f172a;
    --surface-raised: #17233b;
    --border: #263449;
    --text: #f2f7fc;
    --muted: #91a4b8;
    --brand: #38bdf8;
    --brand-dark: #0284c7;
    --brand-gradient: linear-gradient(100deg, #0ea5e9, #9333ea, #c026d3);
    --blue: #69b7ff;
    --danger: #ff827f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand); color: #06241e; font-weight: 900; font-size: 24px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: auto; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.brand svg { max-width: 210px; max-height: 65px; }
.modal-open { overflow: hidden; }
.button:not(.secondary):not(.ghost):not(.danger) { background: linear-gradient(100deg, #0ea5e9, #9333ea, #c026d3); color: white; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.brand .brand-mark { width: 38px; height: 38px; font-size: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #b8c8d8; font-size: 14px; }
.nav-links a:hover, .text-link:hover { color: var(--brand); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; background: var(--brand); color: #05251e; font-weight: 750; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.secondary { border-color: var(--border); background: var(--surface-raised); color: var(--text); }
.button.ghost { border-color: var(--border); background: transparent; color: var(--text); }
.button.danger { background: #542d37; color: #ffd7d5; }
.button.small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.button.full { width: 100%; }
.hero { position: relative; overflow: hidden; max-width: 1200px; margin: 36px auto 74px; padding: 72px 28px 76px; border: 1px solid #1e3948; border-radius: 28px; background: radial-gradient(ellipse at 78% 45%, #143d46 0, #0e2534 23%, #0a1928 56%, #0b1726 100%); }
.hero:after { position: absolute; content: ""; width: 410px; height: 410px; right: 2%; top: -35%; border: 1px solid #5ad6b328; border-radius: 50%; box-shadow: 0 0 0 48px #5ad6b30d, 0 0 0 96px #5ad6b307; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 690px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #367b71; border-radius: 999px; color: #a1f2d9; background: #11332f; font-size: 12px; font-weight: 700; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 660px; margin: 24px 0 17px; font-size: clamp(42px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -.065em; }
.gradient-text { color: var(--brand); }
.hero-copy { max-width: 560px; margin-bottom: 27px; color: #b1c2d3; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: #a9bdcb; font-size: 12px; }
.trust-line span:before { content: "✓"; margin-right: 7px; color: var(--brand); font-weight: 900; }
.section { max-width: 1200px; margin: 0 auto 80px; padding: 0 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); }
.feature-grid, .service-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .service-card, .panel, .metric-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.feature-card { padding: 22px; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 13px; background: #12352f; color: var(--brand); font-size: 18px; }
.feature-card h3 { margin-bottom: 8px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; padding: 20px; }
.service-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.service-card h3 { margin: 11px 0 14px; font-size: 15px; line-height: 1.5; }
.tag { display: inline-flex; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: #b4c7d9; font-size: 11px; }
.service-price { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.service-price strong { color: var(--brand); font-size: 19px; }
.service-price small { font-size: 11px; }
.site-footer { border-top: 1px solid var(--border); padding: 28px; color: var(--muted); text-align: center; font-size: 12px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px; border-right: 1px solid var(--border); background: #091523; }
.sidebar .brand { padding: 0 9px 28px; }
.side-label { padding: 14px 11px 8px; color: #637a91; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #aabacc; text-align: left; cursor: pointer; }
.side-nav button:hover, .side-nav button.active { background: #142b3e; color: var(--brand); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.account-mini { padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.account-mini strong, .account-mini span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mini span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.main-area { min-width: 0; }
.app-header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 30px; border-bottom: 1px solid var(--border); }
.app-header h1 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.app-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.main-content { max-width: 1400px; margin: auto; padding: 28px 30px 60px; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.metric-card { min-height: 120px; padding: 18px; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 13px; font-size: 26px; letter-spacing: -.04em; }
.metric-card small { color: var(--brand); font-size: 11px; }
.panel { padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 16px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
th { padding: 11px 12px; color: #8499ad; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { max-width: 340px; padding: 13px 12px; border-top: 1px solid #1b2e42; color: #cbd8e5; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #20364b; color: #bdd3e5; font-size: 10px; text-transform: capitalize; }
.status.completed, .status.active, .status.approved { background: #153a32; color: #9ee8cb; }
.status.failed, .status.banned, .status.canceled { background: #48272e; color: #ffb1ae; }
.status.pending, .status.processing, .status.in_progress { background: #453a22; color: #f5d38e; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 15px; }
.toolbar input, .toolbar select { width: auto; min-width: 170px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field.full-width { grid-column: 1 / -1; }
.field label { color: #c1cedb; font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 44px; padding: 10px 12px; outline: 0; border: 1px solid #2b4057; border-radius: 10px; background: #091523; color: var(--text); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 3px #1c9b7b22; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state { padding: 34px 18px; color: var(--muted); text-align: center; font-size: 13px; }
.notice { margin: 15px 0; padding: 12px 14px; border: 1px solid #365943; border-radius: 10px; background: #12291f; color: #b9ebcf; font-size: 13px; line-height: 1.5; }
.notice.error { border-color: #674047; background: #301e27; color: #ffb4b0; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: #020811c9; }
.modal { width: min(100%, 510px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border: 1px solid #2b4158; border-radius: 18px; background: #0c1929; box-shadow: 0 24px 80px #0009; }
.modal.wide { width: min(100%, 700px); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; }
.toast { position: fixed; z-index: 40; top: 20px; right: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 13px 16px; border: 1px solid #2e6657; border-radius: 12px; background: #10291f; color: #b4efd3; box-shadow: 0 14px 40px #0005; font-size: 13px; }
.toast.error { border-color: #71414a; background: #321d26; color: #ffc0bd; }
.pix-box { margin: 15px 0; padding: 12px; border-radius: 10px; background: #091523; color: #bdcbd9; font-size: 11px; line-height: 1.6; word-break: break-all; }
.admin-login { width: min(100%, 480px); margin: 9vh auto; }
.mobile-menu { display: none; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.separator { height: 1px; margin: 18px 0; background: var(--border); }
.category-filter { max-width: 220px; }
.row-actions { display: flex; gap: 8px; }
.service-admin-row { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(3, minmax(100px, 1fr)) auto; gap: 10px; align-items: center; padding: 13px 0; border-top: 1px solid #1b2e42; }
.service-admin-row:first-of-type { border-top: 0; }
.pricing-default-box { padding: 20px; margin-bottom: 20px; border: 1px solid #29435e; border-radius: 12px; background: #071522; }
.pricing-default-box .field { max-width: 300px; }
.pricing-default-box p { margin: 12px 0 0; font-size: 13px; }
.bulk-services { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid #29435e; }
.bulk-services .row-actions { margin-left: auto; }
.service-selection { display: flex; align-items: flex-start; gap: 10px; }
.service-selection input[type="checkbox"], .bulk-services input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.services-pagination { margin-top: 20px; }
.client-shell { background: var(--bg); color: var(--text); }
.client-shell .client-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 10px 16px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff50 transparent; }
.client-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.client-locale { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 12px 14px; margin-bottom: 10px; background: #101f35; color: #38bdf8; border-radius: 18px; font-size: 13px; font-weight: 750; }
.client-locale .client-icon { width: 16px; height: 16px; }
.client-locale i { width: 1px; height: 18px; background: #334155; }
.client-balance { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 0; border-radius: 18px; text-align: left; background: #101f35; cursor: pointer; }
.client-balance-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--brand-gradient); }
.client-balance small { display: block; margin-bottom: 4px; color: #94a3b8; font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.client-balance strong { display: block; color: #38bdf8; font-weight: 850; font-size: 18px; }
.client-shell .client-nav { gap: 6px; }
.client-shell .client-nav button { min-height: 43px; padding: 0 16px; gap: 12px; color: #fff; font-size: 14px; font-weight: 700; border-radius: 9px; }
.client-shell .client-nav button:hover { background: #ffffff19; }
.client-shell .client-nav button.active { color: #38bdf8; background: #142b3e; box-shadow: 0 4px 16px #1d399719; }
.client-group-toggle .client-icon:last-child { margin-left: auto; width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
.client-group-toggle[aria-expanded="true"] .client-icon:last-child { transform: rotate(180deg); }
.client-shell .client-subitem { padding-left: 34px !important; font-size: 12px !important; min-height: 38px !important; }
.client-submenu[hidden] { display: none; }
.client-shell .field[hidden] { display: none; }
.client-sidebar .sidebar-bottom { padding-top: 24px; }
.client-sidebar .account-mini { border-color: #ffffff30; background: #ffffff0e; color: #fff; }
.client-sidebar .account-mini span { color: #d1e1ff; }
.client-sidebar .button.ghost { border-color: #ffffff40; color: #fff; background: #ffffff08; }
.client-shell .app-header { background: #07101f; border-color: var(--border); }
.client-shell .app-header h1 { font-weight: 750; }
.client-shell .app-header p, .client-shell .muted { color: #94a3b8; }
.client-shell .panel, .client-shell .metric-card, .client-shell .service-card { background: var(--surface); border-color: var(--border); box-shadow: 0 4px 20px #18356b05; }
.client-shell .metric-card span { color: #94a3b8; }
.client-shell .metric-card small { color: #38bdf8; }
.client-shell .metric-card strong { color: #e2e8f0; }
.client-shell .button { background: linear-gradient(100deg, #0ea5e9, #9333ea, #c026d3); color: #fff; border-color: transparent; box-shadow: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.client-shell .button.secondary, .client-shell .button.ghost { color: #7dd3fc; background: #12223a; border-color: #2b4059; }
.client-shell .sidebar .button.ghost { color: #fff; background: transparent; border-color: #ffffff35; }
.client-shell input, .client-shell textarea, .client-shell select { color: #e2e8f0; background: #071422; border-color: #29435e; }
.client-shell input::placeholder, .client-shell textarea::placeholder { color: #8995aa; }
.client-shell th { color: #94a3b8; background: #0b1628; }
.client-shell td, .client-shell th { border-color: #223047; }
.client-shell td { color: #cbd5e1; }
.client-shell td small { color: #94a3b8; }
.client-shell .tag { color: #38bdf8; background: #082d45; }
.client-shell .service-price strong, .client-shell .text-link { color: #38bdf8; }
.client-shell .separator { background: #24364c; }
.client-shell .status { background: #0a304a; color: #38bdf8; }
.client-shell .status.completed { color: #34d399; background: #0b352d; }
.client-shell .status.failed, .client-shell .status.canceled { color: #fda4af; background: #462532; }
.client-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.client-order-info { margin-top: 0 !important; }
.client-order-info p, .client-shell .panel > p { line-height: 1.7; color: #94a3b8; }
.client-order-total { display: flex; justify-content: space-between; align-items: center; padding: 18px; margin-bottom: 20px; background: #0b2940; border-radius: 12px; color: #7dd3fc; }
.client-order-total strong { font-size: 24px; }
.client-code { padding: 18px; border-radius: 12px; background: #071422; color: #7dd3fc; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-help-list { padding-left: 23px; line-height: 1.8; color: #94a3b8; }
.client-help-list li { margin-bottom: 16px; }
@media (max-width: 1100px) { .client-order-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .client-shell .client-sidebar { height: 100dvh; } }
.provider-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-top: 1px solid #1b2e42; }
.provider-card:first-of-type { border-top: 0; }
.client-brand { display: block; padding: 4px 12px 20px; font-size: 20px; font-weight: 900; letter-spacing: .02em; background: var(--brand-gradient); background-clip: text; color: transparent; }
.client-shell .main-area { background: var(--bg); color: var(--text); min-width: 0; }
.client-shell .client-locale, .client-shell .client-balance { background: var(--surface-raised); border: 1px solid var(--border); }
.client-shell .client-nav button.active { color: var(--text); background: linear-gradient(110deg, #0ea5e930, #9333ea30); border: 1px solid #9333ea55; }
.client-shell .app-header { background: var(--bg); }
.client-shell .panel, .client-shell .metric-card, .client-shell .service-card { background: var(--surface); color: var(--text); }
.franchise-hero { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(ellipse at top right, #9333ea35, transparent 60%), var(--surface); margin-bottom: 20px; }
.franchise-hero h2 { font-size: 26px; margin: 0 0 8px; }
.franchise-hero p { color: var(--muted); line-height: 1.65; }
.franchise-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.franchise-pills span { padding: 12px 16px; border-radius: 10px; background: #ffffff07; border: 1px solid var(--border); font-size: 13px; }
.franchise-pills small { display: block; color: var(--muted); margin-bottom: 4px; }
.franchise-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.franchise-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; padding: 10px 15px; font-weight: 650; }
.franchise-tabs button.active { background: var(--brand-gradient); color: white; }
.franchise-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.franchise-aside { display: grid; gap: 18px; }
.franchise-info { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); line-height: 1.75; color: var(--muted); }
.franchise-info h3 { color: var(--text); margin-top: 0; }
.franchise-info ul { padding-left: 20px; margin-bottom: 0; }
.franchise-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.franchise-example { padding: 22px; border-radius: 14px; border: 1px solid #9333ea55; background: linear-gradient(110deg,#0ea5e918,#9333ea25); margin: 20px 0; }
.franchise-steps { counter-reset: steps; padding: 20px; border: 1px solid var(--border); background: var(--surface-raised); border-radius: 14px; list-style: none; }
.franchise-steps li { counter-increment: steps; display: flex; gap: 14px; align-items: start; margin-bottom: 16px; line-height: 1.6; }
.franchise-steps li:last-child { margin-bottom: 0; }
.franchise-steps li::before { content: counter(steps); display: grid; place-items: center; min-width: 27px; height: 27px; border-radius: 50%; background: var(--brand-gradient); color: white; font-weight: 750; }
.franchise-price { border: 1px dashed var(--border); border-radius: 14px; margin: 16px 0; overflow: hidden; }
.franchise-price summary { padding: 18px; cursor: pointer; font-weight: 750; background: var(--surface-raised); }
.franchise-price-content { padding: 18px; }
.franchise-price pre { color: var(--text); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; }
.franchise-goal progress { width: 100%; height: 12px; accent-color: #a855f7; }
.pix-receipt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.pix-receipt p { font-size: 12px; line-height: 1.7; }
.modal .row-actions { display: flex; flex-wrap: wrap; align-items: stretch; }
.modal .row-actions .button { flex: 1 1 125px; min-height: 44px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
td .pix-receipt .button { white-space: normal; min-width: 160px; }
.panel-name { font-size: 20px; font-weight: 850; color: var(--brand); }
@media (max-width: 900px) { .franchise-layout, .franchise-cards { grid-template-columns: 1fr; } .franchise-tabs { flex-wrap: nowrap; overflow-x: auto; } .franchise-tabs button { white-space: nowrap; } }
.revenue-chart { display: flex; gap: 10px; height: 160px; align-items: end; overflow-x: auto; padding: 10px; }
.revenue-column { min-width: 38px; display: grid; gap: 8px; text-align: center; color: var(--muted); font-size: 11px; }
.revenue-bar { display: block; border-radius: 5px 5px 0 0; background: linear-gradient(#38bdf8, #7c3aed); }
.footer-spacer { height: 24px; }

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 12; inset: 0 auto 0 0; width: min(285px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 55px #0007; }
    .sidebar.open { transform: translateX(0); }
    .mobile-menu { display: inline-flex; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-content { padding: 22px 18px 44px; }
    .app-header { padding: 12px 18px; }
}
@media (max-width: 640px) {
    .topbar { height: 66px; padding: 0 18px; }
    .nav-links { gap: 12px; }
    .nav-links a:not(.button) { display: none; }
    .hero { margin: 14px 12px 54px; padding: 48px 22px; border-radius: 21px; }
    .hero-copy { font-size: 15px; }
    .section { margin-bottom: 56px; padding: 0 18px; }
    .section-heading { align-items: start; flex-direction: column; }
    .feature-grid, .service-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 105px; padding: 14px; }
    .metric-card strong { font-size: 21px; }
    .main-content { padding: 17px 12px 38px; }
    .panel { padding: 15px; }
    .app-header { min-height: 66px; }
    .app-header h1 { font-size: 17px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .field.full-width { grid-column: auto; }
    .service-admin-row { grid-template-columns: 1fr 1fr; }
    .service-admin-row .service-name { grid-column: 1 / -1; }
    .row-actions { grid-column: 1 / -1; }
}
/* Serviços e Preços: filtros e edição do catálogo */
.services-management { background:#0b1424; border-radius:16px; padding:24px; }
.service-filter-panel .form-grid { gap:18px; }
.service-filter-panel .field { margin:0; }
.service-filter-panel select,.service-filter-panel input { border-radius:999px; background:#0b1424; min-height:44px; }
.service-filter-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:16px; flex-wrap:wrap; }
.service-filter-actions label { margin-right:auto; display:flex; align-items:center; gap:10px; color:var(--muted); }
.service-filter-actions select { width:90px; }
.service-filter-actions .button { border-radius:999px; }
.service-filter-actions .button.secondary { background:#eee; color:#161616; }
.service-filter-chips { display:flex; flex-wrap:wrap; gap:9px; padding:20px 0; margin-top:20px; border-top:1px solid var(--border); }
.service-filter-chips span { background:#263449; border-radius:999px; padding:5px 10px; font-size:12px; }
.service-indicators { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:0 0 24px; }
.service-indicators div { padding:15px; background:#101e32; border:1px solid var(--border); border-radius:12px; }
.service-indicators strong { display:block; font-size:24px; margin-bottom:5px; }
.service-indicators span { color:var(--muted); font-size:13px; }
.service-table-scroll { overflow-x:auto; }
.service-table-head,.service-admin-row.service-managed-row { display:grid; grid-template-columns:85px minmax(260px,2fr) minmax(130px,1fr) minmax(150px,1fr) minmax(205px,1fr) 75px; gap:16px; min-width:1000px; align-items:center; }
.service-table-head { font-size:12px; color:var(--muted); padding:16px 0; border-bottom:1px solid var(--border); }
.service-admin-row.service-managed-row { padding:22px 0; }
.service-managed-row label { font-size:12px; display:block; color:var(--muted); }
.service-managed-row input:not([type=checkbox]),.service-managed-row select { width:100%; min-height:40px; margin:5px 0 8px; }
.service-managed-row .service-selection { display:flex; gap:7px; align-items:center; }
.service-managed-row p { overflow-wrap:anywhere; }
.service-money span { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin:8px 0; font-size:13px; }
.service-status { display:inline-block; padding:5px 8px; border-radius:7px; background:#422733; color:#ffb2b0; margin-top:7px; }
.service-status.available { background:#073a2b; color:#6fe2a5; }
@media(max-width:700px) {
 .services-management { padding:16px; }
 .service-indicators { grid-template-columns:repeat(2,1fr); }
 .service-filter-panel .form-grid { grid-template-columns:1fr; }
 .service-filter-actions label { width:100%; }
 .service-filter-actions .button { flex:1; }
 .service-table-head { display:none; }
 .service-admin-row.service-managed-row { min-width:0; grid-template-columns:1fr; padding:22px 12px; margin:12px 0; border:1px solid var(--border); border-radius:12px; }
 .service-managed-row .service-name { grid-column:auto; }
 .service-managed-row > button { width:100%; }
}
.service-full-name { display:block; overflow-wrap:anywhere; line-height:1.5; margin-bottom:12px; }
.service-managed-row .service-name { min-width:0; }
.profile-pending { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; border:1px solid #b98533; background:#302616; }
.profile-pending p { margin:7px 0 0; color:#ecd2a0; }
@media(max-width:600px) { .profile-pending { align-items:stretch; flex-direction:column; } }
