/* =========================================================
   LAGOS SOLUÇÕES — Folha de estilo (v3) + animações + responsivo
   ========================================================= */

:root {
  --brand:        #7c00f0;
  --brand-light:  #b026ff;
  --brand-dark:   #5a00c4;
  --brand-glow:   rgba(124, 0, 240, .45);
  --accent:       #00e5c0;

  --bg:           #06050c;
  --bg-2:         #0c0a16;
  --surface:      #13101e;
  --surface-2:    #1a1530;
  --border:       rgba(176, 38, 255, .14);
  --border-strong:rgba(176, 38, 255, .38);

  --text:         #f4f1fc;
  --text-muted:   #a59fc4;
  --text-dim:     #756e92;

  --radius:       18px;
  --radius-lg:    28px;
  --container:    1180px;
  --grad:         linear-gradient(120deg, var(--brand-light), var(--brand));
  --grad-text:    linear-gradient(120deg, #c89bff, var(--brand-light) 45%, var(--accent));
  --shadow:       0 24px 60px -20px rgba(0,0,0,.75);
  --shadow-brand: 0 18px 50px -12px var(--brand-glow);
  --ease:         cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(124,0,240,.16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(0,229,192,.06), transparent 70%);
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

.grad {
  background: var(--grad-text); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad); box-shadow: 0 0 12px var(--brand-glow); }

/* ============ CURSOR GLOW ============ */
.cursor-glow { position: fixed; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(124,0,240,.13), transparent 60%); transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: 50px;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); background-size: 180% auto; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-130%); transition: transform .6s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -10px var(--brand-glow); background-position: right center; }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(176,38,255,.12); transform: translateY(-3px); }

/* ============ NAVBAR ============ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all .35s ease; }
.navbar.scrolled { background: rgba(8,7,15,.7); backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.18rem; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 12px var(--brand-glow)); }
.brand-name { letter-spacing: -.02em; }
.brand-dot { color: var(--brand-light); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.nav-cta) { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s; position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; border-radius: 2px; background: var(--grad); transition: width .25s; }
.nav-links > a:not(.nav-cta):hover { color: var(--text); }
.nav-links > a:not(.nav-cta):hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.menu-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(120px, 16vh, 180px) 0 clamp(80px,10vh,120px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.orb-1 { width: 540px; height: 540px; background: var(--brand); top: -160px; right: -120px; opacity: .5; animation: drift 16s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: #360a78; bottom: -180px; left: -110px; opacity: .55; animation: drift 20s ease-in-out infinite reverse; }
.orb-3 { width: 320px; height: 320px; background: var(--accent); top: 40%; left: 45%; opacity: .08; animation: drift 24s ease-in-out infinite; }
@keyframes drift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(176,38,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(176,38,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 80%);
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }

/* animação de entrada do conteúdo do hero (stagger) */
.hero-content > * { opacity: 0; animation: rise .7s var(--ease) both; }
.hero-content .badge      { animation-delay: .05s; }
.hero-content .hero-title { animation-delay: .15s; }
.hero-content .hero-subtitle { animation-delay: .30s; }
.hero-content .hero-actions { animation-delay: .42s; }
.hero-content .hero-stats  { animation-delay: .52s; }
@keyframes rise { from{opacity:0; transform:translateY(28px)} to{opacity:1; transform:none} }

.badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(176,38,255,.1); border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 50px; font-size: .82rem; color: var(--text-muted); margin-bottom: 26px; backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6)} 70%{box-shadow:0 0 0 10px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

.hero-title { font-size: clamp(2.4rem, 6.5vw, 4.8rem); font-weight: 700; letter-spacing: -.03em; }
.title-line { display: block; overflow: hidden; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-muted); margin: 24px 0 34px; max-width: 540px; }
.hero-subtitle strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: clamp(24px, 5vw, 44px); margin-top: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num { font-family: 'Space Grotesk'; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; color: var(--brand-light); text-shadow: 0 0 24px rgba(176,38,255,.35); }
[data-theme="light"] .stat-num { color: var(--brand); text-shadow: none; }
.stat-num i { font-style: normal; }
.hero-stats > div > span { font-size: .82rem; color: var(--text-dim); }

/* Hero visual — logo transparente flutuando */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.logo-wrap { position: relative; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .2s var(--ease); will-change: transform; }
.logo-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); filter: blur(30px); animation: pulseGlow 4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{opacity:.6; transform:scale(1)} 50%{opacity:1; transform:scale(1.1)} }
.logo-ring { position: absolute; width: clamp(250px, 34vw, 340px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--brand-light), var(--accent), transparent 70%); filter: blur(2px); opacity: .6; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-card { width: clamp(210px, 30vw, 290px); aspect-ratio: 1; border-radius: 30px; display: grid; place-items: center; position: relative; animation: floaty 6s ease-in-out infinite; }
.logo-card img { max-width: 86%; max-height: 84%; width: auto; height: auto; filter: drop-shadow(0 18px 40px rgba(124,0,240,.5)); }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.float-chip { position: absolute; background: rgba(20,17,31,.8); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: 50px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.float-chip i { color: var(--brand-light); }
.chip-1 { top: 6%; left: -2%; animation: floaty 5s ease-in-out infinite; }
.chip-2 { top: 28%; right: -8%; animation: floaty 7s ease-in-out infinite .5s; }
.chip-3 { bottom: 26%; left: -10%; animation: floaty 6s ease-in-out infinite 1s; }
.chip-4 { bottom: 4%; right: 2%; animation: floaty 5.5s ease-in-out infinite .3s; }

/* scroll-down */
.scroll-down { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); }
.scroll-down .mouse { width: 24px; height: 40px; border: 2px solid var(--border-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-down .mouse span { width: 4px; height: 8px; border-radius: 4px; background: var(--brand-light); animation: wheel 1.6s infinite; }
.scroll-down small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
@keyframes wheel { 0%{opacity:0; transform:translateY(-4px)} 40%{opacity:1} 100%{opacity:0; transform:translateY(10px)} }

/* ============ MARQUEE ============ */
.marquee { background: var(--grad); background-size: 200% auto; animation: gradMove 8s linear infinite alternate; overflow: hidden; padding: 16px 0; white-space: nowrap; }
@keyframes gradMove { from{background-position:left center} to{background-position:right center} }
.marquee-track { display: inline-flex; gap: 44px; align-items: center; animation: scrollx 30s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk'; font-weight: 600; font-size: .95rem; color: #fff; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span i { opacity: .8; }
@keyframes scrollx { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============ SEÇÕES ============ */
.section { padding: clamp(70px, 10vh, 110px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-family: 'Space Grotesk'; font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 16px; padding: 5px 14px; border: 1px solid var(--border); border-radius: 50px; background: rgba(176,38,255,.06); }
.eyebrow.light { color: #d9b3ff; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.section-head p { color: var(--text-muted); margin-top: 18px; font-size: clamp(.95rem, 2vw, 1.08rem); }

/* ============ SERVIÇOS ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 30px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s; }
.service-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .35s; background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(176,38,255,.16), transparent 60%); }
.service-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { background: linear-gradient(155deg, rgba(124,0,240,.16), var(--surface-2)); border-color: var(--border-strong); }
.service-card.featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang,0deg), transparent 60%, var(--brand-light), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; }
.ribbon { position: absolute; top: 18px; right: 18px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; letter-spacing: .03em; z-index: 2; }
.service-icon { width: 62px; height: 62px; border-radius: 17px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(176,38,255,.12); border: 1px solid var(--border); margin-bottom: 22px; color: var(--brand-light); transition: transform .35s var(--ease), background .35s; position: relative; }
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-6deg); background: var(--grad); color: #fff; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; position: relative; }
.service-card p { color: var(--text-muted); font-size: .98rem; margin-bottom: 20px; position: relative; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; position: relative; }
.service-tags li { font-size: .76rem; color: var(--text-dim); background: rgba(255,255,255,.04); padding: 5px 12px; border-radius: 50px; border: 1px solid var(--border); transition: .25s; }
.service-card:hover .service-tags li { border-color: var(--border-strong); color: var(--text-muted); }

/* ============ DIFERENCIAIS ============ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 26px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature-num { position: absolute; top: 14px; right: 18px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 3.4rem; color: var(--brand); opacity: .12; }
.feature-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px var(--brand-glow); transition: transform .3s; }
.feature:hover .feature-ico { transform: scale(1.1) rotate(-5deg); }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: .94rem; }

/* ============ TECNOLOGIAS ============ */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s, color .3s; cursor: default; }
.tech-item i { font-size: 2.1rem; color: var(--text-muted); transition: color .3s, transform .3s; }
.tech-item span { font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.tech-item:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.tech-item:hover i { color: var(--brand-light); transform: scale(1.15); }

/* ============ PROCESSO ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 41px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); z-index: 0; }
.step { text-align: center; padding: 24px 14px; position: relative; z-index: 1; }
.step-circle { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-brand); color: var(--brand-light); transition: transform .3s var(--ease), background .3s, color .3s; }
.step:hover .step-circle { transform: translateY(-5px) scale(1.05); background: var(--grad); color: #fff; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .94rem; }

/* ============ CONTATO ============ */
.contact-section { padding: 90px 0 clamp(80px,10vh,120px); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: linear-gradient(155deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(28px,5vw,50px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); pointer-events: none; }
.contact-info { position: relative; z-index: 1; }
.contact-info h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 10px 0 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.05rem; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.contact-channel { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; transition: .25s; }
.contact-channel:hover { border-color: var(--border-strong); background: rgba(176,38,255,.1); transform: translateX(4px); }
.cc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(176,38,255,.12); color: var(--brand-light); flex-shrink: 0; }
.cc-icon.wa { background: rgba(37,211,102,.14); color: #25d366; }
.cc-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); color: #fff; }
.contact-channel span:last-child { display: flex; flex-direction: column; }
.contact-channel small { color: var(--text-dim); font-size: .78rem; }
.contact-channel strong { font-size: 1rem; word-break: break-word; }
.contact-form { background: rgba(6,5,12,.55); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,4vw,32px); backdrop-filter: blur(8px); position: relative; z-index: 1; }
.contact-form h3 { font-size: 1.35rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; font-family: inherit; font-size: 16px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(176,38,255,.18); }
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: .82rem; color: var(--text-dim); margin-top: 12px; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin: 16px 0 20px; font-size: .95rem; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: .25s; }
.footer-social a:hover { color: #fff; background: var(--grad); transform: translateY(-3px); border-color: transparent; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-dim); font-size: .85rem; }
.heart { color: #ff4d6d; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%,100%{transform:scale(1)} 25%{transform:scale(1.25)} 40%{transform:scale(1)} }

/* ============ WHATS FLOAT ============ */
.whats-float { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .25s; animation: wpulse 2.5s infinite; }
.whats-float:hover { transform: scale(1.1); }
@keyframes wpulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ============ REVEAL + STAGGER ============ */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .reveal.visible { opacity: 1; transform: none; }
.stagger .reveal:nth-child(2) { transition-delay: .08s; }
.stagger .reveal:nth-child(3) { transition-delay: .16s; }
.stagger .reveal:nth-child(4) { transition-delay: .24s; }
.stagger .reveal:nth-child(5) { transition-delay: .32s; }
.stagger .reveal:nth-child(6) { transition-delay: .40s; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; min-height: 340px; }
  .hero-actions, .badge { justify-content: center; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps::before { display: none; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 82%; max-width: 320px; flex-direction: column; justify-content: center; gap: 26px; background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .35s ease; padding: 40px; }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .brand-name { font-size: 1.05rem; }
  .hero { padding-top: 120px; }
  .scroll-down { display: none; }
  .services-grid, .steps, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .cursor-glow { display: none; }
}

@media (max-width: 460px) {
  .services-grid, .tech-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats > div > span { font-size: .74rem; }
  .float-chip { font-size: .8rem; padding: 7px 12px; }
  .chip-2, .chip-3 { display: none; }
  .whats-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 18px; right: 18px; }
}

/* acessibilidade: respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-content > * { opacity: 1; }
}

/* =========================================================
   NOVIDADES v4: nav-actions, tema, voltar ao topo,
   seção Sobre, Portfólio + tema claro
   ========================================================= */

/* ----- nav actions / botões de ícone ----- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1rem; cursor: pointer; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.icon-btn:hover { background: rgba(176,38,255,.14); border-color: var(--border-strong); transform: translateY(-2px); color: var(--brand-light); }

/* ----- voltar ao topo ----- */
.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.05rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s, background .25s, color .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ----- SOBRE ----- */
.sobre-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.sobre-text .eyebrow { margin-bottom: 18px; }
.sobre-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.sobre-text p { color: var(--text-muted); margin-bottom: 16px; }
.sobre-text p strong { color: var(--text); }
.sobre-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.sobre-list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-weight: 500; }
.sobre-list i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; background: var(--grad); color: #fff; flex-shrink: 0; }
.sobre-panel { display: flex; flex-direction: column; gap: 20px; }
.sobre-mission {
  background: linear-gradient(155deg, rgba(124,0,240,.18), var(--surface-2)); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden;
}
.sobre-mission > i { font-size: 1.6rem; color: var(--brand-light); margin-bottom: 16px; display: block; }
.sobre-mission h3 { font-size: 1.3rem; margin-bottom: 10px; }
.sobre-mission p { color: var(--text-muted); }
.sobre-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; transition: transform .3s, border-color .3s; }
.mini:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mini i { font-size: 1.3rem; color: var(--brand-light); margin-bottom: 12px; display: block; }
.mini strong { display: block; font-family: 'Space Grotesk'; font-size: 1.05rem; margin-bottom: 4px; }
.mini span { font-size: .85rem; color: var(--text-dim); }

/* ----- PORTFÓLIO ----- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.project:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-thumb { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; font-size: 2.8rem; color: rgba(255,255,255,.92); overflow: hidden; }
.project-thumb::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; }
.project-thumb i { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); transition: transform .4s var(--ease); }
.project:hover .project-thumb i { transform: scale(1.12); }
.project-cat { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; background: rgba(0,0,0,.32); color: #fff; backdrop-filter: blur(6px); }
.thumb-1 { background: linear-gradient(135deg, #7c00f0, #b026ff); }
.thumb-2 { background: linear-gradient(135deg, #5a00c4, #00b89a); }
.thumb-3 { background: linear-gradient(135deg, #1f8b4c, #25d366); }
.thumb-4 { background: linear-gradient(135deg, #b026ff, #ff4d6d); }
.thumb-5 { background: linear-gradient(135deg, #0088cc, #7c00f0); }
.thumb-6 { background: linear-gradient(135deg, #ff7043, #b026ff); }
.project-body { padding: 24px 24px 28px; }
.project-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.project-body p { color: var(--text-muted); font-size: .94rem; margin-bottom: 16px; }

/* ----- responsivo das novas seções ----- */
@media (max-width: 880px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .sobre-minis { grid-template-columns: 1fr; }
  .icon-btn { width: 40px; height: 40px; }
  .to-top { left: 16px; bottom: 18px; width: 44px; height: 44px; }
}

/* =========================================================
   TEMA CLARO
   ========================================================= */
:root[data-theme="light"] {
  --bg: #f5f3fb;
  --bg-2: #ece8f8;
  --surface: #ffffff;
  --surface-2: #f1ecfb;
  --border: rgba(124,0,240,.16);
  --border-strong: rgba(124,0,240,.34);
  --text: #1b1533;
  --text-muted: #56506f;
  --text-dim: #837caa;
  --grad-text: linear-gradient(120deg, #7c00f0, #5a00c4 50%, #00a08a);
  --shadow: 0 24px 50px -24px rgba(80,40,160,.30);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(124,0,240,.12), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(0,180,150,.05), transparent 70%);
}
[data-theme="light"] .navbar.scrolled { background: rgba(255,255,255,.82); }
[data-theme="light"] .float-chip { background: rgba(255,255,255,.9); }
[data-theme="light"] .contact-form { background: rgba(255,255,255,.7); }
[data-theme="light"] .project-thumb::after { opacity: .25; }

/* =========================================================
   v5: Planos, Depoimentos, FAQ, Auth, Dashboard
   ========================================================= */
.hidden { display: none !important; }

/* nav: link Entrar */
.nav-login { color: var(--text-muted); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 50px; transition: .25s; }
.nav-login:hover { color: var(--brand-light); border-color: var(--border-strong); }
.nav-login i { font-size: .8rem; }

/* ----- PLANOS ----- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.plan:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan.featured { background: linear-gradient(155deg, rgba(124,0,240,.18), var(--surface-2)); border-color: var(--border-strong); position: relative; }
.plan h3 { font-size: 1.35rem; margin-bottom: 14px; }
.plan-price { display: flex; flex-direction: column; margin-bottom: 16px; }
.plan-price small { font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.plan-price strong { font-family: 'Space Grotesk'; font-size: 2.2rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan-price strong span { font-size: .9rem; -webkit-text-fill-color: var(--text-dim); }
.plan-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 22px; }
.plan-list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: .92rem; }
.plan-list i { color: var(--brand-light); font-size: .8rem; margin-top: 5px; }
.plans-note { text-align: center; color: var(--text-dim); font-size: .82rem; margin-top: 24px; }

/* ----- DEPOIMENTOS ----- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; margin: 0; transition: transform .3s, border-color .3s; }
.testi:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.testi-stars { color: #ffc14d; margin-bottom: 16px; letter-spacing: 2px; }
.testi blockquote { color: var(--text); font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
.testi figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 16px; }
.testi figcaption strong { font-family: 'Space Grotesk'; font-size: 1rem; }
.testi figcaption span { color: var(--text-dim); font-size: .85rem; }

/* ----- FAQ ----- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 24px; transition: border-color .25s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--brand-light); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding: 0 0 20px; font-size: .97rem; }

/* ----- AUTH (login / registro) ----- */
.auth-body { min-height: 100vh; display: flex; }
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: auto; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-brand { font-size: 1.3rem; }
.auth-card { width: 100%; background: linear-gradient(155deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 50px; padding: 5px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 11px; border-radius: 50px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem; transition: .25s; }
.auth-tab.active { background: var(--grad); color: #fff; }
.auth-form h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 22px; }
.auth-msg { margin-top: 14px; font-size: .88rem; font-weight: 600; min-height: 1.2em; text-align: center; }
.auth-msg.ok { color: #34d399; }
.auth-msg.err { color: #ff6b6b; }
.auth-back { color: var(--text-dim); font-size: .9rem; transition: color .2s; }
.auth-back:hover { color: var(--brand-light); }

/* ----- 404 ----- */
.shell-center { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; position: relative; z-index: 1; }
.err-card { max-width: 460px; }
.err-code { font-family: 'Space Grotesk'; font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err-card h1 { font-size: 1.6rem; margin: 8px 0 10px; }
.err-card p { color: var(--text-muted); margin-bottom: 26px; }

/* ----- DASHBOARD ----- */
.dash { position: relative; z-index: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 28px 24px 60px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.dash-content h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 6px 0 10px; }
.dash-sub { color: var(--text-muted); margin-bottom: 32px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.dash-stat i { font-size: 1.4rem; color: var(--brand-light); margin-bottom: 10px; display: block; }
.dash-stat strong { display: block; font-family: 'Space Grotesk'; font-size: 1.8rem; }
.dash-stat span { font-size: .8rem; color: var(--text-dim); }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.dash-card h3 { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.dash-empty { text-align: center; padding: 30px 10px; color: var(--text-dim); }
.dash-empty i { font-size: 2.6rem; color: var(--brand); opacity: .5; margin-bottom: 14px; }
.dash-empty p { margin-bottom: 18px; }
.dash-loading { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 1.1rem; }

/* ----- responsivo novo ----- */
@media (max-width: 880px) {
  .plans-grid, .testi-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .dash-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   v6: Dashboard, Projetos, Admin, extras
   ========================================================= */
.dash-actions { display: flex; gap: 10px; align-items: center; }
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
.dash-side { position: sticky; top: 20px; }
.acc-line { color: var(--text-muted); font-size: .92rem; margin-bottom: 12px; word-break: break-word; }
.acc-line small { color: var(--text-dim); }

/* projetos */
.proj-form { display: flex; gap: 10px; margin-bottom: 18px; }
.proj-form input { flex: 1; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: .95rem; }
.proj-form input:focus { outline: none; border-color: var(--brand-light); }
.proj-list { display: grid; gap: 10px; }
.proj-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color .2s; }
.proj-item:hover { border-color: var(--border-strong); }
.proj-info { display: flex; flex-direction: column; gap: 2px; }
.proj-info strong { font-size: .98rem; }
.proj-info small { color: var(--text-dim); font-size: .82rem; }
.proj-status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.proj-del { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 8px; border-radius: 8px; transition: .2s; }
.proj-del:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }
.proj-empty { text-align: center; padding: 30px 10px; color: var(--text-dim); }
.proj-empty i { font-size: 2.2rem; color: var(--brand); opacity: .5; display: block; margin-bottom: 10px; }

/* badge verificação */
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; background: rgba(255,107,107,.12); color: #ff8a8a; }
.vbadge.ok { background: rgba(52,211,153,.12); color: #34d399; }

/* link esqueci senha */
.auth-forgot { display: block; text-align: center; margin-top: 14px; color: var(--text-dim); font-size: .85rem; transition: color .2s; }
.auth-forgot:hover { color: var(--brand-light); }

/* toast */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 50px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-brand); z-index: 200; animation: toastIn .3s ease; }
@keyframes toastIn { from{opacity:0; transform: translate(-50%, 12px)} to{opacity:1; transform: translate(-50%, 0)} }

/* admin */
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-table { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.arow { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 10px; align-items: center; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.arow strong { font-size: .92rem; }
.arow small { color: var(--text-dim); font-size: .8rem; }
.amute { color: var(--text-dim); font-size: .72rem; text-align: right; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 50px; margin-left: 4px; }
.vok { color: #34d399; }

/* responsivo */
@media (max-width: 880px) {
  .dash-grid, .admin-cols { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 680px) {
  .arow { grid-template-columns: 1fr; }
  .amute { text-align: left; }
}

/* =========================================================
   v7: Login premium + Google Auth
   ========================================================= */
.auth-body-pro { align-items: center; justify-content: center; padding: 24px; }
.auth-grid-bg {
  position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(176,38,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(176,38,255,.16) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 76%);
}
.auth-shell-wide {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: stretch;
  gap: 22px;
  padding: 0;
}
.auth-hero-panel,
.auth-card-pro {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
}
.auth-hero-panel {
  min-height: 620px;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(80% 60% at 10% 10%, rgba(176,38,255,.26), transparent 60%),
    linear-gradient(155deg, rgba(19,16,30,.78), rgba(6,5,12,.72));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero-panel::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -150px; bottom: -150px;
  background: radial-gradient(circle, rgba(0,229,192,.16), transparent 68%); pointer-events: none;
}
.auth-brand-pro { align-self: flex-start; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.04); }
.auth-hero-copy { position: relative; z-index: 1; max-width: 540px; }
.auth-hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3.7rem); letter-spacing: -.04em; margin: 16px 0 18px; }
.auth-hero-copy p { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; }
.auth-proof-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-proof-grid div { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: 18px; padding: 18px 14px; }
.auth-proof-grid i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(176,38,255,.14); color: var(--brand-light); margin-bottom: 12px; }
.auth-proof-grid strong { display: block; font-family: 'Space Grotesk'; font-size: .98rem; }
.auth-proof-grid span { display: block; color: var(--text-dim); font-size: .78rem; line-height: 1.35; margin-top: 3px; }
.auth-card-pro {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 38px);
  background:
    linear-gradient(155deg, rgba(26,21,48,.92), rgba(19,16,30,.86)),
    var(--surface);
}
.auth-card-pro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at 100% 0%, rgba(176,38,255,.14), transparent 46%);
}
.auth-card-head, .auth-form, .google-auth-wrap, .auth-divider { position: relative; z-index: 1; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-light); font-weight: 700; font-size: .82rem; margin-bottom: 16px; }
.auth-card-pro .auth-tabs { margin-bottom: 22px; }
.auth-card-pro .auth-form h2 { font-family: 'Space Grotesk'; font-size: 1.55rem; margin-bottom: 6px; }
.google-auth-wrap { margin-bottom: 18px; }
.google-button-slot { min-height: 44px; display: grid; place-items: center; }
.google-button-slot.is-loading { opacity: .7; pointer-events: none; }
.google-fallback {
  width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--text-muted); font: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.google-msg { min-height: 0; margin-top: 9px; font-size: .78rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: .78rem; margin: 16px 0 20px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field-icon { position: relative; }
.field-icon > i { position: absolute; left: 14px; bottom: 14px; color: var(--text-dim); font-size: .95rem; pointer-events: none; }
.field-icon input { padding-left: 42px; }
.field-password input { padding-right: 48px; }
.pass-toggle { position: absolute; right: 10px; bottom: 8px; width: 36px; height: 36px; border-radius: 10px; border: none; background: transparent; color: var(--text-dim); cursor: pointer; transition: color .2s, background .2s; }
.pass-toggle:hover { color: var(--brand-light); background: rgba(176,38,255,.10); }
.auth-back-pro { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }

[data-theme="light"] .auth-card-pro { background: rgba(255,255,255,.86); }
[data-theme="light"] .auth-hero-panel { background: linear-gradient(155deg, rgba(255,255,255,.78), rgba(241,236,251,.78)); }
[data-theme="light"] .auth-proof-grid div, [data-theme="light"] .auth-brand-pro { background: rgba(255,255,255,.55); }

@media (max-width: 920px) {
  .auth-shell-wide { grid-template-columns: 1fr; max-width: 520px; }
  .auth-hero-panel { min-height: auto; gap: 34px; }
  .auth-proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .auth-body-pro { padding: 16px; }
  .auth-card-pro, .auth-hero-panel { padding: 24px 18px; border-radius: 22px; }
  .auth-hero-copy h1 { font-size: 2rem; }
  .auth-brand-pro .brand-name { font-size: .98rem; }
}

/* admin: teste de e-mail */
.mail-card { margin-bottom: 22px; }
.mail-actions { display: flex; gap: 10px; align-items: center; }
.mail-actions input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: .95rem; }
.mail-actions input:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(176,38,255,.18); }
@media (max-width: 680px) { .mail-actions { flex-direction: column; align-items: stretch; } }

.google-oauth-link {
  width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255,255,255,.045); color: var(--text); font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: .22s;
}
.google-oauth-link:hover { border-color: transparent; background: var(--grad); color: #fff; transform: translateY(-2px); }

/* =========================================================
   v8: Login limpo, discreto e sem exposição de detalhes internos
   ========================================================= */
.login-clean-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: #070511;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}
.login-clean-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.login-clean-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(124,0,240,.24), transparent 65%),
    radial-gradient(560px 360px at 10% 95%, rgba(0,229,192,.10), transparent 70%),
    linear-gradient(180deg, #080612 0%, #05040a 100%);
}
.login-clean-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 25%, transparent 78%);
}
.login-clean-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.login-clean-bg span:nth-child(1) { width: 260px; height: 260px; background: #7c00f0; top: 12%; left: 12%; animation: drift 16s ease-in-out infinite; }
.login-clean-bg span:nth-child(2) { width: 220px; height: 220px; background: #00e5c0; right: 12%; bottom: 18%; opacity: .18; animation: drift 18s ease-in-out infinite reverse; }
.login-clean-bg span:nth-child(3) { width: 180px; height: 180px; background: #b026ff; right: 22%; top: 18%; opacity: .22; animation: drift 20s ease-in-out infinite; }
.login-clean-shell {
  position: relative; z-index: 1;
  width: min(100%, 430px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.login-clean-logo {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 14px;
  border: 1px solid rgba(176,38,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(16px);
  transition: transform .22s, border-color .22s, background .22s;
}
.login-clean-logo:hover { transform: translateY(-2px); border-color: rgba(176,38,255,.48); background: rgba(255,255,255,.07); }
.login-clean-logo img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(124,0,240,.45)); }
.login-clean-logo strong { font-family: 'Space Grotesk'; letter-spacing: -.02em; }
.login-clean-logo span { color: var(--brand-light); }
.login-clean-card {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(176,38,255,.28);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(15,12,28,.74);
  box-shadow: 0 30px 90px -35px rgba(0,0,0,.92), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(22px) saturate(145%);
}
.login-clean-heading { text-align: center; margin-bottom: 22px; }
.login-clean-pill {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; padding: 6px 12px;
  border-radius: 999px;
  color: #d9b3ff;
  background: rgba(176,38,255,.10);
  border: 1px solid rgba(176,38,255,.24);
  font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.login-clean-heading h1 { font-size: clamp(1.75rem, 6vw, 2.35rem); letter-spacing: -.035em; margin-bottom: 6px; }
.login-clean-heading p:last-child { color: var(--text-muted); font-size: .95rem; }
.login-clean-tabs.auth-tabs { margin: 0 0 18px; background: rgba(5,4,10,.55); border-color: rgba(176,38,255,.18); }
.login-clean-google { margin-bottom: 16px; }
.login-google-main.google-oauth-link { margin-top: 0; height: 48px; background: rgba(255,255,255,.075); }
.login-clean-divider { margin: 14px 0 18px; }
.login-clean-form .field { margin-bottom: 15px; }
.login-clean-form .field label { color: #c8c0e7; }
.login-clean-form .field input {
  min-height: 48px;
  border-radius: 15px;
  background: rgba(5,4,10,.62);
  border-color: rgba(176,38,255,.18);
}
.login-clean-form .field input:hover { border-color: rgba(176,38,255,.30); }
.login-clean-form .field input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(176,38,255,.16); }
.login-clean-submit { min-height: 49px; margin-top: 4px; }
.login-clean-links { display: flex; justify-content: center; margin-top: 13px; }
.login-clean-links a, .login-clean-back { color: var(--text-dim); font-size: .9rem; transition: color .2s, transform .2s; }
.login-clean-links a:hover, .login-clean-back:hover { color: var(--brand-light); }
.login-clean-back { display: inline-flex; align-items: center; gap: 8px; }
.login-clean-card .auth-msg { margin-top: 12px; }
@media (max-width: 480px) {
  .login-clean-card { padding: 24px 18px; border-radius: 24px; }
  .login-clean-body { padding: 22px 14px; }
}

/* =========================================================
   v9: Ajustes finos de responsividade (mobile/tablet)
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body.auth-body, .login-clean-body { min-height: 100svh; }

@media (max-width: 920px) {
  .dash {
    width: 100%;
    max-width: 100%;
    padding: max(18px, env(safe-area-inset-top)) clamp(14px, 4vw, 22px) max(34px, env(safe-area-inset-bottom));
  }

  .dash-top {
    gap: 14px;
    margin-bottom: 30px;
    align-items: center;
  }

  .dash-top .brand {
    min-width: 0;
    gap: 10px;
  }

  .dash-top .brand-logo {
    width: clamp(40px, 10vw, 54px);
    height: clamp(40px, 10vw, 54px);
    flex: 0 0 auto;
  }

  .dash-top .brand-name {
    font-size: clamp(1rem, 4vw, 1.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .dash-actions .btn-sm {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .dash-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .dash-sub {
    font-size: clamp(.95rem, 4vw, 1.05rem);
    margin-bottom: 24px;
  }

  .dash-card {
    padding: clamp(20px, 5vw, 28px);
    border-radius: 24px;
  }

  .dash-card h3 {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    line-height: 1.25;
    flex-wrap: wrap;
  }

  .dash-grid,
  .admin-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dash-side {
    position: static;
  }

  .admin-table {
    max-height: none;
    overflow: visible;
  }

  .arow {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    word-break: break-word;
  }

  .amute {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    padding-inline: 16px;
  }

  .dash-top {
    margin-bottom: 26px;
  }

  .dash-actions .btn-sm {
    font-size: .9rem;
    padding-inline: 12px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-stat {
    padding: 18px 16px;
  }

  .proj-form,
  .mail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .proj-form input,
  .mail-actions input,
  .proj-form .btn,
  .mail-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .proj-item {
    align-items: flex-start;
    padding: 14px;
  }

  .proj-del {
    flex: 0 0 auto;
  }

  .eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .auth-body {
    display: block;
  }

  .auth-bg .orb {
    filter: blur(80px);
  }
}

@media (max-width: 520px) {
  .dash {
    padding-inline: 14px;
  }

  .dash-top .brand-logo {
    width: 42px;
    height: 42px;
  }

  .dash-actions .btn-sm i + * {
    display: none;
  }

  .dash-actions .btn-sm {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 16px;
  }

  .dash-actions .btn-sm i {
    margin: 0;
  }

  .dash-card {
    border-radius: 22px;
  }

  .admin-cols .dash-card,
  .mail-card {
    min-height: auto;
  }

  .admin-table:empty::after {
    content: "Nada para mostrar.";
    color: var(--text-dim);
    font-size: .9rem;
  }

  .login-clean-shell {
    width: 100%;
  }

  .login-clean-card {
    padding: 22px 16px;
  }

  .login-clean-heading h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 380px) {
  .dash-top .brand-name {
    max-width: 145px;
  }

  .dash-content h1 {
    font-size: 2rem;
  }

  .dash-card h3 {
    font-size: 1.1rem;
  }

  .btn,
  .field input,
  .field select,
  .field textarea {
    font-size: 15px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .login-clean-body,
  .auth-body {
    align-items: flex-start;
    padding-top: 18px;
  }

  .login-clean-card {
    margin-bottom: 18px;
  }
}

/* =========================================================
   v10: Botões do topo do Dashboard/Admin
   ========================================================= */
.dash-top-btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border-color: rgba(176,38,255,.28);
  box-shadow: 0 10px 28px -18px rgba(176,38,255,.55);
}
.dash-top-btn i { font-size: .95rem; }
.dash-top-btn .btn-label { display: inline-block; }
.dash-top-btn:hover {
  background: rgba(176,38,255,.16);
  border-color: rgba(176,38,255,.48);
}

@media (max-width: 560px) {
  .dash-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .dash-actions {
    display: flex;
    gap: 8px;
  }
  .dash-top-btn.btn-sm {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
  }
  .dash-top-btn .btn-label {
    display: none !important;
  }
  .dash-top-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .dash-top-btn.btn-sm {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 16px;
  }
}

/* =========================================================
   v11: Conta, projetos editáveis e admin completo
   ========================================================= */
.proj-form-full { display: grid; grid-template-columns: 1fr; gap: 10px; }
.proj-form-full input, .proj-form-full select, .mini-form input, .proj-edit-item input, .proj-edit-item select, .proj-edit-item textarea, .row-actions select {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: .95rem;
}
.proj-form-full input:focus, .proj-form-full select:focus, .mini-form input:focus, .proj-edit-item input:focus, .proj-edit-item select:focus, .proj-edit-item textarea:focus, .row-actions select:focus { outline: none; border-color: var(--brand-light); }
.proj-edit-item { align-items: stretch; }
.proj-edit-item .proj-info { flex: 1; display: grid; gap: 8px; }
.proj-edit-item textarea { min-height: 72px; resize: vertical; }
.proj-actions, .row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proj-save { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.account-card { display: grid; gap: 12px; }
.mini-form { display: grid; gap: 8px; margin-bottom: 2px; }
.mini-form label { color: var(--text-dim); font-size: .82rem; font-weight: 700; }
.danger-btn, .mini-del { color: #ff8a8a !important; border-color: rgba(255,107,107,.25) !important; }
.danger-btn:hover, .mini-del:hover { background: rgba(255,107,107,.11) !important; }
.admin-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.system-box { margin-bottom: 20px; }
.admin-row { grid-template-columns: 1fr 1.2fr auto; }
.mini-del { width: 38px; height: 38px; border: 1px solid var(--border); background: transparent; border-radius: 10px; cursor: pointer; }
@media (max-width: 760px) {
  .admin-actions-bar { display: grid; grid-template-columns: 1fr; }
  .admin-actions-bar .btn { width: 100%; }
  .admin-row { grid-template-columns: 1fr; }
  .row-actions { width: 100%; }
  .row-actions select { flex: 1; }
  .proj-edit-item { flex-direction: column; }
  .proj-actions { justify-content: flex-end; }
}

/* =========================================================
   v12: Página dedicada de perfil + resposta de leads
   ========================================================= */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.profile-grid .danger-zone { grid-column: 1 / -1; }
.profile-form { display: grid; gap: 12px; }
.profile-form .field { margin-bottom: 0; }
.profile-page .dash-card { overflow: hidden; }
.lead-reply { color: #c9a7ff !important; }
.lead-reply:hover { color: #fff !important; background: rgba(176,38,255,.16) !important; }
.admin-row b { word-break: break-word; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } .profile-grid .danger-zone { grid-column: auto; } }

/* =========================================================
   v13: Foto de perfil
   ========================================================= */
.avatar-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-preview, .dash-avatar {
  width: 112px; height: 112px; object-fit: cover; border-radius: 30px;
  border: 1px solid var(--border-strong); background: var(--bg-2); box-shadow: 0 18px 40px -24px var(--brand-glow);
}
.avatar-actions { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.avatar-file-label { cursor: pointer; }
.profile-photo-card { grid-column: 1 / -1; }
.dash-user-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 10px; }
.dash-user-head h1 { margin: 0; }
.dash-avatar { width: 74px; height: 74px; border-radius: 22px; }
@media (max-width: 560px) {
  .avatar-preview { width: 96px; height: 96px; border-radius: 26px; }
  .dash-avatar { width: 58px; height: 58px; border-radius: 18px; }
  .dash-user-head { gap: 12px; }
}

/* =========================================================
   v14: Espaçamento dos botões do perfil
   ========================================================= */
.profile-page .dash-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-page .profile-form {
  gap: 14px;
}
.profile-page .profile-form .btn,
.profile-page .dash-card > .btn,
.profile-page .avatar-actions .btn {
  margin-top: 4px;
}
.profile-page #passForm {
  margin-bottom: 8px;
}
.profile-page #resendVerify,
.profile-page #unlinkGoogle,
.profile-page #deleteAccount {
  margin-top: 8px;
  min-height: 48px;
}
.profile-page .danger-zone .acc-line {
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .profile-page .dash-card {
    gap: 16px;
  }
  .profile-page #resendVerify,
  .profile-page #unlinkGoogle,
  .profile-page #deleteAccount {
    margin-top: 10px;
    min-height: 52px;
  }
}

/* =========================================================
   v15: Chat realtime responsivo
   ========================================================= */
.chat-card { display: grid; gap: 12px; }
.chat-select, .chat-form input {
  width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: .95rem;
}
.chat-presence, .chat-status { color: var(--text-dim); font-size: .86rem; min-height: 1.2em; }
.chat-messages { min-height: 260px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 18px; }
.chat-msg { max-width: 86%; padding: 10px 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); word-break: break-word; }
.chat-msg.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(124,0,240,.42), rgba(176,38,255,.24)); border-color: var(--border-strong); }
.chat-msg.theirs { align-self: flex-start; }
.chat-msg b { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.chat-msg p { margin: 0; }
.chat-msg small { display: block; margin-top: 6px; color: var(--text-dim); font-size: .72rem; }
.chat-msg audio { width: min(260px, 70vw); display: block; }
.chat-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.chat-form .btn { width: 46px; height: 46px; padding: 0; border-radius: 15px; }
.recording { color: #ff8a8a !important; border-color: rgba(255,107,107,.5) !important; box-shadow: 0 0 0 4px rgba(255,107,107,.12); }
.seen { color: #34d399; }
@media (max-width: 620px) {
  .chat-messages { min-height: 220px; max-height: 360px; padding: 10px; }
  .chat-msg { max-width: 94%; }
  .chat-form { grid-template-columns: 1fr auto auto; gap: 6px; }
  .chat-form .btn { width: 42px; height: 42px; }
}

/* =========================================================
   v16: Página dedicada de chat empresarial
   ========================================================= */
.chat-page-body { display: block; }
.chat-page { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; min-height: 100svh; padding: 22px clamp(14px, 3vw, 26px) 26px; display: flex; flex-direction: column; gap: 18px; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-top-actions { display: flex; align-items: center; gap: 8px; }
.chat-layout { flex: 1; display: grid; grid-template-columns: 330px 1fr; gap: 18px; min-height: 0; }
.chat-sidebar, .chat-window { background: rgba(19,16,30,.86); border: 1px solid var(--border-strong); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(16px); overflow: hidden; }
.chat-sidebar { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-sidebar h3 { font-size: 1.2rem; }
.chat-search { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); }
.conversation-list { display: grid; gap: 10px; overflow-y: auto; padding-right: 2px; }
.conversation-item { text-align: left; border: 1px solid var(--border); background: rgba(255,255,255,.035); color: var(--text); border-radius: 16px; padding: 12px; cursor: pointer; display: grid; gap: 4px; position: relative; }
.conversation-item.active, .conversation-item:hover { border-color: var(--border-strong); background: rgba(176,38,255,.12); }
.conversation-item small { color: var(--text-dim); word-break: break-word; }
.conversation-item span { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.chat-window { display: grid; grid-template-rows: auto auto 1fr auto auto; min-height: calc(100svh - 112px); }
.chat-window-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.chat-window-head h1 { font-size: clamp(1.25rem, 4vw, 1.8rem); margin: 0; }
.chat-window-head p { color: var(--text-dim); margin: 4px 0 0; }
.chat-dropzone { margin: 12px 18px 0; padding: 18px; border: 1px dashed var(--brand-light); border-radius: 16px; text-align: center; color: var(--brand-light); background: rgba(176,38,255,.08); }
.chat-messages-page { min-height: 0; max-height: none; border: none; border-radius: 0; background: transparent; padding: 18px; }
.chat-file-img { max-width: min(320px, 70vw); border-radius: 14px; display: block; }
.chat-file-video { max-width: min(360px, 75vw); border-radius: 14px; display: block; }
.chat-file-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--text); }
.chat-composer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.chat-composer input { width: 100%; padding: 13px 15px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); }
.chat-composer .btn { width: 46px; height: 46px; padding: 0; border-radius: 15px; }
@media (max-width: 900px) { .chat-layout { grid-template-columns: 1fr; } .chat-sidebar { max-height: 260px; } .chat-window { min-height: 70svh; } }
@media (max-width: 560px) { .chat-page { padding: 14px 10px 14px; } .chat-top .brand-name { font-size: 1rem; } .chat-top-actions .btn { padding: 10px 12px; } .chat-window, .chat-sidebar { border-radius: 22px; } .chat-window-head { padding: 14px; } .chat-messages-page { padding: 12px; } .chat-composer { grid-template-columns: auto 1fr auto auto; padding: 10px; gap: 6px; } .chat-composer .btn { width: 40px; height: 40px; } .chat-composer input { min-width: 0; padding: 11px 12px; } }

/* =========================================================
   v17: Chat estilo WhatsApp + gravação segura no mobile
   ========================================================= */
.wa-chat-body { min-height: 100svh; background: #09040f; color: var(--text); overflow: hidden; }
.wa-chat-app { position: relative; z-index: 1; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-columns: 340px minmax(0, 1fr); gap: 12px; }
.wa-sidebar, .wa-window { min-height: 0; border: 1px solid rgba(176,38,255,.20); background: rgba(13, 9, 24, .92); box-shadow: 0 24px 80px -36px #000; overflow: hidden; }
.wa-sidebar { border-radius: 24px; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.wa-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wa-side-head h2 { margin: 0; font-size: 1.25rem; }
.wa-search { width: 100%; padding: 12px 14px; border-radius: 14px; background: #080511; border: 1px solid rgba(176,38,255,.18); color: var(--text); }
.wa-conv-list { overflow-y: auto; display: grid; gap: 9px; }
.wa-conv { position: relative; text-align: left; cursor: pointer; border: 1px solid rgba(176,38,255,.13); border-radius: 17px; padding: 12px; background: rgba(255,255,255,.035); color: var(--text); }
.wa-conv.active, .wa-conv:hover { border-color: rgba(176,38,255,.45); background: rgba(176,38,255,.12); }
.wa-conv b { display: block; }
.wa-conv small { color: var(--text-dim); word-break: break-word; }
.wa-conv span { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #06130a; font-weight: 900; font-size: .75rem; }
.wa-window { height: 100%; border-radius: 26px; display: grid; grid-template-rows: auto auto 1fr auto auto; background: radial-gradient(900px 520px at 88% 0%, rgba(124,0,240,.28), transparent 62%), #0b0614; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(176,38,255,.16); background: rgba(15, 10, 28, .92); }
.wa-icon-btn, .wa-round, .wa-send { border: 1px solid rgba(176,38,255,.20); background: rgba(255,255,255,.045); color: var(--text); border-radius: 15px; width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; }
.wa-icon-btn:hover, .wa-round:hover { border-color: rgba(176,38,255,.45); background: rgba(176,38,255,.12); }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #160b28; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(176,38,255,.25); }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-title { min-width: 0; flex: 1; }
.wa-title h1 { margin: 0; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-title p { margin: 2px 0 0; color: var(--text-dim); font-size: .78rem; }
.wa-state { font-size: .72rem; color: #ff8a8a; }
.wa-state.on { color: #34d399; }
.wa-drop { margin: 10px 12px 0; padding: 18px; border: 1px dashed #b026ff; border-radius: 18px; color: #d8b4fe; text-align: center; background: rgba(176,38,255,.10); }
.wa-messages { min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background-image: radial-gradient(rgba(176,38,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.wa-bubble { max-width: min(76%, 560px); padding: 8px 10px 6px; border-radius: 16px; word-break: break-word; box-shadow: 0 12px 34px -28px #000; }
.wa-bubble.theirs { align-self: flex-start; background: #171023; border-top-left-radius: 5px; border: 1px solid rgba(255,255,255,.05); }
.wa-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, #7c00f0, #a40dff); border-top-right-radius: 5px; }
.wa-bubble b { display: block; font-size: .72rem; opacity: .78; margin-bottom: 3px; }
.wa-bubble p { margin: 0; white-space: pre-wrap; }
.wa-bubble small { display: block; text-align: right; color: rgba(255,255,255,.62); font-size: .68rem; margin-top: 4px; }
.wa-file-img { max-width: min(320px, 68vw); border-radius: 12px; display: block; }
.wa-file-video { max-width: min(360px, 70vw); border-radius: 12px; display: block; }
.wa-file-link { display: inline-flex; gap: 9px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.18); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.wa-typing { min-height: 22px; color: var(--text-dim); font-size: .84rem; padding: 0 16px; }
.wa-composer { padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; background: rgba(15,10,28,.96); border-top: 1px solid rgba(176,38,255,.16); }
.wa-composer input { min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; background: #080511; border: 1px solid rgba(176,38,255,.18); color: var(--text); }
.wa-send { background: linear-gradient(135deg, #25d366, #13b957); color: #041208; border-color: transparent; }
.wa-mic.recording { background: rgba(255,65,85,.22); color: #ff8a8a; border-color: rgba(255,65,85,.55); animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 8px rgba(255,65,85,.10); } }
.wa-recording { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 999px; background: rgba(15,10,28,.96); border: 1px solid rgba(255,65,85,.45); box-shadow: 0 18px 50px -25px #000; color: #fff; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4160; animation: recBlink .8s infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.wa-recording button { width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 860px) { .wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .wa-sidebar { max-height: 245px; } }
@media (max-width: 560px) { .wa-chat-app { padding: 0; } .wa-window { border-radius: 0; border: none; height: 100svh; } .wa-sidebar { border-radius: 0; border-inline: none; border-top: none; max-height: 230px; } .wa-head { padding-top: max(10px, env(safe-area-inset-top)); } .wa-bubble { max-width: 88%; } .wa-composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); grid-template-columns: auto 1fr auto auto; gap: 6px; } .wa-icon-btn, .wa-round, .wa-send { width: 40px; height: 40px; border-radius: 14px; } .wa-composer input { height: 42px; padding-inline: 12px; } .wa-recording { bottom: calc(68px + env(safe-area-inset-bottom)); width: calc(100% - 28px); justify-content: center; font-size: .9rem; } }

/* =========================================================
   v18: Chat mais próximo do WhatsApp (dark/mobile first)
   ========================================================= */
.wa-chat-body {
  --wa-bg: #0b141a;
  --wa-panel: #111b21;
  --wa-panel-2: #202c33;
  --wa-line: rgba(134,150,160,.16);
  --wa-text: #e9edef;
  --wa-muted: #8696a0;
  --wa-green: #00a884;
  --wa-green-dark: #005c4b;
  --wa-bubble-in: #202c33;
  --wa-bubble-out: #005c4b;
  background: var(--wa-bg) !important;
  color: var(--wa-text) !important;
  font-family: 'Inter', system-ui, sans-serif;
}
.wa-chat-body::before { display: none !important; }
.wa-chat-app {
  background: var(--wa-bg);
  padding: 0;
  max-width: 1480px;
  margin: 0 auto;
}
.wa-chat-app:has(.wa-sidebar:not(.hidden)) { gap: 0; grid-template-columns: 360px minmax(0, 1fr); }
.wa-sidebar,
.wa-window {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--wa-panel) !important;
}
.wa-sidebar { border-right: 1px solid var(--wa-line) !important; padding: 0 !important; }
.wa-side-head {
  min-height: 64px;
  padding: 10px 14px;
  background: var(--wa-panel-2);
  border-bottom: 1px solid var(--wa-line);
}
.wa-side-head h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.08rem; }
.wa-search {
  margin: 10px 12px;
  width: calc(100% - 24px) !important;
  background: var(--wa-panel-2) !important;
  border: none !important;
  border-radius: 10px !important;
  color: var(--wa-text) !important;
}
.wa-conv-list { padding: 0 8px 10px; }
.wa-conv {
  border: none !important;
  border-bottom: 1px solid var(--wa-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 13px 12px !important;
}
.wa-conv.active,
.wa-conv:hover { background: #2a3942 !important; }
.wa-conv small { color: var(--wa-muted) !important; }
.wa-conv span { background: var(--wa-green) !important; color: #001b14 !important; }
.wa-window { grid-template-rows: 64px auto 1fr auto auto; }
.wa-head {
  min-height: 64px;
  padding: 10px 14px !important;
  background: var(--wa-panel-2) !important;
  border-bottom: 1px solid var(--wa-line) !important;
}
.wa-icon-btn,
.wa-round,
.wa-send {
  border: none !important;
  background: transparent !important;
  color: var(--wa-muted) !important;
  border-radius: 50% !important;
}
.wa-icon-btn:hover,
.wa-round:hover { background: rgba(233,237,239,.08) !important; color: var(--wa-text) !important; }
.wa-avatar { border: none !important; background: #0b141a !important; }
.wa-title h1 { color: var(--wa-text); font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; }
.wa-title p { color: var(--wa-muted) !important; }
.wa-state { display: none; }
.wa-messages {
  padding: 18px clamp(10px, 3vw, 48px) !important;
  background-color: #0b141a;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.025) 0 1px, transparent 1px),
    radial-gradient(circle at 80px 70px, rgba(255,255,255,.018) 0 1px, transparent 1px) !important;
  background-size: 110px 110px !important;
}
.wa-bubble {
  max-width: min(72%, 620px) !important;
  padding: 6px 8px 5px !important;
  border-radius: 7.5px !important;
  box-shadow: 0 1px .5px rgba(0,0,0,.25) !important;
  color: var(--wa-text) !important;
  position: relative;
}
.wa-bubble.theirs {
  background: var(--wa-bubble-in) !important;
  border: none !important;
  border-top-left-radius: 0 !important;
}
.wa-bubble.mine {
  background: var(--wa-bubble-out) !important;
  border: none !important;
  border-top-right-radius: 0 !important;
}
.wa-bubble p { line-height: 1.42; font-size: .95rem; }
.wa-bubble small { color: rgba(233,237,239,.62) !important; font-size: .66rem !important; }
.wa-file-img { max-width: min(330px, 72vw) !important; border-radius: 6px !important; }
.wa-file-video { max-width: min(360px, 76vw) !important; border-radius: 6px !important; }
.wa-file-link { background: rgba(0,0,0,.18) !important; border: none !important; border-radius: 8px !important; }
.wa-typing { background: var(--wa-bg); color: var(--wa-green) !important; padding: 4px 18px !important; }
.wa-composer {
  background: var(--wa-panel-2) !important;
  border-top: none !important;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) !important;
}
.wa-composer input {
  height: 44px !important;
  border-radius: 22px !important;
  background: #2a3942 !important;
  border: none !important;
  color: var(--wa-text) !important;
}
.wa-composer input::placeholder { color: var(--wa-muted); }
.wa-send {
  background: var(--wa-green) !important;
  color: #001f18 !important;
}
.wa-mic.recording {
  background: #e74c5e !important;
  color: white !important;
}
.wa-recording {
  background: var(--wa-panel-2) !important;
  border: 1px solid rgba(231,76,94,.45) !important;
  color: var(--wa-text) !important;
  bottom: 74px !important;
}
.rec-dot { background: #e74c5e !important; }
@media (max-width: 860px) {
  .wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-columns: 1fr; grid-template-rows: 230px 1fr; }
}
@media (max-width: 560px) {
  .wa-window { height: 100svh; grid-template-rows: max(58px, calc(52px + env(safe-area-inset-top))) auto 1fr auto auto; }
  .wa-head { padding-top: max(8px, env(safe-area-inset-top)) !important; }
  .wa-bubble { max-width: 86% !important; }
  .wa-messages { padding: 12px 8px !important; }
  .wa-recording { width: calc(100% - 24px) !important; bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
}

/* =========================================================
   v19: Chat com visual ainda mais fiel ao WhatsApp Web/Mobile
   ========================================================= */
.wa-chat-body {
  --w-bg: #0b141a;
  --w-side: #111b21;
  --w-header: #202c33;
  --w-input: #2a3942;
  --w-border: rgba(134,150,160,.15);
  --w-text: #e9edef;
  --w-muted: #8696a0;
  --w-out: #005c4b;
  --w-in: #202c33;
  --w-green: #00a884;
  background: var(--w-bg) !important;
}
.wa-chat-app { height: 100dvh; background: var(--w-bg) !important; padding: 0 !important; }
.wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-columns: 31.5% 68.5% !important; gap: 0 !important; }
.wa-sidebar { background: var(--w-side) !important; border-right: 1px solid var(--w-border) !important; border-radius: 0 !important; }
.wa-side-head { height: 59px !important; min-height: 59px !important; background: var(--w-header) !important; padding: 0 16px !important; }
.wa-side-head h2 { font-size: 1.05rem !important; font-weight: 600 !important; }
.wa-search { height: 35px !important; margin: 7px 12px !important; border-radius: 8px !important; background: var(--w-header) !important; color: var(--w-text) !important; font-size: .9rem !important; }
.wa-conv-list { gap: 0 !important; padding: 0 !important; }
.wa-conv { min-height: 72px; padding: 12px 16px 12px 72px !important; border-bottom: 1px solid var(--w-border) !important; position: relative; }
.wa-conv::before { content: ''; position: absolute; left: 16px; top: 13px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#7c00f0,#b026ff); }
.wa-conv b { font-size: .98rem; font-weight: 500; }
.wa-conv small { display: block; margin-top: 4px; font-size: .83rem; }
.wa-conv.active { background: #2a3942 !important; }
.wa-window { background: var(--w-bg) !important; border-radius: 0 !important; grid-template-rows: 59px auto 1fr auto auto !important; }
.wa-head { height: 59px !important; min-height: 59px !important; padding: 0 16px !important; background: var(--w-header) !important; border-bottom: 1px solid var(--w-border) !important; gap: 12px !important; }
.wa-head .wa-icon-btn:first-child { margin-left: -8px; }
.wa-avatar { width: 40px !important; height: 40px !important; background: #101a20 !important; }
.wa-title h1 { font-size: 1rem !important; font-weight: 500 !important; }
.wa-title p { font-size: .78rem !important; color: var(--w-muted) !important; }
.wa-head-actions { display: flex; align-items: center; gap: 2px; }
.wa-icon-btn, .wa-round, .wa-send { color: var(--w-muted) !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; }
.wa-icon-btn:hover, .wa-round:hover { background: rgba(233,237,239,.08) !important; }
.wa-state { display: none !important; }
.wa-messages {
  padding: 18px 8.5% !important;
  background-color: #0b141a !important;
  background-image:
    linear-gradient(rgba(255,255,255,.025), rgba(255,255,255,.025)),
    radial-gradient(circle at 25px 25px, rgba(255,255,255,.035) 0 1px, transparent 1px),
    radial-gradient(circle at 75px 65px, rgba(255,255,255,.025) 0 1px, transparent 1px) !important;
  background-size: auto, 96px 96px, 96px 96px !important;
}
.wa-bubble { max-width: 65% !important; padding: 6px 7px 4px 9px !important; margin: 1px 0 !important; border-radius: 7.5px !important; box-shadow: 0 1px .5px rgba(0,0,0,.24) !important; }
.wa-bubble.theirs { background: var(--w-in) !important; border-top-left-radius: 0 !important; }
.wa-bubble.mine { background: var(--w-out) !important; border-top-right-radius: 0 !important; }
.wa-bubble.theirs::before { content: ''; position: absolute; left: -7px; top: 0; border-top: 8px solid var(--w-in); border-left: 8px solid transparent; }
.wa-bubble.mine::before { content: ''; position: absolute; right: -7px; top: 0; border-top: 8px solid var(--w-out); border-right: 8px solid transparent; }
.wa-bubble p { font-size: .92rem !important; line-height: 1.36 !important; }
.wa-bubble small { font-size: .64rem !important; margin-left: 28px; }
.wa-typing { height: 22px; padding: 2px 9% !important; background: var(--w-bg) !important; color: var(--w-green) !important; }
.wa-composer { min-height: 62px; grid-template-columns: auto auto minmax(0,1fr) auto auto !important; background: var(--w-header) !important; padding: 9px 16px !important; gap: 4px !important; }
.wa-composer input { height: 42px !important; background: var(--w-input) !important; border-radius: 8px !important; padding: 0 14px !important; font-size: .95rem !important; }
.wa-send { background: transparent !important; color: var(--w-muted) !important; }
.wa-send i { transform: rotate(45deg); }
.wa-mic.recording { background: #ef5350 !important; color: #fff !important; }
.wa-recording { bottom: 72px !important; background: var(--w-header) !important; border-color: rgba(239,83,80,.55) !important; }
.wa-file-img { border-radius: 6px !important; max-width: min(330px, 60vw) !important; }
.wa-file-video { border-radius: 6px !important; max-width: min(360px, 62vw) !important; }
.wa-file-link { border-radius: 7px !important; background: rgba(0,0,0,.18) !important; }
@media (max-width: 860px) {
  .wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-columns: 1fr !important; grid-template-rows: 212px 1fr !important; }
  .wa-sidebar { border-right: none !important; border-bottom: 1px solid var(--w-border) !important; }
}
@media (max-width: 560px) {
  .wa-chat-app { height: 100svh; }
  .wa-chat-app:has(.wa-sidebar:not(.hidden)) { grid-template-rows: 196px 1fr !important; }
  .wa-head { height: calc(56px + env(safe-area-inset-top)) !important; padding: env(safe-area-inset-top) 8px 0 8px !important; gap: 8px !important; }
  .wa-head-actions .wa-icon-btn:nth-child(1), .wa-head-actions .wa-icon-btn:nth-child(2) { display: none; }
  .wa-avatar { width: 36px !important; height: 36px !important; }
  .wa-title h1 { font-size: .96rem !important; }
  .wa-messages { padding: 10px 8px !important; }
  .wa-bubble { max-width: 82% !important; }
  .wa-composer { min-height: calc(58px + env(safe-area-inset-bottom)); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) 8px !important; grid-template-columns: auto auto minmax(0,1fr) auto auto !important; }
  .wa-round, .wa-send { width: 38px !important; height: 38px !important; }
  .wa-composer input { height: 40px !important; }
  .wa-recording { bottom: calc(62px + env(safe-area-inset-bottom)) !important; width: calc(100% - 18px) !important; }
}

/* =========================================================
   v20: Layout tipo WhatsApp, mas com tema atual Lagos (roxo)
   ========================================================= */
.wa-chat-body {
  --w-bg: #080411;
  --w-side: rgba(13, 8, 25, .96);
  --w-header: rgba(24, 13, 45, .96);
  --w-input: #12091f;
  --w-border: rgba(176, 38, 255, .18);
  --w-text: #f4f1fc;
  --w-muted: #a59fc4;
  --w-out: linear-gradient(135deg, #7c00f0, #b026ff);
  --w-in: rgba(24, 18, 38, .96);
  --w-green: #b026ff;
  --w-accent: #b026ff;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(124,0,240,.38), transparent 65%),
    radial-gradient(460px 320px at 12% 95%, rgba(176,38,255,.12), transparent 70%),
    #080411 !important;
}
.wa-chat-app { background: transparent !important; }
.wa-sidebar,
.wa-window {
  background: rgba(10, 6, 20, .82) !important;
  border-color: rgba(176,38,255,.20) !important;
  backdrop-filter: blur(18px) saturate(145%);
}
.wa-side-head,
.wa-head,
.wa-composer {
  background: rgba(18, 9, 33, .94) !important;
  border-color: rgba(176,38,255,.18) !important;
}
.wa-search,
.wa-composer input {
  background: rgba(5, 3, 12, .72) !important;
  border: 1px solid rgba(176,38,255,.16) !important;
  color: var(--w-text) !important;
}
.wa-search:focus,
.wa-composer input:focus {
  outline: none;
  border-color: rgba(176,38,255,.48) !important;
  box-shadow: 0 0 0 3px rgba(176,38,255,.14);
}
.wa-conv.active,
.wa-conv:hover { background: rgba(176,38,255,.14) !important; }
.wa-conv::before { background: linear-gradient(135deg, #7c00f0, #b026ff) !important; box-shadow: 0 10px 28px -14px rgba(176,38,255,.8); }
.wa-avatar { background: rgba(176,38,255,.10) !important; border: 1px solid rgba(176,38,255,.25) !important; }
.wa-messages {
  background-color: transparent !important;
  background-image:
    radial-gradient(900px 520px at 90% -10%, rgba(124,0,240,.22), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(176,38,255,.08), transparent 60%),
    linear-gradient(rgba(176,38,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,38,255,.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 38px 38px, 38px 38px !important;
}
.wa-bubble.theirs {
  background: rgba(22, 16, 34, .96) !important;
  border: 1px solid rgba(176,38,255,.08) !important;
}
.wa-bubble.mine {
  background: linear-gradient(135deg, #7c00f0, #b026ff) !important;
  color: #fff !important;
}
.wa-bubble.theirs::before { border-top-color: rgba(22, 16, 34, .96) !important; }
.wa-bubble.mine::before { border-top-color: #b026ff !important; }
.wa-bubble small { color: rgba(244,241,252,.68) !important; }
.wa-icon-btn,
.wa-round,
.wa-send { color: #c8b7ee !important; }
.wa-icon-btn:hover,
.wa-round:hover { background: rgba(176,38,255,.13) !important; color: #fff !important; }
.wa-send {
  background: linear-gradient(135deg, #7c00f0, #b026ff) !important;
  color: #fff !important;
  box-shadow: 0 14px 32px -18px rgba(176,38,255,.9);
}
.wa-send i { transform: none !important; }
.wa-typing { background: transparent !important; color: #c084fc !important; }
.wa-state.on { color: #c084fc !important; }
.wa-conv span { background: #b026ff !important; color: #fff !important; }
.wa-recording {
  background: rgba(18, 9, 33, .96) !important;
  border-color: rgba(255,90,120,.45) !important;
}
.wa-file-link { background: rgba(176,38,255,.10) !important; border: 1px solid rgba(176,38,255,.16) !important; }

/* =========================================================
   v21: Avatar/foto ao lado de cada mensagem do chat
   ========================================================= */
.wa-msg-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 2px 0;
}
.wa-msg-row.theirs { justify-content: flex-start; }
.wa-msg-row.mine { justify-content: flex-end; }
.wa-msg-row.mine .wa-msg-avatar { order: 2; }
.wa-msg-row.mine .wa-bubble { order: 1; }
.wa-msg-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(176,38,255,.16);
  border: 1px solid rgba(176,38,255,.25);
  box-shadow: 0 8px 22px -14px rgba(176,38,255,.9);
}
.wa-msg-row .wa-bubble {
  align-self: auto !important;
}
.wa-msg-row.mine .wa-bubble { margin-left: auto; }
.wa-msg-row.theirs .wa-bubble { margin-right: auto; }
@media (max-width: 560px) {
  .wa-msg-row { gap: 5px; }
  .wa-msg-avatar { width: 26px; height: 26px; min-width: 26px; }
  .wa-msg-row.mine .wa-msg-avatar { display: none; }
  .wa-msg-row.mine .wa-bubble { max-width: 86% !important; }
  .wa-msg-row.theirs .wa-bubble { max-width: calc(86% - 31px) !important; }
}

/* =========================================================
   v22: Página de lista de conversas
   ========================================================= */
.conv-body { display: block; min-height: 100svh; }
.conv-shell { position: relative; z-index: 1; width: min(980px, 100%); margin: 0 auto; padding: 24px clamp(14px, 4vw, 24px) 40px; }
.conv-head { margin: 24px 0; }
.conv-head h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin: 10px 0 6px; }
.conv-head p { color: var(--text-muted); }
.conv-card { background: rgba(19,16,30,.86); border: 1px solid var(--border-strong); border-radius: 28px; padding: clamp(16px, 4vw, 24px); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.conv-tools { display: flex; gap: 10px; margin-bottom: 16px; }
.conv-tools .chat-search { flex: 1; }
.conv-page-list { display: grid; gap: 10px; }
.conv-page-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.035); transition: .2s; }
.conv-page-item:hover { border-color: var(--border-strong); background: rgba(176,38,255,.12); transform: translateY(-2px); }
.conv-page-item img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.conv-page-item strong { display: block; font-size: 1rem; }
.conv-page-item small { color: var(--text-dim); }
.conv-page-item p { color: var(--text-muted); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.conv-page-item span { min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .78rem; }
@media (max-width: 620px) { .conv-tools { flex-direction: column; } .conv-tools .btn { width: 100%; } .conv-page-item { grid-template-columns: 46px 1fr auto; padding: 12px; } .conv-page-item img { width: 46px; height: 46px; } }
