/*
 * DEAREST — Global Styles
 * Reset, tipografia, utilitários, componentes reutilizáveis.
 * Requer: design-tokens.css
 *
 * Fontes — incluir no <head> ANTES deste CSS:
 * <link href="https://fonts.googleapis.com/css2?
 *   family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&
 *   family=DM+Serif+Display:ital@0;1&
 *   family=Lora:ital,wght@0,400;0,500;1,400&
 *   family=Outfit:wght@300;400;500;600&
 *   display=swap" rel="stylesheet">
 */

/* ─── Reset ────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}

body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

input,
textarea,
select,
button {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-silk),
              text-shadow var(--dur-fast) var(--ease-silk);
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

p {
  max-width: 68ch;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: var(--space-8) 0;
}

/* ─── Scrollbar Customizada ────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

/* ─── Seleção de texto ─────────────────────────────── */

::selection {
  background: rgba(212, 175, 55, 0.25);
  color: var(--ivory);
}

/* ─── Keyframes ────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.4));
  }
  14% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 20px rgba(196, 30, 58, 0.8));
  }
  28% {
    transform: scale(1.02);
  }
  42% {
    transform: scale(1.10);
    filter: drop-shadow(0 0 16px rgba(196, 30, 58, 0.6));
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes border-flow {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2),
                0 0 24px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.5),
                0 0 48px rgba(212, 175, 55, 0.2);
  }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.96); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ─── Utilitários Globais ──────────────────────────── */

.gold-text {
  background: linear-gradient(
    135deg,
    var(--gold-dark)  0%,
    var(--gold)       30%,
    var(--gold-light) 50%,
    var(--gold)       70%,
    var(--gold-dark)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

.text-ivory     { color: var(--ivory); }
.text-champagne { color: var(--champagne); }
.text-rose      { color: var(--rose-gold); }
.text-crimson   { color: var(--crimson); }
.text-blush     { color: var(--blush); }
.text-muted     { color: var(--text-muted); }

.font-display   { font-family: var(--font-display); }
.font-head      { font-family: var(--font-head); }
.font-body      { font-family: var(--font-body); }
.font-ui        { font-family: var(--font-ui); }

.italic         { font-style: italic; }
.uppercase      { text-transform: uppercase; letter-spacing: var(--tracking-wider); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fade-in-up {
  animation: fade-in-up var(--dur-med) var(--ease-drift) both;
}

.slide-in-right {
  animation: slide-in-right var(--dur-med) var(--ease-drift) both;
}

/* Atrasos de animação encadeados */
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }
.delay-5 { animation-delay: 400ms; }
.delay-6 { animation-delay: 480ms; }

/* ─── Glass Card ───────────────────────────────────── */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  transition: background var(--dur-med) var(--ease-silk),
              border-color var(--dur-med) var(--ease-silk),
              box-shadow var(--dur-med) var(--ease-silk);
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}

/* ─── Botões ───────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-silk);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(196, 30, 58, 0.50),
              0 4px 12px rgba(196, 30, 58, 0.30);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.30);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Botão Secundário (rose ghost) ── */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-lg);
  padding: 16px 32px;
  background: transparent;
  color: rgba(250, 247, 242, 0.80);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255, 77, 122, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast),
              color var(--dur-fast),
              transform var(--dur-fast) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--hot-rose);
  background: rgba(255, 77, 122, 0.08);
  color: var(--ivory);
  transform: translateY(-2px);
}

.btn-secondary:active { transform: scale(0.97); }

.btn-secondary:focus-visible {
  outline: 2px solid var(--hot-rose-light);
  outline-offset: 3px;
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Botão Ghost (transparente) ── */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 13px 24px;
  background: transparent;
  color: rgba(250, 247, 242, 0.65);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-silk),
              border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast) var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
}

.btn-ghost:hover {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--glass-hover);
}

.btn-ghost:active  { opacity: 0.75; }

.btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Botão CTA principal (hot-rose sólido) ── */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-lg);
  padding: 16px 40px;
  background: var(--hot-rose);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-silk),
              background var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(255, 77, 122, 0.45),
              0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 48px rgba(255, 77, 122, 0.65),
              0 4px 16px rgba(0, 0, 0, 0.4);
  background: var(--hot-rose-dark);
}

.btn-cta:hover::before { opacity: 1; }

.btn-cta:active { transform: scale(0.97); }

.btn-cta:focus-visible {
  outline: 2px solid var(--hot-rose-light);
  outline-offset: 3px;
}

/* ─── Campos de Formulário ─────────────────────────── */

.label-field {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
  margin-bottom: var(--space-2);
}

.input-field {
  width: 100%;
  min-height: var(--touch-min);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-ui);
  /* R7-CSS-02: max(16px, ...) previne auto-zoom do iOS Safari (que ocorre com font-size < 16px)
     sem alterar o tamanho visual em desktops onde --text-base (15px) é ligeiramente menor. */
  font-size: max(16px, var(--text-base));
  line-height: var(--leading-normal);
  outline: none;
  transition: background var(--dur-fast) var(--ease-silk),
              border-color var(--dur-fast) var(--ease-silk),
              box-shadow var(--dur-fast) var(--ease-silk);
  -webkit-appearance: none;
  appearance: none;
}

.input-field::placeholder {
  color: rgba(250, 247, 242, 0.30);
}

.input-field:focus {
  background: rgba(255, 77, 122, 0.05);
  border-color: rgba(255, 77, 122, 0.60);
  box-shadow: 0 0 0 3px rgba(255, 77, 122, 0.12);
}

.input-field:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 122, 0.18);
}

/* ─── Forced Colors (Windows High Contrast Mode) ──── */
@media (forced-colors: active) {
  .input-field:focus,
  .input-field:focus-visible {
    outline: 2px solid ButtonText;
    outline-offset: 2px;
    box-shadow: none;
  }

  .btn-primary:focus-visible,
  .btn-secondary:focus-visible,
  .btn-ghost:focus-visible,
  .btn-cta:focus-visible {
    outline: 2px solid ButtonText;
    outline-offset: 3px;
  }
}

.input-field.error {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.input-field:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

textarea.input-field {
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF4D7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(196, 30, 58, 0.90);
  margin-top: var(--space-1);
}

.field-hint {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.60); /* 0.60 = ~5.3:1 em #0C0A0F — WCAG AA */
  margin-top: var(--space-1);
}

/* ─── Orbs de Luz ──────────────────────────────────── */

.orb {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  filter: blur(80px);
  animation: orb-drift var(--dur-breath) var(--ease-drift) infinite alternate;
  will-change: transform;
}

.orb-primary {
  width: 420px;
  height: 420px;
  background: var(--theme-orb1, rgba(196, 30, 58, 0.28));
  top: -120px;
  right: -80px;
  animation-delay: 0ms;
}

.orb-secondary {
  width: 320px;
  height: 320px;
  background: var(--theme-orb2, rgba(183, 110, 121, 0.18));
  bottom: -80px;
  left: -60px;
  animation-delay: -1600ms;
  filter: blur(100px);
}

/* ─── Loading Spinner ──────────────────────────────── */

.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  position: relative;
}

.spinner::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2.5px solid rgba(212, 175, 55, 0.15);
  border-top-color: var(--gold);
  animation: spin 0.75s linear infinite;
}

.spinner-sm::before {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg::before {
  width: 56px;
  height: 56px;
  border-width: 3px;
}

/* ─── Toast / Snackbar ─────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  background: rgba(19, 15, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ivory);
  pointer-events: all;
  animation: toast-in var(--dur-med) var(--ease-spring) both;
}

.toast.is-leaving {
  animation: toast-out var(--dur-med) var(--ease-silk) both;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.toast-success { border-left: 3px solid #4CAF50; }
.toast-error   { border-left: 3px solid var(--crimson); }
.toast-info    { border-left: 3px solid var(--gold); }
.toast-warning { border-left: 3px solid #F5A623; }

/* ─── Modal ────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 15, 0.80);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fade-in var(--dur-fast) var(--ease-silk) both;
}

.modal-overlay.is-closing {
  animation: fade-in var(--dur-fast) var(--ease-silk) reverse both;
}

.modal-card {
  background: var(--midnight);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  position: relative;
  animation: scale-in var(--dur-med) var(--ease-spring) both;
}

.modal-card.is-closing {
  animation: scale-in var(--dur-fast) var(--ease-silk) reverse both;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) 0;
}

.modal-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  color: var(--ivory);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;   /* R10-CSS-01: WCAG 2.5.5 — era 36px */
  height: 44px;  /* R10-CSS-01: WCAG 2.5.5 — era 36px */
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: rgba(250, 247, 242, 0.60);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-silk),
              color var(--dur-fast) var(--ease-silk);
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: var(--glass-hover);
  color: var(--ivory);
}

.modal-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.modal-body {
  padding: var(--space-5) var(--space-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: 0 var(--space-6) var(--space-6);
}

/* ─── Badge ────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  line-height: 1.6;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-crimson {
  background: rgba(196, 30, 58, 0.15);
  color: var(--blush);
  border: 1px solid rgba(196, 30, 58, 0.25);
}

.badge-rose {
  background: rgba(183, 110, 121, 0.15);
  color: var(--champagne);
  border: 1px solid rgba(183, 110, 121, 0.25);
}

/* ─── Divisor Ornamental ───────────────────────────── */

.divider-ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: rgba(212, 175, 55, 0.45);
  font-size: 18px;
  margin: var(--space-6) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.30),
    transparent
  );
}

/* ─── Contador Regressivo ──────────────────────────── */

.countdown {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--theme-accent, var(--gold));
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
}

/* ─── Acessibilidade — Redução de Movimento ────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .orb {
    animation: none !important;
  }
}

/* ─── Responsividade Base ──────────────────────────── */

@media (max-width: 768px) {
  body {
    font-size: var(--text-sm);
  }

  .modal-card {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    align-self: flex-end;
    max-height: 90dvh;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    animation: slide-in-up var(--dur-med) var(--ease-spring) both;
  }

  .countdown-value {
    font-size: var(--text-2xl);
  }

  .orb-primary {
    width: 280px;
    height: 280px;
  }

  .orb-secondary {
    width: 220px;
    height: 220px;
  }
}

/* ─── Keyframes Premium 2026 ───────────────────────── */

@keyframes float-heart {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, -8deg)) scale(1); }
  33%       { transform: translateY(-16px) rotate(calc(var(--rot, -8deg) + 3deg)) scale(1.04); }
  66%       { transform: translateY(-8px) rotate(calc(var(--rot, -8deg) - 2deg)) scale(0.97); }
}

@keyframes bloom-in {
  0%   { opacity: 0; transform: scale(0.8) translateY(30px); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse-rose {
  0%, 100% { box-shadow: 0 0 16px rgba(232,57,93,0.3), 0 4px 24px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 32px rgba(232,57,93,0.6), 0 4px 32px rgba(0,0,0,0.5); }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255,77,122,0.3); }
  50%       { text-shadow: 0 0 40px rgba(255,77,122,0.6), 0 0 80px rgba(255,77,122,0.2); }
}

@keyframes particle-drift {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ─── Botões Premium 2026 ──────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 32px;
  min-height: 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-silk);
  background: var(--grad-rose);
  background-size: 200% auto;
  color: var(--ivory);
  box-shadow: var(--shadow-rose), 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-rose-lg), 0 8px 24px rgba(0,0,0,0.4);
  background-position: right center;
  color: var(--ivory);
  text-shadow: none;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 32px;
  min-height: 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-silk);
  background: var(--grad-gold);
  background-size: 200% auto;
  color: var(--obsidian);
  box-shadow: var(--shadow-gold), 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-gold-lg), 0 8px 24px rgba(0,0,0,0.4);
  color: var(--obsidian);
  text-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  min-height: 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(250,247,242,0.75);
  transition: border-color var(--dur-fast) var(--ease-silk),
              background var(--dur-fast) var(--ease-silk),
              color var(--dur-fast) var(--ease-silk),
              transform var(--dur-fast) var(--ease-spring);
  text-decoration: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(212,175,55,0.45);
  background: rgba(212,175,55,0.07);
  color: var(--gold);
  transform: translateY(-2px);
  text-shadow: none;
}

/* ─── Glass Card Premium ───────────────────────────── */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ─── CSS Heart ornament ───────────────────────────── */
.heart-ornament {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}
.heart-ornament::before,
.heart-ornament::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 80%;
  background: currentColor;
  border-radius: 50% 50% 0 0;
}
.heart-ornament::before { left: 50%; transform-origin: 0 100%; transform: rotate(-45deg); }
.heart-ornament::after  { left: 0;   transform-origin: 100% 100%; transform: rotate(45deg); }

/* ─── Grain overlay (atmosfera premium) ────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ─── Skip Link (DES2-03 — WCAG 2.4.1 Level A) ────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--hot-rose, #c41e3a);
  color: var(--ivory, #faf7f2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--ivory, #faf7f2);
  outline-offset: 2px;
}

/* ─── @media print guard (DES2-10) ─────────────────── */
@media print {
  /* Esconder decorativos que não devem aparecer em impressão do browser */
  body::after,
  .orb,
  .orb-primary,
  .orb-secondary,
  #global-particles-wrap,
  [aria-hidden="true"] {
    display: none !important;
  }
}
