/* ============ Tokens ============ */
:root {
  --bg: #0d0b1a;
  --bg2: #14112a;
  --texto: #f3f1ff;
  --mudo: #a8a3c7;
  --vidro: rgba(255, 255, 255, .06);
  --vidro-forte: rgba(255, 255, 255, .1);
  --borda: rgba(255, 255, 255, .12);
  --campo: rgba(255, 255, 255, .06);
  --roxo: #8f7bff;
  --rosa: #ff7ac8;
  --azul: #4fd1ff;
  --grad: linear-gradient(135deg, #7c5cff 0%, #b05cff 55%, #ff6fb5 100%);
  --grad-azul: linear-gradient(135deg, #3ba7ff 0%, #7c5cff 100%);
  --grad-rosa: linear-gradient(135deg, #ff6fb5 0%, #ff9a6f 100%);
  --erro: #ff8a8a;
  --ok: #6ee7b0;
  --sombra: 0 20px 60px rgba(8, 4, 30, .55);
  --raio: 20px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3ff;
    --bg2: #ece8ff;
    --texto: #1b1740;
    --mudo: #6a6590;
    --vidro: rgba(255, 255, 255, .72);
    --vidro-forte: rgba(255, 255, 255, .92);
    --borda: rgba(80, 60, 160, .16);
    --campo: rgba(255, 255, 255, .85);
    --erro: #c63a3a;
    --ok: #12804f;
    --sombra: 0 20px 50px rgba(80, 60, 160, .18);
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texto); background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--roxo); outline-offset: 2px; border-radius: 10px; }
.sub { margin: 8px 0 0; color: var(--mudo); }
small { color: var(--mudo); }

/* ============ Elementos comuns ============ */
.marca { display: inline-flex; align-items: center; gap: 12px; }
.marca-icone {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 24px rgba(124, 92, 255, .45);
}
.marca-nome { font-weight: 700; letter-spacing: -.01em; }

.campo { display: block; margin-bottom: 18px; }
.campo > span:first-child { display: block; font-size: .85rem; font-weight: 600; color: var(--mudo); margin-bottom: 8px; }
.dica { font-style: normal; font-weight: 400; opacity: .8; }
.entrada {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px;
  background: var(--campo); border: 1px solid var(--borda); border-radius: 14px; color: var(--mudo);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.entrada:focus-within { border-color: var(--roxo); box-shadow: 0 0 0 4px rgba(143, 123, 255, .22); color: var(--roxo); }
.entrada input, .entrada select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font: inherit; font-size: 1rem; padding: 14px 0;
}
.entrada select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.entrada select option { color: #111; }
.entrada input::placeholder { color: var(--mudo); opacity: .7; }
.entrada .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .02em; }
.seletor { position: relative; }
.olho { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--mudo); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.olho:hover { background: var(--vidro-forte); color: var(--texto); }
.olho:active { transform: scale(.92); }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 22px; font-weight: 700; color: #fff; cursor: pointer; background: var(--grad);
  box-shadow: 0 10px 30px rgba(124, 92, 255, .45); transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124, 92, 255, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-grande { width: 100%; min-height: 54px; font-size: 1.02rem; }
.btn .brilho { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover .brilho { animation: varrer .9s ease; }
@keyframes varrer { to { transform: translateX(120%); } }
.btn-mini { border: 1px solid var(--borda); background: var(--vidro-forte); border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn-mini:hover { background: var(--roxo); color: #fff; transform: translateY(-1px); }
.btn-fantasma { border: 1px solid var(--borda); background: transparent; border-radius: 12px; padding: 10px 16px; font-weight: 600; cursor: pointer; color: var(--mudo); transition: all .2s; }
.btn-fantasma:hover { color: var(--texto); background: var(--vidro); }
.btn-perigo:hover { color: #fff; background: #e5484d; border-color: #e5484d; }

.msg-erro, .msg-ok { min-height: 1.3em; margin: 14px 0 0; font-size: .93rem; }
.msg-erro { color: var(--erro); }
.msg-ok { color: var(--ok); }

.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .9rem; }
.av-0 { background: linear-gradient(135deg, #7c5cff, #b05cff); }
.av-1 { background: linear-gradient(135deg, #3ba7ff, #7c5cff); }
.av-2 { background: linear-gradient(135deg, #ff6fb5, #ff9a6f); }
.av-3 { background: linear-gradient(135deg, #22c493, #3ba7ff); }
.av-4 { background: linear-gradient(135deg, #ffb347, #ff6f6f); }
.av-5 { background: linear-gradient(135deg, #9b5cff, #4fd1ff); }
.vidro { background: var(--vidro); border: 1px solid var(--borda); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ============ LOGIN ============ */
.login { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 100vh; }
.login-form { display: flex; flex-direction: column; padding: 36px clamp(24px, 5vw, 64px); background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.login-corpo { margin: auto 0; padding: 32px 0; width: 100%; max-width: 400px; align-self: center; animation: subir .7s cubic-bezier(.2, .8, .2, 1) both; }
.login-corpo h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.login-corpo form { margin-top: 30px; }
.rodape { margin: 0; color: var(--mudo); font-size: .82rem; }

.arte { position: relative; overflow: hidden; display: grid; place-items: center; background: #1a1040; color: #fff; isolation: isolate; }
.arte-fundo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 80% 10%, #5b3bff 0%, #2a1470 45%, #150a3a 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
.blob.b1 { width: 460px; height: 460px; top: -120px; right: -80px; background: #ff6fb5; animation: derivar 16s ease-in-out infinite alternate; }
.blob.b2 { width: 420px; height: 420px; bottom: -140px; left: -60px; background: #3ba7ff; animation: derivar 20s ease-in-out infinite alternate-reverse; }
.blob.b3 { width: 320px; height: 320px; top: 38%; left: 38%; background: #8f5cff; opacity: .55; animation: derivar 24s ease-in-out infinite alternate; }
.grade { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); }
@keyframes derivar { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }
.arte-cena { position: relative; width: min(560px, 90%); height: 380px; }
.envelope-grande { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 50px rgba(20, 8, 70, .55)); animation: flutuar 6s ease-in-out infinite; }
.cartao-flutua { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: 0 16px 40px rgba(10, 4, 40, .4); }
.cartao-flutua b { display: block; font-size: .92rem; }
.cartao-flutua small { color: rgba(255, 255, 255, .75); font-size: .78rem; }
.f1 { top: 0; left: 0; animation: flutuar 7s ease-in-out -1s infinite; }
.f2 { top: 46px; right: 0; animation: flutuar 8s ease-in-out -3s infinite; }
.f3 { bottom: 0; left: 40px; animation: flutuar 9s ease-in-out -2s infinite; }
.ponto-ok { width: 12px; height: 12px; border-radius: 50%; background: #5bf0b0; box-shadow: 0 0 0 0 rgba(91, 240, 176, .7); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 12px rgba(91, 240, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 240, 176, 0); } }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.envelope-grande { animation-name: flutuar-central; }
@keyframes flutuar-central { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 14px)); } }
.arte-texto { position: absolute; left: clamp(24px, 5vw, 56px); right: 24px; bottom: clamp(24px, 6vh, 56px); max-width: 420px; }
.arte-texto h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.arte-texto p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); }

@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============ APP ============ */
.app { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.app-fundo { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.app-fundo.b1 { width: 520px; height: 520px; top: -160px; right: -120px; background: #7c5cff; animation: derivar 18s ease-in-out infinite alternate; }
.app-fundo.b2 { width: 480px; height: 480px; bottom: -180px; left: -140px; background: #ff6fb5; opacity: .32; animation: derivar 22s ease-in-out infinite alternate-reverse; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px clamp(16px, 4vw, 40px); }
.topo-dir { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--vidro); border: 1px solid var(--borda); font-size: .88rem; max-width: 46vw; }
.chip #quem { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conteudo { max-width: 1000px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 80px; }
.visao { animation: entrar .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }

.saudacao { text-align: center; margin: clamp(20px, 6vh, 56px) 0 clamp(24px, 5vh, 44px); }
.saudacao h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); max-width: 760px; margin: 0 auto; }
.card-opcao {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  min-height: 380px; padding: 40px 28px 28px; border-radius: 28px; overflow: hidden; cursor: pointer;
  background: var(--vidro); border: 1px solid var(--borda); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sombra); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .35s;
  --mx: 50%; --my: 30%;
}
.card-aura { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143, 123, 255, .35), transparent 60%); }
.c-dominio .card-aura { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(79, 209, 255, .32), transparent 60%); }
.card-opcao:hover, .card-opcao:focus-visible { transform: translateY(-10px); border-color: rgba(143, 123, 255, .7); box-shadow: 0 30px 70px rgba(80, 50, 220, .38); }
.c-dominio:hover, .c-dominio:focus-visible { border-color: rgba(79, 209, 255, .7); box-shadow: 0 30px 70px rgba(40, 140, 230, .34); }
.card-opcao:hover .card-aura, .card-opcao:focus-visible .card-aura { opacity: 1; }
.card-arte { position: relative; z-index: 1; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 40px; background: var(--vidro-forte); border: 1px solid var(--borda); transition: transform .45s cubic-bezier(.2, .8, .2, 1); animation: flutuar 6s ease-in-out infinite; }
.c-dominio .card-arte { animation-delay: -2s; }
.card-opcao:hover .card-arte { transform: scale(1.08) rotate(-4deg); }
.card-texto { position: relative; z-index: 1; display: block; margin-top: 4px; }
.card-texto b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.card-texto small { display: block; margin-top: 8px; font-size: .98rem; line-height: 1.4; }
.card-seta { position: relative; z-index: 1; margin-top: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(124, 92, 255, .5); transition: transform .3s; }
.c-dominio .card-seta { background: var(--grad-azul); }
.card-opcao:hover .card-seta { transform: translateX(6px) scale(1.08); }
.link-suave { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 36px auto 0; padding: 10px 18px; border-radius: 999px; color: var(--mudo); background: var(--vidro); border: 1px solid var(--borda); font-weight: 600; transition: all .25s; }
.link-suave:hover { color: var(--texto); transform: translateY(-2px); border-color: var(--roxo); }

.voltar { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 18px; padding: 8px 14px 8px 10px; border-radius: 999px; color: var(--mudo); font-weight: 600; transition: all .25s; }
.voltar:hover { color: var(--texto); background: var(--vidro); transform: translateX(-3px); }
.painel { max-width: 600px; margin: 0 auto; padding: clamp(22px, 4vw, 36px); border-radius: 28px; box-shadow: var(--sombra); }
.painel.largo { max-width: 760px; }
.painel-topo { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.painel-topo h2 { font-size: 1.5rem; }
.painel-topo .sub { margin-top: 4px; font-size: .95rem; }
.icone-grande { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.g-roxo { background: var(--grad); }
.g-azul { background: var(--grad-azul); }
.g-rosa { background: var(--grad-rosa); }

.linha-email { display: flex; align-items: flex-start; gap: 10px; }
.cresce { flex: 1 1 0; min-width: 0; }
.arroba { padding-top: 40px; color: var(--mudo); font-weight: 800; font-size: 1.2rem; }

/* interruptor */
.interruptor { display: flex; align-items: flex-start; gap: 14px; padding: 14px; margin-bottom: 22px; border-radius: 16px; background: var(--campo); border: 1px solid var(--borda); cursor: pointer; transition: border-color .2s; }
.interruptor:hover { border-color: var(--roxo); }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.trilho { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .25s; }
.trilho i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.interruptor input:checked + .trilho { background: var(--grad); }
.interruptor input:checked + .trilho i { transform: translateX(20px); }
.interruptor input:focus-visible + .trilho { outline: 3px solid var(--roxo); outline-offset: 2px; }
.interruptor-txt b { display: block; }
.interruptor-txt small { display: block; margin-top: 2px; line-height: 1.4; }

.sec-titulo { margin: 30px 0 12px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mudo); font-weight: 700; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--campo); border: 1px solid var(--borda); font-weight: 600; animation: entrar .4s both; }
.chips .tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(143, 123, 255, .2); color: var(--roxo); font-weight: 700; }

/* lista de caixas */
.busca { margin-bottom: 14px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--campo); border: 1px solid var(--borda); transition: transform .2s, border-color .2s; animation: entrar .4s both; }
.lista li:hover { transform: translateY(-2px); border-color: var(--roxo); }
.lista .info { flex: 1; min-width: 0; }
.lista .nome { display: block; font-weight: 700; overflow-wrap: anywhere; }
.lista .etiqueta { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; background: rgba(255, 122, 200, .2); color: var(--rosa); vertical-align: middle; }
.lista .acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vazio { color: var(--mudo); text-align: center; padding: 22px 0; display: block; }

/* sucesso */
.sucesso { position: relative; margin-top: 28px; padding: 26px 20px 20px; border-radius: 20px; text-align: center; overflow: hidden; background: linear-gradient(180deg, rgba(110, 231, 176, .14), rgba(143, 123, 255, .12)); border: 1px solid rgba(110, 231, 176, .4); animation: entrar .5s both; }
.sucesso h3 { font-size: 1.4rem; margin-top: 6px; }
.check { display: inline-block; }
.check-c { stroke: var(--ok); stroke-dasharray: 145; stroke-dashoffset: 145; animation: tracar .7s .1s ease forwards; }
.check-p { stroke: var(--ok); stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracar .5s .6s ease forwards; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
.copia { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--campo); border: 1px solid var(--borda); }
.copia > div { min-width: 0; }
.copia small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.copia code { display: block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.08rem; overflow-wrap: anywhere; }
.acoes-fim { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.confete i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: cair 1.6s ease-out forwards; }
.confete i:nth-child(1) { left: 8%; background: #8f7bff; animation-delay: .05s; }
.confete i:nth-child(2) { left: 18%; background: #ff7ac8; animation-delay: .2s; }
.confete i:nth-child(3) { left: 28%; background: #4fd1ff; animation-delay: .1s; }
.confete i:nth-child(4) { left: 38%; background: #ffd166; animation-delay: .3s; }
.confete i:nth-child(5) { left: 48%; background: #6ee7b0; animation-delay: .15s; }
.confete i:nth-child(6) { left: 58%; background: #8f7bff; animation-delay: .35s; }
.confete i:nth-child(7) { left: 68%; background: #ff7ac8; animation-delay: .08s; }
.confete i:nth-child(8) { left: 78%; background: #4fd1ff; animation-delay: .25s; }
.confete i:nth-child(9) { left: 88%; background: #ffd166; animation-delay: .12s; }
.confete i:nth-child(10) { left: 94%; background: #6ee7b0; animation-delay: .32s; }
@keyframes cair { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(240px) rotate(420deg); } }

.aviso { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; font-weight: 700; color: #fff; background: rgba(30, 24, 70, .95); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: subir .35s both; max-width: 90vw; }

/* ============ Responsivo ============ */
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .arte { display: none; }
  .login-form { min-height: 100vh; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card-opcao { min-height: 0; padding: 28px 22px 22px; }
  .card-arte { width: 112px; height: 112px; border-radius: 32px; }
  .card-arte svg { width: 88px; height: 88px; }
  .linha-email { flex-direction: column; gap: 0; }
  .linha-email .cresce { width: 100%; flex: none; }
  .arroba { display: none; }
  .lista li { flex-wrap: wrap; }
  .lista .acoes { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ Janelinha (modal) ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(8, 5, 24, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: entrar .25s both; }
.modal-caixa { width: min(440px, 100%); padding: 28px; border-radius: 24px; box-shadow: var(--sombra); background: rgba(28, 22, 66, .96); color: #f3f1ff; }
@media (prefers-color-scheme: light) { .modal-caixa { background: rgba(255, 255, 255, .98); color: #1b1740; } }
.modal-caixa h3 { font-size: 1.3rem; }
.modal-caixa .campo { margin: 18px 0 0; }
.modal-caixa .acoes-fim { justify-content: flex-end; margin-top: 22px; }
.btn-perigo-solido { background: linear-gradient(135deg, #ff5d6c, #e5484d); box-shadow: 0 10px 28px rgba(229, 72, 77, .45); }
.btn-perigo-solido:hover { box-shadow: 0 16px 36px rgba(229, 72, 77, .6); }
.btn-mini.btn-perigo:hover { background: #e5484d; border-color: #e5484d; color: #fff; }

/* ============ Ajustes finos ============ */
.visao .voltar { margin-left: max(0px, calc((100% - 600px) / 2)); }
#v-caixas .voltar { margin-left: max(0px, calc((100% - 760px) / 2)); }
.card-opcao { min-height: 430px; }
@media (max-width: 640px) {
  .visao .voltar, #v-caixas .voltar { margin-left: 0; }
  .card-opcao { min-height: 0; }
  .conteudo { padding-left: 16px; padding-right: 16px; }
  .topo { padding: 14px 16px; }
  .marca-nome { display: none; }
}
