/* ===== Correios — estilos estáticos (DirectAdmin) ===== */
:root {
  --correios-blue: #256682;
  --correios-navy: #003a5d;
  --correios-yellow: #ffc700;
  --correios-yellow-fg: #003a5d;
  --md-action: #0059b3;
  --md-action-fg: #ffffff;
  --destructive: #dc2626;
  --background: #fafbfc;
  --foreground: #2e2f3a;
  --card: #ffffff;
  --muted: #f1f2f4;
  --muted-fg: #6b7280;
  --border: #e4e6ea;
  --input: #d8dbe0;
  --header-bg: #f0f1f3;
  --field-bg: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; border-color: var(--border); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

/* layout */
.page { display: flex; min-height: 100vh; flex-direction: column; background: var(--background); }
.main { flex: 1 0 auto; }
.container { margin: 0 auto; width: 100%; max-width: 768px; padding-left: 24px; padding-right: 24px; }

/* type scale */
.type-headline { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.type-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.type-subtitle { font-size: 1rem; line-height: 1.5rem; font-weight: 500; letter-spacing: .009em; }
.type-body { font-size: .875rem; line-height: 1.375rem; font-weight: 400; letter-spacing: .012em; }
.type-body-strong { font-size: .875rem; line-height: 1.375rem; font-weight: 700; letter-spacing: .012em; }
.type-caption { font-size: .75rem; line-height: 1.125rem; font-weight: 400; letter-spacing: .02em; }
.type-label { font-size: .6875rem; line-height: 1rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.type-button { font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .06em; }

/* colors */
.c-blue { color: var(--correios-blue); }
.c-muted { color: var(--muted-fg); }
.c-fg { color: var(--foreground); }
.c-destructive { color: var(--destructive); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }

/* header */
.header { position: sticky; top: 0; z-index: 40; }
.header-bar { position: relative; display: flex; align-items: center; justify-content: space-between; background: var(--header-bg); padding: 12px 16px; }
.header-bar .icon-btn { background: none; border: none; color: var(--correios-blue); cursor: pointer; padding: 0; display: inline-flex; }
.header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.header-logo img { height: 24px; width: auto; }
.header-stripe { height: 4px; width: 100%; background: var(--correios-yellow); }
.menu { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--border); background: var(--background); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.menu nav { display: flex; flex-direction: column; padding: 8px 0; }
.menu .menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.menu a { border-top: 1px solid var(--border); padding: 12px 16px; color: var(--correios-blue); text-decoration: none; }
.menu a:hover { background: var(--muted); }
.hidden { display: none !important; }

/* status bar */
.statusbar { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--correios-yellow); padding: 8px 0; color: var(--correios-yellow-fg); }
.statusbar .dot { height: 10px; width: 10px; border-radius: 9999px; background: var(--correios-yellow-fg); }
.dot-pulse { animation: dot-pulse 2.2s ease-in-out infinite; }
@keyframes dot-pulse { 0%{transform:scale(.85);opacity:.6} 50%{transform:scale(1);opacity:1} 100%{transform:scale(.85);opacity:.6} }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); padding: 14px 0; color: var(--muted-fg); }
.breadcrumb .sep { display: inline-flex; }

/* cards / sections */
.card { border: 1px solid var(--border); background: var(--card); padding: 16px; }
.card-alert { border-left: 4px solid var(--destructive); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-6{margin-top:24px}.mt-7{margin-top:28px}.mt-8{margin-top:32px}
.mb-12{margin-bottom:48px}
.text-right{text-align:right}
.rounded { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.rounded-lg { border-radius: var(--radius); overflow: hidden; }
.full-img { height: auto; width: 100%; object-fit: cover; }

/* form */
.lead { color: var(--foreground); }
.field { width: 100%; border: 1px solid var(--input); background: var(--field-bg); border-radius: 8px; padding: 12px 16px; font: inherit; color: var(--foreground); outline: none; }
.field:focus { border-color: var(--correios-blue); box-shadow: 0 0 0 1px var(--correios-blue); }
.field:disabled { opacity: .6; }
.space-y > * + * { margin-top: 20px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row canvas { border-radius: 6px; border: 1px solid var(--border); }
.captcha-refresh { background: none; border: none; color: var(--correios-blue); cursor: pointer; }
.err { font-weight: 500; color: var(--destructive); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { height: 48px; width: 100%; border-radius: 9999px; background: var(--correios-blue); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-action { width: 100%; border-radius: var(--radius); background: var(--md-action); color: var(--md-action-fg); padding: 14px 24px; text-transform: uppercase; }
.btn-action:hover { opacity: .9; }
.btn-yellow { height: 48px; border-radius: 9999px; background: var(--correios-yellow); color: var(--correios-yellow-fg); }
.btn-outline { height: 48px; border-radius: 9999px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* detalhes specifics */
.box-soft { border-radius: 8px; background: rgba(220,38,38,.05); padding: 12px; }
.box-attn { border: 1px solid rgba(220,38,38,.3); background: rgba(220,38,38,.05); padding: 16px; }
.inline-icn { display: inline-flex; align-items: center; gap: 8px; }

/* timeline */
.timeline { list-style: none; margin: 20px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .line { position: absolute; left: 13px; top: 32px; height: 100%; width: 1px; background: var(--border); }
.timeline .node { position: relative; z-index: 1; display: flex; height: 28px; width: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); color: var(--muted-fg); }
.timeline .node.active { border-color: var(--destructive); background: rgba(220,38,38,.1); color: var(--destructive); }
.timeline .body.dim { opacity: .6; }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 20px; }
.modal { width: 100%; max-width: 448px; overflow: hidden; border-radius: 16px; background: var(--card); box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); }
.modal-scroll { max-height: 90vh; overflow-y: auto; }
.modal-top-stripe { height: 8px; width: 100%; background: var(--correios-yellow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--correios-blue); padding: 16px 20px; color: #fff; }
.modal-head .close { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; }
.modal-body { padding: 24px; }
.modal-center { text-align: center; padding: 8px 24px 28px; }
.avatar-circle { display: inline-flex; height: 64px; width: 64px; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(37,102,130,.1); color: var(--correios-blue); }

/* pix */
.pay-row { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; background: var(--muted); padding: 12px 16px; }
.spinner { display: inline-block; height: 32px; width: 32px; border: 4px solid var(--muted); border-top-color: var(--correios-blue); border-radius: 9999px; animation: spin 1s linear infinite; }
.spinner-sm { height: 16px; width: 16px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; }
.qr-box { display: flex; justify-content: center; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.qr-box img { height: 224px; width: 224px; }
.copybox { word-break: break-all; border: 1px solid var(--border); background: var(--muted); border-radius: 8px; padding: 12px; font-family: ui-monospace, monospace; font-size: 12px; }
.howto { border-radius: 8px; background: var(--muted); padding: 12px; color: var(--muted-fg); }
.statuswait { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--correios-yellow); background: rgba(255,199,0,.15); border-radius: 8px; padding: 12px; color: var(--correios-yellow-fg); font-weight: 700; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted-fg); }

/* searching modal */
.search-orb { position: relative; display: inline-flex; height: 80px; width: 80px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--correios-yellow); color: var(--correios-yellow-fg); }
.search-orb .ring { position: absolute; inset: 0; border-radius: 9999px; border: 4px solid transparent; border-top-color: var(--correios-blue); animation: spin 1s linear infinite; }
.progress { height: 8px; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.progress > div { height: 100%; border-radius: 9999px; background: var(--correios-blue); transition: width .5s ease-out; }
.steps { display: flex; align-items: center; justify-content: space-between; }
.steps span { color: var(--muted-fg); }
.steps span.on { font-weight: 700; color: var(--correios-blue); }

/* footer */
.footer { background: var(--correios-yellow); color: var(--correios-yellow-fg); }
.footer .container { padding-top: 40px; padding-bottom: 40px; }
.footer h2 { margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0 0 32px; padding: 0; }
.footer li { margin-bottom: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .copy { margin-top: 32px; border-top: 1px solid rgba(0,58,93,.2); padding-top: 24px; text-align: center; }

/* utility flex */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 28px; height: 28px; }
