/* Reset simples */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e7ecff;
  background: linear-gradient(180deg, #040613 0%, #050b1d 48%, #02030b 100%);
  position: relative;
  line-height: 1.6;
}

body::before{
  content:"";
  position:fixed;
  inset:-20% -10% -10%;
  background:
    radial-gradient(60% 60% at 15% 8%, rgba(91,109,255,.34), transparent 62%),
    radial-gradient(70% 60% at 82% -6%, rgba(43,205,255,.22), transparent 65%),
    radial-gradient(55% 52% at 60% 72%, rgba(24,84,164,.18), transparent 74%);
  pointer-events:none;
  z-index:-1;
  opacity:.8;
}

body.modal-open{ overflow:hidden; }

body:not(.page-dashboard){
  padding-top: var(--header-height);
  scroll-padding-top: calc(var(--header-height) + 24px);
}

[hidden]{ display:none !important; }

/* Paleta */
:root{
  --bg: #050715;
  --surface: #0b1126;
  --surface-alt: #0f1838;
  --surface-soft: rgba(22,31,61,0.76);
  --muted: #98a3c7;
  --muted-soft: rgba(152,163,199,.5);
  --primary: #6f5dff;
  --primary-2: #2bd8ff;
  --accent: #8d74ff;
  --white: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --ring: rgba(124,108,255,.45);
  --glass: rgba(106,118,255,.12);
  --card: rgba(13,19,45,.92);
  --shadow-strong: 0 28px 80px rgba(5,10,30,.55);
  --header-height: clamp(92px, 12vw, 128px);
  scroll-padding-top: var(--header-height);
}

/* Containers */
.nx-container{ width:min(1100px, 92%); margin-inline:auto; }

/* Header */
.nx-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: rgba(7,10,27,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120,132,205,.18);
  box-shadow: 0 30px 60px rgba(2,8,34,.45);
}
.nx-header .nx-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 16px 0;
}
.nx-brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--white);
  text-decoration:none;
  font-weight:700;
}
.nx-brand:hover .nx-logo{ transform: scale(1.05); }
.nx-brand-meta{ display:flex; flex-direction:column; gap:4px; }
.nx-brand-title{ font-size:clamp(22px, 2.6vw, 28px); font-weight:700; color:var(--white); letter-spacing:-0.02em; }
.nx-brand-subtitle{ font-size:11px; text-transform:uppercase; letter-spacing:0.18em; color:var(--muted); }
.nx-brand.small .nx-brand-title{ font-size:18px; }
.nx-brand.small .nx-brand-subtitle{ font-size:10px; letter-spacing:0.14em; }

.nx-logo{
  width:clamp(70px, 8vw, 96px);
  height:auto;
  display:block;
  filter:drop-shadow(0 0 8px rgba(99,102,241,.35));
  transition:transform .25s ease;
}
.nx-brand.small .nx-logo{ width:clamp(54px, 10vw, 76px); }

.nx-nav{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:999px;
  background:rgba(14,20,44,.6);
  border:1px solid rgba(124,136,214,.18);
  --nav-indicator-x: 0px;
  --nav-indicator-width: 0px;
}
.nx-nav-indicator{
  position:absolute;
  left:6px;
  top:6px;
  height:calc(100% - 12px);
  width:var(--nav-indicator-width);
  border-radius:999px;
  background:linear-gradient(135deg, rgba(107,94,255,.92), rgba(44,214,255,.92));
  box-shadow: 0 18px 36px rgba(58,120,255,.4);
  transform:translateX(var(--nav-indicator-x));
  transition: transform .45s cubic-bezier(.32,.72,.19,1), width .35s ease, opacity .28s ease;
  opacity:0;
}
.nx-nav.ready .nx-nav-indicator{ opacity:1; }
.nx-nav a{
  position:relative;
  z-index:1;
  color:rgba(204,212,255,.74);
  text-decoration:none;
  font-weight:500;
  padding:10px 18px;
  border-radius:999px;
  transition:.2s color, .2s transform;
}
.nx-nav a.is-active{
  color:#fff;
  text-shadow:0 0 18px rgba(67,179,255,.65);
}
.nx-nav a:hover{ color:#f8fbff; transform:translateY(-1px); }

.nx-cta{ display:flex; align-items:center; gap:10px; }
.profile-trigger{
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(144,158,230,.32);
  background: rgba(17,25,52,.72);
  color:#d5ddff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.2s transform, .2s filter, .2s border-color;
  box-shadow: inset 0 0 0 rgba(255,255,255,0);
}
.profile-trigger:hover{
  border-color:rgba(204,214,255,.45);
  color:#fff;
  transform:translateY(-1px);
}
.profile-trigger svg{
  width:24px;
  height:24px;
  stroke-width:1.8;
}
.nx-header--auth .nx-container{
  justify-content:center;
}
.nx-header--auth .nx-brand{
  margin-inline:auto;
}

.link-muted{
  background:none;
  border:0;
  color:rgba(144,168,255,.9);
  font-size:0.92rem;
  cursor:pointer;
  text-decoration:underline;
  padding:0;
}
.link-muted:hover{ color:#e0e8ff; }

/* Botões */
.btn{
  border:0;
  border-radius:16px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
  transition:.2s transform, .2s filter, .2s background, .2s box-shadow;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:white;
  box-shadow: 0 20px 36px rgba(76,97,255,.32);
}
.btn.primary:hover{ filter:brightness(1.1); }
.btn.ghost{
  background: rgba(17,25,52,.72);
  color:#d5ddff;
  border:1px solid rgba(144,158,230,.32);
  box-shadow: inset 0 0 0 rgba(255,255,255,0);
}
.btn.ghost:hover{ border-color:rgba(204,214,255,.45); color:#fff; }
.btn.link{
  background: transparent;
  color:#9fb7ff;
  text-decoration: none;
  padding: 12px 10px;
  border:1px solid transparent;
}
.btn.link:hover{ color:#dbe2ff; text-decoration:underline; }
.round{ width:60px; height:60px; border-radius:999px; border:0; display:grid; place-items:center; background:#1f2937; color:white; }
.round.success{ background:linear-gradient(135deg,#16a34a,#22c55e); }
.round.danger{ background:linear-gradient(135deg,#ef4444,#f97316); }
.round.secondary{ background:#334155; }

@media (max-width: 860px){
  .nx-header .nx-container{ flex-wrap:wrap; justify-content:center; }
  .nx-nav{ order:3; width:100%; justify-content:center; flex-wrap:wrap; }
  .nx-cta{ order:2; width:100%; justify-content:flex-end; }
}
@media (max-width: 600px){
  .nx-cta{ justify-content:center; }
  .nx-nav{ gap:10px; }
  .nx-nav a{ flex:1 0 auto; }
}

/* Hero */
.hero{
  position:relative;
  padding: 84px 0 64px;
  color: #e5ecff;
  background: radial-gradient(820px 520px at 50% -26%, rgba(118,136,255,.2), transparent 70%);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-140px -220px auto;
  height:360px;
  background: radial-gradient(480px 320px at 58% 42%, rgba(71,203,255,.28), transparent 70%);
  opacity:.48;
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap:48px;
  align-items:stretch;
}
.hero-grid > div:first-child{ display:flex; flex-direction:column; justify-content:center; }
.hero-copy{ display:flex; flex-direction:column; gap:16px; }
.hero-eyebrow{
  font-size:0.75rem;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:rgba(172,186,244,.65);
}
.hero .phone-frame{ margin-top:auto; }
.hero h1{ font-size: clamp(34px, 4.8vw, 58px); line-height:1.02; color:#fff; letter-spacing:-0.025em; }
.highlight{ color:#8ddcff; text-shadow: 0 0 22px rgba(60,216,255,.65); }
.match-highlight{
  position:relative;
  color:#9de6ff;
  text-shadow:0 0 18px rgba(71,203,255,.55);
}
.match-highlight::after{
  content:"";
  position:absolute;
  inset:auto 0 -6px 0;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(108,93,255,.65), rgba(46,216,255,.65));
  opacity:.7;
  z-index:-1;
}
.hero-subtitle{ color:rgba(223,229,255,.82); max-width:560px; }
.hero-highlight{ color:rgba(195,206,255,.82); max-width:620px; font-size:1.05rem; line-height:1.65; }
.match-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(111,93,255,.24), rgba(43,216,255,.24));
  color:#dff5ff;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.hero-cta{ margin-top:28px; display:flex; gap:14px; flex-wrap:wrap; }
.hero-stats{
  list-style:none;
  display:grid;
  gap:18px;
  margin-top:28px;
  max-width:620px;
}
.hero-stats li{
  background: linear-gradient(165deg, rgba(16,25,50,.65), rgba(9,16,36,.5));
  border:1px solid rgba(128,148,235,.12);
  border-radius:28px;
  padding:36px 28px 30px;
  box-shadow:0 18px 42px rgba(6,12,32,.26);
  backdrop-filter: blur(20px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  text-align:center;
  min-height:220px;
}
.hero-stats li > div{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  flex:1;
  width:100%;
}
.stat-icon{
  width:60px;
  aspect-ratio:1;
  border-radius:20px;
  position:relative;
  display:block;
  background:linear-gradient(160deg, rgba(111,93,255,.5), rgba(43,216,255,.32));
  color:#eafcff;
  box-shadow:0 18px 34px rgba(35,98,255,.32);
  margin-bottom:0;
  flex-shrink:0;
}
.stat-icon > svg{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:28px;
  height:28px;
  display:block;
  pointer-events:none;
}
.step-icon > svg,
.info-icon > svg {
  width:26px;
  height:26px;
  stroke-width:1.8;
  flex-shrink:0;
  display:block;
}
.hero-stats strong{ margin-top:4px; }
.hero-stats strong{
  font-weight:600;
  letter-spacing:.02em;
  display:block;
  color:#fff;
}
.hero-stats span{
  display:block;
  color:rgba(201,208,245,.78);
  margin-top:4px;
  font-size:0.95rem;
}

/* Phone frame & swipe */
.phone-frame{
  width:min(360px, 92vw); height:620px; margin-inline:auto; position:relative;
  border-radius:34px; padding:18px;
  background: linear-gradient(165deg, rgba(14,22,46,.82), rgba(10,16,34,.78));
  border:1px solid rgba(132,148,232,.18);
  box-shadow: 0 24px 64px rgba(3,8,24,.55);
  backdrop-filter: blur(12px);
  display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden;
}
.card-stack{ position:absolute; inset:16px; display:grid; }
.swipe-card{
  position:absolute; inset:0;
  background:linear-gradient(160deg, rgba(16,26,56,.78), rgba(12,19,42,.78));
  color:#e7ecff;
  border-radius:26px;
  padding:18px;
  border:1px solid rgba(132,148,232,.16);
  box-shadow: 0 20px 48px rgba(4,8,26,.42);
  display:flex; flex-direction:column; overflow:hidden; will-change: transform;
  backdrop-filter: blur(10px);
}
.swipe-card .photo{
  flex:1; background:#111c3a url('./img/placeholder-avatar.png') center/cover no-repeat;
  border-radius:18px;
}
.swipe-card .meta{ margin-top:12px; display:flex; align-items:center; gap:10px; }
.meta .name{ font-weight:700; color:#fff; }
.meta .tags{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.tag{ font-size:12px; padding:6px 10px; border-radius:999px; background:rgba(32,44,82,.65); color:#dbe5ff; border:1px solid rgba(142,155,234,.18); backdrop-filter: blur(8px); }

.swipe-actions{ display:flex; justify-content:center; gap:16px; margin-top:14px; }

/* Seções */
.section-overline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(156,170,223,.7);
}
.section-overline::before{
  content:"";
  width:32px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(111,93,255,.9));
}

.howitworks, .about{ padding:72px 0; color:#e7ecff; position:relative; }
.howitworks::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(840px 540px at 20% -12%, rgba(108,124,255,.16), transparent 70%),
    radial-gradient(880px 540px at 80% 10%, rgba(43,204,255,.12), transparent 72%);
  opacity:.36;
  pointer-events:none;
}
.about::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(860px 520px at 18% -8%, rgba(108,124,255,.16), transparent 70%),
    radial-gradient(900px 520px at 82% 14%, rgba(43,204,255,.12), transparent 72%);
  opacity:.34;
  pointer-events:none;
}
.about .nx-container{ position:relative; z-index:1; }
.about p{ max-width:640px; color:rgba(208,216,250,.84); font-size:1.05rem; }
.howitworks h2, .about h2{ color:#fff; margin-bottom:22px; font-size: clamp(26px, 3vw, 34px); }
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap:26px; position:relative; z-index:1; }
.step{
  background: linear-gradient(165deg, rgba(17,26,52,.55), rgba(11,18,38,.44));
  border:1px solid rgba(120,144,235,.13);
  border-radius:28px;
  padding:28px;
  box-shadow: 0 18px 38px rgba(5,10,28,.28);
  backdrop-filter: blur(22px);
  display:grid;
  gap:12px;
}
.step h3{ margin:0; color:#fff; font-size:1.1rem; }
.step p{ margin:0; }
.step-detail{
  color:rgba(206,213,245,.82);
  line-height:1.6;
}
.step-icon{
  width:54px; height:54px; border-radius:18px; display:grid; place-items:center;
  background:linear-gradient(145deg, rgba(111,93,255,.38), rgba(43,216,255,.24));
  color:#d7efff;
  box-shadow:0 14px 28px rgba(38,114,255,.28);
}

.safety{ padding:72px 0; color:#e7ecff; position:relative; }
.safety::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(940px 560px at 22% -6%, rgba(108,124,255,.16), transparent 72%),
    radial-gradient(980px 560px at 78% 18%, rgba(43,204,255,.14), transparent 75%);
  opacity:.36;
  pointer-events:none;
}
.safety h2{ color:#fff; margin-bottom:12px; font-size: clamp(26px, 3vw, 34px); }
.section-lead{ color:rgba(206,213,245,.82); margin-bottom:32px; max-width:640px; }
.info-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; position:relative; z-index:1; }
.info-card{
  background: linear-gradient(168deg, rgba(16,26,52,.52), rgba(10,18,36,.42));
  border:1px solid rgba(118,142,235,.12);
  border-radius:30px;
  padding:30px;
  box-shadow:0 18px 38px rgba(5,10,30,.28);
  backdrop-filter: blur(22px);
  transition:.3s transform, .3s box-shadow, .3s border-color;
}
.info-card:hover{ transform:translateY(-4px); box-shadow:0 22px 46px rgba(8,14,34,.4); border-color:rgba(78,192,255,.26); }
.info-icon{
  width:52px; height:52px;
  border-radius:18px;
  display:grid; place-items:center;
  background:linear-gradient(145deg, rgba(111,93,255,.42), rgba(43,216,255,.24));
  color:#e3f7ff;
  margin-bottom:16px;
  box-shadow:0 14px 28px rgba(43,122,255,.28);
}
.info-card h3{ color:#fff; margin-bottom:10px; }
.info-card p{ color:rgba(206,213,245,.82); }

.faq{ padding:72px 0 92px; color:#e7ecff; position:relative; }
.faq::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(860px 520px at 18% -10%, rgba(108,124,255,.17), transparent 72%),
    radial-gradient(900px 520px at 82% 12%, rgba(43,204,255,.12), transparent 74%);
  opacity:.34;
  pointer-events:none;
}
.faq h2{ color:#fff; margin-bottom:24px; font-size: clamp(26px, 3vw, 34px); position:relative; z-index:1; }
.faq-list{ display:grid; gap:16px; position:relative; z-index:1; }
.faq-list details{
  background:linear-gradient(170deg, rgba(15,25,48,.5), rgba(11,18,36,.4));
  border:1px solid rgba(118,142,235,.12);
  border-radius:26px;
  padding:22px 26px;
  box-shadow:0 16px 34px rgba(5,10,30,.26);
  backdrop-filter: blur(20px);
}
.faq-list summary{
  cursor:pointer;
  font-weight:600;
  color:#fff;
  outline:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-label{ flex:1; }
.faq-arrow{
  width:12px;
  height:12px;
  border-right:2px solid rgba(157,207,255,.95);
  border-bottom:2px solid rgba(157,207,255,.95);
  transform:rotate(45deg);
  transition:transform .25s ease, border-color .25s ease;
  flex-shrink:0;
}
.faq-list details[open] .faq-arrow{
  transform:rotate(-135deg);
  border-color:rgba(88,182,255,1);
}
.faq-list p{ margin-top:12px; color:rgba(206,213,245,.82); }

/* Footer */
.nx-footer{
  position:relative;
  color:#cbd5e1;
  border-top:1px solid rgba(148,163,184,.12);
  background: linear-gradient(180deg, rgba(7,10,27,.92) 0%, rgba(9,14,32,.95) 60%, rgba(7,10,27,.98) 100%);
  overflow:hidden;
}
.nx-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% -10%, rgba(111,93,255,.24), transparent 55%),
              radial-gradient(circle at 82% 10%, rgba(43,216,255,.2), transparent 55%);
  opacity:.6;
  pointer-events:none;
}
.nx-footer > .nx-container{ position:relative; z-index:1; }
.footer-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr));
  gap:28px;
  padding:44px 0;
}
.nx-footer h4{ color:#fff; margin-bottom:14px; letter-spacing:0.08em; text-transform:uppercase; font-size:13px; }
.nx-footer nav{ display:flex; flex-direction:column; gap:0.4rem; }
.nx-footer nav a{ color:inherit; text-decoration:none; transition: color .2s ease, transform .2s ease; }
.nx-footer nav a:hover{ color:#a5b4fc; transform: translateX(2px); }
.footer-brand p{ margin-top:0.8rem; font-size:0.95rem; line-height:1.5; max-width:320px; color:#d7dffb; }
.nx-subfooter{ position:relative; z-index:1; border-top:1px solid rgba(136,148,214,.16); padding:14px 0; color:#9aa6d6; text-align:center; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* Modal */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(2,6,23,.7); z-index:200; padding:24px; }
.modal[aria-hidden="false"]{ display:flex; }
.modal-content{ background:#0f172a; color:#e5e7eb; border:1px solid rgba(255,255,255,.08); border-radius:20px; padding:22px; width:min(460px, 92vw); max-height:90vh; overflow:auto; box-shadow:0 24px 48px rgba(8,12,32,.38); }
.modal-content h2{ font-size:1.2rem; margin-bottom:8px; color:#fff; }
.modal-content p{ color:rgba(203,213,225,.82); margin-bottom:12px; }
.modal-form{ display:grid; gap:16px; }
.modal-form .field label{ color:#fff; }
.modal-form .modal-actions{ margin-top:6px; justify-content:flex-end; }
.modal-actions{ display:flex; gap:10px; margin-top:14px; }

/* --- Dashboard --- */
.page-dashboard .nx-main{ padding:0; }
.dashboard-shell{
  display:grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height:100dvh;
}
.dashboard-sidebar{
  position:sticky;
  top:0;
  align-self:start;
  min-height:100dvh;
  background:linear-gradient(180deg, rgba(7,10,27,.96) 0%, rgba(9,14,34,.98) 60%, rgba(7,10,27,.98) 100%);
  border-right:1px solid rgba(148,163,184,.18);
  padding:32px 24px;
  display:flex;
  flex-direction:column;
  gap:32px;
  box-shadow: inset -1px 0 0 rgba(148,163,184,.1);
  overflow-y:auto;
}
.dashboard-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
}
.dashboard-logo{
  width:78px;
  height:auto;
  filter:drop-shadow(0 0 8px rgba(99,102,241,.34));
  transition:transform .25s ease;
}
.dashboard-brand:hover .dashboard-logo{ transform:scale(1.05); }
.dashboard-brand-meta{ display:flex; flex-direction:column; gap:4px; }
.dashboard-title{ font-weight:700; letter-spacing:-0.01em; font-size:1.1rem; color:#fff; }
.dashboard-subtitle{ font-size:0.7rem; text-transform:uppercase; letter-spacing:0.22em; color:rgba(148,163,255,.68); }

.dashboard-user{
  background:rgba(15,23,42,.75);
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#e2e8f0;
}
.dashboard-user-label{ font-size:0.75rem; text-transform:uppercase; letter-spacing:0.16em; color:rgba(148,163,184,.72); }
.dashboard-user-name{ font-size:1.05rem; word-break:break-word; }

.dashboard-menu{
  display:grid;
  gap:10px;
}
.dashboard-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  color:rgba(203,213,225,.82);
  text-decoration:none;
  transition:.2s background, .2s color, .2s transform;
}
.dashboard-link:hover{ color:#f8fafc; transform:translateX(2px); background:rgba(148,163,255,.12); }
.dashboard-link.is-active{
  background:linear-gradient(135deg, rgba(99,102,241,.38), rgba(45,212,191,.32));
  color:#fff;
  box-shadow:0 20px 40px rgba(17,24,39,.45);
}
.dashboard-link svg{
  width:20px;
  height:20px;
  stroke-width:1.8;
  flex-shrink:0;
}

.dashboard-footer{ margin-top:auto; }
.dashboard-logout{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.28);
  background:rgba(127,29,29,.22);
  color:#fecaca;
  cursor:pointer;
  font-weight:600;
  transition:.2s background, .2s transform;
}
.dashboard-logout:hover{ background:rgba(220,38,38,.28); transform:translateY(-1px); }
.dashboard-logout svg{ width:18px; height:18px; stroke-width:1.9; }

.dashboard-content{
  background:transparent;
  padding:40px clamp(18px, 5vw, 60px);
  display:block;
}

/* Acessibilidade e navegação por âncora */
:target { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* --- Perfil/Cadastro --- */
.dashboard-main{
  width:100%;
  max-width:1080px;
  margin-inline:auto;
  display:grid;
  gap:28px;
}
.profile-main{ display:block; }
.profile-layout {
  display:grid;
  gap:28px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(460px, 1.2fr);
  align-items:start;
}
.profile-aside{
  position:relative;
  background: linear-gradient(160deg, rgba(79,70,229,.16), rgba(15,23,42,.95));
  border:1px solid rgba(99,102,241,.35);
  border-radius:22px;
  padding:32px 28px;
  color:#e5e7eb;
  box-shadow: 0 28px 50px rgba(2,6,23,.38);
  overflow:hidden;
}
.profile-aside::after{
  content:"";
  position:absolute;
  inset:auto -40px -80px;
  height:220px;
  background: radial-gradient(circle, rgba(56,189,248,.25), transparent 60%);
  opacity:.5;
  pointer-events:none;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(56,189,248,.18);
  color:#bae6fd;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
}
.profile-aside h1{ font-size:clamp(26px, 3vw, 34px); color:#fff; margin:18px 0 12px; line-height:1.2; }
.profile-aside p{ color:#cbd5f5; margin-bottom:24px; }
.profile-highlights{ list-style:none; display:grid; gap:14px; color:#e2e8f0; }
.profile-highlights li{ background:rgba(15,23,42,.55); border:1px solid rgba(148,163,184,.18); border-radius:14px; padding:12px 14px; }
.profile-highlights strong{ color:#fff; }

.profile-card {
  background: var(--card);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 28px 56px rgba(2,6,23,.38);
  display:flex;
  flex-direction:column;
  gap:24px;
}
.profile-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.profile-header h2{ color:#fff; font-size: clamp(22px, 2vw, 26px); margin-bottom:6px; }
.profile-header p{ color:#cbd5e1; }
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(148,163,184,.16);
  color:#e2e8f0;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.pill.is-synced{ background:rgba(34,197,94,.22); color:#bbf7d0; }
.pill.is-error{ background:rgba(239,68,68,.18); color:#fecaca; }
.profile-form{ display:grid; gap:28px; }

.form-section{ display:grid; gap:18px; border-top:1px solid rgba(148,163,184,.12); padding-top:18px; }
.form-section:first-of-type{ border-top:0; padding-top:0; }
.form-section h3{ font-size:16px; color:#fff; letter-spacing:0.04em; text-transform:uppercase; }

.form-alert{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(56,189,248,.35);
  background:rgba(13,148,136,.08);
  color:#67e8f9;
  font-size:14px;
}
.form-alert.is-error{ border-color:rgba(239,68,68,.45); background:rgba(239,68,68,.12); color:#fecaca; }

.format-toggle{ display:flex; flex-wrap:wrap; gap:12px; }
.pill-toggle{
  position:relative;
  display:inline-flex;
  cursor:pointer;
}
.pill-toggle input{ position:absolute; opacity:0; pointer-events:none; }
.pill-toggle span{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(15,23,42,.55);
  border:1px solid rgba(148,163,184,.22);
  color:#e5e7eb;
  position:relative;
  transition:.2s border, .2s background, .2s color, .2s box-shadow;
}
.pill-toggle span:before{
  content:"";
  width:10px; height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  opacity:.28;
  box-shadow:0 0 10px rgba(79,70,229,.45);
  margin-right:6px;
}

.dashboard-section{
  background:var(--card);
  border:1px solid rgba(148,163,184,.16);
  border-radius:22px;
  padding:28px;
  box-shadow:0 28px 56px rgba(2,6,23,.38);
  display:grid;
  gap:20px;
}
.dashboard-section header{ display:flex; flex-direction:column; gap:6px; }
.dashboard-section h1,
.dashboard-section h2{ color:#fff; font-size:clamp(24px, 2.4vw, 30px); }
.dashboard-section p{ color:rgba(203,213,225,.84); }

.tile-grid{ display:grid; gap:18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile-card{
  background:rgba(13,23,48,.92);
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  padding:18px;
  display:grid;
  gap:14px;
}
.tile-card header{ display:flex; align-items:center; gap:12px; }
.tile-card .avatar{
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(99,102,241,.32), rgba(45,212,191,.32));
  display:grid;
  place-items:center;
  font-weight:600;
  color:#fff;
}
.tile-card strong{ color:#fff; font-size:1.05rem; }
.tile-card ul{ list-style:none; display:grid; gap:6px; color:rgba(203,213,225,.82); font-size:0.92rem; }
.tile-card footer{ display:flex; gap:10px; flex-wrap:wrap; }
.tile-card .tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:12px;
  background:rgba(59,130,246,.18);
  color:#bfdbfe;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.settings-form{ display:grid; gap:28px; }
.settings-group{
  display:grid;
  gap:14px;
  border-top:1px solid rgba(148,163,184,.18);
  padding-top:18px;
}
.settings-group:first-of-type{ border-top:0; padding-top:0; }
.settings-group h3{ font-size:1rem; color:#fff; letter-spacing:0.06em; text-transform:uppercase; }

.profile-summary{
  display:flex;
  align-items:center;
  gap:18px;
}
.profile-summary img{
  width:74px;
  height:74px;
  border-radius:18px;
  object-fit:cover;
  background:rgba(30,41,79,.8);
  border:1px solid rgba(148,163,184,.32);
  box-shadow:0 12px 36px rgba(9,16,38,.45);
}
.profile-info h1{ margin:0 0 4px; color:#fff; font-size:clamp(1.2rem, 2.4vw, 1.6rem); }
.profile-info p{ margin:0 0 10px; color:rgba(206,213,245,.78); }
.profile-info a{ color:#8ddcff; text-decoration:none; }
.profile-info a:hover{ text-decoration:underline; color:#c8f3ff; }
.premium-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(234,179,8,.2), rgba(250,204,21,.35));
  color:#fef08a;
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.premium-chip a{ color:#fefce8; text-decoration:none; }
.premium-chip a:hover{ text-decoration:underline; }

.bio-section{ display:grid; gap:14px; }
.bio-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bio-header h2{ margin:0; color:#fff; font-size:1.05rem; letter-spacing:0.06em; text-transform:uppercase; }
.bio-header a{ color:#8ddcff; text-decoration:none; font-weight:500; }
.bio-header a:hover{ text-decoration:underline; color:#c8f3ff; }
.bio-text{ color:rgba(206,213,245,.82); line-height:1.65; }
.bio-textarea{
  width:100%;
  min-height:120px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.7);
  color:#e2e8f0;
  font-size:0.95rem;
  resize:vertical;
  transition:.2s border, .2s box-shadow;
}
.bio-textarea:focus{
  border-color:rgba(59,130,246,.6);
  box-shadow:0 0 0 3px rgba(56,189,248,.18);
  outline:none;
}
.bio-actions{ display:flex; justify-content:flex-end; gap:10px; }

.danger-header h2{ margin:0; color:#fff; font-size:1.1rem; letter-spacing:0.06em; text-transform:uppercase; }
.danger-header p{ color:rgba(203,213,225,.8); margin-top:6px; }
.danger-zone{
  margin-top:18px;
  background:rgba(27,38,77,.6);
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  padding:18px;
  display:grid;
  gap:12px;
}
.danger-zone h3{ margin:0; color:#fca5a5; letter-spacing:0.06em; text-transform:uppercase; font-size:0.85rem; }
.danger-zone h4{ margin:0 0 4px; color:#fff; font-size:1rem; }
.danger-zone p{ margin:0; color:rgba(203,213,225,.78); }
.danger-action{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.danger-action:last-of-type{ border-bottom:0; padding-bottom:0; }
.btn-danger{
  border:0;
  border-radius:12px;
  padding:10px 16px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg, rgba(239,68,68,.9), rgba(249,115,22,.85));
  color:#fff;
  box-shadow:0 14px 32px rgba(255,56,56,.25);
  transition:.2s transform, .2s filter;
}
.btn-danger:hover{ filter:brightness(1.05); }
.btn-danger:active{ transform:translateY(1px); }
.hidden{ display:none !important; }

/* Responsivo */
@media (max-width: 1080px){
  .dashboard-shell{ grid-template-columns: 240px minmax(0, 1fr); }
  .profile-layout{ grid-template-columns:1fr; }
  .profile-aside{ order:2; }
}

@media (max-width: 960px){
  .dashboard-shell{ grid-template-columns:1fr; }
  .dashboard-sidebar{
    position:relative;
    min-height:auto;
    flex-direction:column;
    gap:18px;
    border-right:0;
    border-bottom:1px solid rgba(148,163,184,.18);
  }
  .dashboard-menu{ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .dashboard-content{ padding:32px clamp(14px, 4vw, 36px); }
}

@media (max-width: 720px){
  .dashboard-menu{ grid-template-columns: 1fr; }
  .dashboard-sidebar{ padding:24px 16px; }
  .profile-card{ padding:22px; }
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px){
  .info-grid{ grid-template-columns: 1fr; }
  .hero-stats{ gap:18px; }
}

@media (min-width: 960px){
  .hero-stats{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pill-toggle input:checked + span{
  background:linear-gradient(135deg, rgba(79,70,229,.32), rgba(129,140,248,.4));
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 26px rgba(79,70,229,.35);
}


.form-actions{ padding-top:4px; }

.field label { display:block; font-weight:600; color:#fff; margin-bottom:6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field textarea{
  width:100%; background:#0b1226; color:#e5e7eb;
  border:1px solid rgba(148,163,184,.18); border-radius:12px; padding:12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition:.2s border, .2s box-shadow, .2s transform;
}
.field textarea{ resize: vertical; min-height:120px; }
.field input:focus,
.field textarea:focus{ border-color:rgba(99,102,241,.6); box-shadow:0 0 0 3px rgba(99,102,241,.2); outline:none; }
.field .error { display:block; color:#fca5a5; min-height: 18px; margin-top:4px; }
.field .hint { display:block; color:#9ca3af; margin-top:4px; }

.row { display:flex; gap:10px; align-items:center; }
.row.wrap { flex-wrap:wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content:flex-end; }
.chk { display:flex; align-items:center; gap:8px; color:#cbd5e1; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid-span-2{ grid-column: span 2; }
@media (max-width: 640px){
  .grid2{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
}

/* Tags input */
.tags-shell{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  background:rgba(12,18,40,.6);
  border:1px solid rgba(148,163,184,.16);
  border-radius:14px;
  padding:10px 12px;
  transition:.25s border, .25s box-shadow, .25s background;
  backdrop-filter: blur(12px);
}
.tags-shell:focus-within{ border-color:rgba(99,102,241,.55); box-shadow:0 0 0 3px rgba(99,102,241,.18); background:rgba(14,22,46,.72); }
.tags-shell.is-invalid{ border-color:rgba(239,68,68,.55); box-shadow:0 0 0 2px rgba(239,68,68,.18); }
.tags-list{ display:flex; gap:8px; flex-wrap:wrap; }
.field .tags-shell .tags-editor{
  flex:1;
  min-width:160px;
  background:transparent;
  border:0;
  color:#e5e7eb;
  outline:none;
  padding:4px 2px;
  box-shadow:none;
}
.tag-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; background:rgba(35,46,82,.72); color:#d1d5db;
  border:1px solid rgba(168,181,251,.22); font-size:12px;
}
.tag-chip button{
  background:transparent; border:0; color:#9ca3af; cursor:pointer; font-size:14px; line-height:1;
}

.is-invalid{ border-color:#fca5a5 !important; }

/* --- Auth (login/cadastro) --- */
.auth-main { display:grid; place-items:center; min-height: calc(100dvh - 140px); padding: 32px 12px; }
.auth-wrapper { width:min(860px, 100%); }
.auth-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.auth-tabs { display:flex; gap:10px; margin-bottom: 14px; }
.auth-tab {
  background:#111827; color:#e5e7eb; border:1px solid rgba(255,255,255,.08);
  padding:10px 14px; border-radius: 12px; cursor:pointer; font-weight:600;
}
.auth-tab.is-active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; border-color: transparent; }

.auth-form { display:grid; gap:14px; }
.auth-form.is-hidden { display:none; }
.field label { display:block; font-weight:600; color:#fff; margin-bottom:6px; }
.input-with-action{ position:relative; display:flex; align-items:center; }
.input-with-action input{ flex:1; }
.input-with-action .showpass{
  position:absolute; right:8px; top:50%; transform: translateY(-50%);
  background:transparent; border:0; cursor:pointer; font-size:16px; color:#cbd5e1;
}
.btn.full{ width:100%; }
