:root{
  --dhl-yellow:#ffcc00;
  --dhl-red:#d40511;
  --ink:#101828;
  --muted:#667085;
  --bg0:#0b1220;
  --card: rgba(255,255,255,.82);
  --card-strong: rgba(255,255,255,.92);
  --stroke: rgba(255,255,255,.22);
  --shadow: 0 22px 70px rgba(0,0,0,.28);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.20);
  --radius: 22px;
  --radius-sm: 16px;
  --ring: 0 0 0 4px rgba(255,204,0,.28);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 800px at 15% 10%, rgba(255,204,0,.22), transparent 60%),
              radial-gradient(900px 650px at 85% 18%, rgba(212,5,17,.22), transparent 60%),
              radial-gradient(1000px 700px at 50% 120%, rgba(255,204,0,.18), transparent 55%),
              linear-gradient(180deg, #0a0f1c, #0b1220 50%, #070b13);
  overflow-x:hidden;
}

/* ===== Animated background (orbs + grid) ===== */
body::before{
  content:"";
  position:fixed; inset:-10vmax;
  background:
    radial-gradient(600px 420px at 20% 20%, rgba(255,204,0,.16), transparent 70%),
    radial-gradient(680px 480px at 80% 25%, rgba(212,5,17,.14), transparent 72%),
    radial-gradient(720px 520px at 55% 90%, rgba(255,204,0,.12), transparent 70%);
  filter: blur(0px);
  animation: floatbg 12s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:-2;
}
body::after{
  content:"";
  position:fixed; inset:0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 55% at 50% 10%, rgba(0,0,0,.95), transparent 70%);
  opacity:.35;
  pointer-events:none;
  z-index:-1;
}

@keyframes floatbg{
  from{ transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to{ transform: translate3d(1.5%, 1.2%, 0) scale(1.03); }
}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(90deg, rgba(255,204,0,.95), rgba(255,204,0,.86));
  border-bottom: 4px solid var(--dhl-red);
}
.brand{
  max-width: 1060px;
  margin:0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand-left{
  display:flex; align-items:center; gap:12px;
}
.logo{
  width:54px; height:54px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  display:grid; place-items:center;
  box-shadow: var(--shadow-soft);
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
}
.dhl-logo{
  width: 46px;
  height:auto;
  display:block;
}
.brand-title{line-height:1.05}
.brand-kicker{
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(16,24,40,.85);
  font-size: 12px;
}
.brand-name{
  font-weight:900;
  font-size: 16px;
  color: rgba(16,24,40,.92);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(16,24,40,.08);
  color: rgba(16,24,40,.86);
  font-weight:800;
  font-size: 12px;
}
.badge .pulse{
  width:10px; height:10px; border-radius:999px;
  background: var(--dhl-red);
  box-shadow: 0 0 0 0 rgba(212,5,17,.55);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(212,5,17,.55); }
  100%{ box-shadow: 0 0 0 14px rgba(212,5,17,0); }
}

/* Progress bar */
.progress-wrap{
  position:sticky;
  top: 82px;
  z-index: 40;
  max-width:1060px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.progress-wrap::before{
  content:"";
  display:block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.progress-bar{
  height: 10px;
  border-radius: 999px;
  transform: translateY(-10px);
  width: 0%;
  background: linear-gradient(90deg, rgba(212,5,17,1), rgba(212,5,17,.82), rgba(255,204,0,1));
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  transition: width .45s cubic-bezier(.2,.9,.2,1);
}

/* ===== App layout ===== */
.app{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Page transitions */
.page{
  display:none;
  padding: 20px;
  opacity: 1;
}
.page.active{
  display:block;
  opacity:1;
}
to{ transform: translateY(0) scale(1); opacity:1; }
}

/* ===== Hero ===== */
.hero{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items:center;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(0,0,0,.05);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,204,0,.35), transparent 55%),
              radial-gradient(circle at 75% 40%, rgba(212,5,17,.18), transparent 56%);
  transform: rotate(12deg);
  opacity:.9;
  filter: blur(2px);
  pointer-events:none;
}
.hero-illus{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
}
.hero-image{
  width: 100%;
  max-width: 340px;
  height:auto;
  transform: translateY(0);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
  animation: floaty 4.6s ease-in-out infinite alternate;
}
@keyframes floaty{
  from{ transform: translateY(-2px) rotate(-.4deg); }
  to{ transform: translateY(6px) rotate(.4deg); }
}
.hero-copy{ position:relative; z-index:1; }
.hero-copy h2{
  margin:0 0 6px;
  font-size: 28px;
  letter-spacing:-.02em;
}
.hero-copy p{
  margin:0;
  color: rgba(16,24,40,.76);
  font-weight: 600;
  line-height:1.35;
}

/* Feature chips */
.feature-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 14px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 800;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.chip .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--dhl-yellow);
  box-shadow: 0 0 0 4px rgba(255,204,0,.22);
}

/* ===== Buttons ===== */
button{
  font: inherit;
}
.btn-icon{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  margin-top: 10px;
}
.btn-icon .ico{
  width: 22px; height: 22px;
  display:grid; place-items:center;
}
.btn-icon .ico svg{ width:22px; height:22px; fill: currentColor; }
.btn-icon .lbl{ font-weight: 900; letter-spacing:.01em; }

.primary{
  color: #1b1400;
  background: linear-gradient(135deg, rgba(255,204,0,1), rgba(255,220,80,1));
  box-shadow: 0 18px 30px rgba(255,204,0,.18), 0 10px 26px rgba(0,0,0,.18);
}
.primary::before{
  content:"";
  position:absolute; inset:-50%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.75), transparent 45%);
  transform: rotate(20deg);
  opacity:.55;
  transition: opacity .25s ease;
}
.primary:hover::before{ opacity:.85; }
.primary:hover{ transform: translateY(-1px); }
.primary:active{ transform: translateY(1px) scale(.99); }

.secondary{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.secondary:hover{ transform: translateY(-1px); background: rgba(255,255,255,.18); }
.secondary:active{ transform: translateY(1px) scale(.99); }

button:focus-visible{
  outline: none;
  box-shadow: var(--ring), 0 12px 26px rgba(0,0,0,.18);
}

/* Ripple */
.ripple{
  position:absolute;
  border-radius:999px;
  transform: translate(-50%,-50%);
  pointer-events:none;
  background: rgba(255,255,255,.55);
  mix-blend-mode: overlay;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple{
  from{ width:0; height:0; opacity:.9; }
  to{ width:460px; height:460px; opacity:0; }
}

/* ===== Form elements ===== */
label{
  display:block;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin: 12px 0 8px;
  text-shadow: 0 10px 24px rgba(0,0,0,.22);
}
input, select, textarea{
  width:100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.86);
  color: #111827;
  font-weight: 700;
  outline:none;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}
input:focus, select:focus, textarea:focus{
  box-shadow: var(--ring), 0 14px 28px rgba(0,0,0,.16);
  border-color: rgba(255,204,0,.55);
}

.help{
  color: rgba(255,255,255,.78);
  font-weight: 650;
  margin-top: 8px;
}

/* ===== Signature canvas wrappers (keep IDs/classes) ===== */
.signature-wrap{
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
canvas{
  width:100%;
  height: 180px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  display:block;
}

/* ===== Small text ===== */
.footnote{
  margin-top: 14px;
  color: rgba(255,255,255,.70);
  font-weight: 650;
  text-align:center;
}
small, .muted{
  color: rgba(255,255,255,.68);
}

/* ===== Tables / exports area ===== */
.actions-row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .hero-copy h2{ font-size: 26px; }
  .progress-wrap{ top: 76px; }
}
@media (max-width: 420px){
  .hero-copy h2{ font-size: 24px; }
  .btn-icon{ padding: 14px 12px; }
}

/* ===== Utility (existing layout elements) ===== */
.row{ display:flex; gap:10px; }
.row > *{ flex:1; }
.hidden{ display:none !important; }


/* ===== Sections / banners ===== */
.status, .info{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.retro{
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.14);
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 6px 0 10px;
  color: rgba(255,255,255,.88);
  font-weight: 800;
}
.check input[type="checkbox"], input[type="radio"]{ width:18px; height:18px; }

/* ===== PADRÃO TEXTO PRETO GLOBAL ===== */

* {
    color: #000 !important;
}

/* Labels */
label {
    color: #000 !important;
}

/* Select */
select {
    color: #000 !important;
}

/* Inputs */
input {
    color: #000 !important;
}

/* Textarea */
textarea {
    color: #000 !important;
}

/* Placeholders */
::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* Botões */
button {
    color: #000 !important;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
}

/* Texto geral */
p, span, div {
    color: #000 !important;
}


/* ===== Android-safe helpers ===== */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.select-proxy{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: 18px;
  color:#1a1a1a;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  position:relative;
  z-index:3;
}
.modal.hidden{ display:none; }
.modal{ position:fixed; inset:0; z-index:999999; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal-sheet{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(92vw, 520px); max-height: 80vh;
  background: rgba(255,255,255,.96);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom:1px solid rgba(0,0,0,.08); }
.modal-title{ font-weight:900; }
.modal-close{ border:0; background:transparent; font-size:18px; padding:8px 10px; }
.modal-body{ padding:14px 16px 18px; }
#colabSearch{ width:100%; padding:12px 14px; border-radius:14px; border:1px solid rgba(0,0,0,.15); font-size:16px; }
.modal-list{ margin-top:12px; display:flex; flex-direction:column; gap:10px; overflow:auto; max-height:55vh; padding-right:4px; }
.modal-item{ text-align:left; padding:14px; border-radius:14px; border:1px solid rgba(0,0,0,.10); background:#fff; font-weight:800; }
/* Android: evita bugs de elementos transformados */
body.android .page{ transform:none !important; opacity:1 !important; }
body.android .page.active{ animation:none !important; }

.__probe_mark{outline:4px solid rgba(255,0,0,.9)!important; outline-offset:2px!important;}

/* ===== Android stability fixes (select/input focus) ===== */
.hero::before,.hero::after,.progress-wrap::before,.progress-wrap::after,.card::before,.card::after{
  pointer-events:none !important;
}
input, select, textarea, button{
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
input, textarea{
  -webkit-user-select: text;
  user-select: text;
}
