/* Tema Care: interface leve inspirada em plataformas de telemedicina. */
:root {
  --ink: #17324d;
  --muted: #6b7f8d;
  --line: #e3edf0;
  --paper: #f5f9fa;
  --green: #0d9488;
  --green-2: #0f766e;
  --lime: #2dd4bf;
  --amber: #f2b84b;
  --blue: #4c8fb3;
  --shadow: 0 12px 32px rgba(26, 73, 91, .08);
  --radius: 16px;
}

body { background: var(--paper); color: var(--ink); }
.mobile-tabs { display: none; }
.sidebar { background: #fff; color: var(--ink); border-right: 1px solid #e3edf0; padding-top: 26px; }
.brand { color: var(--ink); font-size: 19px; letter-spacing: -.5px; }
.brand b { color: var(--green); font-weight: 800; }
.brand-mark { background: var(--green); border-radius: 12px; }
.brand-mark svg { stroke: #fff; fill: none; }
.nav-item { color: #718591; font-weight: 600; }
.nav-item.active, .nav-item:hover { background: #e9f7f6; color: var(--green-2); }
.nav-item.active { box-shadow: none; }
.sidebar-help { background: #eef8f8; border: 1px solid #d9eeee; }
.help-icon { background: #fff; color: var(--green); box-shadow: 0 3px 9px rgba(13, 148, 136, .12); }
.sidebar-help strong { color: var(--ink); }
.sidebar-help p { color: #6b8088; }
.operator { border-top-color: #e7eff1; }
.avatar { background: #dff4f1; color: var(--green-2); }
.operator small { color: #8b9ba3; }
.topbar { background: rgba(255, 255, 255, .94); border-bottom-color: #e3ecef; }
.primary { background: var(--green); box-shadow: 0 7px 18px rgba(13, 148, 136, .16); }
.primary:hover, .hero-button:hover { box-shadow: 0 9px 22px rgba(13, 148, 136, .22); }

.hero-card {
  min-height: 240px;
  background: linear-gradient(125deg, #e7f7f7, #eef7fb);
  color: var(--ink);
  padding: 34px 40px;
  border: 1px solid #dbeef0;
  box-shadow: none;
}
.hero-card h2 { font-size: 34px; margin: 15px 0 8px; }
.hero-card h2 em { color: var(--green); }
.hero-card p { color: #607986; margin: 0; }
.pill { border-color: #cbe5e4; background: #fff; color: var(--green-2); }
.pill i { background: var(--green); box-shadow: 0 0 0 4px rgba(13, 148, 136, .1); }
.hero-button { background: var(--green); color: #fff; margin-top: 20px; }
.hero-illustration { opacity: .9; width: 35%; }
.orb-one { background: #d1eeec; }
.orb-two { border-color: #b9dedc; }
.shield-large {
  width: 112px;
  height: 130px;
  background: linear-gradient(145deg, #13a99c, #0d9488);
  border-radius: 38% 38% 44% 44%;
  box-shadow: 0 18px 38px rgba(13, 148, 136, .22);
}
.shield-large svg { width: 78px; stroke: #fff; }
.floating-card { box-shadow: 0 10px 25px rgba(30, 81, 96, .12); border: 1px solid #e2eeee; }
.floating-card > span { background: #dff5f2; color: var(--green); }

.stats-grid { gap: 14px; margin: 18px 0; }
.stat-card { border-color: #e4edef; border-radius: 16px; padding: 19px; box-shadow: none; }
.stat-icon.green { background: #def5f2; color: #0d9488; }
.stat-icon.amber { background: #fff3dc; color: #bd7c19; }
.stat-icon.blue { background: #e7f2f7; color: #3e7d9d; }
.panel { border-color: #e1ebee; box-shadow: none; }
.recent-panel { padding: 23px 25px; }
.product-dot { background: #e4f5f3; color: var(--green-2); }
.status.active { color: #0f766e; background: #def5f0; }
.status.pending { color: #a66c13; background: #fff2da; }
.section-kicker { color: #0d9488; }
.price-tag { background: #e2f5f2; }
.price-tag strong { color: var(--green-2); }

.form-panel { padding: 27px; }
.step-heading > span { background: #dff5f2; color: var(--green-2); }
.field input, .field select { background: #fbfdfd; border-color: #d9e6e9; }
.field input:focus, .field select:focus { border-color: #48b8ae; box-shadow: 0 0 0 3px rgba(13, 148, 136, .09); }
.summary-card { background: #fff; color: var(--ink); border: 1px solid #dcebed; box-shadow: var(--shadow); }
.summary-card .section-kicker { color: var(--green); }
.summary-product { background: #eaf7f6; border-color: #d7eeeb; }
.summary-icon { background: var(--green); color: #fff; }
.summary-product small { color: #789097; }
.summary-card dl div { border-bottom-color: #e7eff1; }
.summary-card dt { color: #789097; }
.summary-total { background: #e8f6f5; }
.summary-total span { color: #66818a; }
.summary-total strong { color: var(--green-2); }
.summary-total small { color: #81969d; }
.safe-note { color: #789097 !important; }

.modal-icon { background: #dff5f2; color: var(--green-2); }
.payment-total { background: #e8f6f5; color: var(--ink); }
.payment-total span { color: #6f858c; }
.payment-total strong { color: var(--green-2); }
.payment-option.featured { background: #e9f8f6; border-color: #bfe6e1; }
.payment-option > span { background: #dff5f2; color: var(--green-2); }
.activation-note { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid #cde8e5; background: #edf9f7; border-radius: 13px; }
.activation-note > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--green); font-weight: 800; }
.activation-note strong { display: block; font-size: 12px; }
.activation-note p { margin: 4px 0 0; color: #6b8088; font-size: 10px; line-height: 1.45; }
.code-area.show { margin-top: 12px; padding: 16px; border: 1px solid #e0ebed; background: #f8fbfb; }
.toast { background: #17324d; }

@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  main { margin: 0; min-height: 100vh; }

  .sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 12px env(safe-area-inset-bottom);
    transform: none;
    background: rgba(255, 255, 255, .97);
    border: 0;
    border-top: 1px solid #dce9eb;
    box-shadow: 0 -8px 28px rgba(27, 71, 88, .08);
    backdrop-filter: blur(14px);
  }
  .sidebar.open { transform: none; box-shadow: 0 -8px 28px rgba(27, 71, 88, .08); }
  .brand, .sidebar-help, .operator { display: none; }
  .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; height: 100%; }
  .nav-item {
    height: 55px;
    padding: 5px 8px;
    border-radius: 13px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    line-height: 1;
  }
  .nav-item svg { width: 21px; height: 21px; }
  .nav-item.active { background: #e6f7f5; color: var(--green-2); }

  .topbar {
    height: 68px;
    padding: env(safe-area-inset-top) 18px 0;
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .mobile-menu { display: none; }
  .topbar > div { margin: 0; }
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 20px; letter-spacing: -.5px; }

  .view { padding: 20px 14px 30px; }
  .section-intro { margin: 0 2px 18px; display: block; }
  .section-intro h2 { font-size: 24px; line-height: 1.15; margin-bottom: 7px; }
  .section-intro > div > p:last-child { font-size: 12px; line-height: 1.45; }
  .section-kicker { font-size: 9px; margin-bottom: 6px; }
  .price-tag { display: none; }

  .form-layout { display: flex; flex-direction: column; gap: 12px; }
  .form-panel { padding: 20px 16px; border-radius: 16px; width: 100%; }
  .step-heading { align-items: flex-start; margin-bottom: 20px; }
  .step-heading > span { width: 31px; height: 31px; flex: 0 0 auto; }
  .step-heading h3 { font-size: 16px; }
  .step-heading p { line-height: 1.35; }
  .form-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
  .field.full { grid-column: auto; }
  .field > span { font-size: 11px; margin-bottom: 7px; }
  .field input, .field select { height: 52px; border-radius: 12px; font-size: 16px; }
  .divider { margin: 13px 0 21px; }

  .summary-card { position: static; width: 100%; padding: 21px 17px; border-radius: 16px; }
  .summary-card h3 { font-size: 17px; }
  .summary-total { margin: 4px -17px 17px; padding: 17px; }
  .summary-total strong { font-size: 22px; }
  .primary.wide { min-height: 52px; font-size: 14px; border-radius: 12px; }

  .clients-intro { display: flex; align-items: flex-start; gap: 12px; }
  .clients-intro > div { flex: 1; }
  .clients-intro .secondary { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font-size: 0; }
  .clients-intro .secondary svg { width: 20px; }
  .table-panel { background: transparent; border: 0; overflow: visible; }
  .table-tools { padding: 0 0 13px; display: grid; grid-template-columns: 1fr; border: 0; background: transparent; }
  .search-box { max-width: none; }
  .search-box input, .table-tools select { height: 48px; background: #fff; border-radius: 12px; font-size: 12px; }
  .search-box svg { top: 15px; }
  .table-scroll { overflow: visible; }
  table, tbody { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; background: #fff; border: 1px solid #dfebed; border-radius: 15px; padding: 16px; margin-bottom: 10px; box-shadow: 0 5px 18px rgba(29, 73, 89, .04); }
  td { display: block; border: 0; padding: 0; font-size: 11px; }
  td:nth-child(1) { grid-column: 1; grid-row: 1; }
  td:nth-child(2) { grid-column: 1; grid-row: 2; }
  td:nth-child(3) { grid-column: 1; grid-row: 3; color: #58717d; }
  td:nth-child(4) { grid-column: 1; grid-row: 4; color: #58717d; }
  td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  td:nth-child(6) { grid-column: 2; grid-row: 1; justify-self: end; }
  td:nth-child(7) { grid-column: 2; grid-row: 4; justify-self: end; align-self: end; }
  td strong { font-size: 13px; }
  td small { font-size: 9px; }
  .more-button { width: 38px; height: 38px; }
  .empty-state { background: #fff; border: 1px solid #dfebed; border-radius: 16px; padding: 45px 18px; }

  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 27px 18px calc(22px + env(safe-area-inset-bottom));
    animation: mobileSheetIn .25s ease;
  }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 99px; background: #d5e1e3; margin: -14px auto 18px; }
  .modal h2 { font-size: 22px; }
  .modal-icon { width: 43px; height: 43px; }
  .activation-note { padding: 13px; }
  .code-area.show { padding: 13px; }
  .details-modal { width: 100%; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-actions { flex-direction: column; }
  .detail-actions button { width: 100%; min-height: 48px; }
  .toast { left: 14px; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); min-width: 0; }
  .hero-card { min-height: 285px; }
  .hero-illustration { display: none; }
}

@keyframes mobileSheetIn {
  from { transform: translateY(100%); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}

/* Identidade promocional premium */
:root {
  --ink: #17163b;
  --muted: #6f6c89;
  --line: #e5e0f5;
  --paper: #f7f5ff;
  --green: #16b978;
  --green-2: #087a51;
  --lime: #ffe45c;
  --amber: #ff9f1c;
  --blue: #5b4df5;
  --violet: #6d28d9;
  --magenta: #db2777;
  --orange: #ff6433;
  --navy: #15133c;
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 100, 51, .11), transparent 22rem),
    radial-gradient(circle at 6% 18%, rgba(109, 40, 217, .09), transparent 25rem),
    var(--paper);
}
.topbar { border-bottom: 2px solid #eee9fb; }
.topbar h1 { color: var(--navy); }
.sidebar { border-right-color: #e8e2f5; }
.brand b { color: var(--violet); }
.brand-mark { background: linear-gradient(145deg, #ff8a28, #ff3f70); box-shadow: 0 8px 22px rgba(255, 80, 65, .25); }
.nav-item.active, .nav-item:hover { color: var(--violet); background: #f0eaff; }
.nav-item { text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; pointer-events: auto; user-select: none; }
.section-kicker { color: var(--magenta); }
.step-heading > span { color: #fff; background: linear-gradient(145deg, var(--violet), #9b4dff); box-shadow: 0 7px 16px rgba(109, 40, 217, .2); }
.field input:focus, .field select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(109, 40, 217, .12); }
.primary { background: linear-gradient(120deg, #ff8a1f, #ff4e50); box-shadow: 0 9px 22px rgba(255, 92, 55, .26); }
.primary:hover { box-shadow: 0 12px 28px rgba(255, 92, 55, .34); }
.price-tag { background: #fff0d5; border: 1px solid #ffdfa8; }
.price-tag strong { color: #be4d00; }

.promo-showcase {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 38px 42px;
  margin-bottom: 28px;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(125deg, #12123c 5%, #4c1d95 58%, #7c2ed3 100%);
  box-shadow: 0 25px 65px rgba(55, 27, 118, .25);
}
.promo-content { max-width: 660px; position: relative; z-index: 2; }
.promo-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; color: #392408; background: linear-gradient(120deg, #ffe76a, #ffb423); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; box-shadow: 0 7px 20px rgba(255, 190, 37, .22); }
.promo-badge i { font-style: normal; }
.promo-showcase h2 { font: 800 37px/1.09 Manrope, sans-serif; letter-spacing: -1.4px; margin: 17px 0 11px; }
.promo-showcase h2 em { color: #ffe45c; font-style: normal; }
.promo-showcase p { max-width: 610px; margin: 0; color: #ddd8f4; font-size: 13px; line-height: 1.55; }
.promo-facts { display: flex; gap: 10px; margin-top: 23px; }
.promo-facts > div { min-width: 135px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.promo-facts span, .promo-facts strong { display: block; }
.promo-facts span { color: #bdb8de; font-size: 8px; letter-spacing: .8px; }
.promo-facts strong { color: #fff; font: 700 14px Manrope, sans-serif; margin-top: 4px; }
.promo-facts > div:first-child { border-color: rgba(255, 218, 83, .4); background: rgba(255, 199, 40, .13); }
.promo-facts > div:first-child strong { color: #ffe45c; font-size: 18px; }
.promo-shield { position: absolute; right: 6%; width: 155px; height: 180px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; clip-path: polygon(50% 0, 94% 17%, 89% 70%, 50% 100%, 11% 70%, 6% 17%); background: linear-gradient(150deg, #ffd83d, #ff8a1f); color: #32195f; filter: drop-shadow(0 25px 30px rgba(16, 8, 42, .3)); }
.promo-shield span { font-size: 42px; font-weight: 900; line-height: 1; }
.promo-shield small { font-size: 10px; line-height: 1.25; text-align: center; font-weight: 900; letter-spacing: 1px; margin-top: 8px; }
.promo-glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.promo-glow.one { width: 270px; height: 270px; right: -55px; top: -105px; background: rgba(255, 74, 139, .28); }
.promo-glow.two { width: 210px; height: 210px; right: 12%; bottom: -135px; background: rgba(255, 167, 32, .22); }

.form-panel { box-shadow: 0 14px 38px rgba(51, 35, 100, .07); }
.summary-card { color: #fff; border: 0; background: linear-gradient(155deg, #18163f, #37226e); box-shadow: 0 22px 50px rgba(31, 20, 76, .24); }
.summary-card .section-kicker { color: #ffca3a; }
.summary-product { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.13); }
.summary-icon { color: #32195f; background: linear-gradient(145deg, #ffe25a, #ff9f1c); }
.summary-product small, .summary-card dt { color: #b8b3d5; }
.summary-card dl div { border-bottom-color: rgba(255,255,255,.12); }
.summary-card dd { color: #fff; }
.summary-total { background: linear-gradient(120deg, #ffdc4a, #ff9d1c); }
.summary-total span, .summary-total small { color: #6d3a00; }
.summary-total strong { color: #281331; font-size: 28px; }
.summary-card .safe-note { color: #aaa4c9 !important; }

.payment-total { background: linear-gradient(120deg, #fff0a8, #ffc247); border: 1px solid #ffce5c; }
.payment-total span { color: #754200; }
.payment-total strong { color: #6d2700; font-size: 24px; }
.activation-note { background: #f2edff; border-color: #ddd0ff; }
.activation-note > span { background: linear-gradient(145deg, var(--violet), #a855f7); }
.activation-note p { color: #6d6585; }
.status.active { color: #076b46; background: #d7f8e9; }
.product-dot { color: #5b21b6; background: #ede9fe; }
.more-button { color: #5b21b6; background: #f0eaff; }

.success-backdrop { background: rgba(12, 8, 39, .84); }
.activation-modal { width: min(540px, 100%); overflow: hidden; text-align: center; color: #fff; background: linear-gradient(150deg, #11143e 0%, #352071 62%, #5b21b6 100%); border: 1px solid rgba(255,255,255,.12); padding: 35px 34px 30px; }
.activation-modal .close-modal { color: #fff; background: rgba(255,255,255,.12); }
.success-seal { position: relative; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: #102b23; background: linear-gradient(145deg, #53efac, #16c784); box-shadow: 0 0 0 9px rgba(42, 220, 147, .12), 0 16px 30px rgba(4, 39, 29, .25); }
.success-seal svg { width: 39px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.success-kicker { position: relative; z-index: 2; display: inline-block; color: #ffe45c; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.activation-modal h2 { position: relative; z-index: 2; margin: 9px 0 5px; color: #fff; font: 700 23px/1.2 Manrope, sans-serif; }
.activation-modal h2 strong { display: inline-block; color: #fff; font-size: 15px; letter-spacing: 2px; margin-top: 6px; }
.success-date { position: relative; z-index: 2; color: #ffe45c; font: 800 43px/1 Manrope, sans-serif; letter-spacing: -1.5px; margin: 6px 0 15px; text-shadow: 0 7px 24px rgba(255, 210, 50, .23); }
.success-client { position: relative; z-index: 2; max-width: 430px; margin: 0 auto 18px; color: #d7d3ec; font-size: 12px; line-height: 1.55; }
.success-client strong { color: #fff; }
.success-value { position: relative; z-index: 2; padding: 16px; border: 1px solid rgba(255,221,73,.45); border-radius: 15px; background: rgba(255, 202, 35, .13); }
.success-value span, .success-value strong, .success-value small { display: block; }
.success-value span { color: #dfd8a7; font-size: 8px; letter-spacing: 1.1px; }
.success-value strong { color: #ffe45c; font: 800 29px Manrope, sans-serif; margin: 3px 0; }
.success-value small { color: #fff; font-size: 10px; }
.success-benefits { position: relative; z-index: 2; display: flex; justify-content: center; gap: 10px; margin: 14px 0 18px; }
.success-benefits span { color: #d9d5ec; font-size: 9px; }
.success-benefits b { color: #36dda0; }
.success-primary, .success-secondary { position: relative; z-index: 2; width: 100%; min-height: 50px; border-radius: 12px; font-weight: 800; }
.success-primary { border: 0; color: #31125b; background: linear-gradient(120deg, #ffe45c, #ffab24); box-shadow: 0 10px 25px rgba(255, 187, 35, .22); }
.success-secondary { margin-top: 8px; color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.confetti i { position: absolute; z-index: 1; width: 7px; height: 14px; border-radius: 2px; background: #ffe45c; transform: rotate(20deg); }
.confetti i:nth-child(1) { left: 9%; top: 10%; transform: rotate(-25deg); }
.confetti i:nth-child(2) { left: 20%; top: 24%; background: #ff5f87; transform: rotate(50deg); }
.confetti i:nth-child(3) { right: 12%; top: 18%; background: #38e7a9; transform: rotate(70deg); }
.confetti i:nth-child(4) { right: 23%; top: 8%; background: #ff9f1c; transform: rotate(-45deg); }
.confetti i:nth-child(5) { left: 8%; top: 48%; background: #9f7aea; transform: rotate(70deg); }
.confetti i:nth-child(6) { right: 7%; top: 48%; background: #ffe45c; transform: rotate(-20deg); }
.confetti i:nth-child(7) { left: 28%; top: 7%; background: #38e7a9; transform: rotate(12deg); }
.confetti i:nth-child(8) { right: 31%; top: 27%; background: #ff5f87; transform: rotate(-60deg); }
.active-until { margin: -5px 0 21px; padding: 18px; color: #fff; text-align: center; border-radius: 15px; background: linear-gradient(120deg, #4c1d95, #7c3aed); box-shadow: 0 14px 30px rgba(76,29,149,.2); }
.active-until span, .active-until strong, .active-until small { display: block; }
.active-until span { color: #e3dcff; font-size: 8px; letter-spacing: 1.1px; }
.active-until strong { color: #ffe45c; font: 800 26px Manrope, sans-serif; margin: 5px 0; }
.active-until small { color: #fff; font-size: 9px; }

@media (max-width: 760px) {
  .sidebar { border-top: 2px solid #eee8fb; }
  .nav-item.active { color: #5b21b6; background: #efe9ff; }
  .promo-showcase { min-height: 0; display: block; margin: -4px 0 20px; padding: 25px 18px 20px; border-radius: 19px; }
  .promo-showcase h2 { font-size: 27px; letter-spacing: -.9px; margin: 14px 0 9px; }
  .promo-showcase p { max-width: 90%; font-size: 11px; }
  .promo-shield { width: 95px; height: 112px; right: -18px; top: 20px; opacity: .2; }
  .promo-facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 18px; }
  .promo-facts > div { min-width: 0; padding: 9px 8px; }
  .promo-facts span { font-size: 6px; }
  .promo-facts strong { font-size: 10px; }
  .promo-facts > div:first-child strong { font-size: 13px; }
  .summary-card { padding: 21px 17px; }
  .activation-modal { padding: 28px 18px calc(22px + env(safe-area-inset-bottom)); }
  .activation-modal::before { background: rgba(255,255,255,.25); }
  .success-seal { width: 62px; height: 62px; }
  .success-date { font-size: 36px; }
  .success-benefits { display: grid; grid-template-columns: 1fr; gap: 5px; text-align: left; padding: 0 18px; }
  tr { border-color: #e4dcf6; }
}

/* Navegação mobile superior: evita conflito com barras e gestos do aparelho. */
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  main { margin: 0; padding-top: 0; }
  .sidebar { display: none !important; }
  .topbar {
    display: block;
    height: auto;
    min-height: 118px;
    padding: 13px 14px 11px;
    z-index: 40;
    background: #fff;
    box-shadow: 0 7px 22px rgba(37, 22, 84, .07);
  }
  .topbar > div { margin: 0 2px 10px; }
  .topbar h1 { font-size: 20px; }
  .mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 3px;
    border: 1px solid #e8e1f8;
    border-radius: 13px;
    background: #f7f4ff;
  }
  .mobile-tabs .nav-item {
    position: relative;
    z-index: 2;
    height: 40px;
    padding: 0 10px;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
  }
  .mobile-tabs .nav-item svg { width: 18px; height: 18px; }
  .mobile-tabs .nav-item.active {
    color: #fff;
    background: linear-gradient(120deg, #6d28d9, #8b3ff0);
    box-shadow: 0 6px 15px rgba(109, 40, 217, .25);
  }
  .view { padding-top: 17px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Certificado clássico de garantia */
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}
.certificate-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #d8c074;
  border-radius: 9px;
  color: #614715;
  background: linear-gradient(180deg, #fffdf5, #f7ecc7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15px;
  box-shadow: 0 4px 11px rgba(115, 84, 21, .09);
}
.certificate-button:hover { transform: translateY(-1px); border-color: #b9953d; }
.certificate-backdrop { background: rgba(18, 12, 35, .86); }
.certificate-modal {
  width: min(900px, 100%);
  padding: 26px;
  border-radius: 18px;
  background: #e7e0d4;
}
.certificate-modal > .close-modal {
  z-index: 5;
  color: #fff;
  background: rgba(42, 31, 20, .72);
}
.certificate-sheet {
  position: relative;
  min-height: 1080px;
  padding: 57px 65px 50px;
  overflow: hidden;
  color: #322919;
  border: 3px double #8b6b29;
  outline: 1px solid #c9ae68;
  outline-offset: -12px;
  background:
    radial-gradient(circle at 15% 20%, rgba(151, 112, 43, .055), transparent 26%),
    radial-gradient(circle at 85% 74%, rgba(151, 112, 43, .05), transparent 28%),
    repeating-linear-gradient(0deg, rgba(91, 65, 22, .017) 0, rgba(91, 65, 22, .017) 1px, transparent 1px, transparent 4px),
    #fbf4df;
  box-shadow: 0 17px 45px rgba(40, 28, 14, .2), inset 0 0 65px rgba(127, 91, 28, .08);
  font-family: Georgia, "Times New Roman", serif;
}
.certificate-sheet::before,
.certificate-sheet::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(139, 107, 41, .18);
  border-radius: 50%;
}
.certificate-sheet::before { top: -115px; left: -92px; }
.certificate-sheet::after { right: -92px; bottom: -115px; }
.certificate-corners i {
  position: absolute;
  z-index: 1;
  width: 49px;
  height: 49px;
  border-color: #9f7c35;
  border-style: solid;
}
.certificate-corners i:nth-child(1) { left: 21px; top: 21px; border-width: 2px 0 0 2px; }
.certificate-corners i:nth-child(2) { right: 21px; top: 21px; border-width: 2px 2px 0 0; }
.certificate-corners i:nth-child(3) { left: 21px; bottom: 21px; border-width: 0 0 2px 2px; }
.certificate-corners i:nth-child(4) { right: 21px; bottom: 21px; border-width: 0 2px 2px 0; }
.certificate-header { position: relative; z-index: 2; text-align: center; }
.certificate-monogram {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  color: #fff6d5;
  border: 2px solid #c9aa57;
  border-radius: 50%;
  outline: 1px solid #806122;
  outline-offset: 3px;
  background: #593f13;
  font: 700 17px Georgia, serif;
  letter-spacing: 1px;
}
.certificate-header p {
  margin: 11px 0 9px;
  color: #6d521d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
}
.certificate-header h2 {
  margin: 0;
  color: #2f2617;
  font: 400 41px/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.8px;
}
.certificate-header h2 em { color: #84631f; font-size: 47px; font-style: italic; }
.certificate-header > span {
  display: inline-block;
  margin-top: 15px;
  color: #715a2c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}
.certificate-divider { display: flex; align-items: center; gap: 12px; margin: 22px auto 17px; color: #9d792e; }
.certificate-divider::before, .certificate-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #a88945); }
.certificate-divider::after { background: linear-gradient(90deg, #a88945, transparent); }
.certificate-divider i { font-size: 9px; font-style: normal; }
.certificate-intro {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto 20px;
  color: #5b503d;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.certificate-holder {
  position: relative;
  z-index: 2;
  margin: 0 auto 21px;
  padding: 18px 22px;
  text-align: center;
  border-top: 1px solid #c6ad70;
  border-bottom: 1px solid #c6ad70;
}
.certificate-holder span, .certificate-holder strong, .certificate-holder small { display: block; }
.certificate-holder span { color: #876b33; font-size: 8px; font-weight: 700; letter-spacing: 2px; }
.certificate-holder strong { margin: 6px 0 4px; color: #292116; font-size: 25px; font-weight: 400; text-transform: uppercase; letter-spacing: 1.2px; }
.certificate-holder small { color: #64563e; font-size: 10px; }
.certificate-data {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid #cbb57f;
  background: #cbb57f;
}
.certificate-data > div { min-width: 0; padding: 13px 15px; background: rgba(255, 251, 237, .86); }
.certificate-data dt { color: #82672f; font-size: 7px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.certificate-data dd { margin: 5px 0 0; color: #352b1b; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.certificate-terms { position: relative; z-index: 2; margin: 22px 0 18px; }
.certificate-terms h3 { margin: 0 0 9px; color: #5e4617; font: 700 13px Georgia, serif; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.certificate-terms ol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 27px; margin: 0; padding-left: 20px; color: #5f5544; font-size: 8.5px; line-height: 1.5; }
.certificate-terms b { color: #46371d; }
.certificate-validity {
  position: relative;
  z-index: 2;
  margin: 19px 0 23px;
  padding: 14px 18px;
  text-align: center;
  border: 1px solid #8e6c27;
  background: linear-gradient(135deg, #513a11, #80601f);
  box-shadow: inset 0 0 0 3px #dbc989, 0 8px 18px rgba(74, 51, 10, .14);
}
.certificate-validity span, .certificate-validity strong { display: block; }
.certificate-validity span { color: #eadcae; font-size: 8px; font-weight: 700; letter-spacing: 2px; }
.certificate-validity strong { margin-top: 4px; color: #fff4bf; font-size: 27px; font-weight: 400; letter-spacing: 1px; }
.certificate-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 95px 1fr;
  gap: 20px;
  align-items: end;
  text-align: center;
}
.certificate-footer > div:not(.certificate-seal) span,
.certificate-footer > div:not(.certificate-seal) i,
.certificate-footer > div:not(.certificate-seal) small { display: block; }
.certificate-footer > div:not(.certificate-seal) span { color: #493b24; font-size: 11px; font-style: italic; }
.certificate-footer > div:not(.certificate-seal) i { height: 1px; margin: 5px 0; background: #88713f; }
.certificate-footer > div:not(.certificate-seal) small { color: #7c6b4d; font-size: 7px; letter-spacing: .8px; text-transform: uppercase; }
.certificate-seal {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  display: grid;
  place-content: center;
  color: #fff6cf;
  border: 2px solid #d5b75b;
  border-radius: 50%;
  outline: 1px dashed #7b5c1d;
  outline-offset: 4px;
  background: radial-gradient(circle, #90702a, #523b12);
  box-shadow: 0 8px 18px rgba(73, 50, 12, .18);
}
.certificate-seal b { font: 700 20px Georgia, serif; line-height: 1; }
.certificate-seal span { margin-top: 3px; font-size: 6px; font-weight: 700; letter-spacing: 1px; line-height: 1.25; }
.certificate-actions { display: flex; justify-content: center; padding-top: 16px; }
.certificate-print {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(120deg, #6b4d17, #9b762b);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(82, 58, 16, .2);
}
.certificate-print svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  td:nth-child(7) { grid-column: 1 / -1; grid-row: 5; width: 100%; justify-self: stretch; }
  .row-actions { width: 100%; margin-top: 5px; }
  .certificate-button { min-height: 42px; flex: 1; font-size: 10px; }
  .row-actions .more-button { flex: 0 0 42px; width: 42px; height: 42px; }
  .certificate-backdrop { padding: 0; align-items: flex-end; }
  .certificate-modal { width: 100%; max-height: 96vh; padding: 21px 8px calc(12px + env(safe-area-inset-bottom)); border-radius: 19px 19px 0 0; }
  .certificate-modal::before { margin-bottom: 12px; background: #c9bda9; }
  .certificate-modal > .close-modal { right: 12px; top: 14px; }
  .certificate-sheet { min-height: 0; padding: 39px 25px 33px; outline-offset: -8px; }
  .certificate-corners i { width: 34px; height: 34px; }
  .certificate-corners i:nth-child(1) { left: 14px; top: 14px; }
  .certificate-corners i:nth-child(2) { right: 14px; top: 14px; }
  .certificate-corners i:nth-child(3) { left: 14px; bottom: 14px; }
  .certificate-corners i:nth-child(4) { right: 14px; bottom: 14px; }
  .certificate-monogram { width: 43px; height: 43px; font-size: 14px; }
  .certificate-header p { font-size: 7px; letter-spacing: 2.8px; }
  .certificate-header h2 { font-size: 28px; }
  .certificate-header h2 em { font-size: 31px; }
  .certificate-header > span { margin-top: 11px; font-size: 7px; letter-spacing: 1.2px; }
  .certificate-divider { margin: 15px 0 13px; }
  .certificate-intro { margin-bottom: 14px; font-size: 9px; line-height: 1.55; }
  .certificate-holder { margin-bottom: 15px; padding: 13px 8px; }
  .certificate-holder strong { font-size: 17px; letter-spacing: .6px; }
  .certificate-data { grid-template-columns: 1fr 1fr; }
  .certificate-data > div { padding: 10px 9px; }
  .certificate-data dt { font-size: 6px; letter-spacing: .6px; }
  .certificate-data dd { font-size: 9px; }
  .certificate-terms { margin: 16px 0 13px; }
  .certificate-terms h3 { font-size: 10px; }
  .certificate-terms ol { display: block; padding-left: 16px; font-size: 7px; line-height: 1.42; }
  .certificate-terms li + li { margin-top: 4px; }
  .certificate-validity { margin: 14px 0 19px; padding: 11px 9px; }
  .certificate-validity span { font-size: 6px; letter-spacing: 1.2px; }
  .certificate-validity strong { font-size: 20px; }
  .certificate-footer { grid-template-columns: 1fr 65px 1fr; gap: 10px; }
  .certificate-seal { width: 59px; height: 59px; }
  .certificate-seal b { font-size: 15px; }
  .certificate-seal span { font-size: 5px; }
  .certificate-footer > div:not(.certificate-seal) span { font-size: 8px; }
  .certificate-footer > div:not(.certificate-seal) small { font-size: 5.5px; letter-spacing: .4px; }
  .certificate-actions { padding: 11px 7px 0; }
  .certificate-print { width: 100%; min-height: 49px; }
}

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body { background: #fff !important; }
  body * { visibility: hidden !important; }
  #certificateModal, #certificateModal *, #certificateContent, #certificateContent * { visibility: visible !important; }
  #certificateModal {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }
  .certificate-modal {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    animation: none !important;
  }
  .certificate-modal::before, .certificate-modal > .close-modal, .certificate-actions { display: none !important; }
  .certificate-sheet {
    min-height: 277mm !important;
    padding: 13mm 15mm 10mm !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .certificate-header h2 { font-size: 35px !important; }
  .certificate-header h2 em { font-size: 41px !important; }
  .certificate-data { grid-template-columns: repeat(3, 1fr) !important; }
  .certificate-terms ol { display: grid !important; grid-template-columns: 1fr 1fr !important; font-size: 8px !important; }
  .certificate-footer { grid-template-columns: 1fr 85px 1fr !important; }
  .certificate-seal { width: 76px !important; height: 76px !important; }
}
