:root{--brand:#1e1947;--ink:#19162b;--muted:#6f6b7f;--bg:#f7f7fb;--line:#e6e3ef;--green:#128b5b}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.top{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(24px,calc((100% - 1180px)/2));gap:28px;position:sticky;top:0;z-index:20}.brand img{width:190px;display:block}.nav{margin-left:auto;display:flex;gap:8px;align-items:center}.nav a{padding:11px 14px;border-radius:10px;font-weight:700;font-size:14px}.nav a.on,.nav a:hover{background:#f0eff7}.hamb{display:none;margin-left:auto;border:1px solid var(--line);background:white;border-radius:10px;width:42px;height:42px;font-size:22px}.wrap{max-width:1180px;margin:34px auto;padding:0 20px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.12em;color:#665f9c;text-transform:uppercase}.hero h1{font-size:34px;margin:7px 0 5px}.hero p{margin:0;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 28px rgba(30,25,71,.04)}.metric b{font-size:27px;display:block;margin-top:8px}.metric span{color:var(--muted);font-size:13px}.two{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:18px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--brand);color:#fff;border-radius:12px;padding:13px 16px;font-weight:800;cursor:pointer}.btn.ghost{background:#fff;color:var(--brand);border:1px solid var(--line)}.btn.green{background:var(--green)}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.product h3{margin:8px 0}.product .price{font-size:25px;font-weight:900}.product .commission{color:var(--green);font-weight:800}.product p{color:var(--muted);min-height:48px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line);font-size:14px}th{font-size:12px;color:var(--muted);text-transform:uppercase}.badge{display:inline-block;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;background:#eee}.badge.paid,.badge.available,.badge.active{background:#dcf5e9;color:#176e4d}.badge.pending{background:#fff2c9;color:#866500}.badge.cancelled,.badge.refunded,.badge.blocked{background:#fde2e2;color:#8a2c2c}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#f8f7ff,#eceaf6)}.authbox{width:min(520px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:28px}.authbox img{width:230px}.authbox h1{margin:24px 0 8px}.authbox p{color:var(--muted)}label{display:block;font-size:13px;font-weight:800;margin:13px 0 5px}input,select,textarea{width:100%;border:1px solid #d9d5e6;border-radius:11px;padding:12px;font:inherit;background:white}textarea{min-height:90px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}.alert{padding:12px 14px;background:#fff0f0;color:#8a2525;border-radius:11px;margin:12px 0}.ok{padding:12px 14px;background:#e7f8ef;color:#196942;border-radius:11px;margin:12px 0}.checkout{max-width:900px;margin:35px auto;padding:0 20px}.checkout-grid{display:grid;grid-template-columns:1fr .75fr;gap:20px}.summary{position:sticky;top:96px;height:max-content}.summary .total{font-size:30px;font-weight:900}.small{font-size:12px;color:var(--muted)}.copy{word-break:break-all;background:#f7f6fb;border:1px dashed #cfc9df;padding:10px;border-radius:10px;font-size:12px}.refbox{background:linear-gradient(135deg,#1e1947,#373071);color:white;border-radius:20px;padding:22px}.refbox .copy{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25)}@media(max-width:900px){.grid{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr 1fr}.two,.checkout-grid{grid-template-columns:1fr}.summary{position:static}.nav{display:none;position:absolute;top:74px;left:0;right:0;background:white;padding:12px 20px;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.nav.open{display:flex}.hamb{display:block}.brand img{width:170px}}@media(max-width:560px){.grid,.product-grid,.formgrid{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.hero h1{font-size:28px}.top{padding:0 16px}.wrap{margin-top:24px}table{display:block;overflow:auto}.authbox{padding:22px}}


/* V1.1 - PÁGINA DE VENDAS DO PROGRAMA DE PARCEIROS */
.sales-page{background:#fff;min-height:100vh}
.sales-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.sales-nav{height:78px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(12px)}
.sales-nav-inner{width:min(1180px,calc(100% - 40px));height:100%;margin:auto;display:flex;align-items:center;gap:25px}
.sales-nav .brand img{width:190px}
.sales-links{display:flex;align-items:center;gap:7px;margin-left:auto}
.sales-links>a:not(.btn){padding:11px 12px;font-size:14px;font-weight:750;color:#4e4960}
.sales-hamb{display:none;margin-left:auto;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--brand);font-size:22px}
.sales-hero{padding:76px 0 70px;background:radial-gradient(circle at 85% 20%,#ece9ff 0,transparent 32%),linear-gradient(180deg,#fbfaff,#fff)}
.sales-hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:62px;align-items:center}
.sales-hero h1{font-size:clamp(42px,5.2vw,72px);line-height:.98;letter-spacing:-.052em;margin:13px 0 24px;max-width:750px}
.sales-hero h1 span{color:#655f89}
.lead{font-size:19px;line-height:1.6;color:var(--muted);max-width:700px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0 20px}.btn-lg{padding:16px 21px;font-size:15px}
.trust-row{display:flex;gap:16px;flex-wrap:wrap;font-weight:800;font-size:13px;color:#393351;margin-bottom:16px}
.sales-dashboard-demo{background:#17132f;color:white;border-radius:26px;padding:18px;box-shadow:0 30px 75px rgba(30,25,71,.25);transform:rotate(1.2deg)}
.demo-top{height:34px;display:flex;align-items:center;gap:6px;color:#bdb8d4;font-size:12px}.demo-top span{width:9px;height:9px;border-radius:50%;background:#5b5672}.demo-top b{margin-left:8px}
.demo-welcome{padding:20px 10px 16px}.demo-welcome small{display:block;color:#9993bd;font-weight:900;letter-spacing:.12em}.demo-welcome strong{display:block;font-size:24px;margin-top:5px}
.demo-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.demo-metrics div{background:#252044;border:1px solid #37305a;border-radius:15px;padding:16px}.demo-metrics small{color:#aaa4c3}.demo-metrics b{display:block;font-size:22px;margin-top:6px}
.demo-sale{display:flex;justify-content:space-between;align-items:center;background:#fff;color:#252039;padding:14px 15px;border-radius:13px;margin-top:8px;font-size:13px}.demo-sale b{color:#128b5b;font-size:11px}
.sales-section{padding:85px 0}.sales-section.alt{background:#f7f7fb}.sales-heading{max-width:720px;margin-bottom:34px}.sales-heading h2,.split-benefit h2,.faq-wrap h2{font-size:clamp(32px,4vw,50px);letter-spacing:-.04em;line-height:1.05;margin:10px 0 14px}.sales-heading p,.split-benefit>div>p{font-size:17px;color:var(--muted);line-height:1.6}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.steps article,.feature-grid article{border:1px solid var(--line);border-radius:19px;padding:22px;background:#fff}.steps span{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#efedf8;color:var(--brand);font-weight:900}.steps h3{margin:20px 0 8px}.steps p,.feature-grid p{color:var(--muted);line-height:1.55;margin-bottom:0}
.sales-products{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.sales-product{background:#fff;border:1px solid var(--line);border-radius:19px;padding:22px;display:flex;flex-direction:column}.sales-product h3{font-size:20px;margin:8px 0}.sales-price{font-size:26px;font-weight:900}.sales-price small,.big-number small{font-size:13px;color:var(--muted)}.sales-product p{color:var(--muted);line-height:1.5;flex:1}.earn{padding:11px 12px;border-radius:11px;background:#eaf8f1;color:#176e4d;font-size:13px;margin-top:10px}
.split-benefit{display:grid;grid-template-columns:1fr .72fr;gap:55px;align-items:center}.status-list{display:grid;gap:10px;margin-top:28px}.status-list div{display:flex;flex-direction:column;gap:4px;border-left:3px solid #dcd8ed;padding:8px 15px}.status-list span{color:var(--muted);font-size:14px}
.commission-example{background:#1e1947;color:#fff;border-radius:24px;padding:30px}.commission-example .eyebrow{color:#bcb5e7}.commission-example h3{font-size:25px;margin:8px 0}.big-number{font-size:44px;font-weight:950;margin:12px 0 24px}.commission-example .big-number small{color:#bcb5cf}.calc-line{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.14);padding:15px 0}.commission-example .small{color:#bcb5cf;line-height:1.5}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.feature-grid b{font-size:17px}
.faq-wrap{display:grid;grid-template-columns:.7fr 1fr;gap:55px}.faq-wrap details{border-bottom:1px solid var(--line);padding:20px 0}.faq-wrap summary{font-size:17px;font-weight:850;cursor:pointer}.faq-wrap details p{color:var(--muted);line-height:1.55;margin-bottom:0}
.sales-cta{background:#1e1947;color:#fff;padding:58px 0}.sales-cta .sales-container{display:flex;align-items:center;justify-content:space-between;gap:30px}.sales-cta .eyebrow{color:#c9c4ef}.sales-cta h2{font-size:clamp(32px,4vw,50px);margin:8px 0}.sales-cta p{color:#c9c4df;margin:0}.btn-light{background:#fff;color:#1e1947}
.sales-footer{background:#151128;color:#c6c1da;padding:28px 0}.sales-footer .sales-container{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:13px}.sales-footer b{color:#fff}.sales-footer a{margin-left:auto}.sales-footer a+a{margin-left:0}
@media(max-width:900px){
 .sales-links{display:none;position:absolute;left:16px;right:16px;top:70px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:9px;box-shadow:0 18px 45px rgba(30,25,71,.15);flex-direction:column;align-items:stretch}.sales-links.open{display:flex}.sales-links>a{padding:13px!important;border-radius:10px}.sales-hamb{display:block}
 .sales-hero{padding:50px 0}.sales-hero-grid,.split-benefit,.faq-wrap{grid-template-columns:1fr}.sales-hero-grid{gap:38px}.steps{grid-template-columns:1fr 1fr}.sales-products,.feature-grid{grid-template-columns:1fr 1fr}.sales-dashboard-demo{transform:none}.sales-cta .sales-container{align-items:flex-start;flex-direction:column}
}
@media(max-width:580px){
 .sales-container,.sales-nav-inner{width:min(100% - 28px,1180px)}.sales-nav .brand img{width:168px}.sales-hero h1{font-size:42px}.lead{font-size:17px}.steps,.sales-products,.feature-grid{grid-template-columns:1fr}.sales-section{padding:62px 0}.demo-metrics{grid-template-columns:1fr 1fr}.trust-row{gap:9px 14px}.sales-footer .sales-container{align-items:flex-start;flex-direction:column}.sales-footer a{margin-left:0}
}


/* V1.2 - TERMOS E PRIVACIDADE */
.legal-page{background:#f7f7fb;min-height:100vh;padding:54px 0 80px}
.legal-container{width:min(900px,calc(100% - 32px));margin:auto}
.legal-top{margin-bottom:22px}.legal-top h1{font-size:clamp(34px,5vw,54px);letter-spacing:-.045em;line-height:1.04;margin:10px 0}.legal-updated{color:var(--muted);margin:0}.legal-back{display:inline-block;margin-bottom:28px;font-weight:800}
.legal-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(24px,4vw,48px);box-shadow:0 15px 45px rgba(30,25,71,.06)}
.legal-card h2{font-size:21px;margin:34px 0 10px;letter-spacing:-.02em}.legal-card p,.legal-card li{color:#575267;line-height:1.72;font-size:15px}.legal-card ul{padding-left:22px}.legal-card a{font-weight:800;text-decoration:underline}
.legal-note{margin-top:35px;padding:18px;border-radius:14px;background:#fff8e8;border:1px solid #f0dfb7;color:#6b5726;font-size:13px;line-height:1.6}
.terms-check{display:flex!important;align-items:flex-start;gap:10px!important;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8f8fb;font-size:13px!important;line-height:1.5}.terms-check input{width:18px!important;height:18px!important;min-width:18px;margin-top:2px}.terms-check a{text-decoration:underline;font-weight:800}
.auth-legal{text-align:center;font-size:12px;color:var(--muted);padding:18px}.auth-legal a{text-decoration:underline}
@media(max-width:580px){.legal-page{padding-top:32px}.legal-card{border-radius:17px}}


/* V1.4 - ações do admin de parceiros */
.rep-admin-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:180px}
.rep-admin-actions form{margin:0}
.rep-admin-actions select{width:100%}
.btn.mini{padding:8px 10px;font-size:12px;width:100%}
@media(max-width:760px){
  .rep-admin-actions{min-width:150px}
}

/* V1.5 - logística e menus extensos */
.shipping-dims{display:grid;grid-template-columns:repeat(2,minmax(72px,1fr));gap:5px;min-width:170px}
.shipping-dims input{min-width:0!important;padding:8px!important;font-size:11px!important}
@media(max-width:900px){
  .sales-links.open{max-height:calc(100vh - 95px);overflow-y:auto;overscroll-behavior:contain}
}


/* V1.8 - editor e exclusão de produtos */
.product-editor{border:1px solid rgba(30,25,71,.18);box-shadow:0 18px 50px rgba(30,25,71,.08)}
.product-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.product-editor-head h2{margin:4px 0 0}
.editor-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.check-line{display:flex!important;align-items:center!important;gap:9px!important;font-weight:650!important}
.check-line input{width:auto!important}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.products-admin-table{min-width:900px}
.product-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.product-row-actions form{margin:0}
.btn.danger{background:#fff0f0;color:#a82727;border:1px solid #f1caca}
.btn.danger:hover{background:#ffe3e3}
.btn.mini{padding:8px 11px;font-size:12px;white-space:nowrap}
@media(max-width:700px){
  .product-editor-head{flex-direction:column}
  .product-editor-head .btn{width:100%}
  .editor-actions .btn{flex:1;text-align:center}
}


/* V1.10 - edição rápida de produto */
.quick-edit-products td{vertical-align:top}
.quick-product-form{display:block;margin:0}
.quick-label{display:block;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 5px}
.quick-name{font-weight:850;min-width:260px}
.quick-two{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.quick-two input{min-width:120px}
.quick-active{display:flex;align-items:center;gap:8px;font-weight:800;white-space:nowrap;padding-top:28px}
.quick-active input{width:auto!important}
.quick-edit-products input[type="number"]{min-width:110px}
.quick-edit-products .product-row-actions{min-width:140px;flex-direction:column;align-items:stretch}
.quick-edit-products .product-row-actions .btn{width:100%;text-align:center}
@media(max-width:900px){
  .quick-edit-products{min-width:1050px}
}

/* V1.11 - fluxo de saques */
.payout-actions{display:flex;flex-direction:column;gap:7px;min-width:165px}
.payout-actions form{margin:0}
.payout-actions .btn{width:100%}
.payout-table{min-width:850px}
.badge.reserved,.badge.processing{background:#fff4d8;color:#805d00}
.badge.requested{background:#edf1ff;color:#39458f}
.badge.rejected{background:#fff0f0;color:#9b3030}

/* V1.12 - segurança reforçada de saques */
.security-payout-panel{border:1px solid rgba(40,116,86,.22)}
.security-checks{display:grid;gap:10px;margin-top:16px}
.security-confirm{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fafafe}
.security-confirm.ok{background:#eefaf4;border-color:#c8ead8}
.security-confirm input{width:auto!important;margin-top:3px}
.security-confirm span{display:flex;flex-direction:column;gap:3px}
.security-confirm small{color:var(--muted);line-height:1.45}
.security-warning{margin-top:16px;padding:14px;border-radius:12px;background:#fff4dc;border:1px solid #eed9a8;color:#6e5621;font-size:13px;line-height:1.5}
.pix-approval-form input[type="password"]{width:100%;min-width:180px;margin-bottom:7px;font-size:12px;padding:9px}
.badge.awaiting_app{background:#fff4dc;color:#775b0b}


/* V13.42 - edição em lote de produtos */
.catalog-bulk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.bulk-edit-products td{vertical-align:top}
.bulk-edit-products input[type="text"],
.bulk-edit-products input[type="number"],
.bulk-edit-products input:not([type]){width:100%;box-sizing:border-box}
.bulk-save-bar{
  position:sticky;
  bottom:12px;
  z-index:15;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:16px;
  padding:14px 16px;
  border:1px solid rgba(30,25,71,.14);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 40px rgba(30,25,71,.12);
  backdrop-filter:blur(10px);
}
.bulk-save-bar>div{display:flex;flex-direction:column;gap:2px}
.bulk-save-bar b{font-size:13px}
.bulk-save-bar span{font-size:11px;color:var(--muted)}
.bulk-save-button{min-width:210px}
.hidden-delete-form{display:none!important}
@media(max-width:720px){
  .bulk-save-bar{bottom:76px;flex-direction:column;align-items:stretch}
  .bulk-save-button{width:100%;min-width:0}
}


/* V13.43 - SKU automático */
.sku-field{display:flex;gap:6px;align-items:center}
.sku-field input{flex:1}
.sku-generate-btn{
  width:34px;height:34px;border-radius:9px;border:1px solid var(--line);
  background:#fff;cursor:pointer;font-weight:900;color:#1e1947;
}
.sku-generate-btn:hover{background:#f5f3fb}
.sku-auto-label{
  display:inline-flex;margin-left:4px;padding:2px 5px;border-radius:999px;
  background:#eef0ff;color:#514aa5;font-size:8px;letter-spacing:.03em;text-transform:none
}


/* V13.44 - SKU 100% automático e não editável */
.sku-readonly{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:8px 10px;
  border:1px solid rgba(30,25,71,.10);
  border-radius:9px;
  background:#f5f4f8;
  color:#5e596c;
  font-size:12px;
  font-weight:850;
  letter-spacing:.04em;
  user-select:text;
}
.sku-readonly-large{min-height:42px;font-size:13px}

/* V13.45 - mensalidade condicional */
.membership-price{margin:18px 0;display:flex;flex-direction:column;gap:5px}
.membership-price>span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.membership-price>b{font-size:38px;color:#1e1947}
.membership-price>small{line-height:1.45;color:var(--muted)}
