/* =========================================================================
   DropZen — Landing page (Neo Brutalism + Minimalismo + Retro Modern)
   Escopo isolado sob .dz-* para nao colidir com o design system do app
   (dashboard/admin usam style.css). Paleta e tokens vindos do brief.
   ========================================================================= */

.dz {
  --cream: #F8F3EA;
  --ink: #111111;
  --blue: #2563EB;
  --coral: #FF6B6B;
  --yellow: #FFC93C;
  --white: #ffffff;
  --mint: #7BDCB5;

  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 18px;
  --radius-sm: 10px;

  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Reset: remove a margem padrao do navegador no html/body (causava uma faixa
   de ~8px nas laterais do site) e evita rolagem horizontal acidental. */
html, body { margin: 0; padding: 0; }
body.dz { overflow-x: hidden; width: 100%; }

.dz *, .dz *::before, .dz *::after { box-sizing: border-box; }
.dz img { max-width: 100%; display: block; }
.dz a { color: inherit; text-decoration: none; }
.dz-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Tema escuro (ativado manualmente pelo botao no painel; padrao e sempre claro).
   Mantem a estetica Neo Brutalism, so troca creme/branco por tons escuros e a
   tinta preta por um creme claro para os contornos continuarem visiveis. */
:root[data-theme="dark"] .dz {
  --cream: #1c1a17;
  --white: #26231f;
  --ink: #F8F3EA;
  background: #141310;
}
:root[data-theme="dark"] .dz .dz-input,
:root[data-theme="dark"] .dz .dz-search { background: #1c1a17; }


.dz h1, .dz h2, .dz h3, .dz h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.dz p { margin: 0; }

.dz ::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons ---------- */
.dz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border: var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .08s ease, box-shadow .08s ease;
  white-space: nowrap;
}
.dz-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.dz-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.dz-btn-primary { background: var(--blue); color: var(--white); }
.dz-btn-coral { background: var(--coral); color: var(--ink); }
.dz-btn-yellow { background: var(--yellow); color: var(--ink); }
.dz-btn-lg { font-size: 18px; padding: 17px 32px; }
.dz-btn-block { width: 100%; }

/* ---------- Header ---------- */
.dz-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: var(--border);
}
.dz-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.dz-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.dz-logo-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.dz-logo-img { height: 40px; width: auto; border-radius: 11px; }
/* Logo do rodape: o rodape tem fundo escuro, entao a marca precisa aparecer em
   branco. O filtro converte a imagem enviada (normalmente escura) para branco. */
.dz-logo-img-white { border-color: var(--cream); filter: brightness(0) invert(1); }
.dz-nav { display: flex; align-items: center; gap: 30px; }
.dz-nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 15.5px; }
.dz-nav-links a { position: relative; padding: 3px 0; }
.dz-nav-links a:hover { color: var(--blue); }
.dz-nav-actions { display: flex; align-items: center; gap: 12px; }

.dz-burger {
  display: none; width: 46px; height: 46px; border: var(--border); border-radius: 10px;
  background: var(--white); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.dz-burger span { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.dz-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.dz-burger.open span:nth-child(2) { opacity: 0; }
.dz-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.dz-mobile-menu { display: none; border-bottom: var(--border); background: var(--cream); }
.dz-mobile-menu.open { display: block; }
.dz-mobile-menu nav { display: flex; flex-direction: column; padding: 18px 24px 24px; gap: 4px; }
.dz-mobile-menu nav a { padding: 12px 4px; font-weight: 600; font-size: 17px; border-bottom: 2px dashed rgba(17,17,17,.15); }
.dz-mobile-menu .dz-mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* ---------- Decorative doodles ---------- */
.dz-doodle { position: absolute; pointer-events: none; z-index: 1; }
.dz-star { color: var(--coral); }
.dz-scribble { color: var(--blue); }
.dz-circle-doodle { color: var(--yellow); }

/* ---------- Hero ---------- */
.dz-hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.dz-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.dz-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 15px;
  border: var(--border); border-radius: 999px; background: var(--mint); box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 26px;
}
.dz-hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.dz-hero h1 .hl { position: relative; white-space: nowrap; }
.dz-hero h1 .hl-blue { color: var(--blue); }
.dz-hero h1 .hl-mark { background: var(--yellow); padding: 0 8px; border: var(--border); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); display: inline-block; transform: rotate(-1.5deg); }
.dz-hero-lead { font-size: 19px; max-width: 460px; margin-bottom: 34px; font-weight: 500; }
.dz-hero-lead strong { background: var(--coral); padding: 1px 7px; border-radius: 6px; border: 2px solid var(--ink); }
.dz-hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* ---------- Transfer console (signature element) ---------- */
.dz-console {
  position: relative; z-index: 2; background: var(--white);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; transform: rotate(1deg);
}
.dz-console-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px dashed rgba(17,17,17,.2); }
.dz-console-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); }
.dz-console-dot.r { background: var(--coral); }
.dz-console-dot.y { background: var(--yellow); }
.dz-console-dot.g { background: var(--mint); }
.dz-console-title { margin-left: auto; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

.dz-dropzone {
  border: 3px dashed var(--ink); border-radius: var(--radius-sm); background: var(--cream);
  padding: 22px; text-align: center; margin-bottom: 18px;
}
.dz-dropzone-icon { font-size: 30px; margin-bottom: 6px; }
.dz-dropzone-text { font-weight: 700; font-size: 15px; }
.dz-dropzone-sub { font-size: 13px; font-weight: 500; opacity: .7; margin-top: 2px; }

.dz-file-card { border: var(--border); border-radius: var(--radius-sm); background: var(--white); padding: 15px; box-shadow: var(--shadow-sm); }
.dz-file-top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.dz-file-icon { width: 42px; height: 42px; border: var(--border); border-radius: 9px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.dz-file-name { font-weight: 700; font-size: 15px; }
.dz-file-size { font-size: 13px; font-weight: 500; opacity: .7; }
.dz-file-status { margin-left: auto; font-weight: 700; font-size: 12px; padding: 5px 11px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); white-space: nowrap; }
.dz-file-status.done { background: var(--mint); }

.dz-progress-track { height: 16px; border: var(--border); border-radius: 999px; background: var(--cream); overflow: hidden; padding: 0; }
.dz-progress-fill { height: 100%; background: var(--blue); width: 0%; border-radius: 999px 0 0 999px; animation: dzFill 2.4s cubic-bezier(.5,0,.2,1) forwards; }
.dz-progress-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.dz-progress-pct { font-weight: 700; font-size: 15px; min-width: 46px; }

.dz-link-row {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px;
  border: var(--border); border-radius: var(--radius-sm); background: var(--cream);
  opacity: 0; transform: translateY(8px); animation: dzReveal .5s ease-out 2.5s forwards;
}
.dz-link-url { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dz-copy-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--coral); color: var(--ink);
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink); flex-shrink: 0; transition: transform .08s;
}
.dz-copy-btn:active { transform: translate(2px,2px); box-shadow: none; }
.dz-copy-btn.copied { background: var(--mint); }

@keyframes dzFill { from { width: 0%; } to { width: 100%; } }
@keyframes dzReveal { to { opacity: 1; transform: translateY(0); } }

/* ---------- Section scaffolding ---------- */
.dz-section { padding: 78px 0; position: relative; }
.dz-section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.dz-eyebrow { display: inline-block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 14px; }
.dz-section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.dz-section-head p { font-size: 17px; font-weight: 500; margin-top: 14px; opacity: .8; }

/* ---------- Stats band ---------- */
.dz-stats { background: var(--ink); border-top: var(--border); border-bottom: var(--border); padding: 0; }
.dz-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.dz-stat { padding: 40px 24px; text-align: center; color: var(--cream); border-right: 3px solid rgba(248,243,234,.16); }
.dz-stat:last-child { border-right: none; }
.dz-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.dz-stat-num.c-coral { color: var(--coral); }
.dz-stat-num.c-yellow { color: var(--yellow); }
.dz-stat-num.c-blue { color: #6ea0ff; }
.dz-stat-num.c-mint { color: var(--mint); }
.dz-stat-label { font-weight: 600; font-size: 14px; margin-top: 8px; opacity: .85; }

/* ---------- How it works (timeline) ---------- */
.dz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dz-step { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; position: relative; }
.dz-step:nth-child(1) { background: var(--white); }
.dz-step:nth-child(2) { background: #EAF0FF; }
.dz-step:nth-child(3) { background: #FFF3D6; }
.dz-step:nth-child(4) { background: #FFE6E6; }
.dz-step-num { position: absolute; top: -16px; left: 22px; width: 40px; height: 40px; border: var(--border); border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.dz-step-icon { font-size: 34px; margin: 14px 0 14px; }
.dz-step h3 { font-size: 20px; margin-bottom: 8px; }
.dz-step p { font-size: 14.5px; font-weight: 500; opacity: .8; }

/* ---------- Benefits grid ---------- */
.dz-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dz-benefit { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: transform .1s ease, box-shadow .1s ease; }
.dz-benefit:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.dz-benefit-icon { width: 54px; height: 54px; border: var(--border); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; box-shadow: 3px 3px 0 var(--ink); }
.dz-benefit:nth-child(1) .dz-benefit-icon { background: var(--yellow); }
.dz-benefit:nth-child(2) .dz-benefit-icon { background: var(--coral); }
.dz-benefit:nth-child(3) .dz-benefit-icon { background: var(--mint); }
.dz-benefit:nth-child(4) .dz-benefit-icon { background: var(--blue); }
.dz-benefit:nth-child(5) .dz-benefit-icon { background: var(--yellow); }
.dz-benefit:nth-child(6) .dz-benefit-icon { background: var(--coral); }
.dz-benefit h3 { font-size: 19px; margin-bottom: 9px; }
.dz-benefit p { font-size: 14.5px; font-weight: 500; opacity: .8; }

/* ---------- Demo band ---------- */
.dz-demo { background: var(--blue); border-top: var(--border); border-bottom: var(--border); }
.dz-demo .dz-section-head h2, .dz-demo .dz-eyebrow { color: var(--white); }
.dz-demo .dz-eyebrow { opacity: .85; }
.dz-demo-card { max-width: 560px; margin: 0 auto; background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px; transform: rotate(-1deg); }

/* ---------- FAQ accordion ---------- */
.dz-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.dz-faq-item { border: var(--border); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.dz-faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); }
.dz-faq-icon { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: transform .2s ease; }
.dz-faq-item.open .dz-faq-icon { transform: rotate(45deg); background: var(--coral); }
.dz-faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.dz-faq-a-inner { padding: 0 22px 20px; font-size: 15px; font-weight: 500; opacity: .85; }

/* ---------- CTA ---------- */
.dz-cta { position: relative; }
.dz-cta-box { background: var(--yellow); border: var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.dz-cta-box h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.dz-footer { background: var(--ink); color: var(--cream); border-top: var(--border); padding: 54px 0 30px; }
.dz-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.dz-footer-brand .dz-logo { color: var(--cream); margin-bottom: 16px; font-size: 30px; gap: 13px; }
.dz-footer-brand .dz-logo-mark { width: 52px; height: 52px; font-size: 26px; }
.dz-footer-brand .dz-logo-img { height: 52px; }
.dz-footer-brand p { font-size: 14.5px; opacity: .7; max-width: 300px; font-weight: 500; }
.dz-footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--yellow); }
.dz-footer-col a { display: block; padding: 6px 0; font-size: 14.5px; opacity: .82; font-weight: 500; }
.dz-footer-col a:hover { opacity: 1; color: var(--yellow); }
.dz-social { display: flex; gap: 12px; margin-top: 18px; }
.dz-social a { width: 42px; height: 42px; border: 2px solid var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .1s; }
.dz-social a:hover { transform: translate(-2px,-2px); background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.dz-footer-bottom { border-top: 2px solid rgba(248,243,234,.2); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; opacity: .7; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dz-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .dz-console { transform: none; max-width: 480px; margin: 0 auto; }
  .dz-nav-links, .dz-nav-actions { display: none; }
  .dz-burger { display: flex; }
  .dz-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dz-stat:nth-child(2) { border-right: none; }
  .dz-stat:nth-child(1), .dz-stat:nth-child(2) { border-bottom: 3px solid rgba(248,243,234,.16); }
  .dz-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .dz-benefits { grid-template-columns: repeat(2, 1fr); }
  .dz-footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dz-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .dz-wrap { padding: 0 18px; }
  .dz-hero { padding: 48px 0 60px; }
  .dz-steps { grid-template-columns: 1fr; }
  .dz-benefits { grid-template-columns: 1fr; }
  .dz-stats-grid { grid-template-columns: 1fr; }
  .dz-stat { border-right: none; border-bottom: 3px solid rgba(248,243,234,.16); }
  .dz-stat:last-child { border-bottom: none; }
  .dz-hero-actions .dz-btn { width: 100%; }
  .dz-footer-top { grid-template-columns: 1fr; }
  .dz-footer-bottom { flex-direction: column; text-align: center; }
  .dz-cta-box { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .dz-progress-fill { animation: none; width: 100%; }
  .dz-link-row { animation: none; opacity: 1; transform: none; }
  .dz-btn:hover, .dz-benefit:hover, .dz-social a:hover { transform: none; }
}

/* ---------- Paginas de conteudo legal (Privacidade / Termos) ---------- */
.dz-legal { padding: 60px 0 90px; }
.dz-legal-card {
  max-width: 780px; margin: 0 auto; background: var(--white);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 40px;
}
.dz-legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.dz-legal-eyebrow { display:inline-block; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.08em; padding:6px 13px; border:2px solid var(--ink); border-radius:999px; background:var(--yellow); box-shadow:3px 3px 0 var(--ink); margin-bottom:20px; }
.dz-legal-body { line-height: 1.8; font-size: 15.5px; font-weight: 500; }
.dz-legal-body br { margin-bottom: 8px; }
@media (max-width:560px){ .dz-legal-card{ padding: 30px 22px; } }

/* ---------- Alinhamento de icones SVG (substituindo emojis) ---------- */
.dz-logo-mark svg { display: block; }
.dz-footer-brand .dz-logo-mark svg { width: 30px; height: 30px; }
.dz-btn svg { flex-shrink: 0; }
.dz-badge svg { flex-shrink: 0; }
.dz-dropzone-icon { display: flex; justify-content: center; }
.dz-dropzone-icon svg { display: block; }
.dz-step-icon { display: inline-flex; }
.dz-benefit-icon svg { display: block; }
.dz-social a svg { display: block; }
.dz-cta-box h2 svg { vertical-align: -5px; }
.dz-section-head h2 svg { vertical-align: -4px; }

/* =========================================================================
   APP DropZen — login, cadastro, dashboard, painel admin
   (mesma identidade Neo Brutalism da landing, aplicada as telas internas)
   ========================================================================= */

/* ---------- Auth (login / cadastro) ---------- */
.dz-auth { min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.dz-auth-card {
  width: 100%; max-width: 520px; background: var(--white);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 44px;
}
.dz-auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.dz-auth-sub { font-size: 15px; font-weight: 500; opacity: .75; margin-bottom: 28px; }
.dz-field { margin-bottom: 18px; }
.dz-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.dz-input {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 15px; border: var(--border); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); box-shadow: inset 2px 2px 0 rgba(17,17,17,.06);
  transition: box-shadow .1s ease, transform .1s ease;
}
.dz-input:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); transform: translate(-1px,-1px); }
.dz-input::placeholder { color: rgba(17,17,17,.4); }
.dz-auth-foot { text-align: center; margin-top: 22px; font-size: 14px; font-weight: 500; }
.dz-auth-foot a { color: var(--blue); font-weight: 700; }
.dz-auth-foot a:hover { text-decoration: underline; }
.dz-checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.dz-checkbox-row input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }

/* ---------- Flash / alertas ---------- */
.dz-flash { border: var(--border); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; font-size: 14.5px; margin-bottom: 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px; }
.dz-flash svg { flex-shrink: 0; }
.dz-flash-success { background: var(--mint); }
.dz-flash-error { background: var(--coral); }
.dz-flash-info { background: var(--yellow); }

/* ---------- App shell (dashboard / admin) ---------- */
.dz-app { display: flex; min-height: 100vh; }
.dz-sidebar {
  width: 264px; flex-shrink: 0; background: var(--white);
  border-right: var(--border); padding: 22px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
}
.dz-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 22px; }
.dz-sidebar-brand .dz-logo-mark { width: 38px; height: 38px; }
.dz-sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.dz-sidebar-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.dz-sidebar-brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

.dz-sidebar .dz-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dz-sidebar .dz-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; border: 2px solid transparent;
}
.dz-sidebar .dz-nav a svg { flex-shrink: 0; }
.dz-sidebar .dz-nav a:hover { background: var(--cream); border-color: var(--ink); }
.dz-sidebar .dz-nav a.active { background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

.dz-sidebar-foot { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(17,17,17,.2); display: flex; flex-direction: column; gap: 5px; }
.dz-sidebar-foot a, .dz-sidebar-foot button {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 14px; border: 2px solid transparent;
  background: none; cursor: pointer; color: var(--ink); width: 100%; text-align: left;
}
.dz-sidebar-foot a:hover, .dz-sidebar-foot button:hover { background: var(--cream); border-color: var(--ink); }
.dz-sidebar-foot svg { flex-shrink: 0; }

.dz-quick-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  border: var(--border); border-radius: var(--radius-sm); background: var(--blue); color: var(--white);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.dz-quick-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.dz-quick-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.dz-main { flex: 1; padding: 26px 34px 60px; min-width: 0; }

/* Topbar do app */
.dz-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.dz-search {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--white);
  border: var(--border); border-radius: var(--radius-sm); padding: 11px 16px; box-shadow: var(--shadow-sm);
}
.dz-search svg { flex-shrink: 0; opacity: .6; }
.dz-search input { border: none; background: none; outline: none; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink); width: 100%; }
.dz-icon-btn {
  width: 46px; height: 46px; border: var(--border); border-radius: var(--radius-sm); background: var(--white);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative; flex-shrink: 0; color: var(--ink); transition: transform .08s, box-shadow .08s;
}
.dz-icon-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.dz-icon-btn .dz-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.dz-user-chip { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dz-avatar { width: 46px; height: 46px; border: var(--border); border-radius: var(--radius-sm); background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.dz-user-meta { line-height: 1.15; }
.dz-user-name { font-weight: 700; font-size: 14.5px; }
.dz-user-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }

/* Cabecalho de pagina */
.dz-page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.dz-page-head h1 { font-size: 30px; margin-bottom: 4px; }
.dz-page-head p { font-weight: 500; font-size: 15px; opacity: .75; }
.dz-page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards de estatistica */
.dz-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.dz-stat-card { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.dz-stat-card.wide { grid-column: span 1; }
.dz-stat-card-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.dz-stat-card-num { font-family: var(--font-display); font-weight: 700; font-size: 32px; margin-top: 6px; letter-spacing: -0.02em; }
.dz-stat-card-sub { font-size: 13px; font-weight: 500; opacity: .7; margin-top: 2px; }
.dz-stat-card.accent { background: var(--blue); color: var(--white); }
.dz-stat-card.accent .dz-stat-card-label { opacity: .85; }

/* Barra de progresso (armazenamento) */
.dz-bar { height: 16px; border: var(--border); border-radius: 999px; background: var(--cream); overflow: hidden; margin-top: 14px; }
.dz-bar-fill { height: 100%; background: var(--blue); border-radius: 999px 0 0 999px; }

/* Lista de atividade (dentro de card azul) */
.dz-activity { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.dz-activity-item { display: flex; gap: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.dz-activity-item .dz-adot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--white); margin-top: 6px; flex-shrink: 0; }
.dz-activity-item strong { font-weight: 700; }

/* Icones de tipo de arquivo (pilha e tabela) */
.dz-ft { border: 2px solid var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 10px; flex-shrink: 0; }
.dz-ft.pdf { background: var(--coral); }
.dz-ft.zip { background: var(--yellow); }
.dz-ft.image { background: #d9b8ff; }
.dz-ft.video { background: var(--mint); }
.dz-ft.audio { background: #ffb8d9; }
.dz-ft.doc { background: #a8c7ff; }
.dz-ft.sheet { background: var(--mint); }
.dz-ft.slide { background: var(--coral); }
.dz-ft.default { background: var(--cream); }
.dz-ft-stack { display: flex; align-items: center; margin-top: 14px; }
.dz-ft-stack .dz-ft { width: 30px; height: 30px; margin-left: -6px; border-width: 2px; }
.dz-ft-stack .dz-ft:first-child { margin-left: 0; }
.dz-ft-more { margin-left: 9px; font-weight: 700; font-size: 13px; opacity: .7; }

/* Tabela / cards de arquivo */
.dz-panel { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.dz-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 3px solid var(--ink); }
.dz-panel-head h2 { font-size: 18px; }
/* Corpo do painel com respiro interno. Painéis que contêm tabelas nao usam
   esta classe, porque a propria tabela ja traz o espacamento das celulas. */
.dz-panel-body { padding: 22px 24px; }
.dz-panel-body > :last-child { margin-bottom: 0; }
.dz-panel-head a { font-weight: 700; font-size: 13.5px; color: var(--blue); }
.dz-table { width: 100%; border-collapse: collapse; }
.dz-table th { text-align: left; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 13px 20px; border-bottom: 3px solid var(--ink); opacity: .7; }
.dz-table td { padding: 15px 20px; border-bottom: 2px solid rgba(17,17,17,.1); vertical-align: middle; }
.dz-table tr:last-child td { border-bottom: none; }
.dz-table tr:hover td { background: var(--cream); }
.dz-fname-cell { display: flex; align-items: center; gap: 12px; }
.dz-fname-cell .dz-ft { width: 40px; height: 40px; }
.dz-fname { font-weight: 700; font-size: 14.5px; }
.dz-fid { font-size: 12px; font-weight: 500; opacity: .6; margin-top: 1px; }
.dz-fmeta { font-size: 13.5px; font-weight: 500; opacity: .8; }
.dz-type-pill { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); }

/* Badges de status */
.dz-badge-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 5px 11px; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.dz-badge-status.completed, .dz-badge-status.active { background: var(--mint); }
.dz-badge-status.pending { background: var(--yellow); }
.dz-badge-status.failed, .dz-badge-status.banned { background: var(--coral); }
.dz-badge-status.admin { background: #a8c7ff; }
.dz-badge-status.user { background: var(--cream); }

/* Menu de acoes (dropdown) */
.dz-action-menu { position: relative; display: inline-block; }
.dz-action-btn { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.dz-action-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.dz-action-list { display: none; position: fixed; z-index: 200; min-width: 210px; background: var(--white); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 7px; flex-direction: column; gap: 3px; }
.dz-action-menu.open .dz-action-list { display: flex; }
.dz-action-list a, .dz-action-list button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 8px; background: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--ink);
}
.dz-action-list a:hover, .dz-action-list button:hover { background: var(--cream); border-color: var(--ink); }
.dz-action-list button.danger { color: #c0392b; }
.dz-action-list svg { flex-shrink: 0; }

/* Dropzone grande (dashboard) */
.dz-upload-card { border: 3px dashed var(--ink); border-radius: var(--radius); background: var(--white); padding: 48px 24px; text-align: center; cursor: pointer; transition: background .12s, border-color .12s; }
.dz-upload-card.dragover { background: #EAF0FF; border-color: var(--blue); }
.dz-upload-card-icon { width: 64px; height: 64px; margin: 0 auto 18px; border: var(--border); border-radius: 16px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.dz-upload-card h3 { font-size: 20px; margin-bottom: 8px; }
.dz-upload-card p { font-size: 14.5px; font-weight: 500; opacity: .75; max-width: 460px; margin: 0 auto 22px; }
.dz-upload-card-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dz-upload-card input[type=file] { display: none; }
.dz-upload-queue { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.dz-upload-item { background: var(--white); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 15px 17px; }
.dz-upload-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.dz-upload-item.done { background: #eafaf0; }
.dz-upload-item.error { background: #ffeaea; }
.dz-upload-status { font-weight: 700; font-size: 12.5px; opacity: .8; }

/* Formularios do admin */
.dz-form-card { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px; }
.dz-form-card h3 { font-size: 18px; margin: 24px 0 14px; }
.dz-form-card h3:first-child { margin-top: 0; }
.dz-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dz-textarea { min-height: 90px; resize: vertical; font-family: var(--font-body); }
.dz-field-hint { font-size: 12.5px; font-weight: 500; opacity: .65; margin-top: 6px; }
.dz-color-row { display: flex; align-items: center; gap: 10px; }
.dz-color-row input[type=color] { width: 52px; height: 44px; border: var(--border); border-radius: 8px; padding: 3px; cursor: pointer; background: var(--white); }
.dz-branding-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); }
.dz-branding-preview img { max-height: 42px; max-width: 130px; }
.dz-inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dz-inline-actions form { display: inline; }

/* SweetAlert2 no estilo DropZen */
.swal2-popup { font-family: var(--font-body) !important; border: 3px solid #111 !important; border-radius: 18px !important; box-shadow: 8px 8px 0 #111 !important; }
.swal2-title { font-family: var(--font-display) !important; font-weight: 700 !important; }
.swal2-actions .swal2-styled { border: 3px solid #111 !important; border-radius: 10px !important; font-family: var(--font-display) !important; font-weight: 700 !important; box-shadow: 3px 3px 0 #111 !important; }
.swal2-input, .swal2-textarea { border: 3px solid #111 !important; border-radius: 10px !important; box-shadow: none !important; }

/* Empty state */
.dz-empty { text-align: center; padding: 60px 20px; }
.dz-empty svg { opacity: .4; margin-bottom: 14px; }
.dz-empty p { font-weight: 600; opacity: .7; }

/* Responsivo do app */
@media (max-width: 900px) {
  .dz-app { flex-direction: column; }
  .dz-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px 14px; gap: 10px; }
  .dz-sidebar-brand { padding: 0 12px 0 0; }
  .dz-sidebar .dz-nav { flex-direction: row; gap: 6px; }
  .dz-sidebar .dz-nav a span:not(.dz-nav-icon) { display: none; }
  .dz-sidebar-foot { display: none; }
  .dz-quick-btn { display: none; }
  .dz-main { padding: 22px 18px 48px; }
  .dz-stat-row { grid-template-columns: 1fr; }
  .dz-form-grid { grid-template-columns: 1fr; }
  .dz-user-meta { display: none; }
  .dz-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* =========================================================================
   Aliases: conteudo das paginas admin (classes antigas) no estilo DropZen
   As paginas admin usam .page-head, .card, .stat-row, .data-table etc.
   ========================================================================= */
.dz .page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.dz .page-head h1 { font-size: 30px; margin-bottom: 4px; }
.dz .page-head p { font-weight: 500; opacity: .75; }

.dz .card, .dz .form-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin-bottom: 22px;
}
.dz .card h3, .dz .form-card h3 { font-family: var(--font-display); font-size: 18px; margin: 22px 0 14px; }
.dz .card h3:first-child, .dz .form-card h3:first-child { margin-top: 0; }

.dz .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.dz .stat-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.dz .stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.dz .stat-card .label { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin-top: 4px; }

.dz .table-wrap {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
}
.dz .table-head-actions { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 3px solid var(--ink); }
.dz .table-head-actions h2 { font-size: 18px; }
.dz .table-head-actions a { font-weight: 700; font-size: 13.5px; color: var(--blue); }
.dz table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dz .data-table th { text-align: left; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 13px 20px; border-bottom: 3px solid var(--ink); opacity: .7; }
.dz .data-table td { padding: 14px 20px; border-bottom: 2px solid rgba(17,17,17,.1); vertical-align: middle; }
.dz .data-table tr:last-child td { border-bottom: none; }
.dz .data-table tr:hover td { background: var(--cream); }
.dz .data-table a { color: var(--blue); font-weight: 600; }
.dz .mono { font-family: var(--font-body); }

/* Badges antigos -> estilo DropZen */
.dz .badge {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .03em; padding: 5px 11px;
  border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; background: var(--cream);
}
.dz .badge-completed, .dz .badge-active { background: var(--mint); }
.dz .badge-pending { background: var(--yellow); }
.dz .badge-failed, .dz .badge-banned { background: var(--coral); }
.dz .badge-admin { background: #a8c7ff; }
.dz .badge-user { background: var(--cream); }

/* Botoes antigos -> estilo DropZen */
.dz .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; padding: 11px 20px;
  border: var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s; text-decoration: none;
}
.dz .btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.dz .btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.dz .btn-primary { background: var(--blue); color: var(--white); }
.dz .btn-danger { background: var(--coral); color: var(--ink); }
.dz .btn-outline { background: var(--white); }
.dz .btn-sm { font-size: 13px; padding: 8px 14px; box-shadow: 2px 2px 0 var(--ink); }
.dz .btn-block { width: 100%; }
.dz .inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dz .inline-actions form { display: inline; }

/* Campos de formulario antigos -> estilo DropZen */
.dz .field { margin-bottom: 18px; }
.dz .field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.dz .field input[type=text], .dz .field input[type=email], .dz .field input[type=password],
.dz .field input[type=url], .dz .field input[type=number], .dz .field select, .dz .field textarea,
.dz input[type=text].dz-passthrough {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 12px 14px; border: var(--border); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
}
.dz .field input:focus, .dz .field select:focus, .dz .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); }
.dz .settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dz .field-hint { font-size: 12.5px; font-weight: 500; opacity: .65; margin-top: 6px; }
.dz .branding-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); }
.dz .branding-preview img { max-height: 42px; max-width: 130px; }

/* Flash antigo -> DropZen */
.dz .flash { border: var(--border); border-radius: var(--radius-sm); padding: 13px 17px; font-weight: 600; font-size: 14.5px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.dz .flash-success { background: var(--mint); }
.dz .flash-error { background: var(--coral); }
.dz .flash-info { background: var(--yellow); }

/* Empty state antigo */
.dz .empty-state { text-align: center; padding: 56px 20px; }
.dz .empty-state .dz-icon { font-size: 34px; opacity: .4; }

.dz .waybill-label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.dz code { background: var(--cream); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 7px; font-size: 13px; }

@media (max-width: 900px) {
  .dz .stat-row { grid-template-columns: 1fr 1fr; }
  .dz .settings-grid { grid-template-columns: 1fr; }
}

/* ---------- Pagina de download ---------- */
.dz-download-card { max-width: 480px; text-align: center; }
.dz-download-hero { margin-bottom: 24px; }
.dz-download-badge {
  width: 64px; height: 64px; margin: 0 auto 18px; border: var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.dz-download-badge.err { background: var(--coral); }
.dz-download-badge.warn { background: var(--yellow); }
.dz-download-ft {
  width: 64px; height: 64px; margin: 0 auto 18px; font-size: 16px; border-width: 3px;
  box-shadow: var(--shadow-sm);
}
.dz-download-name { font-size: 24px; word-break: break-word; line-height: 1.15; margin-bottom: 4px; }
.dz-download-meta {
  display: flex; border: var(--border); border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 22px; background: var(--cream);
}
.dz-download-meta-item { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.dz-download-meta-item + .dz-download-meta-item { border-left: 2px solid var(--ink); }
.dz-download-meta-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.dz-download-meta-value { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.dz-download-hint { font-size: 13px; font-weight: 500; opacity: .7; margin-top: 14px; }
.dz-download-expiry {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 7px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow);
  font-weight: 700; font-size: 12.5px;
}
.dz-download-expiry svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .dz-download-meta-value { font-size: 14px; }
  .dz-download-meta-item { padding: 12px 6px; }
}

/* ---------- Modal de upload ---------- */
.dz-modal-overlay {
  position: fixed; inset: 0; background: rgba(17,17,17,.55); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.dz-modal-overlay.open { display: flex; }
.dz-modal {
  width: 100%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: dzModalIn .16s ease-out;
}
@keyframes dzModalIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dz-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 3px solid var(--ink);
}
.dz-modal-head h3 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.dz-modal-close {
  border: 2px solid var(--ink); background: var(--white); width: 34px; height: 34px;
  border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink); transition: transform .08s, box-shadow .08s; flex-shrink: 0;
}
.dz-modal-close:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.dz-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.dz-modal-body:empty::before { content: 'Selecione arquivos para enviar.'; opacity: .6; font-weight: 500; }
.dz-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-top: 3px solid var(--ink); flex-wrap: wrap;
}
.dz-upload-item-name { word-break: break-word; }
.dz-upload-item-meta { font-size: 12px; font-weight: 500; opacity: .6; margin-top: 6px; }

@media (max-width: 560px) {
  .dz-modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .dz-modal-foot .dz-btn { width: 100%; }
}

/* ---------- Player de audio/video ---------- */
/* O card do arquivo fica mais largo quando exibe um video. */
.dz-auth-card-wide { max-width: 760px; }

.dz-player {
  border: var(--border); border-radius: 14px; overflow: hidden;
  background: var(--white); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 18px;
}
/* O quadro do video e sempre escuro, em qualquer tema — video em fundo claro
   fica desconfortavel de assistir. */
.dz-player-video { background: #111; }
.dz-player-video video { display: block; width: 100%; max-height: 62vh; background: #000; }

/* Audio: cabecalho com o nome + controles sobre fundo claro. */
.dz-player-audio { background: var(--white); padding: 16px; }
.dz-player-audio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dz-player-audio-icon {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--yellow); border: var(--border); border-radius: 10px; color: var(--ink);
}
.dz-player-audio-title { font-weight: 700; font-size: 14px; word-break: break-word; }
.dz-player-audio audio { width: 100%; display: block; }

.dz-player-fallback {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 11px 14px; font-size: 13px; font-weight: 500;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
}
.dz-player-fallback[hidden] { display: none; }

@media (max-width: 640px) {
  .dz-player-video video { max-height: 46vh; }
}

/* ---------- Pagina 404 ---------- */
.dz-404-card { text-align: center; }
.dz-404-code {
  font-family: var(--font-display); font-weight: 700; font-size: 84px; line-height: 1;
  letter-spacing: -3px; color: var(--blue); -webkit-text-stroke: 3px var(--ink);
  margin-bottom: 6px;
}
.dz-404-title { margin-bottom: 6px; }
.dz-404-sub { margin-bottom: 24px; }
.dz-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 480px) {
  .dz-404-code { font-size: 66px; }
  .dz-404-actions { flex-direction: column; }
  .dz-404-actions .dz-btn { width: 100%; }
}

/* ---------- Lista de arquivos recentes (resumo no painel) ---------- */
.dz-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dz-recent-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--cream);
}
.dz-recent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-recent-name {
  font-weight: 700; font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dz-recent-name:hover { text-decoration: underline; }
.dz-recent-meta { font-size: 12px; font-weight: 500; opacity: .65; }
.dz-table-empty-search { margin: 18px 0 0; text-align: center; font-weight: 500; opacity: .7; }
.dz-table-empty-search[hidden] { display: none; }

@media (max-width: 560px) {
  .dz-recent-item { flex-wrap: wrap; }
  .dz-recent-info { flex-basis: 100%; order: 3; }
}

/* ---------- Pagina de perfil ---------- */
.dz-profile-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1200px; }
/* Linha superior: dados da conta + foto lado a lado. */
/* Dados da conta + foto + senha lado a lado (3 colunas). */
.dz-profile-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .dz-profile-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 780px) { .dz-profile-cols { grid-template-columns: 1fr; } }

/* Barra de acoes no fim de cada formulario: separada do ultimo campo por uma
   linha sutil, para o botao nao ficar colado no campo acima. */
.dz-form-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 2px dashed rgba(17,17,17,.15);
}
:root[data-theme="dark"] .dz .dz-form-actions { border-top-color: rgba(248,243,234,.18); }

/* Dois campos lado a lado quando ha espaco (nova senha / confirmacao). */
.dz-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .dz-field-pair { grid-template-columns: 1fr; } }

.dz-avatar-lg {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 16px;
  border: var(--border); box-shadow: 4px 4px 0 var(--ink); object-fit: cover;
  background: var(--cream);
}
.dz-avatar-initials {
  display: grid; place-items: center; background: var(--yellow);
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink);
}
.dz-profile-avatar-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dz-profile-avatar-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dz-profile-avatar-actions .dz-btn { cursor: pointer; }
.dz-field-hint { font-size: 12px; font-weight: 500; opacity: .65; }

/* O chip do usuario agora e um link para o perfil. */
a.dz-user-chip { text-decoration: none; transition: transform .08s; }
a.dz-user-chip:hover { transform: translateY(-1px); }
.dz-avatar-img { object-fit: cover; padding: 0; }

@media (max-width: 560px) {
  .dz-profile-avatar-row { justify-content: center; text-align: center; }
  .dz-profile-avatar-actions { align-items: center; width: 100%; }
}

/* ---------- Secao de contato ---------- */
.dz-contact-card {
  max-width: 640px; margin: 0 auto; background: var(--white);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px;
}
.dz-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dz-contact-form textarea { resize: vertical; min-height: 120px; }
.dz-contact-form .dz-btn { margin-top: 6px; }

/* Campo isca contra robos: fora da tela, mas nao "display:none" (alguns robos
   ignoram campos escondidos assim). */
.dz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dz-contact-errors {
  border: 2px solid var(--ink); border-left: 8px solid var(--coral);
  border-radius: 12px; background: var(--cream); padding: 12px 16px; margin-bottom: 20px;
}
.dz-contact-errors p { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; font-weight: 600; }

.dz-contact-ok { display: flex; align-items: flex-start; gap: 14px; }
.dz-contact-ok-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--mint); border: var(--border); border-radius: 12px; color: var(--ink);
}
.dz-contact-ok strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.dz-contact-ok p { margin: 0; opacity: .75; }

@media (max-width: 620px) {
  .dz-contact-card { padding: 22px; }
  .dz-contact-row { grid-template-columns: 1fr; }
}

/* ---------- Selo de e-mail verificado ---------- */
.dz-verified {
  display: inline-block; vertical-align: -2px; flex-shrink: 0;
}
/* Ao lado do nome no chip do topo e na lista de usuarios do admin. */
.dz-user-name .dz-verified { vertical-align: -2px; margin-left: 2px; }

/* ---------- Compartilhar arquivo (pagina publica) ---------- */
.dz-share { margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(17,17,17,.15); }
:root[data-theme="dark"] .dz-share { border-top-color: rgba(248,243,234,.18); }
.dz-share-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin-bottom: 10px; }
.dz-share-input {
  width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  border: var(--border); border-radius: 12px; padding: 10px 14px; background: var(--cream); color: var(--ink); margin-bottom: 10px;
}
/* Copiar e QR lado a lado (horizontal). */
.dz-share-actions { display: flex; gap: 10px; }
.dz-share-actions .dz-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; }
.dz-share-actions .dz-btn.copied { background: var(--mint); }
.dz-share-actions .dz-btn.failed { background: var(--coral); }
.dz-share-actions .dz-btn.active { background: var(--yellow); }
.dz-share-qr {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px; background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.dz-share-qr[hidden] { display: none; }
.dz-share-qr svg { display: block; }
.dz-share-qr-hint { font-size: 12px; font-weight: 600; opacity: .6; text-align: center; }

/* ---------- Denuncia de arquivo ---------- */
.dz-report-link { margin-top: 18px; padding-top: 16px; border-top: 2px dashed rgba(17,17,17,.12); text-align: center; }
:root[data-theme="dark"] .dz-report-link { border-top-color: rgba(248,243,234,.15); }
.dz-report-link a { font-size: 13px; font-weight: 700; color: var(--coral); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.dz-report-link a:hover { text-decoration: underline; }

.dz-report-form .field { margin-bottom: 16px; }
.dz-report-form select, .dz-report-form textarea {
  width: 100%; border: var(--border); border-radius: 12px; padding: 11px 14px;
  font: inherit; background: var(--white); color: var(--ink);
}
:root[data-theme="dark"] .dz-report-form select, :root[data-theme="dark"] .dz-report-form textarea { background: #2f2b26; color: var(--cream); }
.dz-report-form textarea { resize: vertical; min-height: 90px; }

/* honeypot: invisivel para humanos, presente para robos */
.dz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dz-report-ok {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 18px;
  background: var(--mint); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.dz-report-ok-icon { flex-shrink: 0; }
.dz-report-ok strong { display: block; margin-bottom: 2px; }
.dz-report-ok p { margin: 0; font-size: 14px; }
.dz-report-errors {
  background: #fdecec; border: 2px solid var(--coral); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.dz-report-errors p { margin: 4px 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ---------- Denuncias no admin ---------- */
.dz-report-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.dz-inline-form { margin: 0; }
.dz-inline-form .btn { width: 100%; white-space: nowrap; }
.dz-report-details { font-size: 13px; line-height: 1.4; display: block; }

/* Badge de contagem no menu lateral */
.dz-nav-badge {
  margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 6px; border: 2px solid var(--ink);
}

/* ---------- Zona de perigo (excluir conta) ---------- */
.dz-danger-zone { border-color: var(--coral); }
.dz-danger-zone .dz-panel-head h2 { color: var(--coral); }
.dz-danger-text { font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.dz-danger-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 4px 0 4px; cursor: pointer; }
.dz-danger-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.dz-btn-danger { background: var(--coral); color: #fff; border-color: var(--ink); }
.dz-btn-danger:hover { background: #e85555; }

/* ---------- Link do arquivo concluido (no modal de upload) ---------- */
.dz-upload-link { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.dz-upload-link[hidden] { display: none; }
.dz-upload-link-input {
  flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; background: var(--white); color: var(--ink);
}
.dz-upload-link-copy { flex-shrink: 0; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.dz-upload-link-copy.copied { background: var(--mint); }

/* ---------- Aviso de cookies ---------- */
.dz-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  opacity: 0; transform: translateY(20px); transition: opacity .25s ease, transform .25s ease;
}
.dz-cookie-banner.show { opacity: 1; transform: translateY(0); }
.dz-cookie-inner {
  max-width: 920px; margin: 0 auto; background: var(--white); color: var(--ink);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dz-cookie-text { flex: 1; min-width: 240px; }
.dz-cookie-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dz-cookie-text p { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .85; }
.dz-cookie-text a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.dz-cookie-actions { flex-shrink: 0; }
.dz-cookie-actions .dz-btn { padding: 11px 26px; }
@media (max-width: 560px) {
  .dz-cookie-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .dz-cookie-actions .dz-btn { width: 100%; }
}
