/* E-Testament — estilos */

:root {
  --bg: #0e1116;
  --bg-card: #171c24;
  --bg-input: #0b0e13;
  --border: #2a323f;
  --text: #e8e6e1;
  --text-dim: #9aa3b2;
  --accent: #d4af37;
  --accent-dark: #b3922c;
  --danger: #e05252;
  --ok: #4caf7d;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
}

/* ── landing ─────────────────────────────────────────────── */

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--accent);
}

.hero-note {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 14px;
}

.teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 34px;
}

.teaser-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  text-align: left;
}

.teaser-sub {
  text-align: left !important;
  margin: 0 !important;
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 0 0 16px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 19px;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section h2 {
  font-size: 30px;
  text-align: center;
  margin: 0 0 12px;
}

.section > p.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.feature .icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 16px 60px;
  position: relative;
  color: var(--text-dim);
}

.steps li strong {
  color: var(--text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #14110a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #14110a;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.price {
  font-family: Georgia, serif;
  font-size: 38px;
  color: var(--accent);
  margin: 0;
}

.price span {
  font-size: 17px;
  color: var(--text-dim);
}

.price-alt {
  color: var(--text-dim);
  font-size: 14px;
  margin: 2px 0 0;
}

.price-perks {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
  color: var(--text-dim);
  font-size: 15px;
}

.cta-final {
  text-align: center;
  padding: 56px 24px 80px;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ── app ─────────────────────────────────────────────────── */

.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-email {
  color: var(--text-dim);
  font-size: 14px;
  margin-right: 6px;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.loading {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 0;
}

/* ── tarjetas y formularios ──────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.auth-card {
  max-width: 420px;
  margin: 32px auto 0;
}

.auth-footer-note {
  max-width: 420px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 9px;
  cursor: pointer;
  font-size: 14px;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110a;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-dim);
}

input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .grow {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.hint {
  font-size: 13px;
  color: var(--text-dim);
}

.hint.warn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-alt {
  text-align: center;
  margin: 14px 0 0;
  font-size: 13.5px;
}

.auth-alt a {
  color: var(--text-dim);
}

.form-msg {
  color: var(--danger);
  font-size: 14px;
  min-height: 20px;
  margin: 10px 0 0;
}

.form-msg.ok {
  color: var(--ok);
}

/* ── botones ─────────────────────────────────────────────── */

.btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, background 0.15s;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110a;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.btn-big {
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}

.btn-small {
  padding: 5px 10px;
  font-size: 13px;
}

.btn-danger {
  color: var(--danger);
}

/* ── bóveda ──────────────────────────────────────────────── */

.vault-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vault-toolbar h1 {
  margin: 0;
  font-size: 28px;
}

.item-form-card {
  margin-bottom: 20px;
}

.item-form-card h3 {
  margin: 0 0 16px;
}

.items-list {
  display: grid;
  gap: 14px;
}

.item-card {
  padding: 18px 20px;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.item-head h3 {
  margin: 0;
  font-size: 17px;
  font-family: inherit;
}

.item-type {
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.item-secret {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-notes {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ── herencia ────────────────────────────────────────────── */

.heritage {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 18px;
}

.beneficiaries-title {
  margin: 0;
  font-size: 19px;
}

.shamir-card {
  margin-bottom: 26px;
}

.shamir-card h3 {
  margin: 0 0 10px;
}

.fragment {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

#ceremony-result {
  margin-top: 18px;
}

#ceremony-result .item-actions {
  margin-bottom: 16px;
}

.qr {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  margin: 12px 0;
  background: #fff;
  padding: 6px;
}

.secret-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}

#twofa-setup,
#twofa-recovery {
  margin-top: 16px;
}

#form-2fa-disable {
  margin-top: 16px;
  max-width: 340px;
}

.plan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.plan-badge {
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--border);
  color: var(--text-dim);
}

.plan-badge.premium {
  background: var(--accent);
  color: #14110a;
}

.plan-text {
  color: var(--text-dim);
  font-size: 14px;
  flex: 1;
  min-width: 160px;
}

.locked-card {
  border-style: dashed;
}

.verify-banner {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.verify-banner p {
  margin: 0 0 10px;
  color: var(--text-dim);
}

.verify-banner strong {
  color: var(--text);
}

.verify-banner .form-msg {
  margin-left: 10px;
}

.trial-cta {
  border-color: var(--accent);
  margin-bottom: 20px;
}

.payment-card {
  border-color: var(--accent);
  margin-bottom: 20px;
}

/* ── mensajes de despedida ───────────────────────────────── */

.msg-body-preview {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 10px 0;
  font-style: italic;
  white-space: pre-wrap;
}

/* ── carta del destinatario (opción C · marfil minimalista) ── */

.letter-card {
  max-width: 620px;
  margin: 30px auto 0;
  padding: 46px 48px;
  background: #faf7f0;
  border: 1px solid #e7ded0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.letter-for {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9081;
  margin: 0 0 6px;
}

.letter-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #2c2a26;
  margin: 6px 0 0;
}

.letter-rule {
  width: 46px;
  height: 1px;
  background: #c9ad57;
  margin: 20px auto 24px;
}

.letter-video {
  width: 100%;
  border-radius: 12px;
  margin: 0 0 26px;
  background: #000;
}

.letter-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.9;
  color: #4c4740;
  white-space: pre-wrap;
  margin: 0;
}

.letter-from {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  line-height: 1.2;
  color: #8a7a45;
  margin: 26px 0 0;
}

.letter-note {
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ── carrusel de sobres (mensajes de despedida) ─────────────── */

.msg-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.carousel-arrow:hover { background: var(--bg-input); border-color: var(--accent); }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.envelopes {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 14px;
  flex: 1 1 auto;
  scrollbar-width: thin;
}
.envelopes::-webkit-scrollbar { height: 6px; }
.envelopes::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.envelope {
  position: relative;
  flex: 0 0 232px;
  scroll-snap-align: center;
  min-height: 148px;
  padding: 30px 20px 18px;
  text-align: left;
  background: #faf7f0;
  border: 1px solid #e7ded0;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.envelope:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38); }
/* solapa del sobre */
.envelope::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  background: #f3ecdd;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid #e7ded0;
}
/* sello de lacre dorado */
.envelope::after {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  background: #c9ad57;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201, 173, 87, 0.28);
}
.envelope-to {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9081;
  margin-top: 6px;
}
.envelope-name {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.15;
  color: #2c2a26;
}
.envelope-rel {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #6b6459;
  margin-top: 1px;
}
.envelope-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.envelope-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe7d6;
  color: #6b5d33;
  border: 1px solid #e2d7bd;
}
.envelope-badge.delivered { background: #e2efe5; color: #2f6b3f; border-color: #cbe3d1; }

.envelope-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 150px;
  scroll-snap-align: center;
  min-height: 148px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.envelope-add:hover { border-color: var(--accent); color: var(--accent); }
.envelope-add .plus { font-size: 30px; line-height: 1; }

/* ── lector del sobre (overlay) ─────────────────────────────── */

.msg-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 8, 11, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}
.msg-reader-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  animation: reader-in 0.22s ease;
}
@keyframes reader-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.msg-reader-close {
  position: absolute;
  top: -34px; right: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.msg-reader-close:hover { background: rgba(255, 255, 255, 0.26); }
.reader-video-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  color: #8a7a45;
  margin: 0 0 16px;
}
.reader-status {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0 12px;
}
#reader-actions { justify-content: center; flex-wrap: wrap; }

/* ── intros de pilar (bóveda · mensajes · entrega · cuenta) ── */

.pillar-intro { margin: 40px 0 6px; }
.pillar-title { font-size: 27px; margin: 0 0 8px; }
.pillar-lead {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 0 18px;
}
.pillar-lead strong { color: var(--text); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.steps li {
  flex: 1 1 180px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.steps li b {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warn-box {
  background: rgba(201, 173, 87, 0.08);
  border: 1px solid rgba(201, 173, 87, 0.32);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #dcca8f;
  line-height: 1.55;
  margin: 4px 0 0;
  max-width: 660px;
}

.section-sub { font-size: 18px; }

.account-email-line {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 4px;
}
.account-email-line strong { color: var(--text); }

/* ── panel de admin ──────────────────────────────────────── */

.admin-h1 {
  font-size: 30px;
  margin: 0 0 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
}

.stat-sub {
  color: var(--text-dim);
  font-size: 12.5px;
}

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
}

.gc-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.gc-n {
  font-size: 12px;
  color: var(--text-dim);
}

.gc-fill {
  width: 100%;
  min-height: 2px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}

.gc-day {
  font-size: 11px;
  color: var(--text-dim);
}

.breakdown {
  display: grid;
  gap: 8px;
}

.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 15px;
}

.bd-row strong {
  color: var(--accent);
  font-size: 18px;
}

.payment-card h3 {
  margin: 0 0 8px;
}

#payment-element {
  margin: 16px 0;
  min-height: 90px;
}

.trial-cta h3 {
  margin: 0 0 8px;
}

.trial-cta .plan-choice {
  margin-top: 14px;
}

.plan-choice {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-choice .btn {
  flex: 1;
  min-width: 200px;
}

.save-badge {
  display: inline-block;
  background: rgba(20, 17, 10, 0.2);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 4px;
}

.locked-card .perks {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
}

.backup-email-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.backup-email-block h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.unlock-date {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--accent);
  margin: 8px 0;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .app-header {
    padding: 12px 16px;
  }
  .app-main {
    padding: 24px 14px 56px;
  }
  /* el email largo apretaba la cabecera en móvil */
  .user-email {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .vault-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .vault-toolbar h1 {
    font-size: 24px;
  }
  .card {
    padding: 18px 16px;
  }
  /* nombre y email del beneficiario/secreto en dos líneas, sin amontonarse */
  .item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .item-type {
    white-space: normal;
  }
  .plan-choice .btn {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
