.client-settings-page{padding:30px;max-width:1180px;margin:auto}.client-settings-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:26px}.client-settings-head>div>span{font-size:9px;color:var(--green);font-weight:800;letter-spacing:1.2px}.client-settings-head h1{font:700 24px Manrope;margin:6px 0 3px}.client-settings-head p{color:var(--muted);font-size:12px;margin:0}.settings-back{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;margin-top:3px}.settings-catalog,.provider-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.settings-catalog>button,.provider-grid>*{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:19px;text-align:left;font-family:inherit;cursor:pointer;display:flex;gap:13px;min-height:145px}.settings-catalog>button:hover,.provider-grid>button:hover{border-color:var(--green);box-shadow:0 9px 25px #1021190d}.settings-card-icon,.provider-logo{width:40px;height:40px;border-radius:10px;background:var(--green-soft);color:var(--green-dark);display:grid;place-items:center;font-style:normal;font-weight:800;flex:none}.settings-card-icon.purple{background:#eeebff;color:#6658c1}.settings-card-icon.orange{background:#fff0e5;color:#ce6c37}.settings-catalog h3,.provider-grid h3{font:700 13px Manrope;margin:2px 0 7px}.settings-catalog p,.provider-grid p{font-size:10px;color:var(--muted);line-height:1.5;margin:0 0 12px}.settings-catalog span,.settings-catalog button div>span,.provider-grid b{font-size:9px;color:var(--green-dark)}.connections-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 16px;margin-bottom:12px}.connections-toolbar span{font-size:10px;color:var(--muted)}.connections-toolbar .primary{height:36px}.connection-list{display:grid;gap:9px}.connection-row{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;display:flex;align-items:center;gap:12px}.channel-logo{width:40px;height:40px;border-radius:10px;background:#ddf8e9;color:#098b55;display:grid;place-items:center;font-weight:800}.connection-row>div:nth-child(2){flex:1}.connection-row h3{font-size:12px;margin:0 0 3px}.connection-row p{font-size:9px;color:var(--muted);margin:0}.connection-state{font-size:9px;border-radius:12px;padding:4px 8px}.connection-state.connected{background:#e2f8ed;color:#07814f}.connection-state.waiting{background:#fff3df;color:#a76b15}.connection-state.offline{background:#f1f3f2;color:#758079}.connection-row .secondary{font-size:9px}.connection-delete{border:0;background:none;font-size:18px;cursor:pointer}.connections-empty{background:#fff;border:1px dashed #d5ddd8;border-radius:12px;text-align:center;padding:60px}.connections-empty>span{font-size:30px;color:var(--green)}.connections-empty h3{font:700 14px Manrope}.connections-empty p{font-size:10px;color:var(--muted)}.connections-empty .primary{height:36px;margin-top:10px}.provider-grid>*{position:relative;display:block;min-height:210px}.provider-grid .provider-logo{margin-bottom:16px}.provider-grid>*>span{position:absolute;right:15px;top:15px;font-size:8px;border-radius:10px;padding:4px 7px;background:#f0f2f1;color:var(--muted)}.provider-grid .provider-ready{background:#e2f8ed;color:#07814f}.provider-grid .disabled{opacity:.65}.evolution-tenant-card{max-width:720px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.setup-provider{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:17px}.setup-provider>div:nth-child(2){flex:1}.setup-provider h3{margin:0;font:700 13px Manrope}.setup-provider p{margin:3px 0 0;font-size:9px;color:var(--muted)}.setup-provider .provider-ready{font-size:8px;background:#e2f8ed;color:#07814f;border-radius:10px;padding:4px 7px}.evolution-tenant-card form>label{display:block;font-size:10px;font-weight:700;margin:20px 0}.evolution-tenant-card input{display:block;width:100%;height:43px;border:1px solid #dbe2de;border-radius:8px;margin-top:7px;padding:0 12px;font:12px inherit}.setup-info{display:flex;gap:10px;background:#eef8f3;border-radius:8px;padding:11px;color:#266145}.setup-info p{font-size:9px;line-height:1.5;margin:0}.evolution-tenant-card form footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.evolution-tenant-card form footer .primary{height:36px}.qr-flow{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:center}.qr-image{width:260px;height:260px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;padding:12px}.qr-image img{max-width:100%;max-height:100%}.qr-loading{font-size:10px;color:var(--muted)}.qr-flow h2{font:700 18px Manrope}.qr-flow ol{padding-left:18px;color:var(--muted);font-size:10px;line-height:2}.qr-flow .primary{height:36px}.integration-key-saved{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--green-tint);border-radius:8px;padding:10px 12px;margin-top:7px}.integration-key-lock{width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:11px;flex:none}.integration-key-saved div{flex:1;min-width:0}.integration-key-saved strong{display:block;font-size:11px}.integration-key-saved small{font-size:9px;color:var(--muted)}.integration-key-saved code{font-size:11px;color:var(--muted)}.integration-key-saved button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 10px;font-size:9px;font-weight:700;cursor:pointer}.integration-key-editor{position:relative;margin-top:7px}.integration-key-editor input{padding-right:44px}.integration-key-editor button{position:absolute;right:6px;top:6px;width:30px;height:30px;border:0;background:transparent;color:var(--muted);cursor:pointer}.integration-key-editor.hidden{display:none}.integration-config-error{background:var(--danger-soft);border:1px solid #f0cfcb;color:#b8443d;border-radius:7px;padding:10px;font-size:10px;margin-top:12px}
.provider-logo.purple{background:#eeebff;color:#6658c1}
.feature-list{max-width:760px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-top:16px}.feature-list h2{font:700 14px Manrope;margin:0 0 4px}.feature-list>p{font-size:10px;color:var(--muted);margin:0 0 16px}.feature-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.feature-row h3{font-size:12px;margin:0 0 3px}.feature-row p{font-size:10px;color:var(--muted);margin:0;line-height:1.5}.feature-row>div:first-child{flex:1;min-width:0}.feature-list-hint{font-size:9px;color:var(--muted);margin:12px 0 0}
.switch{position:relative;display:inline-block;width:38px;height:22px;flex:none}.switch input{opacity:0;width:0;height:0}.switch-track{position:absolute;inset:0;background:var(--line);border-radius:20px;cursor:pointer;transition:.15s}.switch-track::before{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.15s}.switch input:checked+.switch-track{background:var(--green)}.switch input:checked+.switch-track::before{transform:translateX(16px)}.switch input:disabled+.switch-track{opacity:.5;cursor:not-allowed}
@media(max-width:760px){.settings-catalog,.provider-grid{grid-template-columns:1fr}.client-settings-page{padding:22px 16px}.connections-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.connection-row{flex-wrap:wrap}.qr-flow{grid-template-columns:1fr}.qr-image{width:100%}}

/* ===== Passe de modernização: tokens, cartões e ícones SVG ===== */
.settings-back{width:34px;height:34px;border-radius:50%;color:#5c6862;display:grid;place-items:center;padding:0;transition:border-color .15s,color .15s,background .15s}
.settings-back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings-back:hover{border-color:var(--green);color:var(--green-dark);background:var(--green-tint)}
.client-settings-head{margin-bottom:24px}

.settings-catalog>button,.provider-grid>*{border-radius:var(--radius-lg);box-shadow:var(--shadow-card);transition:transform .15s,box-shadow .15s,border-color .15s}
.settings-catalog>button:hover,.provider-grid>button:hover{border-color:var(--green);box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}
.settings-card-icon,.provider-logo,.channel-logo{border-radius:var(--radius-md)}
.settings-card-icon svg,.provider-logo svg,.channel-logo svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings-catalog button div>span,.provider-grid b{display:inline-flex;align-items:center;gap:5px;font-weight:700}
.settings-catalog button div>span svg,.provider-grid b svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.provider-grid>*>span{border-radius:var(--radius-pill);font-weight:700;letter-spacing:.3px}

.connections-toolbar{border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}
.connections-toolbar strong{font:700 14px var(--font-display)}
.connection-list{gap:10px}
.connection-row{border-radius:var(--radius-lg);box-shadow:var(--shadow-card);transition:box-shadow .15s,border-color .15s,transform .15s}
.connection-row:hover{box-shadow:var(--shadow-card-hover);border-color:#d4ddd7;transform:translateY(-1px)}
.connection-row h3{font:700 12.5px var(--font-display)}
.connection-row .secondary{height:32px;padding:0 14px;font-size:11px}
.connection-state{display:inline-flex;align-items:center;gap:5px;border-radius:var(--radius-pill);padding:5px 11px;font-weight:700;white-space:nowrap}
.connection-state::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.connection-delete{width:32px;height:32px;flex:none;border:1px solid var(--line);background:#fff;border-radius:50%;color:#5c6862;display:grid;place-items:center;padding:0;font-size:0;transition:border-color .15s,color .15s,background .15s}
.connection-delete svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.connection-delete:hover{border-color:#e6b3ad;color:#b8443d;background:var(--danger-soft)}

.connections-empty{border-radius:var(--radius-lg);padding:56px 30px;background:#fff}
.connections-empty>span{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 14px;border-radius:var(--radius-lg);background:var(--green-soft);color:var(--green-dark)}
.connections-empty>span svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.connections-empty h3{margin:0 0 6px}
.connections-empty p{margin:0;line-height:1.6}

.evolution-tenant-card,.feature-list{border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}
.evolution-tenant-card input{border-radius:var(--radius-sm);transition:border-color .15s,box-shadow .15s}
.evolution-tenant-card input:focus{outline:0;border-color:var(--green);box-shadow:var(--glow)}
.setup-provider .provider-ready,.setup-provider>span{border-radius:var(--radius-pill);font-weight:700}
.setup-info{border-radius:var(--radius-md);align-items:center}
.setup-info>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;flex:none}
.setup-info>span svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.qr-image{border-radius:var(--radius-lg);box-shadow:var(--shadow-card);background:#fff}
.qr-flow h2{margin:10px 0 4px}
.integration-key-saved{border-radius:var(--radius-md)}
.integration-key-lock svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.integration-key-saved button{border-radius:var(--radius-pill);padding:7px 13px;transition:border-color .15s,color .15s,background .15s}
.integration-key-saved button:hover{border-color:var(--green);color:var(--green-dark);background:var(--green-tint)}
.integration-key-editor button{display:grid;place-items:center;border-radius:50%}
.integration-key-editor button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.integration-key-editor button:hover{color:var(--green-dark);background:var(--green-tint)}
.integration-notice{display:flex;gap:12px;align-items:flex-start;background:var(--green-tint);border:1px solid #d5ecdf;border-radius:var(--radius-lg);padding:14px 16px;margin-bottom:16px;max-width:760px}
.integration-notice>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--green-soft);color:var(--green-dark);flex:none;font-size:0}
.integration-notice>span svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.integration-notice strong{font-size:12px}
.integration-notice p{font-size:10.5px;color:var(--muted);margin:3px 0 0;line-height:1.55}
.connections-empty>span.is-error{background:var(--danger-soft);color:#b8443d}
.provider-grid>button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
.provider-grid>button>p{flex:1}
.settings-catalog>button>div{display:flex;flex-direction:column;flex:1;min-width:0}
.settings-catalog button div>span{margin-top:auto}
