@import "tokens.css";
@import "variables.css";
@import "design-system.css";
@import "typography.css";
@import "layout.css";
@import "components.css";
@import "certificates.css";
@import "store.css";
@import "animations.css";
@import "responsive.css";
@import "ux.css";
@import "performance.css";

/* RC1.8.3.6 - UX Final do Checkout */
.checkout-ux-detail{display:flex;flex-direction:column;gap:24px}.checkout-ux-hero{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;padding:32px;border-radius:28px;background:linear-gradient(135deg,#ffffff,#f7fbff);border:1px solid rgba(15,45,92,.08);box-shadow:0 20px 50px rgba(3,20,49,.08)}.checkout-ux-hero-success{background:linear-gradient(135deg,#f1fff8,#ffffff)}.checkout-ux-hero-warning{background:linear-gradient(135deg,#fff9ec,#ffffff)}.checkout-ux-hero-danger{background:linear-gradient(135deg,#fff3f3,#ffffff)}.checkout-ux-hero h1{font-size:38px;margin:8px 0}.checkout-ux-hero p{font-size:16px;color:#44556f;max-width:720px}.checkout-ux-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.checkout-ux-summary-card{background:#071b3a;color:#fff;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:10px;box-shadow:0 18px 40px rgba(3,20,49,.18)}.checkout-ux-summary-card strong{font-size:20px}.checkout-ux-order{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#e7bd49}.checkout-ux-total{font-size:32px;font-weight:900}.checkout-ux-status{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:7px 12px;font-weight:800;font-size:12px}.checkout-ux-status-success{background:#e8fff3;color:#05713d}.checkout-ux-status-warning{background:#fff4d8;color:#8a5a00}.checkout-ux-status-danger{background:#ffe7e7;color:#a41717}.checkout-ux-status-muted{background:#eef2f7;color:#44556f}.checkout-ux-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:18px}.checkout-ux-card{background:#fff;border:1px solid rgba(15,45,92,.08);border-radius:24px;padding:24px;box-shadow:0 14px 40px rgba(3,20,49,.06)}.checkout-ux-card-title{display:flex;gap:14px;align-items:center;margin-bottom:16px}.checkout-ux-card-title>span{height:44px;width:44px;border-radius:16px;display:grid;place-items:center;background:#eef5ff}.checkout-ux-card-title h2{margin:0}.checkout-ux-card-title small,.checkout-ux-muted{color:#64748b}.checkout-ux-items{display:flex;flex-direction:column;gap:12px}.checkout-ux-item{display:flex;justify-content:space-between;gap:12px;padding:14px;border-radius:16px;background:#f7f9fc}.checkout-ux-item small{display:block;color:#64748b;margin-top:4px}.pix-preview-box,.pix-real-ready{display:grid;grid-template-columns:120px 1fr;gap:18px;margin-top:20px;border-radius:20px;background:#f8fbff;border:1px dashed #b9c9e7;padding:18px}.pix-preview-qr{height:120px;width:120px;border-radius:18px;background:repeating-linear-gradient(45deg,#071b3a 0,#071b3a 8px,#fff 8px,#fff 16px);display:grid;place-items:center;color:#e7bd49;font-weight:900}.pix-preview-box code,.pix-real-ready code{display:block;margin:8px 0;padding:10px;border-radius:10px;background:#fff;word-break:break-all;color:#20304a}.checkout-ux-timeline{display:flex;flex-direction:column;gap:0}.checkout-ux-timeline-item{display:grid;grid-template-columns:44px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid #eef2f7}.checkout-ux-timeline-item:last-child{border-bottom:0}.checkout-ux-dot{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;background:#f2f6fb}.checkout-ux-timeline-item strong{display:block;margin:2px 0 4px}.checkout-ux-timeline-item p{margin:0 0 6px;color:#52627a}.checkout-ux-timeline-item span{font-size:12px;color:#64748b}.checkout-ux-empty{padding:20px;color:#64748b}.purchase-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.purchase-card{background:#fff;border:1px solid rgba(15,45,92,.08);border-radius:22px;padding:20px;box-shadow:0 14px 35px rgba(3,20,49,.06);display:flex;flex-direction:column;gap:14px}.purchase-card-success{border-color:rgba(5,113,61,.18)}.purchase-card-warning{border-color:rgba(226,174,55,.25)}.purchase-card-danger{border-color:rgba(164,23,23,.18)}.purchase-card-head,.purchase-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-card-head span{color:#64748b;font-weight:700}.purchase-card-head strong{font-size:12px;border-radius:999px;padding:6px 10px;background:#eef5ff;color:#164bc5}.purchase-card h2{margin:0}.purchase-card-meta{display:flex;gap:8px;flex-wrap:wrap}.purchase-card-meta span{font-size:12px;border-radius:999px;padding:6px 10px;background:#f2f6fb;color:#34445f;font-weight:800}.checkout-success-hero{text-align:center;max-width:760px;margin:140px auto 28px;color:#fff}.checkout-success-icon{height:76px;width:76px;border-radius:50%;display:grid;place-items:center;margin:18px auto;background:#e7bd49;color:#071b3a;font-size:42px;font-weight:900;box-shadow:0 18px 40px rgba(231,189,73,.28)}.checkout-success-hero h1{font-size:48px;margin:10px 0}.checkout-success-hero p{font-size:17px;color:#e8eef8}.checkout-success-panel,.checkout-success-summary{border-radius:28px}.checkout-success-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.checkout-success-order-head h2{margin:4px 0}.checkout-success-order-head p{color:#64748b;margin:0}.checkout-success-product-card{display:grid;grid-template-columns:120px 1fr auto;gap:18px;align-items:center;border:1px solid #dbe5f3;border-radius:22px;padding:18px}.checkout-success-layout{align-items:flex-start}.ut-course-cover em{box-shadow:0 10px 24px rgba(3,20,49,.12)}@media(max-width:900px){.checkout-ux-hero,.checkout-ux-grid,.pix-preview-box,.pix-real-ready,.checkout-success-product-card{grid-template-columns:1fr}.checkout-ux-hero h1,.checkout-success-hero h1{font-size:32px}.checkout-success-hero{margin-top:120px}.checkout-ux-summary-card{order:-1}.pix-preview-qr{width:100%;max-width:160px}.checkout-success-order-head{flex-direction:column}.checkout-ux-actions .btn{width:100%;justify-content:center}}
.pix-official-qr{width:120px;height:120px;border-radius:18px;background:#fff;border:1px solid #dbe5f3;object-fit:contain;padding:8px;box-shadow:0 10px 24px rgba(3,20,49,.08)}
@media(max-width:900px){.pix-official-qr{width:160px;height:160px}}

/* RC1.8.6 — Checkout PIX refinado */
.pix-real-ready-enhanced{align-items:flex-start;gap:24px;padding:22px;}
.pix-qr-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:244px;}
.pix-qr-wrap small{color:#5b6b82;font-weight:800;text-align:center;}
.pix-real-ready .pix-official-qr{width:228px;height:228px;border-radius:22px;padding:12px;}
.pix-real-ready .pix-preview-qr{width:228px;height:228px;border-radius:22px;}
.pix-payment-info{flex:1;min-width:0;}
.pix-copy-label{display:block;margin:14px 0 8px;color:#64748b;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.04em;}
.pix-copy-code{width:100%;box-sizing:border-box;border:1px solid #d9e4f2;background:#f8fbff;color:#0b1b34;border-radius:16px;padding:14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.45;resize:vertical;min-height:94px;}
.pix-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;}
.pix-actions .pix-action-button{background:#e7b94e;color:#07152b;border:0;box-shadow:0 12px 24px rgba(231,185,78,.18);cursor:pointer;min-width:150px;}
.pix-actions .pix-action-button:hover{filter:brightness(.97);transform:translateY(-1px);}
.pix-actions .pix-action-button:disabled{opacity:.45;cursor:not-allowed;transform:none;}
.pix-actions .pix-action-button.copied{background:#13b981;color:#fff;}
.pix-expiration-box{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:14px 16px;border-radius:16px;background:#fff7df;border:1px solid #f3d58a;color:#6e4b00;}
.pix-expiration-box span{font-weight:800;}
.pix-expiration-box strong{font-size:22px;color:#07152b;}
.payment-timeline{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.payment-timeline li{border:1px solid #dbe5f3;border-radius:14px;padding:10px;background:#fff;color:#66758c;font-size:12px;font-weight:900;text-align:center;}
.payment-timeline li.done{border-color:#bee8d4;background:#ecfdf5;color:#047857;}
.payment-timeline li.active{border-color:#f0c65f;background:#fff8e7;color:#9a6700;}
.checkout-live-message{margin-top:14px;color:#64748b;font-weight:800;}
.checkout-ux-status-success{background:#d1fae5!important;color:#065f46!important;}
.checkout-ux-status-danger{background:#fee2e2!important;color:#991b1b!important;}
@media(max-width:900px){.pix-real-ready-enhanced{flex-direction:column;align-items:stretch}.pix-qr-wrap{min-width:0}.pix-real-ready .pix-official-qr,.pix-real-ready .pix-preview-qr{width:240px;height:240px;margin:0 auto}.payment-timeline{grid-template-columns:1fr 1fr}.pix-actions .pix-action-button{width:100%}}


/* RC1.8.6.1 — Ajuste fino Checkout PIX */
.pix-real-ready.pix-real-ready-enhanced{
  display:grid !important;
  grid-template-columns:minmax(260px, 300px) minmax(0, 1fr) !important;
  gap:28px !important;
  padding:28px !important;
  align-items:start !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-qr-wrap{
  min-width:0 !important;
  width:100% !important;
  align-items:center !important;
  justify-content:flex-start !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-official-qr,
.pix-real-ready.pix-real-ready-enhanced .pix-preview-qr{
  width:260px !important;
  height:260px !important;
  max-width:100% !important;
  border-radius:24px !important;
  padding:14px !important;
  background:#fff !important;
  box-shadow:0 18px 42px rgba(3,20,49,.14) !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-qr-wrap small{
  max-width:220px !important;
  line-height:1.25 !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-copy-code{
  min-height:112px !important;
  font-size:14px !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-actions{
  gap:14px !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:170px !important;
  min-height:46px !important;
  border-radius:999px !important;
  padding:13px 20px !important;
  border:0 !important;
  background:#123d7a !important;
  color:#fff !important;
  font-weight:900 !important;
  text-decoration:none !important;
  box-shadow:0 14px 28px rgba(18,61,122,.22) !important;
  cursor:pointer !important;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button:hover{
  background:#0c2f61 !important;
  color:#fff !important;
  transform:translateY(-1px) !important;
  box-shadow:0 18px 32px rgba(18,61,122,.28) !important;
  filter:none !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button:active{
  transform:translateY(0) !important;
  box-shadow:0 10px 22px rgba(18,61,122,.22) !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button:disabled{
  background:#d9e3f2 !important;
  color:#7890ad !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
  opacity:1 !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button.copied{
  background:#10b981 !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(16,185,129,.24) !important;
}
.pix-real-ready.pix-real-ready-enhanced .payment-timeline{
  grid-template-columns:1fr !important;
}
.pix-real-ready.pix-real-ready-enhanced .payment-timeline li{
  position:relative !important;
  text-align:left !important;
  padding:11px 14px 11px 38px !important;
}
.pix-real-ready.pix-real-ready-enhanced .payment-timeline li::before{
  content:'○';
  position:absolute;
  left:14px;
  top:10px;
  font-weight:900;
}
.pix-real-ready.pix-real-ready-enhanced .payment-timeline li.done::before{content:'✓';}
.pix-real-ready.pix-real-ready-enhanced .payment-timeline li.active::before{content:'●';}
.checkout-success-summary::after{
  content:'🔒 Pagamento protegido pelo Mercado Pago';
  display:block;
  margin-top:16px;
  padding:13px 14px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid #dbe5f3;
  color:#0b1b34;
  font-weight:900;
  line-height:1.25;
}
@media(max-width:1100px){
  .pix-real-ready.pix-real-ready-enhanced{grid-template-columns:1fr !important;}
  .pix-real-ready.pix-real-ready-enhanced .pix-official-qr,
  .pix-real-ready.pix-real-ready-enhanced .pix-preview-qr{width:240px !important;height:240px !important;margin:0 auto !important;}
}


/* RC1.8.6.2 — QR Code PIX em destaque real */
.pix-real-ready.pix-real-ready-enhanced{
  grid-template-columns:300px minmax(0,1fr) !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-qr-wrap-large{
  min-width:300px !important;
  width:300px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}
.pix-real-ready.pix-real-ready-enhanced img.pix-official-qr-large,
.pix-real-ready.pix-real-ready-enhanced .pix-official-qr-large{
  width:260px !important;
  height:260px !important;
  min-width:260px !important;
  max-width:260px !important;
  min-height:260px !important;
  max-height:260px !important;
  display:block !important;
  box-sizing:border-box !important;
  object-fit:contain !important;
  padding:10px !important;
  border-radius:24px !important;
  background:#fff !important;
  border:1px solid #dbe5f3 !important;
  box-shadow:0 18px 42px rgba(3,20,49,.16) !important;
}
@media(max-width:1100px){
  .pix-real-ready.pix-real-ready-enhanced{grid-template-columns:1fr !important;}
  .pix-real-ready.pix-real-ready-enhanced .pix-qr-wrap-large{width:100% !important;min-width:0 !important;}
  .pix-real-ready.pix-real-ready-enhanced img.pix-official-qr-large,
  .pix-real-ready.pix-real-ready-enhanced .pix-official-qr-large{
    width:260px !important;
    height:260px !important;
    min-width:260px !important;
    max-width:260px !important;
    margin:0 auto !important;
  }
}

/* RC1.8.6.3 — Checkout Premium UX */
.pix-real-ready.pix-real-ready-enhanced.pix-real-ready-enhanced{
  grid-template-columns:320px minmax(0,1fr) !important;
  gap:30px !important;
  padding:30px !important;
}
.pix-qr-premium{
  text-align:center !important;
  align-items:center !important;
  justify-content:flex-start !important;
}
.pix-qr-frame{
  width:282px !important;
  height:282px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 auto !important;
  padding:10px !important;
  border-radius:30px !important;
  background:linear-gradient(180deg,#ffffff,#f7fbff) !important;
  border:1px solid #dbe5f3 !important;
  box-shadow:0 20px 46px rgba(3,20,49,.18) !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-qr-frame img.pix-official-qr-large,
.pix-real-ready.pix-real-ready-enhanced .pix-qr-frame .pix-official-qr-large{
  width:260px !important;
  height:260px !important;
  min-width:260px !important;
  max-width:260px !important;
  min-height:260px !important;
  max-height:260px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
.pix-qr-premium small{
  display:block !important;
  margin-top:12px !important;
  max-width:260px !important;
  color:#334155 !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-payment-info>strong{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  font-size:17px !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-payment-info>strong::before{content:'🔒';font-size:16px;}
.pix-real-ready.pix-real-ready-enhanced .pix-copy-code{
  min-height:126px !important;
  background:#fff !important;
  border-color:#cbd8ea !important;
  cursor:text !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-copy-code:focus{
  outline:3px solid rgba(18,61,122,.14) !important;
  border-color:#123d7a !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button{
  width:100% !important;
  min-width:0 !important;
}
.pix-real-ready.pix-real-ready-enhanced .pix-action-button.copied{
  background:#059669 !important;
  color:#fff !important;
}
.payment-timeline-premium li.done::before{content:'✓' !important;}
.payment-timeline-premium li.active::before{content:'●' !important;}
.payment-side-meta{
  margin:18px 0 8px;
  display:grid;
  gap:10px;
}
.payment-side-meta div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #dbe5f3;
}
.payment-side-meta span{color:#64748b;font-weight:800;font-size:12px;}
.payment-side-meta strong{color:#0b1b34;font-size:12px;text-align:right;}
@media(max-width:1100px){
  .pix-real-ready.pix-real-ready-enhanced.pix-real-ready-enhanced{grid-template-columns:1fr !important;}
  .pix-qr-frame{width:282px !important;height:282px !important;}
}
@media(max-width:640px){
  .pix-real-ready.pix-real-ready-enhanced .pix-actions{grid-template-columns:1fr !important;}
  .pix-qr-frame{width:252px !important;height:252px !important;}
  .pix-real-ready.pix-real-ready-enhanced .pix-qr-frame img.pix-official-qr-large,
  .pix-real-ready.pix-real-ready-enhanced .pix-qr-frame .pix-official-qr-large{
    width:232px !important;height:232px !important;min-width:232px !important;max-width:232px !important;min-height:232px !important;max-height:232px !important;
  }
}

/* RC1.9.1 - identificação Mercado Pago para medição oficial */
.mp-id-line{margin-top:6px;font-size:.82rem;color:#64748b}.mp-id-line code,.mp-measure-box code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f8fafc;border:1px solid #dbe4f0;border-radius:8px;padding:4px 7px;color:#0f172a}.mini-copy{border:0;background:#e8f0ff;color:#1d4ed8;border-radius:999px;padding:4px 9px;font-weight:800;cursor:pointer}.mp-measure-box{margin:14px 0;padding:14px;border:1px dashed #93c5fd;background:#eff6ff;border-radius:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.mp-measure-box small{width:100%;color:#475569}.mp-measure-box code{font-size:.82rem;word-break:break-all}

/* RC1.9.3 - PIX confirmado: experiência final */
.pix-confirmed-card{display:grid;grid-template-columns:82px 1fr;gap:20px;align-items:center;margin-top:20px;border-radius:24px;padding:24px;background:linear-gradient(135deg,#e8fff3,#ffffff);border:1px solid rgba(5,113,61,.18);box-shadow:0 16px 38px rgba(3,20,49,.08)}
.pix-confirmed-card[hidden]{display:none!important}
.pix-confirmed-icon{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:#13b981;color:#fff;font-size:42px;font-weight:900;box-shadow:0 16px 30px rgba(19,185,129,.25)}
.pix-confirmed-card h2{margin:4px 0 8px;color:#07152b;font-size:28px}
.pix-confirmed-card p{margin:0 0 16px;color:#44556f;line-height:1.5}
.pix-confirmed-actions{display:flex;gap:12px;flex-wrap:wrap}
.payment-confirmed .pix-real-ready.pix-paid-hidden{display:none!important}
.payment-confirmed .checkout-success-product-card{border-color:rgba(19,185,129,.28);background:linear-gradient(135deg,#f1fff8,#ffffff)}
.payment-confirmed #side-my-courses.store-primary{background:#13b981;color:#fff;box-shadow:0 14px 28px rgba(19,185,129,.22)}
@media(max-width:900px){.pix-confirmed-card{grid-template-columns:1fr;text-align:center}.pix-confirmed-icon{margin:0 auto}.pix-confirmed-actions .store-primary,.pix-confirmed-actions .store-secondary{width:100%;justify-content:center}}
