/* TEMPMAIL PROS - tema claro, estilo aplicativo */
:root {
  --bg: #f3f5ff;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #5a6478;
  --line: #e3e7f6;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-soft: #eef0ff;
  --ok: #047857;
  --ok-soft: #e6f8f1;
  --warn: #92400e;
  --warn-soft: #fff4dc;
  --danger: #b91c1c;
  --danger-soft: #feecec;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(79, 70, 229, 0.45), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.12);
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 12% -8%, #dfe3ff 0%, transparent 70%),
    radial-gradient(800px 380px at 95% 0%, #eadcff 0%, transparent 65%),
    var(--bg);
  background-repeat: no-repeat;
}
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.8); }
.brand-name b { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a.link:hover { color: var(--primary); background: var(--primary-soft); }

/* ---------- botoes e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 700; border-radius: 12px; padding: 11px 18px; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.9); }
.btn-primary:hover:not([disabled]) { box-shadow: 0 14px 26px -10px rgba(79, 70, 229, 1); transform: translateY(-1px); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #e2e6ff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c7cdf0; background: #fafbff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fcdcdc; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 0.875rem; border-radius: 10px; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f3f4ff; }
.btn-glass { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.28); }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.input, .select { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 44px; transition: border-color 0.12s, box-shadow 0.12s; }
.input:hover, .select:hover { border-color: #c9d0ee; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }

.seg { display: inline-grid; grid-auto-flow: column; background: var(--primary-soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 16px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); text-align: center; }
.seg input:checked + label { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid #a5b4fc; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: var(--primary-soft); color: var(--primary); }
.chip-pro { background: var(--grad); color: #fff; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-off { background: #eef0f6; color: #5a6478; }
.chip-glass { background: rgba(255, 255, 255, 0.2); color: #fff; width: fit-content; }

/* ---------- hero e gerador ---------- */
.hero { padding: 44px 0 20px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: var(--primary); box-shadow: var(--shadow-sm); }
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 850; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 14px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }

.generator, .inbox { text-align: left; }
.live-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: blink 1.4s ease-in-out infinite; }
.live.paused { color: var(--muted); background: #eef0f6; }
.live.paused i { background: #94a3b8; animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.latest-code { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); animation: rise 0.25s ease-out; }
.latest-code small { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #e0e4ff; }
.latest-code .code { font-size: clamp(1.5rem, 4vw, 2rem); background: transparent; color: #fff; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.generator { margin-top: 28px; padding: clamp(16px, 3vw, 28px); }
.controls { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: end; }
@media (min-width: 760px) { .controls { grid-template-columns: minmax(0, 1.2fr) auto auto; } }
.controls .btn-lg { width: 100%; }

.email-hero { position: relative; margin-top: 22px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; color: #fff; background: var(--grad); overflow: hidden; box-shadow: 0 24px 44px -24px rgba(79, 70, 229, 0.9); }
.email-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.email-hero .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #e0e4ff; }
.email-hero .tag i { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 1.8s infinite; }
.email-line { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.email-value { flex: 1 1 280px; min-width: 0; font-size: clamp(1.25rem, 3.6vw, 2.15rem); font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; user-select: all; }
.email-hero .sub { position: relative; z-index: 1; margin-top: 8px; color: #dfe3ff; font-size: 0.92rem; }

.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fbfcff; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.tile .meta { min-width: 0; flex: 1; }
.tile .meta small { display: block; font-size: 0.75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tile .meta strong { display: block; font-size: 1.02rem; overflow-wrap: anywhere; }

.custom { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.custom-row { display: flex; flex-wrap: wrap; gap: 10px; }
.custom-row .input { flex: 1 1 200px; }
.hint { color: var(--muted); font-size: 0.88rem; }

/* ---------- caixa de entrada ---------- */
.inbox { margin-top: 22px; overflow: hidden; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.inbox-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 800; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 14px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 0.92rem; }
.notice a { color: inherit; font-weight: 800; }
.notice.info { background: var(--primary-soft); color: #3730a3; }
.msg-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.msg { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 14px; padding: 12px; cursor: pointer; }
.msg:hover { background: #f6f7ff; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; color: #3730a3; background: #e0e4ff; }
.msg .body { min-width: 0; }
.msg .subject { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .from { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .side { display: grid; justify-items: end; gap: 6px; }
.msg time { color: var(--muted); font-size: 0.8rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: 0.12em; background: var(--primary-soft); color: var(--primary); border-radius: 8px; padding: 3px 9px; }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); animation: float 3s ease-in-out infinite; }

/* ---------- PRO ---------- */
.section { padding: 56px 0 8px; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-title h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.02em; }
.section-title p { margin-top: 8px; color: var(--muted); }
.pro-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pro-grid { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.features { display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 12px; }
.feature .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }
.price-card { padding: clamp(20px, 3vw, 30px); color: #fff; background: var(--grad); border-radius: var(--radius); box-shadow: 0 30px 50px -28px rgba(79, 70, 229, 0.95); display: grid; align-content: center; gap: 14px; }
.price-card .price { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.price-card .price small { font-size: 1rem; font-weight: 600; opacity: 0.85; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.price-card li { display: flex; align-items: center; gap: 8px; }

.footer { margin-top: 56px; padding: 26px 0 40px; color: var(--muted); text-align: center; font-size: 0.9rem; border-top: 1px solid var(--line); }

/* ---------- dialogos ---------- */
dialog { border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.55); }
dialog.wide { width: min(860px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(30, 27, 75, 0.45); backdrop-filter: blur(3px); }
.dlg { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); max-height: calc(100dvh - 24px); overflow: auto; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.dlg-head p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #f1f3fb; color: var(--ink); }
.form { display: grid; gap: 14px; }
.error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; font-weight: 600; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--primary-soft); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.status-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: #fbfcff; border-radius: 14px; padding: 14px; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.addr b { overflow-wrap: anywhere; }
.addr .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pix { display: grid; justify-items: center; gap: 14px; text-align: center; }
.pix img { width: 220px; height: 220px; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.pix .pay-btn { width: 100%; }
.pix textarea { width: 100%; min-height: 84px; resize: none; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font: 0.8rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }

.reader-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.9rem; }
.code-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--primary-soft); border-radius: 14px; padding: 12px 16px; }
.code-callout .code { font-size: 1.7rem; background: transparent; padding: 0; }
.reader-frame { width: 100%; height: min(58vh, 560px); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reader-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fbfcff; font-size: 0.95rem; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: rise 0.2s ease-out; }
.toast.err { background: var(--danger); }

@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .nav a.link { display: none; }
  .msg { grid-template-columns: auto 1fr; }
  .msg .side { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 10px; }
}

/* ---------- barra fixa no rodape (estilo app) ---------- */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 20px));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 6px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(30, 27, 75, 0.45), 0 2px 8px rgba(15, 23, 42, 0.08);
}
.tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  min-height: 54px; padding: 6px 2px; border: 0; border-radius: 16px; background: transparent; cursor: pointer;
  color: #6b7489; font-size: 0.7rem; font-weight: 700; line-height: 1.1; text-align: center;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.tab .icon { width: 1.45em; height: 1.45em; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { background: #f3f4fa; color: var(--ink); }
.tab:active { transform: scale(0.95); }
.tab[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.tab-ico { position: relative; display: inline-grid; }
.tab-lock { position: absolute; right: -7px; top: -5px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); color: #fff; }
.tab-lock .icon { width: 8px; height: 8px; stroke-width: 2.6; }
@media (max-width: 380px) { .tab { font-size: 0.64rem; } }

.menu-trigger { margin-left: 2px; flex: none; }
.topbar .nav { min-width: 0; }
/* Celular: o botão da conta vira só o ícone (o rótulo "Minha conta · PRO" estourava a largura). */
@media (max-width: 560px) {
  #btnAccount { padding-inline: 10px; }
  #btnAccount #accountLabel { display: none; }
}

/* ---------- menu lateral (desliza da direita para a esquerda) ---------- */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(360px, 90vw); max-width: none; height: 100dvh; max-height: 100dvh;
  border-radius: 24px 0 0 24px; overflow: hidden;
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.3, 1);
  will-change: transform;
}
dialog.drawer.in { transform: translateX(0); }
dialog.drawer::backdrop { background: rgba(30, 27, 75, 0.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
dialog.drawer.in::backdrop { opacity: 1; }
.drawer-panel { height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 18px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-user { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: linear-gradient(135deg, #f5f6ff, #f4efff); display: grid; gap: 10px; }
.drawer-user .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-user .avatar-sm { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; flex: none; }
.drawer-user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-user small { color: var(--muted); }
.drawer-nav { display: grid; gap: 4px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 13px 12px; border-radius: 14px; font-weight: 700; color: #3b4258; font-size: 1rem;
}
.drawer-link .icon { width: 1.3em; height: 1.3em; color: #7a849b; }
.drawer-link .chip { margin-left: auto; }
.drawer-link:hover { background: #f3f4fa; }
.drawer-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.drawer-link[aria-current="page"] .icon { color: var(--primary); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }

/* ---------- Meus e-mails ---------- */
.mailview { padding: 34px 0 8px; display: grid; gap: 18px; }
.mail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mail-head h1 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; }
.mail-gate { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(28px, 6vw, 56px) 20px; }
.mail-gate .ring, .mailbox .ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.mail-gate p { color: var(--muted); max-width: 440px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.mailbox { overflow: hidden; }
.mail-tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 720px) { .mail-tools { grid-template-columns: 1fr 280px; } }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 38px; }
.msg .to { color: var(--primary); font-size: 0.78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-row { display: flex; justify-content: center; padding: 8px 14px 16px; }
