/* ============================================================
   AFETO.ME — Design System Completo
   Paleta: Dark Romântico · Rosa · Dourado
============================================================ */

/* ── Google Fonts ────────────────────────────────────────────*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,900;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────*/
:root {
  --bg:          #06040F;
  --card:        #0D0A1A;
  --input:       #100D1C;
  --border:      #1A1530;
  --border-h:    #2E2550;
  --rose:        #D63B6E;
  --rose-h:      #C02860;
  --rose-glow:   rgba(214,59,110,.25);
  --rose-dim:    rgba(214,59,110,.1);
  --rose-light:  #FF6B8A;
  --gold:        #C9973A;
  --gold-light:  #E8B86D;
  --gold-dim:    rgba(201,151,58,.1);
  --green:       #22C55E;
  --red:         #EF4444;
  --orange:      #F59E0B;
  --muted:       #5E5478;
  --dim:         #9086A8;
  --text:        #EDE8F5;
  --text-sub:    #B8AFCE;
  --radius:      12px;
  --radius-lg:   18px;
  --trans:       all .18s ease;
}

/* ── Reset ───────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { opacity: .85; }
.serif { font-family: 'Playfair Display', serif; }

/* ── Scrollbar ───────────────────────────────────────────────*/
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* ── Animações ───────────────────────────────────────────────*/
@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(-12deg); opacity: 0; }
  5%   { opacity: .6; }
  95%  { opacity: .15; }
  100% { transform: translateY(-15vh) rotate(12deg); opacity: 0; }
}
@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: .9; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heartbeat {
  0%,65%,100% { transform: scale(1); }
  15%,40%     { transform: scale(1.28); }
}
@keyframes starTwinkle {
  0%,100% { opacity: .12; }
  50%     { opacity: .55; }
}
@keyframes progressBar {
  from { width: 0; }
  to   { width: var(--progress); }
}
@keyframes slideRight {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes shimmer {
  from { background-position: -300% center; }
  to   { background-position:  300% center; }
}

.anim-fade-up  { animation: fadeUp  .55s ease both; }
.anim-scale-in { animation: scaleIn .4s  ease both; }
.anim-float    { animation: float   3.8s ease-in-out infinite; }
.anim-hbeat    { animation: heartbeat 1.9s ease-in-out infinite; }

/* ── NAV ─────────────────────────────────────────────────────*/
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  background: rgba(6,4,15,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 14px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 20px;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--rose); }
.nav-ssl-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 99px; padding: 4px 12px;
  font-size: 11px; color: var(--green); font-weight: 600;
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold-light));
  border: none; color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer;
}

/* ── BOTÕES ──────────────────────────────────────────────────*/
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; font-family: 'Inter', sans-serif;
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--trans); white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--rose), #E8457A);
  color: #fff;
  box-shadow: 0 4px 16px var(--rose-glow);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--rose-h), #D63060);
  box-shadow: 0 6px 24px var(--rose-glow);
  color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,.05);
  border-color: var(--border-h);
  color: var(--text);
}
.btn-gold {
  background: var(--gold); color: #0A0810;
}
.btn-gold:hover { background: #B8862A; }
.btn-sm  { padding: 7px 15px; font-size: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── CARDS ───────────────────────────────────────────────────*/
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--trans);
}
.card-hover:hover {
  border-color: rgba(214,59,110,.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214,59,110,.12);
}
.card-glow {
  box-shadow: 0 0 40px rgba(214,59,110,.15);
  border-color: rgba(214,59,110,.4);
}
.card-gold {
  background: var(--gold-dim);
  border-color: rgba(201,151,58,.3);
}

/* ── BADGES ──────────────────────────────────────────────────*/
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(214,59,110,.12);
  border: 1px solid rgba(214,59,110,.3);
  color: var(--rose); border-radius: 99px;
  padding: 3px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase;
}
.badge-green  { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.3);  color: var(--green); }
.badge-gold   { background: var(--gold-dim);     border-color: rgba(201,151,58,.3); color: var(--gold-light); }
.badge-gray   { background: rgba(255,255,255,.05); border-color: var(--border);      color: var(--dim); }

/* ── FORMULÁRIOS ─────────────────────────────────────────────*/
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; color: var(--dim);
  font-size: 11.5px; font-weight: 600;
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .8px;
}
.form-label .req { color: var(--rose); }

.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  color: var(--text); font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--rose);
}
.form-input.error { border-color: var(--red); }
.form-input.has-icon { padding-left: 42px; }
.form-textarea { resize: vertical; line-height: 1.7; min-height: 140px; }
.form-select { cursor: pointer; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: 16px; pointer-events: none;
}
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-hint  { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* Slug input */
.slug-wrap { display: flex; background: var(--input); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.slug-prefix { padding: 12px 14px; color: var(--muted); font-size: 13px; border-right: 1px solid var(--border); white-space: nowrap; }
.slug-input  { flex: 1; background: none; border: none; padding: 12px 14px; color: var(--text); font-size: 14px; outline: none; }
.slug-wrap:focus-within { border-color: var(--rose); }

/* Password show/hide */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }

/* Password strength */
.pw-strength-bars { display: flex; gap: 4px; margin-top: 6px; }
.pw-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--border); transition: background .3s; }
.pw-label { font-size: 11px; margin-top: 3px; }

/* Checkbox */
.checkbox-wrap { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.checkbox-box.checked { background: var(--rose); border-color: var(--rose); }
.checkbox-label { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Upload drop zone */
.upload-zone {
  background: var(--input); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
  cursor: pointer; transition: border-color .2s;
}
.upload-zone:hover { border-color: rgba(214,59,110,.5); }
.upload-zone.active { border-color: var(--rose); background: var(--rose-dim); }

/* ── LANDING PAGE ────────────────────────────────────────────*/
.hero {
  position: relative; min-height: 91vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px; overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(214,59,110,.17) 0%, transparent 65%);
  pointer-events: none;
}
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900; line-height: 1.1; margin: 18px 0 20px;
  background: linear-gradient(140deg, var(--text) 20%, var(--rose-light) 60%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: var(--text-sub); font-size: 18px; line-height: 1.75; margin-bottom: 36px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fine  { color: var(--muted); font-size: 12px; margin-top: 14px; }

/* Particles */
.particles-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particle { position: absolute; animation: floatUp linear infinite; pointer-events: none; }

/* Mockup card */
.mockup-card {
  animation: float 3.8s ease-in-out infinite;
  background: linear-gradient(145deg, var(--card), #150C26);
  border: 1px solid var(--border); border-radius: 22px;
  padding: 28px; max-width: 460px; width: 100%; margin: 0 auto;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 80px rgba(214,59,110,.1);
}

/* Sections */
.section { padding: 80px 24px; }
.section-center { text-align: center; margin-bottom: 48px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(26px,4vw,38px); font-weight: 900; margin: 14px 0 10px; }
.section-sub { color: var(--text-sub); font-size: 15px; }
.container { max-width: 900px; margin: 0 auto; }
.container-sm { max-width: 700px; margin: 0 auto; }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* Pricing highlight */
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose), #E8457A);
  color: #fff; border-radius: 99px; padding: 4px 18px;
  font-size: 11px; font-weight: 700; white-space: nowrap; z-index: 1;
}

/* Ticker effects */
.effects-ticker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.effect-chip { background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 7px 16px; font-size: 13px; color: var(--text-sub); }

/* Security badges */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sec-item { background: var(--card); border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius); padding: 18px 16px; text-align: center; }

/* Testimonials */
.testimonial-stars { color: var(--gold-light); font-size: 14px; margin-bottom: 10px; }
.testimonial-quote { color: var(--text-sub); font-size: 13px; line-height: 1.75; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--gold-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0; }

/* ── AUTH ────────────────────────────────────────────────────*/
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 40px 20px; position: relative; overflow: hidden;
}
.auth-card { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 900; margin: 8px 0 4px; }
.auth-sub { color: var(--muted); font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.auth-divider span { color: var(--muted); font-size: 12px; }
.auth-social {
  width: 100%; background: var(--input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px; margin-bottom: 18px;
  color: var(--text-sub); font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: border-color .2s; font-family: 'Inter', sans-serif;
}
.auth-social:hover { border-color: rgba(214,59,110,.4); }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--rose); font-weight: 600; }
.auth-security { background: var(--input); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.auth-security-title { color: var(--green); font-size: 11px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .6px; }
.auth-security p { color: var(--muted); font-size: 11px; margin: 3px 0; }
.rate-limit-warning { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; font-size: 13px; color: var(--red); }

/* ── WIZARD ──────────────────────────────────────────────────*/
.wizard-page { max-width: 680px; margin: 0 auto; padding: 40px 20px; }
.wizard-progress { margin-bottom: 40px; }
.wizard-steps { position: relative; display: flex; }
.wizard-line-bg { position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.wizard-line-fill { position: absolute; top: 15px; left: 0; height: 2px; background: linear-gradient(90deg, var(--rose), var(--rose-light)); z-index: 0; transition: width .4s ease; }
.wizard-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.wizard-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all .3s;
}
.wizard-dot.done { background: var(--rose); border-color: var(--rose); color: #fff; }
.wizard-dot.active { background: linear-gradient(135deg, var(--rose), var(--rose-light)); border-color: var(--rose); color: #fff; }
.wizard-step-label { font-size: 11px; color: var(--muted); text-align: center; }
.wizard-step-label.active { color: var(--text); font-weight: 600; }

.wizard-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.wizard-sub { color: var(--text-sub); font-size: 14px; margin-bottom: 28px; }

/* Type selector */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.type-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: 14px; padding: 20px 16px; cursor: pointer;
  text-align: center; transition: all .2s;
}
.type-card:hover { border-color: rgba(214,59,110,.35); }
.type-card.selected { background: var(--rose-dim); border-color: var(--rose); }
.type-icon { font-size: 36px; margin-bottom: 8px; }
.type-label { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.type-desc { color: var(--muted); font-size: 12px; }

/* Effects selector */
.effects-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.effect-tag {
  background: var(--input); border: 1.5px solid var(--border);
  border-radius: 99px; padding: 7px 14px; font-size: 13px;
  cursor: pointer; color: var(--text-sub); transition: all .2s;
}
.effect-tag.selected { background: var(--rose-dim); border-color: var(--rose); color: var(--rose-light); }

/* Theme grid */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.theme-card { border-radius: 12px; padding: 20px 10px; cursor: pointer; text-align: center; border: 2px solid var(--border); transition: border-color .2s; }
.theme-card.selected { border-color: var(--rose); }
.theme-dot { width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 8px; }
.theme-label { color: #fff; font-size: 12px; font-weight: 600; }

/* Addons list */
.addon-row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px; border-radius: 8px; transition: background .2s; }
.addon-row:hover { background: rgba(255,255,255,.03); }
.addon-row.selected { background: rgba(201,151,58,.1); }
.addon-check { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; transition: all .2s; }
.addon-check.on { background: var(--gold-light); border-color: var(--gold-light); color: #000; }
.addon-price { color: var(--gold-light); font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Wizard nav */
.wizard-nav { display: flex; gap: 10px; margin-top: 24px; }
.wizard-nav .btn-primary { flex: 1; }

/* ── PAINEL (DASHBOARD) ──────────────────────────────────────*/
.dash-page { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.dash-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; }
.stat-icon { font-size: 24px; margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 900; margin-bottom: 3px; }
.stat-label { color: var(--muted); font-size: 12px; }

.present-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.present-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(214,59,110,.2), rgba(201,151,58,.15)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.present-info { flex: 1; min-width: 120px; }
.present-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.present-url  { color: var(--muted); font-size: 12px; }
.present-views { text-align: center; flex-shrink: 0; }
.present-views-n { font-size: 20px; font-weight: 900; color: var(--rose); }
.present-views-l { color: var(--muted); font-size: 11px; }
.present-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Empty state */
.empty-state { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; cursor: pointer; transition: border-color .2s; }
.empty-state:hover { border-color: rgba(214,59,110,.4); }

/* ── PRESENTE (PÁGINA PÚBLICA) ───────────────────────────────*/
.presente-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #060310 0%, #120826 50%, #060310 100%);
  position: relative; overflow-x: hidden;
}
.presente-back { position: fixed; top: 16px; left: 16px; z-index: 100; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: rgba(255,255,255,.7); padding: 8px 16px; cursor: pointer; font-size: 13px; font-family: 'Inter', sans-serif; text-decoration: none; }

/* Stars bg */
.star-bg { position: fixed; border-radius: 50%; pointer-events: none; animation: starTwinkle ease-in-out infinite; }
.petals-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }
.petal { position: absolute; animation: petalFall linear infinite; }

/* Envelope */
.envelope-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.envelope-hint { color: rgba(255,255,255,.3); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 36px; }
.envelope-emoji { font-size: 108px; filter: drop-shadow(0 0 40px rgba(214,59,110,.5)); cursor: pointer; transition: all .9s cubic-bezier(.4,0,.2,1); display: inline-block; margin-bottom: 32px; }
.envelope-emoji.opening { transform: scale(.65) translateY(-70px); opacity: 0; }
.envelope-title { font-family: 'Playfair Display', serif; color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.envelope-sub { color: rgba(255,255,255,.4); font-size: 14px; margin-bottom: 28px; }

/* Present content */
.presente-content { max-width: 640px; margin: 0 auto; padding: 80px 24px; }
.presente-eyebrow { color: rgba(255,255,255,.3); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.presente-title { font-family: 'Playfair Display', serif; font-size: clamp(32px,6vw,54px); font-weight: 900; color: #fff; margin-bottom: 10px; line-height: 1.15; }
.presente-by { color: var(--rose-light); font-size: 16px; margin-bottom: 52px; }

/* Counter */
.counter-box { background: rgba(255,255,255,.04); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 28px 20px; text-align: center; margin-bottom: 40px; }
.counter-label { color: rgba(255,255,255,.3); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.counter-nums { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.counter-item { text-align: center; }
.counter-n { font-size: 52px; font-weight: 900; color: #fff; line-height: 1; }
.counter-u { color: var(--rose-light); font-size: 12px; margin-top: 5px; }

/* Letter */
.letter-box { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 28px; margin-bottom: 36px; }
.letter-eyebrow { font-family: 'Playfair Display', serif; color: rgba(255,255,255,.3); font-size: 13px; margin-bottom: 18px; font-style: italic; }
.letter-text { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.95; font-style: italic; word-break: break-word; overflow-wrap: break-word; }
.letter-sign { color: var(--rose-light); text-align: right; margin-top: 20px; font-style: italic; font-size: 15px; }

/* Music player */
.music-player { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; margin-bottom: 36px; display: flex; align-items: center; gap: 16px; }
.music-thumb { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--rose), var(--rose-light)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.music-info { flex: 1; min-width: 0; }
.music-title { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.music-artist { color: rgba(255,255,255,.35); font-size: 12px; margin-bottom: 10px; }
.music-bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 99px; cursor: pointer; position: relative; }
.music-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--rose-light)); border-radius: 99px; transition: width .1s; }
.music-time { color: rgba(255,255,255,.3); font-size: 12px; flex-shrink: 0; }
.music-play { width: 40px; height: 40px; border-radius: 50%; background: var(--rose); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; }

/* Photos polaroid */
.photos-section { margin-bottom: 48px; }
.photos-eyebrow { color: rgba(255,255,255,.3); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px; text-align: center; }
.polaroids { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.polaroid { background: #fff; padding: 12px 12px 34px; border-radius: 4px; box-shadow: 0 10px 28px rgba(0,0,0,.45); width: 130px; }
.polaroid-img { height: 108px; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 10px; background: #f0f0f0; }
.polaroid-label { color: #444; font-size: 11px; text-align: center; font-family: Georgia, serif; }

/* QR Section */
.qr-section { text-align: center; padding: 28px 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; margin-bottom: 40px; }
.qr-eyebrow { color: rgba(255,255,255,.3); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.qr-img { width: 120px; height: 120px; background: rgba(255,255,255,.05); border-radius: 12px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-img img { width: 100%; height: 100%; }
.qr-url { color: rgba(255,255,255,.35); font-size: 13px; margin-bottom: 16px; }

/* Watermark */
.watermark { text-align: center; margin-top: 40px; }
.watermark p { color: rgba(255,255,255,.15); font-size: 12px; margin-bottom: 8px; }
.watermark a { color: rgba(214,59,110,.5); font-size: 12px; }

/* ── FOOTER ──────────────────────────────────────────────────*/
.footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo span { color: var(--rose); }
.footer-tagline { color: var(--muted); font-size: 13px; max-width: 220px; line-height: 1.6; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col-title { color: var(--text); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; font-size: 11px; color: var(--muted); }

/* ── ALERT/FLASH ─────────────────────────────────────────────*/
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: var(--red); }
.alert-info    { background: var(--rose-dim);     border: 1px solid rgba(214,59,110,.3); color: var(--rose-light); }

/* ── SPINNER ─────────────────────────────────────────────────*/
.spinner { display: inline-block; border-radius: 50%; animation: spin .75s linear infinite; }

/* ── UTILITY ─────────────────────────────────────────────────*/
.text-rose  { color: var(--rose); }
.text-gold  { color: var(--gold-light); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-dim   { color: var(--dim); }
.text-sm    { font-size: 13px; }
.text-xs    { font-size: 11px; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── RESPONSIVO ──────────────────────────────────────────────*/
@media (max-width: 640px) {
  .section { padding: 52px 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .type-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-page, .dash-page { padding: 24px 16px; }
  .presente-content { padding: 60px 16px; }
  .counter-n { font-size: 38px; }
  .footer-top { flex-direction: column; }
  .nav-ssl-badge { display: none; }
  .presente-title { font-size: 28px; }
}

/* ── CORREÇÕES PRESENTE (leitura em mobile) ──────────────────*/

/* Espaço para a barra de reações não cobrir o conteúdo */
.presente-content {
  padding-bottom: 120px !important;
}

/* Texto da carta: não quebrar horizontalmente em mobile */
.letter-text {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.9;
}

/* Carta não cortar conteúdo */
.letter-box {
  overflow: visible;
}

/* Presente page: sem scroll horizontal */
.presente-page { overflow-x: hidden; }


/* Mobile: ajustes de tamanho de fonte e padding */
@media (max-width: 640px) {
  .presente-content {
    padding: 40px 18px 130px !important;
  }
  .letter-text {
    font-size: 14px;
    line-height: 1.85;
  }
  .letter-box {
    padding: 20px 16px;
  }
  .counter-nums {
    gap: 16px;
  }
  .counter-n {
    font-size: 36px;
  }
  /* Barra de reações menor no mobile */
  .reacoes-float {
    padding: 8px 14px;
    gap: 4px;
    bottom: 16px;
  }
  .reacao-btn {
    font-size: 22px;
    padding: 4px 6px;
  }
  /* Título não ultrapassar a tela */
  .presente-title {
    font-size: 26px !important;
    word-break: break-word;
  }
  /* Botões de ação em coluna no mobile */
  .presente-title + p + div {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .letter-text {
    font-size: 13px;
  }
  .counter-n {
    font-size: 30px;
  }
  .reacoes-float {
    width: calc(100% - 32px);
    justify-content: center;
  }
}
