@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&display=swap');
:root {
  --bg: #050409;
  --bg1: #0b0812;
  --bg2: #110b1c;
  --bg3: #181027;
  --bg4: #211333;

  --surface: rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.055);
  --surface3: rgba(255,255,255,0.08);

  --border: rgba(168,85,247,0.14);
  --border2: rgba(168,85,247,0.24);
  --border3: rgba(192,90,255,0.38);

  --text: #faf7ff;
  --text2: #d4c5f9;
  --text3: #9c88c7;
  --text4: #6f5b91;

  --accent: #7c22e8;
  --accent2: #bc63ff;
  --accent3: rgba(139,37,235,0.24);
  --accent4: rgba(124,34,232,0.13);
  --accent-border: rgba(176,76,255,0.52);

  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.08);
  --green-border: rgba(34,197,94,0.2);

  --yellow: #facc15;
  --yellow-bg: rgba(250,204,21,0.08);
  --yellow-border: rgba(250,204,21,0.2);

  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.08);
  --red-border: rgba(239,68,68,0.2);

  --blue: #60a5fa;
  --blue-bg: rgba(96,165,250,0.08);
  --blue-border: rgba(96,165,250,0.2);

  --purple: #d16dff;
  --purple-bg: rgba(183,51,255,0.13);
  --purple-border: rgba(205,91,255,0.32);

  --sidebar-w: 248px;

  --radius: 7px;
  --radius-lg: 9px;
  --radius-xl: 11px;
  --radius-2xl: 13px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
.serif { font-family: 'Instrument Serif', serif; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 99px; }

.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}
.bg-glow-tl {
  position: fixed; top: -200px; left: -200px; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
  filter: blur(40px);
}
.bg-glow-br {
  position: fixed; bottom: -200px; right: -200px; width: 500px; height: 500px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 65%);
  filter: blur(40px);
}

h1, h2, h3, h4 { line-height: 1.1; font-weight: 600; }
p { color: var(--text2); }
a { text-decoration: none; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius); border: none;
  font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(188,99,255,0.38), 0 5px 18px rgba(124,34,232,0.32);
}
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 0 1px rgba(209,109,255,0.55), 0 9px 26px rgba(124,34,232,0.42);
}
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--surface3); border-color: var(--border3); }
.btn-ghost {
  background: transparent; color: var(--text2); border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--border2); }
.btn-danger {
  background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border);
}
.btn-danger:hover { background: rgba(239,68,68,0.15); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 14.5px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon {
  width: 34px; height: 34px; padding: 0;
  background: var(--surface2); color: var(--text2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.btn-icon:hover { background: var(--surface3); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label {
  font-size: 11.5px; font-weight: 500; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field input, .field select, .field textarea {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px; font-family: 'Geist', sans-serif;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%; min-width: 0;
}
.field select { appearance: auto; -webkit-appearance: auto; padding-right: 8px; }
.field select option { background: var(--bg2); color: var(--text); }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent4);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap; flex-shrink: 0;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge-green::before { background: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-yellow::before { background: var(--yellow); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.badge-red::before { background: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.badge-blue::before { background: var(--blue); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.badge-purple::before { background: var(--purple); }
.badge-gray { background: var(--surface2); color: var(--text3); border: 1px solid var(--border2); }
.badge-gray::before { background: var(--text4); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; gap: 10px; text-align: center;
  border: 1px dashed var(--border2); border-radius: var(--radius-xl);
}
.empty-state .es-icon { font-size: 32px; opacity: 0.4; }
.empty-state p { color: var(--text3); font-size: 13.5px; }

/* ══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */
#landingView { position: relative; z-index: 1; }

.vyxora-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 52%, rgba(126, 34, 206, 0.15), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.08), transparent 28%),
    #030306;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.72s cubic-bezier(.22,.75,.18,1), visibility 0.72s ease, transform 0.72s cubic-bezier(.22,.75,.18,1);
}
.vyxora-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.018);
}
.vyxora-loader-aurora {
  position: absolute;
  inset: -35%;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(126,34,206,.08) 65deg, transparent 125deg, rgba(168,85,247,.06) 220deg, transparent 300deg),
    radial-gradient(ellipse at center, rgba(139,92,246,.13), transparent 52%);
  filter: blur(42px);
  animation: vyxora-loader-aurora 12s linear infinite;
  pointer-events: none;
}
.vyxora-loader-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(168,85,247,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  animation: vyxora-loader-grid 8s linear infinite;
  pointer-events: none;
}
.vyxora-loader-stage {
  position: relative;
  z-index: 2;
  width: min(96vw, 1540px);
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 34px);
  animation: vyxora-loader-enter .95s cubic-bezier(.16,1,.3,1) both;
}
.vyxora-loader-frame {
  position: relative;
  width: 100%;
  max-height: min(69dvh, 700px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(192,132,252,.25);
  border-radius: clamp(14px, 2vw, 28px);
  background: rgba(3,3,8,.72);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 0 42px rgba(126,34,206,.18),
    0 24px 90px rgba(0,0,0,.68);
}
.vyxora-loader-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, transparent 8%, rgba(216,180,254,.72) 34%, rgba(126,34,206,.18) 57%, transparent 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .64;
  pointer-events: none;
}
.vyxora-loader-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(69dvh, 700px);
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(1.04) contrast(1.02);
  animation: vyxora-loader-breathe 4.6s ease-in-out infinite;
}
.vyxora-loader-shine {
  position: absolute;
  z-index: 3;
  top: -25%;
  bottom: -25%;
  left: -34%;
  width: 24%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), rgba(216,180,254,.22), transparent);
  filter: blur(10px);
  animation: vyxora-loader-shine 3.8s cubic-bezier(.2,.7,.2,1) infinite 1s;
  pointer-events: none;
}
.vyxora-loader-status {
  width: min(86vw, 540px);
  display: grid;
  gap: 11px;
}
.vyxora-loader-status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(233,213,255,.8);
  font-size: clamp(9px, 1.5vw, 11px);
  font-weight: 700;
  letter-spacing: .24em;
  text-shadow: 0 0 16px rgba(168,85,247,.34);
}
.vyxora-loader-dots { display: inline-flex; gap: 4px; }
.vyxora-loader-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d8b4fe;
  box-shadow: 0 0 8px #a855f7;
  animation: vyxora-loader-dot 1.15s ease-in-out infinite;
}
.vyxora-loader-dots i:nth-child(2) { animation-delay: .16s; }
.vyxora-loader-dots i:nth-child(3) { animation-delay: .32s; }
.vyxora-loader-progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(168,85,247,.12);
  box-shadow: 0 0 0 1px rgba(168,85,247,.12), 0 0 20px rgba(126,34,206,.12);
}
.vyxora-loader-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #a855f7 32%, #f3e8ff 68%, transparent);
  box-shadow: 0 0 18px rgba(192,132,252,.88);
  animation: vyxora-loader-progress 1.55s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes vyxora-loader-enter {
  from { opacity: 0; transform: translateY(18px) scale(.975); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes vyxora-loader-breathe {
  0%,100% { transform: scale(1); filter: saturate(1.03) brightness(.96); }
  50% { transform: scale(1.006); filter: saturate(1.08) brightness(1.04); }
}
@keyframes vyxora-loader-shine {
  0%, 18% { left: -34%; opacity: 0; }
  35% { opacity: .7; }
  58%, 100% { left: 116%; opacity: 0; }
}
@keyframes vyxora-loader-progress {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(340%); }
}
@keyframes vyxora-loader-dot {
  0%, 65%, 100% { opacity: .25; transform: translateY(0) scale(.75); }
  32% { opacity: 1; transform: translateY(-2px) scale(1); }
}
@keyframes vyxora-loader-aurora { to { transform: rotate(360deg); } }
@keyframes vyxora-loader-grid { to { background-position: 54px 54px; } }
@media (max-width: 700px) {
  .vyxora-loader { padding-inline: 10px; }
  .vyxora-loader-stage { width: 100%; gap: 22px; }
  .vyxora-loader-frame {
    width: 100%;
    max-height: 58dvh;
    border-radius: 14px;
  }
  .vyxora-loader-banner { max-height: 58dvh; }
  .vyxora-loader-status { width: min(82vw, 420px); }
}
@media (max-width: 430px) and (orientation: portrait) {
  .vyxora-loader-frame { max-height: 44dvh; }
  .vyxora-loader-banner { max-height: 44dvh; }
  .vyxora-loader-status-row { letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .vyxora-loader *, .vyxora-loader *::before, .vyxora-loader *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.brand-mascot {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.42);
}
.brand-mascot-sm { width: 28px; height: 28px; }
.brand-mascot-xs { width: 20px; height: 20px; }

.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  background: rgba(9,9,11,0.7); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.land-nav.scrolled { background: rgba(9,9,11,0.9); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif; font-size: 20px; cursor: pointer;
}
.nav-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); display: grid; place-items: center;
  font-size: 13px; box-shadow: 0 0 16px rgba(99,102,241,0.5);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  background: none; border: none; color: var(--text2); font-family: 'Geist', sans-serif;
  font-size: 13.5px; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.land-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 80px; text-align: center; position: relative;
  max-width: 1180px; margin-inline: auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 99px;
  background: var(--accent4); border: 1px solid var(--accent-border);
  color: var(--accent2); font-size: 12px; font-weight: 500; margin-bottom: 28px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0; letter-spacing: -0.02em;
  max-width: 820px; margin: 0 auto;
}
.hero-title em {
  font-style: italic; color: transparent;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub {
  max-width: 480px; margin: 20px auto 0;
  font-size: 16px; line-height: 1.7; color: var(--text2);
}
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 20px; margin-top: 40px;
  color: var(--text3); font-size: 12.5px; flex-wrap: wrap; justify-content: center;
}
.trust-sep { width: 1px; height: 14px; background: var(--border2); }

.hero-mockup {
  max-width: 960px; margin: 60px auto 0; position: relative; padding: 0 24px;
}
.mockup-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2), transparent 70%);
  filter: blur(30px);
}
.mockup-window {
  background: var(--bg1); border: 1px solid var(--border2);
  border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative; z-index: 1;
}
.mockup-bar {
  height: 44px; background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }
.mockup-bar-title { flex: 1; text-align: center; font-size: 11px; color: var(--text4); letter-spacing: 0.04em; }
.mockup-body { display: flex; min-height: 320px; }
.mockup-sidebar {
  width: 180px; border-right: 1px solid var(--border);
  padding: 12px 10px; background: var(--bg1); flex-shrink: 0;
}
.ms-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text4); font-weight: 600; padding: 8px 8px 4px; }
.ms-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text2); cursor: default; }
.ms-item.active { background: var(--accent4); color: var(--accent2); border: 1px solid var(--accent-border); }
.ms-icon { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; background: var(--surface2); }
.ms-item.active .ms-icon { background: var(--accent3); }
.mockup-content { flex: 1; padding: 16px; min-width: 0; }
.mc-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.mc-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mc-sl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text4); font-weight: 600; }
.mc-sv { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--text); margin-top: 3px; }
.mc-sg { font-size: 10px; color: var(--green); margin-top: 1px; font-weight: 600; }
.mc-list-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text4); margin-bottom: 8px; }
.mc-rows { display: flex; flex-direction: column; gap: 5px; }
.mc-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; }
.mc-av { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; background: var(--accent4); color: var(--accent2); display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 1px solid var(--accent-border); }
.mc-name { font-size: 11.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-meta { font-size: 10px; color: var(--text4); }

.land-section { padding: 100px 24px; position: relative; z-index: 1; }
.section-wrap { max-width: 1040px; margin: 0 auto; }
.section-header { margin-bottom: 56px; text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 4px 12px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text3); font-size: 11.5px; font-weight: 500;
}
.section-title { font-family: 'Instrument Serif', serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.section-title em { font-style: italic; color: var(--accent2); }
.section-sub { color: var(--text2); font-size: 15px; line-height: 1.7; max-width: 620px; margin: 12px auto 0; text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px 24px;
  position: relative; overflow: hidden; transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.step-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(81,20,140,0.22); }
.step-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(99,102,241,0.06), transparent 55%);
  pointer-events: none;
}
.step-num { font-family: 'Instrument Serif', serif; font-size: 56px; line-height: 1; color: transparent; background: linear-gradient(135deg, var(--border3), var(--surface3)); -webkit-background-clip: text; background-clip: text; margin-bottom: 16px; letter-spacing: -0.03em; }
.step-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; background: var(--accent4); border: 1px solid var(--accent-border); display: grid; place-items: center; font-size: 18px; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.feat-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s; }
.feat-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(81,20,140,0.2); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 17px; }
.feat-title { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.feat-desc { font-size: 12.5px; color: var(--text3); line-height: 1.6; }

.segs-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.seg-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text2); cursor: default; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.seg-pill:hover { border-color: var(--accent-border); color: var(--accent2); background: var(--accent4); }

.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.test-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s; }
.test-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(81,20,140,0.2); }
.test-stars { color: var(--yellow); font-size: 13px; letter-spacing: 2px; }
.test-quote { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 15.5px; line-height: 1.65; color: var(--text); flex: 1; }
.test-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.test-av { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: var(--accent4); border: 1px solid var(--accent-border); color: var(--accent2); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.test-name { font-weight: 600; font-size: 13.5px; }
.test-role { font-size: 11.5px; color: var(--text3); margin-top: 1px; }

/* Geometria premium: superfícies firmes, sem aparência de bolhas */
.landing-banner-hero,
.mascot-calm-wrap { border-radius: 14px; }
.sidebar { border-radius: 12px; }
.topbar,
.dash-hero,
.auth-modal,
.modal,
.edit-modal { border-radius: 11px; }
.stat-card,
.panel,
.form-panel,
.client-card,
.svc-card,
.prof-card,
.fin-card,
.config-section,
.step-card,
.feat-card,
.test-card { border-radius: 10px; }
.nav-btn,
.config-tab,
.filter-btn,
.act-btn { border-radius: 7px; }
.stat-card,
.panel,
.form-panel,
.client-card,
.svc-card,
.prof-card,
.fin-card,
.config-section {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover,
.panel:hover,
.client-card:hover,
.svc-card:hover,
.prof-card:hover,
.fin-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(56,14,102,0.16);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.land-cta { padding: 100px 24px; text-align: center; position: relative; z-index: 1; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-title { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.cta-title em { font-style: italic; color: var(--accent2); }
.cta-sub { color: var(--text2); font-size: 15px; line-height: 1.7; margin: 16px auto 0; max-width: 440px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.land-footer { border-top: 1px solid var(--border); padding: 28px 48px; display: flex; align-items: center; justify-content: space-between; color: var(--text3); font-size: 12.5px; position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════════ */
.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(9,9,11,0.85); backdrop-filter: blur(16px);
  align-items: center; justify-content: center; padding: 16px; overflow: auto;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  width: 100%; max-width: 860px; margin: auto;
  background: var(--bg1); border: 1px solid var(--border2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; position: relative; max-height: 92vh; overflow-y: auto;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.97) translateY(10px); } to { opacity:1; transform: none; } }
.auth-panel-left {
  background: linear-gradient(155deg, var(--accent4) 0%, transparent 60%);
  border-right: 1px solid var(--border); padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-panel-left::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 65%);
  pointer-events: none;
}
.auth-left-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-left-title { font-family: 'Instrument Serif', serif; font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.auth-left-title em { font-style: italic; color: var(--accent2); }
.auth-left-desc { color: var(--text2); font-size: 13.5px; line-height: 1.7; max-width: 260px; }
.auth-left-perks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.auth-perk { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text2); font-weight: 500; }
.auth-perk-icon { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; background: var(--accent4); border: 1px solid var(--accent-border); display: grid; place-items: center; font-size: 10px; color: var(--accent2); }
.auth-left-footer { color: var(--text4); font-size: 11.5px; margin-top: auto; padding-top: 20px; }
.auth-form-area { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text2); cursor: pointer;
  display: grid; place-items: center; font-size: 14px; transition: all 0.15s;
}
.auth-close:hover { background: var(--surface3); color: var(--text); border-color: var(--border2); }
.auth-form-title { font-family: 'Instrument Serif', serif; font-size: 26px; margin-bottom: 4px; }
.auth-form-sub { color: var(--text3); font-size: 13px; margin-bottom: 24px; }
.stepper { display: flex; gap: 6px; margin-bottom: 24px; }
.step-dot { flex: 1; height: 3px; border-radius: 99px; background: var(--border2); position: relative; overflow: hidden; }
.step-dot.active::after, .step-dot.done::after { content: ''; position: absolute; inset: 0; border-radius: 99px; background: var(--accent); }
.step-dot.active::after { animation: fillBar 0.35s ease forwards; }
.step-dot.done::after { width: 100%; }
@keyframes fillBar { from{width:0} to{width:100%} }
.auth-switch { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--text3); }
.auth-switch button { background: none; border: none; color: var(--accent2); font-weight: 600; cursor: pointer; font-family: 'Geist', sans-serif; font-size: 12.5px; }
.form-gap { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.form-actions { display: flex; gap: 9px; margin-top: 4px; }

/* ══════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════ */
#dashboardView { min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  position: fixed; left: 12px; top: 12px; bottom: 12px;
  width: var(--sidebar-w); z-index: 50;
  background:
    linear-gradient(180deg, rgba(18,10,30,0.98), rgba(8,5,14,0.98)),
    var(--bg1);
  border: 1px solid rgba(176,76,255,0.28);
  border-radius: 10px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: 0 22px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 10px; margin-bottom: 16px; flex-shrink: 0; font-family: 'Instrument Serif', serif; font-size: 19px; border-bottom: 1px solid rgba(176,76,255,0.13); }
.side-nav-section { flex-shrink: 0; }
.side-nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #a78bfa; font-weight: 700; padding: 12px 10px 6px; }
.side-nav-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(176,76,255,0.25), transparent); margin: 9px 0; }
.nav-btn {
  width: 100%; background: rgba(255,255,255,0.015); border: 1px solid transparent; color: var(--text2);
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px; text-align: left;
  font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease; flex-shrink: 0;
}
.nav-btn .ni { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.045); flex-shrink: 0; transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease; }
.nav-btn:hover { background: rgba(168,85,247,0.08); border-color: rgba(176,76,255,0.24); color: var(--text); transform: translateX(2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015); }
.nav-btn:hover .ni { background: rgba(176,76,255,0.14); border-color: rgba(176,76,255,0.2); transform: scale(1.04); }
.nav-btn.active { background: linear-gradient(90deg, rgba(124,34,232,0.24), rgba(168,85,247,0.13)); color: #eadcff; border: 1px solid rgba(192,90,255,0.62); box-shadow: 0 10px 28px rgba(124,34,232,0.16), inset 0 1px 0 rgba(255,255,255,0.06); }
.nav-btn.active .ni { background: rgba(168,85,247,0.24); border-color: rgba(216,180,254,0.24); }
.side-bottom { margin-top: auto; padding-top: 12px; flex-shrink: 0; }
.side-user-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 8px; }
.side-user-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.side-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: 0 0 12px rgba(99,102,241,0.3); background-size: cover; background-position: center; }
.side-name { font-weight: 600; font-size: 13px; }
.side-plan { font-size: 11px; color: var(--text4); margin-top: 1px; }
.side-link-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 10.5px; color: var(--text4); word-break: break-all; cursor: pointer; transition: border-color 0.15s, color 0.15s; line-height: 1.4; }
.side-link-box:hover { border-color: var(--accent-border); color: var(--accent2); }

.dash-main { margin-left: calc(var(--sidebar-w) + 22px); padding: 12px 16px 48px; min-height: 100vh; max-width: 1600px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: 20px;
  background: rgba(15,15,18,0.8); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  position: sticky; top: 12px; z-index: 40; overflow: visible;
}
.topbar-title h2 { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1; }
.topbar-title p { font-size: 12px; color: var(--text3); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions-clean { flex: 1; display: flex; justify-content: flex-end; }

.top-notify-slot { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 11.5px; font-weight: 500; color: var(--text4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; transition: all 0.2s; }
.top-notify-slot.has-notif { color: var(--text2); border-color: var(--border2); background: rgba(255,255,255,0.055); }
.top-notify-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0; animation: blink 2s ease-in-out infinite; }

.notif-wrap { position: relative; }
.notif-dot { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); display: none; animation: blink 2s ease-in-out infinite; }
.notif-dot.on { display: block; }

.view { display: none; animation: fadeUp 0.22s ease; }
.view.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.mobile-nav-bar { display: none; }

/* ══════════════════════════════════════════
   DASHBOARD CARDS / STATS
══════════════════════════════════════════ */
.dash-hero {
  background: linear-gradient(135deg, var(--accent4) 0%, transparent 50%);
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 65%);
  pointer-events: none;
}
.dash-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-hero-inner h1 { font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1; }
.dash-hero-inner h1 em { font-style: italic; color: var(--accent2); }
.dash-hero-inner p { color: var(--text2); margin-top: 6px; font-size: 13px; }

.dash-hero-featured {
  height: clamp(300px, 32vw, 390px);
  padding: 0;
  background: #05030b;
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 22px 70px rgba(76, 29, 149, 0.22), inset 0 0 0 1px rgba(255,255,255,0.025);
  isolation: isolate;
}

#landingView > .land-hero,
#landingView > .hero-mockup { display: none; }

.landing-banner-hero {
  position: relative;
  width: min(100% - 36px, 1500px);
  height: clamp(340px, 42vw, 520px);
  margin: 78px auto 32px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.34);
  border-radius: 28px;
  background: #050208;
  box-shadow: 0 30px 100px rgba(76, 29, 149, 0.28), 0 0 60px rgba(168, 85, 247, 0.1);
}
.landing-banner-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.landing-banner-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4,2,9,0.82), transparent);
}
.landing-banner-actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(92%, 660px);
}
.landing-banner-actions .btn { min-width: 220px; backdrop-filter: blur(14px); }

.mascot-calm-wrap {
  position: relative;
  height: clamp(300px, 32vw, 390px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 28px;
  background: #07040d;
  box-shadow: 0 24px 80px rgba(76, 29, 149, 0.18);
}
.mascot-calm-banner {
  display: grid;
  place-items: center;
  height: 100%;
  background: #050208;
}
.mascot-calm-banner img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mascot-calm-copy {
  position: absolute;
  z-index: 2;
  left: 2.8%;
  right: 2.8%;
  bottom: 3.8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border-top: 0;
  background: none;
}
.mascot-calm-copy > div { max-width: 68%; }
.mascot-calm-copy .section-title { max-width: none; margin-top: 7px; font-size: clamp(21px, 2.05vw, 28px); line-height: 1.08; white-space: nowrap; text-shadow: 0 3px 18px rgba(0,0,0,0.95); }
.mascot-calm-copy .section-tag { margin-bottom: 0; padding: 3px 9px; font-size: 10px; background: rgba(10,6,18,0.56); backdrop-filter: blur(8px); }
.mascot-calm-copy .btn { flex: 0 0 auto; min-height: 40px; padding: 9px 17px; border-radius: 12px; font-size: 13px; }
.dash-hero-featured::after {
  inset: auto 0 0;
  width: 100%;
  height: 38%;
  border-radius: 0;
  background: linear-gradient(to top, rgba(4, 2, 10, 0.72), transparent);
  z-index: 1;
}
.dash-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dash-hero-action {
  position: absolute;
  z-index: 3;
  left: auto;
  right: 1.7%;
  top: 3.2%;
  bottom: auto;
  width: min(22%, 240px);
  display: grid;
  gap: 8px;
}
.dash-hero-action-label {
  color: rgba(255,255,255,0.76);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.dash-copy-button {
  position: relative;
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(233, 213, 255, 0.72);
  border-radius: 11px;
  background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #7c3aed);
  background-size: 180% 180%;
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.25), 0 10px 34px rgba(126,34,206,0.62), 0 0 30px rgba(192,132,252,0.34);
  animation: dash-copy-glow 2.4s ease-in-out infinite, dash-copy-gradient 4s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-copy-button::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 28%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: dash-copy-shine 3s ease-in-out infinite;
}
.dash-copy-button:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 14px 42px rgba(126,34,206,0.72), 0 0 40px rgba(192,132,252,0.48); }
.dash-copy-button:active { transform: scale(0.98); }
.dash-copy-button.is-copied { background: linear-gradient(135deg, #059669, #10b981); animation: none; }
@keyframes dash-copy-glow { 50% { box-shadow: 0 0 0 4px rgba(168,85,247,0.12), 0 12px 40px rgba(126,34,206,0.72), 0 0 42px rgba(192,132,252,0.45); } }
@keyframes dash-copy-gradient { 50% { background-position: 100% 50%; } }
@keyframes dash-copy-shine { 0%, 62% { left: -35%; } 88%, 100% { left: 120%; } }

.section-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text4); font-weight: 600; margin: 20px 0 10px; padding-left: 2px; }

.stats-grid { display: grid; gap: 10px; margin-bottom: 10px; }
.stats-grid-4 { grid-template-columns: repeat(4,1fr); }
.stats-grid-3 { grid-template-columns: repeat(3,1fr); }
.stats-grid-2 { grid-template-columns: repeat(2,1fr); }
.stats-grid-6 { grid-template-columns: repeat(6,1fr); }

.stat-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 14px 16px; position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stat-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--surface2), transparent 55%); pointer-events: none; }
.stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.stat-value { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1; margin-top: 4px; color: var(--text); }
.stat-value.green { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.red { color: var(--red); }
.stat-value.blue { color: var(--blue); }
.stat-value.purple { color: var(--purple); }
.stat-note { font-size: 11px; color: var(--text4); margin-top: 3px; }
.stat-note.up { color: var(--green); }
.stat-icon { position: absolute; right: 12px; top: 12px; font-size: 16px; opacity: 0.15; }

.content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }

.panel { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.panel-title { font-family: 'Instrument Serif', serif; font-size: 17px; font-weight: 600; }
.panel-sub { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.panel-action { font-size: 12.5px; color: var(--accent2); background: none; border: none; cursor: pointer; font-family: 'Geist', sans-serif; font-weight: 600; }
.panel-action:hover { color: var(--text); }
.panel-body { padding: 14px 16px; }

.apt-list { display: flex; flex-direction: column; gap: 8px; }
.apt-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.15s; flex-direction: column; }
.apt-item:hover { border-color: var(--border2); }
.apt-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.apt-av { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: var(--accent4); border: 1px solid var(--accent-border); color: var(--accent2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.apt-info { flex: 1; min-width: 0; }
.apt-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-meta { font-size: 11px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text4); font-weight: 600; text-align: center; padding: 3px 0; }
.cal-day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--text3); cursor: default; background: var(--surface); transition: background 0.15s, color 0.15s; }
.cal-day.busy { background: var(--accent4); color: var(--accent2); border: 1px solid var(--accent-border); }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 0 12px rgba(99,102,241,0.3); }

   AGENDA VIEW
══════════════════════════════════════════ */
.form-panel { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px; margin-bottom: 14px; }
.form-panel-title { font-family: 'Instrument Serif', serif; font-size: 17px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; align-items: end; }
#view-agenda .form-grid {
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(140px, 0.9fr)
    minmax(210px, 1.35fr)
    minmax(180px, 1.15fr)
    minmax(145px, 0.9fr)
    minmax(130px, 0.8fr);
}
#view-agenda .form-grid .field:nth-child(7),
#view-agenda .form-grid .field:nth-child(8) { min-width: 150px; }
@media (max-width: 1500px) {
  #view-agenda .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.filter-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 7px 13px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2);
  font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--accent4); color: var(--accent2); border-color: var(--accent-border); }
.filter-count { background: var(--surface3); color: var(--text3); padding: 1px 6px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.filter-btn.active .filter-count { background: var(--accent3); color: var(--accent2); }

.timeline { display: flex; flex-direction: column; }
.tl-block { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tl-block:last-child { border-bottom: none; }
.tl-time { font-size: 11px; font-weight: 600; color: var(--text4); min-width: 40px; text-align: right; padding-top: 14px; flex-shrink: 0; }
.tl-line { width: 1px; background: var(--border2); position: relative; flex-shrink: 0; }
.tl-line::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(99,102,241,0.5); }
.tl-content { flex: 1; min-width: 0; }

.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 0; transition: border-color 0.15s; position: relative; overflow: visible; }
.tl-card:hover { border-color: var(--border2); }
.tl-card-top { display: flex; align-items: flex-start; gap: 10px; padding-right: 44px; }
.tl-card-info { flex: 1; min-width: 0; }
.tl-card-name { font-weight: 600; font-size: 13px; word-break: break-word; overflow-wrap: anywhere; white-space: normal; }
.tl-card-meta { font-size: 11.5px; color: var(--text3); margin-top: 2px; word-break: break-word; white-space: normal; }
.tl-card-status { flex-shrink: 0; }
.tl-card .action-menu { position: absolute; top: 10px; right: 10px; }

.apt-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 10px; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 11px; border-radius: 8px; border: none; cursor: pointer; font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 600; transition: transform 0.12s, opacity 0.12s; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.act-btn:hover { transform: translateY(-1px); }
.act-btn:active { transform: scale(0.97); }
.act-btn.confirm { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.act-btn.refuse { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.act-btn.reschedule { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.act-btn.conclude { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.act-btn.whatsapp { background: rgba(37,211,102,0.1); color: #25d366; border: 1px solid rgba(37,211,102,0.2); }
.muted-actions { opacity: 0.65; }

/* ══════════════════════════════════════════
   CLIENTES / SERVIÇOS / PROFISSIONAIS
══════════════════════════════════════════ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; }

.client-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px; padding-right: 54px; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: visible; }
.client-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.client-card.inactive { opacity: 0.5; }
.cc-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.cc-av { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; background: var(--accent4); border: 1px solid var(--accent-border); color: var(--accent2); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.cc-name { font-weight: 600; font-size: 13.5px; word-break: break-word; overflow-wrap: anywhere; }
.cc-phone { font-size: 12px; color: var(--text3); margin-top: 2px; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.cc-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; }
.cc-sl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text4); font-weight: 600; }
.cc-sv { font-family: 'Instrument Serif', serif; font-size: 16px; color: var(--text); margin-top: 3px; }

.svc-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px; padding-right: 54px; position: relative; overflow: visible; transition: border-color 0.2s, transform 0.2s; }
.svc-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.svc-card.inactive { opacity: 0.5; }
.svc-price { font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--text); word-break: break-word; }
.svc-name { font-weight: 600; font-size: 14px; margin-top: 4px; word-break: break-word; }
.svc-dur { font-size: 12px; color: var(--text3); margin-top: 4px; }
.svc-status { margin-top: 10px; }

.prof-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 50px 16px 16px; text-align: center; position: relative; overflow: visible; transition: border-color 0.2s, transform 0.2s; }
.prof-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.prof-card.inactive { opacity: 0.5; }
.prof-av { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 10px; background: var(--accent4); border: 1px solid var(--accent-border); color: var(--accent2); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.prof-name { font-weight: 600; font-size: 14px; word-break: break-word; }
.prof-esp { font-size: 12px; color: var(--text3); margin-top: 3px; }
.prof-phone { font-size: 11.5px; color: var(--text4); margin-top: 4px; }
.online-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--green); margin-top: 10px; }
.online-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.online-dot.off { color: var(--text4); }
.online-dot.off::before { background: var(--text4); box-shadow: none; }

/* ══════════════════════════════════════════
   FINANCEIRO
══════════════════════════════════════════ */
.fin-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.fin-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; position: relative; overflow: hidden; transition: border-color 0.2s; }
.fin-card:hover { border-color: var(--border2); }
.fin-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, var(--surface3), transparent 50%); pointer-events: none; }
.fin-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; position: relative; }
.fin-value { font-family: 'Instrument Serif', serif; font-size: 34px; color: var(--text); margin-top: 6px; position: relative; }
.fin-sub { font-size: 12px; color: var(--text4); margin-top: 4px; position: relative; }

/* ══════════════════════════════════════════
   CONFIG
══════════════════════════════════════════ */
.config-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 10px; margin-bottom: 12px; scrollbar-width: none; }
.config-tabs::-webkit-scrollbar { display: none; }
.config-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text3); white-space: nowrap; font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.config-tab:hover { border-color: var(--border2); color: var(--text); }
.config-tab.active { border-color: var(--accent-border); background: var(--accent4); color: var(--accent2); }
.config-tab-content { max-width: 860px; }
.config-tab-panel { display: none; }
.config-tab-panel.active { display: block; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.config-section { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; }
.config-title { font-family: 'Instrument Serif', serif; font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.config-hint { color: var(--text4); font-size: 11px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.02); }
.config-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; }
.schedule-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.sch-day { border: 1px solid var(--border); border-radius: 9px; padding: 10px 8px; text-align: center; }
.sch-day-name { font-size: 10px; font-weight: 700; color: var(--text4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px; }

/* ── HORÁRIOS PREMIUM ── */
.horarios-card {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 18px;
}
.horarios-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text4);
  margin-bottom: 14px;
}
.dias-toggle-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.dia-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.dia-toggle-abrev {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
}
.dia-toggle-full {
  font-size: 9px;
  font-weight: 600;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dia-toggle:hover {
  border-color: var(--accent-border);
  background: var(--accent3);
}
.dia-toggle.ativo {
  background: var(--accent);
  border-color: var(--accent);
}
.dia-toggle.ativo .dia-toggle-abrev,
.dia-toggle.ativo .dia-toggle-full {
  color: #fff;
}
.intervalo-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.intervalo-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  text-align: center;
}
.intervalo-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent3);
  color: var(--accent2);
}
.intervalo-btn.ativo {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════
   ACTION MENU
══════════════════════════════════════════ */
.action-menu { position: absolute; top: 10px; right: 10px; z-index: 80; display: inline-block; }
.action-menu-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border2); background: var(--surface2); color: var(--text3); cursor: pointer; display: grid; place-items: center; font-size: 18px; font-weight: 800; transition: all 0.15s; line-height: 1; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.action-menu-btn:hover { background: var(--accent4); border-color: var(--accent-border); color: var(--accent2); }
.action-dropdown { position: fixed; min-width: 190px; z-index: 99999; background: rgba(15,15,18,0.99); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 5px; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05); opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; transform: scale(0.97) translateY(-4px); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.action-dropdown.open { opacity: 1; pointer-events: all; transform: scale(1) translateY(0); }
.action-item { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text2); cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: 'Geist', sans-serif; transition: background 0.12s, color 0.12s; min-height: 42px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.action-item:hover { background: var(--surface3); color: var(--text); }
.action-item.danger { color: var(--red); }
.action-item.danger:hover { background: var(--red-bg); }
.action-item.success { color: var(--green); }
.action-item.success:hover { background: var(--green-bg); }
.action-item-icon { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; background: var(--surface2); flex-shrink: 0; }
.action-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ══════════════════════════════════════════
   MODAIS
══════════════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(9,9,11,0.85); backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg1); border: 1px solid var(--border2); border-radius: var(--radius-2xl); padding: 28px; width: 100%; max-width: 440px; position: relative; box-shadow: 0 32px 90px rgba(0,0,0,0.65); animation: modalIn 0.2s ease; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-title { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text3); margin-bottom: 20px; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.55; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text3); cursor: pointer; display: grid; place-items: center; font-size: 14px; transition: all 0.15s; z-index: 10; }
.modal-close:hover { background: var(--surface3); color: var(--text); }
.modal-actions { display: flex; gap: 9px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

.motivo-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.motivo-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border2); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; transition: border-color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; }
.motivo-item:hover { border-color: var(--border3); background: var(--surface2); }
.motivo-item.sel { border-color: var(--red-border); background: var(--red-bg); color: var(--red); }
.motivo-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border3); flex-shrink: 0; display: grid; place-items: center; transition: border-color 0.15s; }
.motivo-item.sel .motivo-radio { border-color: var(--red); background: var(--red); }
.motivo-item.sel .motivo-radio::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.confirm-modal { text-align: center; max-width: 360px; }
.confirm-icon-wrap { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 22px; }
.confirm-icon-wrap.danger { background: var(--red-bg); border: 1px solid var(--red-border); }
.confirm-icon-wrap.warn { background: var(--yellow-bg); border: 1px solid var(--yellow-border); }
.confirm-icon-wrap.info { background: var(--accent4); border: 1px solid var(--accent-border); }
.confirm-title { font-family: 'Instrument Serif', serif; font-size: 21px; margin-bottom: 8px; }
.confirm-body { color: var(--text3); font-size: 13px; line-height: 1.6; margin-bottom: 0; }

.edit-overlay { display: none; position: fixed; inset: 0; z-index: 450; background: rgba(9,9,11,0.85); backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 16px; }
.edit-overlay.open { display: flex; }
.edit-modal { background: var(--bg1); border: 1px solid var(--border2); border-radius: var(--radius-2xl); padding: 28px; width: 100%; max-width: 500px; position: relative; box-shadow: 0 32px 90px rgba(0,0,0,0.65); animation: modalIn 0.2s ease; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.edit-title { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 20px; }

/* ══════════════════════════════════════════
   FOTOS DE PERFIL
══════════════════════════════════════════ */
.profile-images-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-image-card { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.profile-image-card:hover { border-color: var(--accent-border); background: var(--surface); }
.profile-image-title { color: var(--text); font-size: 12.5px; font-weight: 700; }
.profile-image-sub { color: var(--text4); font-size: 11px; line-height: 1.35; }
.profile-image-preview { display: grid; place-items: center; overflow: hidden; background: var(--surface2); border: 1px dashed var(--border2); color: var(--accent2); font-size: 22px; background-size: cover; background-position: center; }
.profile-image-preview.is-avatar { width: 58px; height: 58px; border-radius: 50%; }
.profile-image-preview.is-cover { width: 86px; height: 86px; border-radius: 50%; }
.profile-image-card input { display: none; }
.profile-image-action { color: var(--accent2); font-size: 11.5px; font-weight: 700; }
.foto-editor-modal { width: min(430px, calc(100vw - 24px)); }
.foto-editor-stage { display: grid; place-items: center; padding: 22px 0 18px; margin-top: 8px; border-radius: var(--radius-lg); background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 62%); }
.foto-editor-circle { width: min(270px, 72vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid rgba(139,92,246,0.9); box-shadow: 0 0 0 7px rgba(139,92,246,0.12), 0 22px 50px rgba(0,0,0,0.48); background-color: var(--surface2); background-size: 100%; background-position: 50% 50%; background-repeat: no-repeat; cursor: grab; touch-action: none; user-select: none; }
.foto-editor-circle:active { cursor: grabbing; }

/* ══════════════════════════════════════════
   PÁGINA PÚBLICA — PREMIUM
══════════════════════════════════════════ */
#publicView {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 0;
  background: var(--bg);
}

.pub-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 100px;
}

.pub-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text3);
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.18s ease;
  text-transform: uppercase;
}
.pub-back:hover {
  border-color: var(--accent-border);
  background: var(--accent4);
  color: var(--accent2);
}

.pub-hero {
  position: relative;
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 36px 40px 32px;
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139,92,246,0.07) 0%, rgba(192,132,252,0.04) 40%, transparent 70%);
}
.pub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(139,92,246,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(192,132,252,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.pub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 80%);
  pointer-events: none;
}

.pub-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: center;
}

.pub-cover {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(139,92,246,0.6);
  box-shadow: 0 0 0 6px rgba(139,92,246,0.1), 0 20px 48px rgba(0,0,0,0.4);
  background-size: cover;
  background-position: center;
  background-color: var(--bg3);
  flex-shrink: 0;
  display: block;
}

/* Avatar com iniciais quando não há foto */
.pub-cover-inicial {
  background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(192,132,252,0.15) 100%) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.pub-cover-letra {
  font-family: 'Instrument Serif', serif;
  font-size: 46px;
  font-style: italic;
  color: var(--accent2);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  text-shadow: 0 2px 16px rgba(139,92,246,0.3);
}

.pub-hero-content { min-width: 0; }

.pub-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--accent4);
  border: 1px solid var(--accent-border);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}

.pub-hero p {
  color: var(--text3);
  font-size: 13.5px;
  line-height: 1.65;
}

.pub-location {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15,15,18,0.5);
  color: var(--text3);
  font-size: 12.5px;
  line-height: 1.45;
}
.pub-location a { color: var(--accent2); font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.pub-location a:hover { color: var(--text); }

.pub-socials {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.pub-social { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--border2); background: var(--surface2); color: var(--text2); transition: all 0.15s; letter-spacing: 0.01em; }
.pub-social:hover { border-color: var(--accent-border); color: var(--accent2); background: var(--accent4); }

.pub-confirm-screen { text-align: center; padding: 60px 20px; }
.pub-tick { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 20px; background: var(--green-bg); border: 1px solid var(--green-border); display: grid; place-items: center; font-size: 30px; }
.pub-confirm-screen h2 { font-family: 'Instrument Serif', serif; font-size: 30px; margin-bottom: 10px; }
.pub-confirm-screen p { color: var(--text2); font-size: 14px; line-height: 1.7; max-width: 360px; margin: 0 auto; }

.pub-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 20px;
}

.pub-panel {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: border-color 0.2s;
}
.pub-panel:hover { border-color: var(--border2); }

.pub-panel-title {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pub-panel-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
  flex-shrink: 0;
}

.pub-panel-sep { height: 1px; background: var(--border); margin: 18px 0; }

.choices { display: flex; flex-direction: column; gap: 7px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--border2); background: var(--surface2); transform: translateX(2px); }
.choice.active { border-color: var(--accent-border); background: var(--accent4); box-shadow: 0 0 0 1px var(--accent-border) inset; }

.choice-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 15px; transition: background 0.15s; }
.choice.active .choice-icon { background: var(--accent3); border-color: var(--accent-border); }

.choice-title { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; word-break: break-word; color: var(--text); }
.choice.active .choice-title { color: var(--accent2); }

.choice-sub { font-size: 11.5px; color: var(--text4); margin-top: 2px; }
.choice.active .choice-sub { color: var(--text3); }

.choice-price { margin-left: auto; font-family: 'Instrument Serif', serif; font-size: 16px; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.choice.active .choice-price { color: var(--accent2); }

.pub-panel .form-gap { gap: 11px; }
.pub-panel .field { gap: 5px; }
.pub-panel .field label { font-size: 10.5px; font-weight: 700; color: var(--text4); text-transform: uppercase; letter-spacing: 0.08em; }
.pub-panel .field input,
.pub-panel .field select,
.pub-panel .field textarea { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.pub-panel .field input:focus,
.pub-panel .field select:focus,
.pub-panel .field textarea:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent4); outline: none; }
.pub-panel .field textarea { min-height: 72px; }

#pubDataAviso { display: none; color: var(--red); font-size: 11.5px; margin-top: 5px; font-weight: 600; padding: 7px 10px; background: var(--red-bg); border: 1px solid var(--red-border); border-radius: 8px; }

.pub-panel .btn-primary.btn-full.btn-lg { margin-top: 4px; padding: 14px 22px; font-size: 15px; font-weight: 700; border-radius: var(--radius-lg); letter-spacing: 0.02em; box-shadow: 0 0 0 1px rgba(139,92,246,0.5), 0 8px 28px rgba(139,92,246,0.3); }
.pub-panel .btn-primary.btn-full.btn-lg:hover { box-shadow: 0 0 0 1px rgba(167,139,250,0.6), 0 12px 36px rgba(139,92,246,0.4); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   NOTIFICAÇÕES
══════════════════════════════════════════ */
.notif-stack { position: fixed; right: 16px; top: 68px; z-index: 9998; display: flex; flex-direction: column; gap: 6px; width: min(320px, calc(100vw - 24px)); pointer-events: none; }
.notif-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03); pointer-events: all; animation: notifSlide 0.22s cubic-bezier(0.22,1,0.36,1); transition: opacity 0.4s, transform 0.4s; }
.notif-item.out { opacity: 0; transform: translateX(10px); }
@keyframes notifSlide { from{opacity:0;transform:translateX(12px)} to{opacity:1;transform:none} }
.notif-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; }
.notif-icon.new { background: var(--accent4); border: 1px solid var(--accent-border); }
.notif-icon.ok { background: var(--green-bg); border: 1px solid var(--green-border); }
.notif-icon.err { background: var(--red-bg); border: 1px solid var(--red-border); }
.notif-icon.info { background: var(--surface2); border: 1px solid var(--border2); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-msg { font-size: 11px; color: var(--text3); margin-top: 1px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 9.5px; color: var(--text4); margin-top: 2px; font-weight: 600; }
.notif-close { width: 18px; height: 18px; border-radius: 5px; background: var(--surface2); border: none; color: var(--text4); cursor: pointer; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; transition: all 0.12s; }
.notif-close:hover { background: var(--surface3); color: var(--text); }

/* ══════════════════════════════════════════
   MOBILE MENU DRAWER
══════════════════════════════════════════ */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mobile-menu-overlay.open { display: block; }
.mobile-menu-trigger { display: none; }
.mobile-menu-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); height: 100dvh; z-index: 99991; background: rgba(14,14,18,0.98); border-right: 1px solid var(--border2); box-shadow: 28px 0 80px rgba(0,0,0,0.7); transform: translateX(-105%); transition: transform 0.22s ease; display: flex; flex-direction: column; overflow: hidden; }
.mobile-menu-drawer.open { transform: translateX(0); }
.mobile-menu-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px; border-bottom: 1px solid var(--border); }
.mobile-menu-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 14px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-body .nav-btn { width: 100%; min-height: 46px; justify-content: flex-start; }
.mobile-menu-body .side-nav-sep { margin: 8px 0; }
.mobile-menu-body .side-nav-label { padding: 8px 10px 4px; }
.mobile-menu-new { color: var(--accent2) !important; background: var(--accent4) !important; }
body.menu-open { overflow: hidden; touch-action: none; }

/* ══════════════════════════════════════════
   RESPONSIVE TABLET
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid-6 { grid-template-columns: repeat(3,1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .land-nav { padding: 0 24px; }
  .steps-grid, .test-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pub-hero { padding: 28px 28px 24px; }
  .pub-body { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  html { overscroll-behavior-x: none; }
  body { padding-bottom: 84px; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
  button, input, select, textarea { font-family: 'Geist', sans-serif; -webkit-tap-highlight-color: transparent; }
  input, select, textarea { font-size: 16px !important; }

  .land-nav { padding: 0 14px; height: 56px; }
  .nav-brand { font-size: 18px; }
  .nav-links { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 10px; font-size: 12px; }

  .landing-banner-hero { width: calc(100% - 20px); height: auto; margin: 68px auto 24px; border-radius: 12px; overflow: visible; }
  .landing-banner-hero > img { border-radius: 12px; }
  .landing-banner-hero::after { display: none; }
  .landing-banner-actions { position: static; transform: none; width: 100%; padding: 12px; display: grid; grid-template-columns: 1fr; background: #09060f; border-radius: 0 0 12px 12px; }
  .landing-banner-actions .btn { min-width: 0; width: 100%; }

  .mascot-calm-wrap { height: auto; border-radius: 12px; }
  .mascot-calm-banner { height: auto; aspect-ratio: 16 / 9; }
  .mascot-calm-copy { position: static; padding: 20px 16px; align-items: stretch; flex-direction: column; border-top: 1px solid rgba(168, 85, 247, 0.2); background: linear-gradient(135deg, rgba(88,28,135,0.18), rgba(9,9,11,0.92)); }
  .mascot-calm-copy > div { max-width: none; }
  .mascot-calm-copy .section-title { text-align: left; font-size: 30px; white-space: normal; }
  .mascot-calm-copy .btn { width: 100%; }

  .land-hero { min-height: auto; padding: 88px 18px 48px; text-align: center; align-items: center; justify-content: flex-start; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); max-width: 340px; }
  .hero-sub { font-size: 14.5px; max-width: 320px; }
  .hero-cta, .hero-trust, .cta-actions { justify-content: center; flex-wrap: wrap; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; max-width: 320px; }
  .hero-trust { gap: 10px; max-width: 320px; }
  .trust-sep { display: none; }

  .hero-mockup { margin-top: 28px; padding: 0 12px; }
  .mockup-sidebar { display: none; }
  .mc-stats { grid-template-columns: 1fr 1fr; }
  .mockup-body { min-height: auto; }

  .land-section { padding: 52px 16px; }
  .section-header { text-align: center; margin-bottom: 30px; }
  .section-title { text-align: center; font-size: clamp(30px, 9vw, 42px); }
  .section-sub { text-align: center; margin-inline: auto; }
  .segs-wrap { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .land-cta { padding: 56px 16px; }
  .land-footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px 16px; }

  .auth-overlay { align-items: flex-start; padding: 10px; }
  .auth-modal { grid-template-columns: 1fr; max-width: 420px; max-height: calc(100dvh - 20px); border-radius: 22px; }
  .auth-panel-left { display: none; }
  .auth-form-area { padding: 22px 18px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-actions .btn { width: 100%; }

  .sidebar { display: none; }
  .dash-main { margin-left: 0; padding: 10px 12px calc(72px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 100%; min-height: unset; }

  .topbar { position: relative; top: 0; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; }
  .topbar-actions-clean { width: 100%; }
  .top-notify-slot { width: 100%; max-width: 100%; font-size: 11.5px; }

  .mobile-nav-bar { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9990; padding: 7px; border-radius: var(--radius-2xl); background: rgba(15,15,18,0.97); backdrop-filter: blur(28px); border: 1px solid var(--border2); box-shadow: 0 12px 48px rgba(0,0,0,0.6); align-items: center; }
  .mobile-menu-trigger { display: inline-flex; align-items: center; gap: 7px; position: fixed; right: 14px; bottom: 22px; left: auto; z-index: 9990; padding: 11px 15px; border-radius: 16px; border: 1px solid var(--accent-border); background: rgba(18,18,28,0.94); color: var(--accent2); box-shadow: 0 10px 30px rgba(0,0,0,0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 700; }
  .mob-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; border-radius: var(--radius-lg); background: none; border: 1px solid transparent; color: var(--text3); font-family: 'Geist', sans-serif; font-size: 9.5px; font-weight: 500; cursor: pointer; transition: all 0.15s; min-width: 0; width: 100%; min-height: 52px; -webkit-tap-highlight-color: transparent; }
  .mob-nav-btn.active { background: var(--accent4); border-color: var(--accent-border); color: var(--accent2); }
  .mob-nav-btn .mni { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: var(--surface); transition: background 0.15s; }
  .mob-nav-btn.active .mni { background: var(--accent3); }
  .mob-nav-fab { background: var(--accent) !important; border-color: rgba(99,102,241,0.4) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
  .mob-nav-fab .mni { background: rgba(255,255,255,0.15) !important; width: 30px !important; height: 30px !important; font-size: 15px !important; }

  .dash-hero { border-radius: 11px; padding: 18px 20px; }
  .dash-hero-featured { height: auto; aspect-ratio: 16 / 9; padding: 0; border-radius: 11px; }
  .dash-hero-action { left: auto; right: 2%; top: 2.5%; bottom: auto; width: 42%; gap: 0; }
  .dash-hero-action-label { display: none; }
  .dash-copy-button { min-height: 34px; padding: 7px 9px; border-radius: 10px; gap: 5px; font-size: 10px; }
  .dash-copy-icon { font-size: 11px; }
  .dash-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-hero-inner h1 { font-size: 32px; }
  .dash-hero-inner .btn { width: 100%; }

  .stats-grid-4, .stats-grid-3, .stats-grid-6, .stats-grid-2 { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .stat-card { padding: 12px; min-height: 0; }
  .stat-value { font-size: 22px; }

  .content-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr !important; }
  /* Modais no mobile: padding com safe-area, altura máxima correta, alinhamento ao topo */
  .modal-overlay, .edit-overlay { align-items: flex-end; padding: 0; }
  .modal, .edit-modal { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; max-width: 100%; max-height: calc(92dvh - env(safe-area-inset-bottom, 0px)); padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }

  .client-card { padding: 14px; padding-right: 52px; }
  .svc-card { padding: 14px; padding-right: 52px; }
  .prof-card { padding: 48px 14px 14px; }

  .tl-block { display: block; }
  .tl-time { min-width: 0; padding: 0 0 5px 2px; font-size: 10px; text-align: left; }
  .tl-line { display: none; }
  .tl-card-top { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-right: 44px; }
  .tl-card-status { grid-column: 1 / -1; padding-left: 44px; }
  .tl-card-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; overflow-wrap: normal; }
  .tl-card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; overflow-wrap: normal; }

  .apt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .apt-actions .act-btn { justify-content: center; width: 100%; }
  .apt-actions .act-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .muted-actions { display: flex; flex-wrap: wrap; }

  .action-menu-btn { width: 38px !important; height: 38px !important; font-size: 20px !important; }

  .notif-stack { left: 10px; right: 10px; top: 10px; width: auto; }

  .schedule-grid { grid-template-columns: repeat(4,1fr); }
  .dias-toggle-grid { grid-template-columns: repeat(4, 1fr); }
  .dia-toggle-full { display: none; }
  .intervalo-btn { min-width: 50px; font-size: 12px; padding: 9px 6px; }
  .profile-images-grid { grid-template-columns: 1fr; }

  #publicView { padding: 0; }
  .pub-wrap { padding: 16px 14px 100px; }
  .pub-back { margin-bottom: 16px; font-size: 11.5px; padding: 8px 14px; }
  .pub-hero { padding: 22px 18px 20px; border-radius: 20px; }
  .pub-hero-inner { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
  .pub-cover { width: 100px; height: 100px; }
  .pub-cover-letra { font-size: 36px; }
  .pub-hero-content { display: flex; flex-direction: column; align-items: center; }
  .pub-hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .pub-socials { justify-content: center; }
  .pub-location { flex-wrap: wrap; gap: 6px; text-align: center; justify-content: center; }
  .pub-location a { margin-left: 0; }
  .pub-body { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .pub-panel { padding: 16px; }
  .pub-panel-title { font-size: 16px; }
  .choice { padding: 10px 12px; }
  .choice-icon { width: 32px; height: 32px; font-size: 13px; }
  .choice-title { font-size: 13px; }
  .pub-panel .btn-primary.btn-full.btn-lg { font-size: 14px; padding: 13px 18px; }
  .field select { padding-right: 8px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid-4, .stats-grid-3, .stats-grid-6, .stats-grid-2 { grid-template-columns: 1fr 1fr !important; }
  .apt-actions { grid-template-columns: 1fr 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(36px, 10vw, 48px); }
  .pub-hero { padding: 18px 14px 16px; border-radius: 16px; }
  .pub-hero h1 { font-size: clamp(22px, 8vw, 30px); }
  .pub-panel { padding: 14px; }
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-contact-link:hover {
  color: var(--purple);
}
.footer-contact-sep {
  color: var(--text4);
}

/* ── CALENDÁRIO E SLOTS PÚBLICOS ─────────────────────────────────── */
.pub-picker-btn {
  width: 100%; min-height: 46px; border-radius: var(--radius);
  border: 1px solid var(--border2); background: var(--bg2);
  color: var(--text2); font-family: 'Geist', sans-serif; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pub-picker-btn:hover:not(:disabled) { border-color: var(--border3); background: var(--bg3); }
.pub-picker-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pub-picker-btn.selecionado { border-color: var(--accent-border); color: var(--text); background: var(--accent4); }
.pub-picker-icon { font-size: 16px; flex-shrink: 0; }

.pub-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(9,9,11,0.6); backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.pub-modal-overlay.open { opacity: 1; }
.pub-modal-full {
  background: var(--bg1); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 560px; max-height: 92dvh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(30px); transition: transform 0.25s ease;
}
.pub-modal-overlay.open .pub-modal-full { transform: translateY(0); }
.pub-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pub-modal-back {
  background: none; border: none; color: var(--accent2);
  font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; padding: 4px 0; -webkit-tap-highlight-color: transparent;
}
.pub-modal-title { font-size: 16px; font-weight: 600; color: var(--text); }

/* Calendário */
.pub-cal-wrap { padding: 16px 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pub-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pub-cal-nav span { font-size: 16px; font-weight: 600; color: var(--text); text-transform: capitalize; }
.pub-cal-arrow { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; font-size: 20px; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.pub-cal-arrow:hover { background: var(--surface3); }
.pub-cal-dias-semana { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 8px; }
.pub-cal-dias-semana span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text4); text-transform: uppercase; padding: 4px 0; }
.pub-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.pub-cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background 0.15s, color 0.15s;
  background: var(--surface2); border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.pub-cal-cell:not(.bloqueado):hover { background: var(--accent3); border-color: var(--accent-border); color: var(--accent2); }
.pub-cal-cell.bloqueado { background: var(--surface); color: var(--text4); cursor: not-allowed; opacity: 0.5; }
.pub-cal-cell.vazio { background: none; border: none; cursor: default; }
.pub-cal-cell.fora-mes { background: var(--surface); color: var(--text4); cursor: not-allowed; opacity: 0.3; pointer-events: none; }
.pub-cal-cell.selecionado { background: var(--accent) !important; color: #fff !important; border-color: transparent !important; }
.pub-cal-legenda { display: flex; gap: 16px; margin-top: 16px; justify-content: center; }
.pub-cal-legenda span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.pub-cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pub-cal-dot.disponivel { background: var(--accent); }
.pub-cal-dot.indisponivel { background: var(--border3); }

/* Slots */
.pub-slots-wrap { padding: 16px 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pub-slots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pub-slot {
  border-radius: 12px; padding: 14px 8px; text-align: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.pub-slot.livre {
  background: var(--accent4); border: 1.5px solid var(--accent-border);
  color: var(--accent2);
}
.pub-slot.livre:hover { background: var(--accent3); transform: scale(1.03); }
.pub-slot.ocupado {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text4); cursor: not-allowed;
}
.slot-tag { font-size: 10px; font-weight: 500; color: var(--text4); }

/* Dias check row no edit profissional */
.dias-check-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dia-check { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.dia-check input { display: none; }
.dia-check span {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 600;
  background: var(--surface2); border: 1.5px solid var(--border2); color: var(--text3);
  transition: all 0.15s; cursor: pointer;
}
.dia-check input:checked + span { background: var(--accent3); border-color: var(--accent-border); color: var(--accent2); }
/* ─────────────────────────────────────────────────────────────────── */

/* ── CEP e Autocomplete de Endereço ─────────────────────────────────────── */
.endereco-cep-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.endereco-cep-wrap input {
  flex: 1;
}
.cep-spinner {
  position: absolute;
  right: 12px;
  font-size: 14px;
  pointer-events: none;
}

.endereco-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 999;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.endereco-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  line-height: 1.4;
}
.endereco-suggestion-item:last-child {
  border-bottom: none;
}
.endereco-suggestion-item:hover {
  background: var(--accent4);
  color: var(--text);
}
.endereco-suggestion-item .es-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 14px;
}
.endereco-suggestion-item strong {
  font-weight: 600;
  color: var(--text);
  display: block;
}
.endereco-suggestion-item small {
  font-size: 11.5px;
  color: var(--text4);
}

/* ── Botão confirmar centralizado ───────────────────────────────────────── */
.pub-confirm-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 12px;
}
.pub-confirm-btn {
  min-width: 280px;
  max-width: 420px;
  width: 100%;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

/* ── Tela de observação ─────────────────────────────────────────────────── */
.pub-obs-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
}
.pub-obs-inner {
  width: 100%;
  max-width: 520px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 40px 36px;
  text-align: center;
}
.pub-obs-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.pub-obs-inner h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 10px;
}
.pub-obs-inner p {
  color: var(--text3);
  font-size: 13.5px;
  line-height: 1.6;
}
.pub-obs-inner textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  text-align: left;
}
.pub-obs-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.pub-obs-actions .btn {
  min-width: 120px;
}

/* ── Botão WhatsApp flutuante ───────────────────────────────────────────── */
.pub-whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pub-whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

@media (max-width: 600px) {
  .pub-confirm-btn { min-width: 0; font-size: 14px; padding: 13px 24px; }
  .pub-obs-inner { padding: 28px 20px; border-radius: 20px; }
  .pub-whatsapp-fab span { display: none; }
  .pub-whatsapp-fab { padding: 14px; border-radius: 50%; bottom: 20px; right: 16px; }
}


/* ==========================================================
   TESTE — confirmação pública em uma única etapa
   Visual quadrado, responsivo para PC e Android/WebView
========================================================== */
#publicView .pub-panel,
#publicView .choice,
#publicView .choice-icon,
#publicView .pub-picker-btn,
#publicView .pub-confirm-btn,
#publicView .pub-social,
#publicView .pub-whatsapp-fab,
#publicView .btn {
  border-radius: 8px;
}

#publicView .pub-confirm-btn {
  border-radius: 8px;
  min-height: 50px;
}

.pub-confirm-screen {
  padding: 28px 0 56px;
  animation: pubSuccessEnter .45s cubic-bezier(.2,.8,.2,1) both;
}

.pub-success-card {
  position: relative;
  overflow: hidden;
  width: min(620px, calc(100% - 24px));
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(139,92,246,.15), transparent 42%),
    var(--bg1);
  border: 1px solid rgba(167,139,250,.48);
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0,0,0,.42), 0 0 34px rgba(124,58,237,.12);
}

.pub-success-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(167,139,250,.11) 48%, transparent 76%);
  transform: translateX(-120%);
  animation: pubSuccessSweep 2.8s ease-in-out infinite 1s;
}

.pub-success-visual {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border: 1px solid rgba(167,139,250,.55);
  border-radius: 8px;
  background: #07030d;
  box-shadow: 0 0 30px rgba(139,92,246,.22);
}

.pub-success-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  animation: pubMascotFloat 2.5s ease-in-out infinite;
}

.pub-success-check {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 3px solid var(--bg1);
  border-radius: 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(124,58,237,.38);
}

.pub-success-kicker {
  margin-bottom: 8px;
  color: var(--accent2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .15em;
}

.pub-success-card h2 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
}

.pub-success-card > p {
  margin: 0 auto;
  color: var(--text3);
  font-size: 14px;
}

.pub-success-summary {
  display: grid;
  gap: 8px;
  margin: 26px 0 22px;
  text-align: left;
}

.pub-success-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  background: rgba(8,4,14,.72);
  border: 1px solid var(--border2);
  border-radius: 7px;
}

.pub-success-row span {
  color: var(--text4);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pub-success-row strong {
  color: var(--text);
  font-size: 13.5px;
  word-break: break-word;
}

.pub-success-new {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border-radius: 8px !important;
}

@keyframes pubSuccessEnter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pubSuccessSweep {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
@keyframes pubMascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 700px) {
  .pub-confirm-screen { padding: 16px 0 42px; }
  .pub-success-card {
    width: calc(100% - 16px);
    padding: 24px 16px 18px;
    border-radius: 8px;
  }
  .pub-success-visual { width: 112px; height: 112px; }
  .pub-success-summary { margin-top: 22px; }
  .pub-success-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 12px;
  }
  #publicView .pub-whatsapp-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-confirm-screen,
  .pub-success-card::before,
  .pub-success-mascot { animation: none !important; }
}


/* Página pública: remove o botão Voltar */
#publicView .pub-back {
  display: none !important;
}


/* ══════════════════════════════════════════
   CENTRAL DE NOTIFICAÇÕES — TESTE
══════════════════════════════════════════ */
.notification-bell {
  position: relative; min-height: 42px; padding: 9px 13px; display: inline-flex;
  align-items: center; gap: 8px; color: var(--text2); background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 7px; cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.notification-bell:hover { border-color: var(--accent-border); background: var(--accent4); transform: translateY(-1px); }
.notification-bell-icon { font-size: 16px; }
.notification-bell-text { font-size: 12px; font-weight: 700; }
.notification-badge, .mobile-notification-badge {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 5px; background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 5px 16px rgba(139,92,246,.35);
}
.notification-badge { position: absolute; right: -7px; top: -7px; }
.mobile-notification-button { position: relative; }
.mobile-notification-badge { margin-left: auto; }

.notification-center-overlay {
  position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: flex-end;
  background: rgba(0,0,0,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.notification-center-overlay.open { opacity: 1; visibility: visible; }
.notification-center {
  width: min(440px, 100%); height: 100dvh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #100919 0%, #09070d 100%);
  border-left: 1px solid rgba(168,85,247,.30); box-shadow: -30px 0 80px rgba(0,0,0,.55);
  transform: translateX(100%); transition: transform .24s cubic-bezier(.22,1,.36,1);
}
.notification-center-overlay.open .notification-center { transform: translateX(0); }
.notification-center-header { display: flex; justify-content: space-between; gap: 16px; padding: 24px 20px 18px; border-bottom: 1px solid var(--border2); }
.notification-center-eyebrow { color: var(--accent2); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.notification-center-header h3 { margin: 5px 0 3px; font-size: 24px; }
.notification-center-header p { margin: 0; color: var(--text3); font-size: 12px; line-height: 1.5; }
.notification-center-close { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 6px; border: 1px solid var(--border2); background: var(--surface2); color: var(--text2); cursor: pointer; }
.notification-center-actions { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.notification-center-actions button { flex: 1; min-height: 38px; border: 1px solid var(--border2); border-radius: 6px; background: var(--surface2); color: var(--text2); font-size: 11px; font-weight: 700; cursor: pointer; }
.notification-center-actions button:hover { border-color: var(--accent-border); color: var(--text); }
.notification-center-actions .danger:hover { border-color: var(--red-border); color: var(--red); }
.notification-list { flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.notification-row { display: grid; grid-template-columns: 1fr auto; margin-bottom: 8px; border: 1px solid var(--border2); border-radius: 7px; background: rgba(255,255,255,.018); overflow: hidden; }
.notification-row.unread { border-color: rgba(168,85,247,.42); background: linear-gradient(90deg, rgba(126,34,206,.16), rgba(255,255,255,.018)); box-shadow: inset 3px 0 0 #a855f7; }
.notification-row-main { min-width: 0; display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-row-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(168,85,247,.25); border-radius: 6px; background: rgba(126,34,206,.15); }
.notification-row-content { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.notification-row-content strong { color: var(--text); font-size: 12.5px; }
.notification-row-content span { color: var(--text3); font-size: 11.5px; line-height: 1.4; }
.notification-row-content small { color: var(--text4); font-size: 9.5px; font-weight: 600; }
.notification-row-main i { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 4px; border-radius: 2px; background: #a855f7; box-shadow: 0 0 12px rgba(168,85,247,.8); }
.notification-row-delete { width: 40px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--text4); cursor: pointer; }
.notification-row-delete:hover { background: var(--red-bg); color: var(--red); }
.notification-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 36px; color: var(--text3); text-align: center; }
.notification-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--border2); border-radius: 8px; background: var(--surface2); font-size: 22px; }
.notification-empty strong { color: var(--text2); }
.notification-empty span { font-size: 12px; }
body.notification-center-open { overflow: hidden; }

/* Alertas de operação: somente um por vez, pequenos e discretos. */
.notif-stack { top: auto; bottom: 18px; }
.notif-item.compact { border-radius: 7px; }

@media (max-width: 768px) {
  .notification-bell { min-width: 42px; padding: 8px 10px; }
  .notification-bell-text { display: none; }
  .notification-center { width: 100%; border-left: 0; }
  .notification-center-header { padding: 20px 16px 15px; }
  .notification-center-actions { padding: 10px 14px; }
  .notification-list { padding: 10px 10px 100px; }
  .notification-row-main { padding: 12px 10px; }
  .notif-stack { right: 10px; bottom: 92px; width: calc(100vw - 20px); }
}


/* ══════════════════════════════════════════
   AJUSTE FINAL — MENU LATERAL MAIS QUADRADO
   Mantém a tela pública e a confirmação intactas
══════════════════════════════════════════ */

.sidebar .side-nav-section {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(176, 76, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(78, 25, 118, 0.10),
    rgba(255, 255, 255, 0.012)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 8px 24px rgba(0, 0, 0, 0.10);
}

.sidebar .side-nav-label {
  padding: 0 2px 9px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(176, 76, 255, 0.17);
  color: #b997ff;
}

.sidebar .nav-btn {
  min-height: 44px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid rgba(176, 76, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.sidebar .nav-btn:last-child {
  margin-bottom: 0;
}

.sidebar .nav-btn:hover {
  transform: translateX(2px);
  border-color: rgba(190, 104, 255, 0.48);
  background: rgba(137, 45, 214, 0.12);
  box-shadow:
    0 8px 20px rgba(87, 25, 139, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar .nav-btn.active {
  border-color: rgba(202, 120, 255, 0.78);
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(124, 34, 232, 0.34),
    rgba(168, 85, 247, 0.20)
  );
  box-shadow:
    0 9px 24px rgba(105, 31, 173, 0.20),
    inset 3px 0 0 #b84cff;
}

.sidebar .nav-btn .ni {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border-color: rgba(176, 76, 255, 0.15);
}

.sidebar .side-user-card {
  border-radius: 7px;
  border-color: rgba(176, 76, 255, 0.22);
}

.sidebar .side-link-box {
  border-radius: 5px;
}

.sidebar .side-bottom > .btn[onclick="logout()"] {
  min-height: 44px;
  border-radius: 6px !important;
  border: 1px solid rgba(190, 104, 255, 0.48) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 30, 145, 0.92),
    rgba(126, 34, 206, 0.92)
  ) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow:
    0 10px 26px rgba(93, 28, 155, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.sidebar .side-bottom > .btn[onclick="logout()"]:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 168, 255, 0.78) !important;
  background: linear-gradient(
    90deg,
    rgba(111, 36, 176, 0.98),
    rgba(148, 42, 232, 0.98)
  ) !important;
}

/* Menu móvel */
.mobile-menu-body .side-nav-section {
  margin: 0 0 11px;
  padding: 9px;
  border: 1px solid rgba(176, 76, 255, 0.22);
  border-radius: 8px;
  background: rgba(92, 30, 142, 0.07);
}

.mobile-menu-body .side-nav-label {
  padding: 0 2px 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(176, 76, 255, 0.16);
}

.mobile-menu-body .nav-btn {
  min-height: 46px;
  margin-bottom: 7px;
  border: 1px solid rgba(176, 76, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.mobile-menu-body .nav-btn:last-child {
  margin-bottom: 0;
}

.mobile-menu-body > .btn[onclick="logout()"] {
  min-height: 46px;
  border-radius: 6px !important;
  border: 1px solid rgba(190, 104, 255, 0.48) !important;
  background: linear-gradient(
    90deg,
    rgba(91, 30, 145, 0.94),
    rgba(126, 34, 206, 0.94)
  ) !important;
  color: #fff !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sidebar .side-nav-section,
  .mobile-menu-body .side-nav-section {
    border-radius: 7px;
  }

  .sidebar .nav-btn,
  .mobile-menu-body .nav-btn,
  .sidebar .side-bottom > .btn[onclick="logout()"],
  .mobile-menu-body > .btn[onclick="logout()"] {
    border-radius: 5px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   TESTE — CALENDÁRIO PÚBLICO MODERNO E RESPONSIVO
   Escopo restrito ao #pubCalendarioOverlay
═══════════════════════════════════════════════════════════════ */

#pubCalendarioOverlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 8, 0.76);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

#pubCalendarioOverlay .pub-modal-full {
  position: relative;
  width: min(680px, calc(100vw - 40px));
  max-width: 680px;
  max-height: min(760px, calc(100dvh - 40px));
  border: 1px solid rgba(180, 88, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 49, 229, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(17, 10, 26, 0.99), rgba(8, 6, 14, 0.99));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(194, 112, 255, 0.05),
    0 0 55px rgba(126, 34, 206, 0.14);
  transform: scale(0.96) translateY(12px);
}

#pubCalendarioOverlay.open .pub-modal-full {
  transform: scale(1) translateY(0);
}

#pubCalendarioOverlay .pub-modal-header {
  position: relative;
  justify-content: center;
  min-height: 66px;
  padding: 16px 64px;
  border-bottom: 1px solid rgba(180, 88, 255, 0.20);
  background: rgba(255, 255, 255, 0.012);
}

#pubCalendarioOverlay .pub-modal-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f7efff;
}

#pubCalendarioOverlay .pub-modal-back {
  position: absolute;
  top: 50%;
  right: 18px;
  left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(190, 104, 255, 0.30);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#pubCalendarioOverlay .pub-modal-back::after {
  content: "×";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #d9b7ff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

#pubCalendarioOverlay .pub-modal-back:hover {
  border-color: rgba(215, 154, 255, 0.65);
  background: rgba(151, 55, 220, 0.15);
  transform: translateY(-50%) scale(1.04);
}

#pubCalendarioOverlay .pub-cal-wrap {
  padding: 24px 28px 26px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 81, 238, .55) transparent;
}

#pubCalendarioOverlay .pub-cal-wrap::-webkit-scrollbar {
  width: 5px;
}

#pubCalendarioOverlay .pub-cal-wrap::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(177, 81, 238, .50);
}

#pubCalendarioOverlay .pub-cal-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

#pubCalendarioOverlay .pub-cal-nav span {
  text-align: center;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #ffffff;
}

#pubCalendarioOverlay .pub-cal-arrow {
  width: 44px;
  height: 42px;
  border: 1px solid rgba(185, 96, 244, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #d7b2ff;
  font-size: 25px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

#pubCalendarioOverlay .pub-cal-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(207, 139, 255, 0.66);
  background: rgba(140, 44, 214, 0.16);
}

#pubCalendarioOverlay .pub-cal-dias-semana {
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px 9px;
  border-bottom: 1px solid rgba(178, 83, 238, 0.12);
}

#pubCalendarioOverlay .pub-cal-dias-semana span {
  padding: 5px 0;
  color: #9d7db8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}

#pubCalendarioOverlay .pub-cal-grid {
  gap: 8px;
}

#pubCalendarioOverlay .pub-cal-cell {
  min-height: 54px;
  aspect-ratio: auto;
  border: 1px solid rgba(176, 76, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.038);
  color: #f1e9f8;
  font-size: 15px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
  transition:
    transform .14s ease,
    border-color .14s ease,
    background .14s ease,
    box-shadow .14s ease;
}

#pubCalendarioOverlay .pub-cal-cell:not(.bloqueado):not(.vazio):not(.fora-mes):hover {
  transform: translateY(-2px);
  border-color: rgba(194, 104, 255, 0.66);
  background: rgba(134, 39, 209, 0.20);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(76, 19, 116, 0.20);
}

#pubCalendarioOverlay .pub-cal-cell.selecionado {
  border-color: rgba(225, 177, 255, 0.76) !important;
  border-radius: 7px;
  background: linear-gradient(145deg, #6f24d9, #9d29ee) !important;
  color: #fff !important;
  box-shadow:
    0 10px 24px rgba(125, 34, 210, .34),
    inset 0 1px 0 rgba(255,255,255,.18);
}

#pubCalendarioOverlay .pub-cal-cell.bloqueado {
  border-color: rgba(255,255,255,.018);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(173, 145, 191, 0.34);
  opacity: 0.72;
}

#pubCalendarioOverlay .pub-cal-cell.fora-mes {
  border-color: transparent;
  background: rgba(255,255,255,.006);
  color: rgba(163, 128, 184, 0.20);
  opacity: 1;
}

#pubCalendarioOverlay .pub-cal-legenda {
  gap: 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(176, 76, 255, 0.14);
}

#pubCalendarioOverlay .pub-cal-legenda span {
  gap: 8px;
  color: #a98abd;
  font-size: 12px;
  font-weight: 600;
}

#pubCalendarioOverlay .pub-cal-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

#pubCalendarioOverlay .pub-cal-dot.disponivel {
  background: #a13df0;
  box-shadow: 0 0 9px rgba(161, 61, 240, .42);
}

#pubCalendarioOverlay .pub-cal-dot.indisponivel {
  background: #504158;
}

/* Android / telas menores */
@media (max-width: 700px) {
  #pubCalendarioOverlay {
    align-items: stretch;
    padding: 0;
  }

  #pubCalendarioOverlay .pub-modal-full {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(143, 49, 229, 0.13), transparent 34%),
      linear-gradient(180deg, #100918, #08060e);
    transform: translateY(20px);
  }

  #pubCalendarioOverlay .pub-modal-header {
    min-height: 62px;
    padding: max(14px, env(safe-area-inset-top)) 58px 14px;
    background: rgba(13, 8, 20, .92);
  }

  #pubCalendarioOverlay .pub-modal-title {
    font-size: 17px;
  }

  #pubCalendarioOverlay .pub-modal-back {
    right: 14px;
    width: 38px;
    height: 38px;
  }

  #pubCalendarioOverlay .pub-cal-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  }

  #pubCalendarioOverlay .pub-cal-nav {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    margin-bottom: 18px;
  }

  #pubCalendarioOverlay .pub-cal-nav span {
    font-size: 18px;
  }

  #pubCalendarioOverlay .pub-cal-arrow {
    width: 42px;
    height: 40px;
  }

  #pubCalendarioOverlay .pub-cal-dias-semana {
    gap: 5px;
  }

  #pubCalendarioOverlay .pub-cal-grid {
    gap: 6px;
  }

  #pubCalendarioOverlay .pub-cal-cell {
    min-height: clamp(44px, 11.5vw, 54px);
    border-radius: 6px;
    font-size: 14px;
  }

  #pubCalendarioOverlay .pub-cal-legenda {
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 2px;
  }
}

/* Celulares muito estreitos */
@media (max-width: 390px) {
  #pubCalendarioOverlay .pub-cal-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  #pubCalendarioOverlay .pub-cal-grid {
    gap: 4px;
  }

  #pubCalendarioOverlay .pub-cal-cell {
    min-height: 42px;
    font-size: 13px;
  }

  #pubCalendarioOverlay .pub-cal-legenda {
    gap: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   AJUSTE FINAL — CALENDÁRIO FIXO COM STATUS NOS DIAS
   Disponível: ponto verde | Indisponível: círculo vermelho com X
═══════════════════════════════════════════════════════════════ */

#pubCalendarioOverlay .pub-modal-full {
  height: auto !important;
  max-height: calc(100dvh - 28px) !important;
  overflow: hidden !important;
}

#pubCalendarioOverlay .pub-cal-wrap {
  overflow: visible !important;
  scrollbar-width: none !important;
  padding-bottom: 20px !important;
}

#pubCalendarioOverlay .pub-cal-wrap::-webkit-scrollbar {
  display: none !important;
}

/* Remove a legenda inferior */
#pubCalendarioOverlay .pub-cal-legenda {
  display: none !important;
}

/* Reserva espaço para o indicador no canto */
#pubCalendarioOverlay .pub-cal-cell {
  position: relative;
  padding: 8px 6px;
  cursor: pointer;
}

/* Dia disponível: bolinha verde */
#pubCalendarioOverlay .pub-cal-cell:not(.bloqueado):not(.fora-mes):not(.vazio)::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20d875;
  box-shadow:
    0 0 0 2px rgba(32, 216, 117, 0.10),
    0 0 9px rgba(32, 216, 117, 0.56);
}

/* Dia indisponível: círculo vermelho com X */
#pubCalendarioOverlay .pub-cal-cell.bloqueado::after {
  content: "×";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 81, 112, 0.72);
  border-radius: 50%;
  background: rgba(255, 55, 91, 0.16);
  color: #ff5878;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Indisponíveis não reagem ao mouse/toque */
#pubCalendarioOverlay .pub-cal-cell.bloqueado {
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: rgba(255, 70, 103, 0.10) !important;
  background: rgba(255, 55, 91, 0.025) !important;
  color: rgba(184, 151, 193, 0.34) !important;
}

/* Dias externos ao mês continuam neutros, sem indicador */
#pubCalendarioOverlay .pub-cal-cell.fora-mes {
  cursor: default !important;
  pointer-events: none !important;
}

#pubCalendarioOverlay .pub-cal-cell.fora-mes::after {
  display: none !important;
}

/* Selecionado mantém o verde visível com destaque */
#pubCalendarioOverlay .pub-cal-cell.selecionado::after {
  background: #55f49a !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 0 11px rgba(85, 244, 154, 0.72) !important;
}

/* PC: compacta o suficiente para não criar rolagem */
@media (min-width: 701px) {
  #pubCalendarioOverlay .pub-modal-full {
    width: min(680px, calc(100vw - 36px)) !important;
  }

  #pubCalendarioOverlay .pub-cal-wrap {
    padding-top: 18px !important;
  }

  #pubCalendarioOverlay .pub-cal-nav {
    margin-bottom: 14px !important;
  }

  #pubCalendarioOverlay .pub-cal-dias-semana {
    margin-bottom: 7px !important;
    padding-bottom: 7px !important;
  }

  #pubCalendarioOverlay .pub-cal-grid {
    gap: 6px !important;
  }

  #pubCalendarioOverlay .pub-cal-cell {
    min-height: 48px !important;
  }
}

/* Android: tela fixa, sem rolagem interna */
@media (max-width: 700px) {
  #pubCalendarioOverlay {
    overflow: hidden !important;
  }

  #pubCalendarioOverlay .pub-modal-full {
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #pubCalendarioOverlay .pub-cal-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    padding-top: 14px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  #pubCalendarioOverlay .pub-cal-nav {
    margin-bottom: 12px !important;
  }

  #pubCalendarioOverlay .pub-cal-dias-semana {
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
  }

  #pubCalendarioOverlay .pub-cal-grid {
    gap: 5px !important;
  }

  #pubCalendarioOverlay .pub-cal-cell {
    min-height: clamp(39px, 10.8vw, 49px) !important;
    padding: 6px 4px !important;
  }

  #pubCalendarioOverlay .pub-cal-cell:not(.bloqueado):not(.fora-mes):not(.vazio)::after {
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
  }

  #pubCalendarioOverlay .pub-cal-cell.bloqueado::after {
    top: 4px;
    right: 4px;
    width: 13px;
    height: 13px;
    font-size: 10px;
  }
}

@media (max-width: 390px), (max-height: 690px) {
  #pubCalendarioOverlay .pub-modal-header {
    min-height: 56px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #pubCalendarioOverlay .pub-cal-wrap {
    padding-top: 10px !important;
  }

  #pubCalendarioOverlay .pub-cal-nav {
    margin-bottom: 8px !important;
  }

  #pubCalendarioOverlay .pub-cal-cell {
    min-height: 38px !important;
    font-size: 13px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   TESTE — HORÁRIOS COMPACTOS + AVISOS CLAROS
   Escopo restrito ao modal de horários e aos avisos temporários
═══════════════════════════════════════════════════════════════ */

#pubSlotsOverlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 8, 0.76);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

#pubSlotsOverlay .pub-modal-full {
  width: min(760px, calc(100vw - 40px));
  max-width: 760px;
  max-height: min(680px, calc(100dvh - 40px));
  border: 1px solid rgba(180, 88, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 49, 229, 0.13), transparent 40%),
    linear-gradient(180deg, rgba(17, 10, 26, 0.99), rgba(8, 6, 14, 0.99));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 55px rgba(126, 34, 206, 0.14);
  transform: scale(0.96) translateY(12px);
}

#pubSlotsOverlay.open .pub-modal-full {
  transform: scale(1) translateY(0);
}

#pubSlotsOverlay .pub-modal-header {
  position: relative;
  justify-content: center;
  min-height: 64px;
  padding: 15px 64px;
  border-bottom: 1px solid rgba(180, 88, 255, 0.20);
}

#pubSlotsOverlay .pub-modal-title {
  font-size: 18px;
  font-weight: 750;
  color: #f7efff;
}

#pubSlotsOverlay .pub-modal-back {
  position: absolute;
  top: 50%;
  right: 18px;
  left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(190, 104, 255, 0.30);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
}

#pubSlotsOverlay .pub-modal-back::after {
  content: "×";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #d9b7ff;
  font-size: 25px;
  line-height: 1;
}

#pubSlotsOverlay .pub-slots-wrap {
  padding: 20px 24px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 81, 238, .52) transparent;
}

#pubSlotsOverlay .pub-slots-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#pubSlotsOverlay .pub-slot {
  position: relative;
  min-height: 52px;
  padding: 12px 10px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 750;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

#pubSlotsOverlay .pub-slot.livre {
  border: 1px solid rgba(179, 80, 242, 0.42);
  background: rgba(121, 36, 194, 0.12);
  color: #c56cff;
}

#pubSlotsOverlay .pub-slot.livre::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #26df7e;
  box-shadow: 0 0 9px rgba(38, 223, 126, 0.58);
}

#pubSlotsOverlay .pub-slot.livre:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 143, 255, 0.78);
  background: linear-gradient(145deg, rgba(111,36,217,.34), rgba(157,41,238,.24));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(88, 24, 139, 0.22);
}

#pubSlotsOverlay .pub-slot.ocupado {
  pointer-events: none;
  min-height: 52px;
  border: 1px solid rgba(255, 77, 108, 0.13);
  background: rgba(255, 54, 91, 0.028);
  color: rgba(190, 158, 200, 0.38);
}

#pubSlotsOverlay .pub-slot.ocupado::before {
  content: "×";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid rgba(255, 85, 116, 0.62);
  border-radius: 50%;
  color: #ff617f;
  font-size: 11px;
  line-height: 1;
}

#pubSlotsOverlay .slot-tag {
  position: absolute;
  right: 6px;
  bottom: 3px;
  font-size: 8px;
  letter-spacing: .02em;
  color: rgba(255, 97, 127, 0.58);
}

/* Aviso temporário mais claro, sem acumular na tela */
.notif-item.compact {
  border-radius: 7px;
  border-color: rgba(195, 104, 255, 0.42);
  background: linear-gradient(145deg, rgba(26, 13, 39, 0.98), rgba(13, 9, 21, 0.98));
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.50),
    0 0 28px rgba(139, 45, 211, 0.12);
}

.notif-item.compact .notif-title {
  color: #f6edff;
  font-weight: 700;
}

@media (max-width: 700px) {
  #pubSlotsOverlay {
    align-items: stretch;
    padding: 0;
  }

  #pubSlotsOverlay .pub-modal-full {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  #pubSlotsOverlay .pub-modal-header {
    min-height: 62px;
    padding: max(14px, env(safe-area-inset-top)) 58px 14px;
  }

  #pubSlotsOverlay .pub-modal-back {
    right: 14px;
  }

  #pubSlotsOverlay .pub-slots-wrap {
    flex: 1;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  }

  #pubSlotsOverlay .pub-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #pubSlotsOverlay .pub-slot {
    min-height: 50px;
    border-radius: 6px;
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE V2 — TOPO DE NOTIFICAÇÕES MAIS FINO + WHATSAPP AJUSTADO
   Não altera o layout do computador
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Barra superior: deixa de empilhar título e sininho */
  .dash-main > .topbar {
    position: relative;
    top: 0;
    min-height: 52px;
    margin-bottom: 12px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
  }

  .dash-main > .topbar .topbar-title {
    min-width: 0;
  }

  .dash-main > .topbar .topbar-title h2 {
    font-size: 18px;
    line-height: 1.05;
  }

  .dash-main > .topbar .topbar-title p {
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dash-main > .topbar .topbar-actions-clean {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .dash-main > .topbar .notification-bell {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    gap: 0;
    border-radius: 7px;
  }

  .dash-main > .topbar .notification-bell-icon {
    display: block;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-1px);
  }

  .dash-main > .topbar .notification-bell-text {
    display: none;
  }

  .dash-main > .topbar .notification-badge {
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 5px;
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  /* Mantém o botão verde, mas corrige apenas o desenho interno */
  #publicView .pub-whatsapp-fab {
    width: 48px;
    height: 48px;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden;
  }

  #publicView .pub-whatsapp-fab svg {
    display: block;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    transform: none !important;
    flex: none;
  }

  #publicView .pub-whatsapp-fab svg path {
    transform-origin: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   AJUSTE V3 — PÁGINA PÚBLICA LIMPA + MODAIS SEM ROLAR O FUNDO
═══════════════════════════════════════════════════════════════ */

#pubDescEmpresa:empty {
  display: none !important;
}

html.public-modal-open,
body.public-modal-open {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.public-modal-open {
  position: fixed !important;
  left: 0;
  right: 0;
  touch-action: none;
}

/* O overlay não transmite o gesto de rolagem para a página atrás */
#pubCalendarioOverlay,
#pubSlotsOverlay {
  overscroll-behavior: contain !important;
  touch-action: none;
}

/* Mantém interação normal apenas dentro do conteúdo do modal */
#pubCalendarioOverlay .pub-modal-full,
#pubSlotsOverlay .pub-modal-full {
  touch-action: pan-y;
  overscroll-behavior: contain !important;
}

/* Calendário permanece fixo, sem rolagem interna */
#pubCalendarioOverlay .pub-cal-wrap {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Na lista de horários, somente a grade pode rolar quando necessário */
#pubSlotsOverlay .pub-slots-wrap {
  overflow: hidden !important;
}

#pubSlotsOverlay .pub-slots-grid {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

/* Evita que o subtítulo vazio deixe espaço no cartão profissional */
#pubProfissionais .choice .choice-title {
  margin-bottom: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════
   V5 — FUNDO FIXO SEM BLOQUEAR DATA/HORA
═══════════════════════════════════════════════════════════════ */

html.vyxora-safe-layer-open,
body.vyxora-safe-layer-open {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.vyxora-safe-layer-open {
  position: fixed !important;
  left: 0;
  right: 0;
}

/* Não usar touch-action:none: isso bloqueava o calendário nativo. */
#modalReagendarOverlay {
  overscroll-behavior: contain !important;
}

#modalReagendarOverlay .modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

#reagendarData,
#reagendarHora {
  cursor: pointer;
  color-scheme: dark;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

#reagendarData::-webkit-calendar-picker-indicator,
#reagendarHora::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .85;
  filter: invert(1) brightness(1.2);
}


/* =============================================================
   VYXORA HOME PREMIUM v17 — somente página inicial
   ============================================================= */
#landingView {
  --home-violet: #a855f7;
  --home-violet-2: #d8b4fe;
  --home-deep: #160526;
  overflow: clip;
  background:
    radial-gradient(circle at 50% -10%, rgba(126,34,206,.18), transparent 34%),
    linear-gradient(180deg, #05040a 0%, #08050e 48%, #05040a 100%);
}
#landingView::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(168,85,247,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  animation: vxGridDrift 22s linear infinite;
}

#landingView .land-nav {
  width: min(calc(100% - 32px), 1320px);
  height: 66px;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 14px 0 18px;
  border: 1px solid rgba(192,132,252,.22);
  border-radius: 12px;
  background: rgba(8,5,14,.78);
  box-shadow: 0 18px 60px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(22px) saturate(135%);
}
#landingView .land-nav::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,.78), transparent);
  opacity: .65;
}
#landingView .nav-brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: -.02em;
}
#landingView .brand-mascot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(168,85,247,.38);
}
#landingView .nav-links {
  padding: 4px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
#landingView .nav-link {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
#landingView .nav-link:hover {
  color: #fff;
  background: rgba(168,85,247,.12);
  transform: translateY(-1px);
}
#landingView .nav-actions { gap: 8px; }
#landingView .nav-actions .btn {
  min-height: 38px;
  border-radius: 7px;
  padding-inline: 17px;
  font-weight: 700;
}
#landingView .nav-actions .btn-ghost {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.025);
}
#landingView .nav-actions .btn-primary {
  border: 1px solid rgba(216,180,254,.5);
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  box-shadow: 0 0 24px rgba(168,85,247,.25), inset 0 1px rgba(255,255,255,.24);
}

.vx-home-hero {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1320px);
  min-height: 670px;
  margin: 98px auto 42px;
  padding: 58px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 56px;
  overflow: hidden;
  border: 1px solid rgba(192,132,252,.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16,8,29,.96), rgba(6,4,12,.98)),
    #08050e;
  box-shadow: 0 34px 110px rgba(0,0,0,.5), 0 0 90px rgba(126,34,206,.12), inset 0 1px rgba(255,255,255,.04);
}
.vx-home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.025) 50%, transparent 78%);
  transform: translateX(-100%);
  animation: vxHeroSweep 8s ease-in-out infinite;
}
.vx-home-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(168,85,247,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 68% 50%, #000 5%, transparent 72%);
}
.vx-home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  pointer-events: none;
  animation: vxOrbFloat 9s ease-in-out infinite;
}
.vx-home-orb-a { width: 320px; height: 320px; right: 6%; top: 8%; background: #7e22ce; }
.vx-home-orb-b { width: 240px; height: 240px; left: -5%; bottom: -8%; background: #4c1d95; animation-delay: -3s; }
.vx-home-copy { position: relative; z-index: 2; }
.vx-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(192,132,252,.22);
  border-radius: 7px;
  background: rgba(168,85,247,.07);
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.vx-home-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #c084fc;
  box-shadow: 0 0 14px #a855f7;
  animation: vxPulse 1.8s ease-in-out infinite;
}
.vx-home-copy h1 {
  max-width: 650px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(52px, 5.35vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.vx-home-copy h1 em {
  display: inline-block;
  font-style: italic;
  color: transparent;
  background: linear-gradient(105deg, #f5e9ff 5%, #d8b4fe 38%, #9333ea 86%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(168,85,247,.24));
}
.vx-home-copy > p {
  max-width: 590px;
  margin-top: 24px;
  color: #aaa0b8;
  font-size: 16px;
  line-height: 1.75;
}
.vx-home-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.vx-home-actions .btn {
  min-height: 52px;
  padding: 0 21px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
}
.vx-home-actions .btn span { margin-left: 12px; font-size: 16px; }
.vx-btn-primary {
  color: white;
  border: 1px solid rgba(216,180,254,.55);
  background: linear-gradient(135deg, #6b21a8, #a855f7);
  box-shadow: 0 14px 38px rgba(126,34,206,.32), inset 0 1px rgba(255,255,255,.24);
}
.vx-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transition: transform .55s ease;
}
.vx-btn-primary:hover::after { transform: translateX(105%); }
.vx-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(126,34,206,.44), 0 0 28px rgba(168,85,247,.23); }
.vx-btn-secondary {
  color: #e9ddf5;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.vx-btn-secondary:hover { transform: translateY(-3px); border-color: rgba(192,132,252,.4); background: rgba(168,85,247,.09); }
.vx-home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: 560px;
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vx-home-proof > div { padding: 20px 20px 0 0; }
.vx-home-proof strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.025em; }
.vx-home-proof span { display: block; margin-top: 4px; color: #6f667b; font-size: 11px; }

.vx-home-visual { position: relative; z-index: 2; min-width: 0; perspective: 1200px; }
.vx-visual-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(192,132,252,.28);
  border-radius: 13px;
  background: rgba(3,2,7,.88);
  box-shadow: 0 30px 85px rgba(0,0,0,.56), 0 0 50px rgba(126,34,206,.18), inset 0 1px rgba(255,255,255,.05);
  transform: rotateY(-3deg) rotateX(1.5deg);
  transform-origin: center;
  animation: vxVisualHover 6s ease-in-out infinite;
}
.vx-visual-topline, .vx-visual-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  color: #6f667b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
}
.vx-visual-topline { border-bottom: 1px solid rgba(255,255,255,.06); }
.vx-visual-footer { border-top: 1px solid rgba(255,255,255,.06); justify-content: space-around; }
.vx-visual-status { display: inline-flex; align-items: center; gap: 7px; color: #bca8cc; }
.vx-visual-status i { width: 6px; height: 6px; border-radius: 2px; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.vx-visual-image { position: relative; aspect-ratio: 16/8.4; display: grid; place-items: center; overflow: hidden; background: #030207; }
.vx-visual-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .7s ease; }
.vx-visual-shell:hover .vx-visual-image img { transform: scale(1.018); }
.vx-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  top: -100px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(192,132,252,.11), transparent);
  animation: vxScan 5.8s linear infinite;
}
.vx-float-card {
  position: absolute;
  z-index: 4;
  min-width: 170px;
  padding: 14px 16px;
  border: 1px solid rgba(192,132,252,.24);
  border-radius: 9px;
  background: rgba(11,6,19,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 30px rgba(126,34,206,.13);
  backdrop-filter: blur(18px);
  animation: vxCardFloat 5s ease-in-out infinite;
}
.vx-float-card span { display: block; color: #756a80; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.vx-float-card strong { display: block; margin-top: 5px; color: #f4ecfa; font-size: 14px; }
.vx-float-card-a { left: -36px; bottom: 54px; }
.vx-float-card-b { right: -25px; top: 68px; animation-delay: -2.1s; }

#landingView .land-section { padding: 96px 24px; }
#landingView .section-wrap { max-width: 1160px; }
#landingView .section-tag {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 6px;
  border-color: rgba(192,132,252,.19);
  background: rgba(168,85,247,.06);
  color: #bda9cc;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 9.5px;
  font-weight: 760;
}
#landingView .section-title { color: #f3edf8; }
#landingView .section-title em { color: #c084fc; filter: drop-shadow(0 0 18px rgba(168,85,247,.18)); }
#landingView .step-card,
#landingView .feat-card,
#landingView .test-card {
  border-radius: 9px;
  border-color: rgba(255,255,255,.075);
  background: linear-gradient(145deg, rgba(16,10,25,.9), rgba(7,5,12,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
#landingView .step-card:hover,
#landingView .feat-card:hover,
#landingView .test-card:hover {
  transform: translateY(-7px);
  border-color: rgba(192,132,252,.35);
  background: linear-gradient(145deg, rgba(31,13,49,.9), rgba(8,5,14,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.32), 0 0 34px rgba(126,34,206,.12), inset 0 1px rgba(255,255,255,.04);
}
#landingView .step-icon, #landingView .feat-icon, #landingView .test-av {
  border-radius: 7px;
  border-color: rgba(192,132,252,.22);
  background: rgba(168,85,247,.08);
}
#landingView .seg-pill {
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}
#landingView .mascot-calm-wrap { border-radius: 12px; border-color: rgba(192,132,252,.22); }
#landingView .cta-box { border-radius: 12px; }

.landing-reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1); }
.landing-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes vxGridDrift { to { background-position: 64px 64px; } }
@keyframes vxHeroSweep { 0%,18% { transform: translateX(-110%); } 48%,100% { transform: translateX(110%); } }
@keyframes vxOrbFloat { 50% { transform: translate3d(18px,-20px,0) scale(1.08); } }
@keyframes vxPulse { 50% { opacity: .42; transform: scale(.75); } }
@keyframes vxVisualHover { 50% { transform: rotateY(-1.5deg) rotateX(.5deg) translateY(-7px); } }
@keyframes vxScan { from { top: -100px; } to { top: calc(100% + 100px); } }
@keyframes vxCardFloat { 50% { transform: translateY(-9px); } }

@media (max-width: 1080px) {
  .vx-home-hero { grid-template-columns: 1fr; gap: 46px; padding: 52px; }
  .vx-home-copy { text-align: center; }
  .vx-home-copy h1, .vx-home-copy > p, .vx-home-proof { margin-left: auto; margin-right: auto; }
  .vx-home-kicker { margin-left: auto; margin-right: auto; }
  .vx-home-actions { justify-content: center; }
  .vx-home-visual { width: min(100%, 760px); margin: 0 auto; }
}
@media (max-width: 760px) {
  #landingView .land-nav {
    width: calc(100% - 18px);
    height: 58px;
    top: 8px;
    padding: 0 8px 0 10px;
    border-radius: 9px;
  }
  #landingView .nav-brand { font-size: 12px; }
  #landingView .brand-mascot { width: 30px; height: 30px; border-radius: 7px; }
  #landingView .nav-links { display: none; }
  #landingView .nav-actions .btn { min-height: 36px; padding-inline: 12px; font-size: 10.5px; }
  .vx-home-hero {
    width: calc(100% - 18px);
    min-height: auto;
    margin-top: 78px;
    padding: 38px 18px 28px;
    gap: 34px;
    border-radius: 11px;
  }
  .vx-home-copy h1 { font-size: clamp(42px, 12.5vw, 61px); }
  .vx-home-copy > p { margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .vx-home-kicker { min-height: 30px; padding-inline: 10px; font-size: 8.5px; letter-spacing: .075em; }
  .vx-home-actions { display: grid; grid-template-columns: 1fr; }
  .vx-home-actions .btn { width: 100%; min-height: 49px; }
  .vx-home-proof { grid-template-columns: repeat(3,1fr); margin-top: 28px; }
  .vx-home-proof > div { padding-right: 6px; }
  .vx-home-proof strong { font-size: 15px; }
  .vx-home-proof span { font-size: 9px; }
  .vx-visual-shell { transform: none; animation: vxMobileVisual 5s ease-in-out infinite; border-radius: 9px; }
  .vx-visual-topline, .vx-visual-footer { min-height: 34px; padding-inline: 10px; font-size: 7px; }
  .vx-visual-footer span:nth-child(2) { display: none; }
  .vx-float-card { min-width: 132px; padding: 10px 11px; }
  .vx-float-card span { font-size: 7px; }
  .vx-float-card strong { font-size: 11px; }
  .vx-float-card-a { left: -4px; bottom: -22px; }
  .vx-float-card-b { right: -3px; top: 42px; }
  #landingView .land-section { padding: 72px 16px; }
  #landingView .step-card, #landingView .feat-card, #landingView .test-card { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #landingView *, #landingView *::before, #landingView *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .landing-reveal { opacity: 1; transform: none; }
}
@keyframes vxMobileVisual { 50% { transform: translateY(-5px); } }


/* ===== V19 — LOADER LEVE, SEM IMAGEM ===== */
.vyxora-loader.vx-lite-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding:
    max(20px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 46%, rgba(126,34,206,.13), transparent 34%),
    linear-gradient(180deg, #050508 0%, #020203 100%);
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .58s cubic-bezier(.22,.75,.18,1),
    visibility .58s ease,
    transform .58s cubic-bezier(.22,.75,.18,1);
}

.vyxora-loader.vx-lite-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.012);
}

.vx-lite-loader .vx-lite-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.vx-lite-loader .vx-lite-orb-a {
  width: min(48vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(147,51,234,.12), transparent 68%);
  animation: vxLiteOrbA 5.8s ease-in-out infinite;
}

.vx-lite-loader .vx-lite-orb-b {
  width: min(70vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(168,85,247,.07);
  box-shadow:
    0 0 70px rgba(126,34,206,.05),
    inset 0 0 70px rgba(126,34,206,.035);
  animation: vxLiteOrbB 8s linear infinite;
}

.vx-lite-content {
  position: relative;
  z-index: 2;
  width: min(88vw, 390px);
  display: grid;
  justify-items: center;
  text-align: center;
  animation: vxLiteEnter .72s cubic-bezier(.16,1,.3,1) both;
}

.vx-lite-mark {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.vx-lite-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(216,180,254,.35);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(126,34,206,.28), rgba(23,10,38,.92));
  color: #f3e8ff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  text-shadow: 0 0 18px rgba(216,180,254,.65);
  box-shadow:
    0 12px 34px rgba(0,0,0,.48),
    0 0 28px rgba(147,51,234,.2),
    inset 0 1px rgba(255,255,255,.08);
  animation: vxLiteCore 2.6s ease-in-out infinite;
}

.vx-lite-ring {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid transparent;
  pointer-events: none;
}

.vx-lite-ring-a {
  border-top-color: rgba(216,180,254,.92);
  border-right-color: rgba(147,51,234,.32);
  animation: vxLiteSpin 2.2s linear infinite;
}

.vx-lite-ring-b {
  inset: 11px;
  border-bottom-color: rgba(168,85,247,.55);
  border-left-color: rgba(216,180,254,.12);
  animation: vxLiteSpinReverse 3.1s linear infinite;
}

.vx-lite-brand {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.vx-lite-brand strong {
  color: #f7f2ff;
  font-size: clamp(31px, 9vw, 43px);
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow:
    0 0 24px rgba(192,132,252,.3),
    0 0 50px rgba(126,34,206,.16);
}

.vx-lite-brand span {
  color: rgba(216,180,254,.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .48em;
  transform: translateX(.24em);
}

.vx-lite-copy {
  margin: 23px 0 15px;
  color: rgba(232,220,244,.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.vx-lite-progress {
  position: relative;
  width: min(72vw, 280px);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(168,85,247,.1);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.08),
    0 0 18px rgba(126,34,206,.06);
}

.vx-lite-progress span {
  position: absolute;
  inset: 0 auto 0 -42%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168,85,247,.78),
    #f3e8ff,
    transparent
  );
  box-shadow: 0 0 14px rgba(192,132,252,.72);
  animation: vxLiteProgress 1.35s cubic-bezier(.4,0,.2,1) infinite;
}

.vx-lite-dots {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.vx-lite-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(216,180,254,.55);
  box-shadow: 0 0 7px rgba(168,85,247,.42);
  animation: vxLiteDot 1.15s ease-in-out infinite;
}

.vx-lite-dots i:nth-child(2) { animation-delay: .15s; }
.vx-lite-dots i:nth-child(3) { animation-delay: .30s; }

@keyframes vxLiteEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes vxLiteCore {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 34px rgba(0,0,0,.48),
      0 0 28px rgba(147,51,234,.18),
      inset 0 1px rgba(255,255,255,.08);
  }
  50% {
    transform: translateY(-4px) scale(1.025);
    box-shadow:
      0 17px 40px rgba(0,0,0,.52),
      0 0 38px rgba(168,85,247,.3),
      inset 0 1px rgba(255,255,255,.1);
  }
}

@keyframes vxLiteSpin {
  to { transform: rotate(360deg); }
}

@keyframes vxLiteSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes vxLiteProgress {
  0% { left: -42%; }
  100% { left: 100%; }
}

@keyframes vxLiteDot {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes vxLiteOrbA {
  0%, 100% { transform: scale(.94); opacity: .68; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes vxLiteOrbB {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .vx-lite-mark {
    width: 94px;
    height: 94px;
    margin-bottom: 21px;
  }

  .vx-lite-core {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 28px;
  }

  .vx-lite-brand strong {
    font-size: 34px;
  }

  .vx-lite-copy {
    margin-top: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-lite-loader *,
  .vx-lite-loader *::before,
  .vx-lite-loader *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   V22 — LOGIN E CADASTRO ULTRALEVE
   ========================================================= */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: #050308 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-overlay.open {
  display: flex;
}

.auth-modal {
  position: relative;
  display: block !important;
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: auto;
  overflow: visible !important;
  border: 1px solid rgba(168, 85, 247, .28) !important;
  border-radius: 12px !important;
  background: #0b0711 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38) !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

/* Remove completamente a coluna decorativa pesada */
.auth-panel-left {
  display: none !important;
}

.auth-form-area {
  width: 100% !important;
  min-width: 0 !important;
  padding: 34px 30px 28px !important;
  background: transparent !important;
  overflow: visible !important;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 85, 247, .2) !important;
  border-radius: 8px !important;
  background: #120b1b !important;
  color: #d8b4fe !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.auth-close:hover {
  background: #1b1028 !important;
  border-color: rgba(168, 85, 247, .42) !important;
  transform: none !important;
}

.auth-form-header,
.auth-form-area h1,
.auth-form-area h2 {
  margin-top: 0 !important;
  color: #f8f4ff !important;
  text-shadow: none !important;
}

.auth-form-area p,
.auth-form-area .subtitle {
  color: #a99bb8 !important;
}

.auth-form-area label {
  color: #d7c9e5 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.auth-form-area input,
.auth-form-area select,
.auth-form-area textarea {
  min-height: 45px !important;
  border: 1px solid rgba(168, 85, 247, .18) !important;
  border-radius: 8px !important;
  background: #110b18 !important;
  color: #f7f2fb !important;
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}

.auth-form-area input:focus,
.auth-form-area select:focus,
.auth-form-area textarea:focus {
  border-color: #9f4aea !important;
  outline: 2px solid rgba(159, 74, 234, .12) !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.auth-form-area input::placeholder,
.auth-form-area textarea::placeholder {
  color: #6f617d !important;
}

.auth-form-area button {
  min-height: 44px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.auth-form-area .btn-primary,
.auth-form-area button[type="submit"] {
  border: 1px solid #a855f7 !important;
  background: #862dd1 !important;
  color: #fff !important;
}

.auth-form-area .btn-primary:hover,
.auth-form-area button[type="submit"]:hover {
  background: #9639df !important;
  transform: none !important;
  box-shadow: none !important;
}

.auth-form-area .btn-ghost,
.auth-form-area .btn-outline {
  border: 1px solid rgba(168, 85, 247, .22) !important;
  background: #120b1b !important;
  color: #dbc7ee !important;
}

.auth-form-area a {
  color: #bd7cf2 !important;
  text-shadow: none !important;
}

.auth-form-area *,
.auth-modal *,
.auth-overlay * {
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

/* Cadastro compacto */
.auth-form-area .form-row {
  gap: 12px !important;
}

.auth-form-area .auth-divider,
.auth-form-area .form-divider {
  margin: 18px 0 !important;
}

@media (max-width: 520px) {
  .auth-overlay {
    align-items: flex-start;
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom));
  }

  .auth-modal {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  .auth-form-area {
    padding: 48px 18px 22px !important;
  }

  .auth-form-area .form-row {
    display: block !important;
  }

  .auth-form-area .form-row > * + * {
    margin-top: 12px !important;
  }
}


/* =========================================================
   V23 — PERFORMANCE REAL DA AUTENTICAÇÃO
   ========================================================= */

/*
  Quando Entrar/Criar conta abre, todos os elementos pesados da página inicial
  deixam de ser renderizados. O modal permanece ativo.
*/
html.auth-performance-mode,
body.auth-performance-mode {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.auth-performance-mode #landingView > :not(#authOverlay) {
  display: none !important;
}

body.auth-performance-mode #authOverlay {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  contain: strict;
  isolation: isolate;
}

/* Nenhum efeito herdado da landing continua rodando dentro do modal. */
body.auth-performance-mode #authOverlay,
body.auth-performance-mode #authOverlay *,
body.auth-performance-mode #authOverlay *::before,
body.auth-performance-mode #authOverlay *::after {
  animation: none !important;
  transition: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
  will-change: auto !important;
}

/* Mantém somente os estilos funcionais e leves. */
body.auth-performance-mode #authOverlay {
  background: #050308 !important;
}

body.auth-performance-mode .auth-modal {
  contain: layout paint style;
  transform: translateZ(0);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28) !important;
}

body.auth-performance-mode .auth-form-area input,
body.auth-performance-mode .auth-form-area select,
body.auth-performance-mode .auth-form-area textarea,
body.auth-performance-mode .auth-form-area button {
  box-shadow: none !important;
  transform: none !important;
}

/* Em Android/WebView, evita repintura da página inteira ao abrir teclado. */
@media (max-width: 768px) {
  body.auth-performance-mode #authOverlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-performance-mode .auth-modal {
    margin: max(10px, env(safe-area-inset-top)) 10px
      max(10px, env(safe-area-inset-bottom)) !important;
  }
}


/* =========================================================
   V25 — ESTABILIDADE MOBILE E INICIALIZAÇÃO ÚNICA
   ========================================================= */
body.vx-booting {
  overflow: hidden !important;
}

body.vx-booting > :not(#vyxoraLoader) {
  visibility: hidden !important;
}


#vyxoraLoader {
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: strict;
}

@media (max-width: 768px) {
  /* Evita repinturas contínuas e piscadas no Android/WebView. */
  #landingView *,
  #landingView *::before,
  #landingView *::after {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
  }

  #landingView .vx-home-grid,
  #landingView .vx-home-orb,
  #landingView .vx-scanline,
  #landingView .vx-float-card {
    display: none !important;
  }

  #landingView .landing-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  #landingView .vx-home-visual,
  #landingView .vx-visual-shell,
  #landingView .vx-visual-image,
  #landingView .vx-visual-image img {
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  #landingView .vx-visual-shell {
    box-shadow: 0 14px 30px rgba(0,0,0,.34) !important;
  }

  #landingView img {
    backface-visibility: hidden;
    image-rendering: auto;
  }

  /* Loader mobile: somente animações essenciais. */
  #vyxoraLoader .vx-lite-orb {
    display: none !important;
  }

  #vyxoraLoader .vx-lite-content,
  #vyxoraLoader .vx-lite-core {
    animation: none !important;
    filter: none !important;
  }

  #vyxoraLoader .vx-lite-ring-a {
    animation: vxLiteSpin 2.4s linear infinite !important;
  }

  #vyxoraLoader .vx-lite-ring-b {
    animation: none !important;
  }

  #vyxoraLoader .vx-lite-progress span {
    animation: vxLiteProgress 1.35s linear infinite !important;
  }

  #vyxoraLoader .vx-lite-dots {
    display: none !important;
  }
}

/* Não anima conteúdo oculto. */
#landingView[style*="display: none"],
#dashboardView[style*="display: none"],
#publicView[style*="display: none"] {
  contain: strict;
}


/* =========================================================
   V26 — CORREÇÃO DE CLIQUES E CAMADAS INVISÍVEIS
   ========================================================= */

#vyxoraLoader.is-hidden,
.vyxora-loader.is-hidden {
  pointer-events: none !important;
}

.auth-overlay:not(.open),
#authOverlay:not(.open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-overlay.open,
#authOverlay.open {
  visibility: visible !important;
  pointer-events: auto !important;
}

#landingView,
#landingView nav,
#landingView section,
#landingView button,
#landingView a {
  pointer-events: auto;
}

.bg-noise,
.bg-grid,
.bg-glow-tl,
.bg-glow-br,
.vx-home-grid,
.vx-home-orb,
.vx-scanline,
.vx-float-card,
.vx-home-hero::before,
.vx-home-hero::after {
  pointer-events: none !important;
}

/* Impede qualquer camada decorativa de cobrir os controles. */
.land-nav,
.vx-home-content,
.vx-home-actions,
.nav-actions,
.nav-links {
  position: relative;
  z-index: 5;
}


/* =========================================================
   V27 — CLIQUES RESTAURADOS
   ========================================================= */

.notification-center-overlay {
  pointer-events: none !important;
}

.notification-center-overlay.open {
  pointer-events: auto !important;
}

/* O loader controla somente o estado inicial, sem alterar
   a visibilidade própria de modais e overlays. */
body.vx-booting > :not(#vyxoraLoader) {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.vx-ready {
  overflow: auto;
}


/* =========================================================
   V28 — CLIENTES, SERVIÇOS E PROFISSIONAIS PREMIUM
   Escopo restrito às três views de diretório
   ========================================================= */
.premium-directory-view { --dir-border: rgba(168,85,247,.22); --dir-surface: rgba(13,8,21,.92); }
.directory-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:20px 22px; border:1px solid var(--dir-border); border-radius:14px; background:linear-gradient(115deg,rgba(20,10,33,.96),rgba(8,6,13,.98)); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.directory-kicker { display:inline-flex; align-items:center; gap:7px; margin-bottom:7px; color:#c084fc; font-size:9px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.directory-kicker::before { content:''; width:6px; height:6px; border-radius:2px; background:#a855f7; box-shadow:0 0 10px rgba(168,85,247,.55); }
.directory-intro h2 { margin:0; font-family:'Instrument Serif',serif; font-size:27px; line-height:1.05; color:var(--text); }
.directory-intro p { margin:6px 0 0; max-width:650px; color:var(--text3); font-size:12.5px; line-height:1.55; }
.directory-icon { width:52px; height:52px; border:1px solid rgba(168,85,247,.28); border-radius:12px; display:grid; place-items:center; flex:0 0 auto; font-size:21px; color:#d8b4fe; background:#170b24; box-shadow:inset 0 1px rgba(255,255,255,.05); }
.directory-form-panel { padding:0 !important; overflow:hidden; border-color:var(--dir-border) !important; background:var(--dir-surface) !important; }
.directory-form-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; border-bottom:1px solid rgba(168,85,247,.13); background:rgba(168,85,247,.035); }
.directory-form-head .form-panel-title { margin:0; font-size:17px; }
.directory-form-sub { margin-top:3px; color:var(--text4); font-size:10.5px; }
.directory-form-badge { padding:5px 8px; border:1px solid rgba(168,85,247,.2); border-radius:7px; background:#140a20; color:#cda7ee; font-size:9px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.directory-form-grid { grid-template-columns:minmax(190px,1.2fr) minmax(170px,1fr) minmax(190px,1.1fr) minmax(190px,.85fr) !important; padding:17px; gap:12px !important; }
.directory-form-grid .field label { color:#a998ba; font-size:9.5px; font-weight:750; letter-spacing:.09em; }
.directory-form-grid input { height:42px; border-radius:9px; background:#100819; border-color:rgba(168,85,247,.2); }
.directory-form-grid input:focus { border-color:rgba(192,132,252,.65); box-shadow:0 0 0 3px rgba(168,85,247,.08); }
.directory-submit { display:grid; align-items:end; }
.directory-add-btn { min-height:42px; border-radius:9px !important; font-weight:750; box-shadow:0 8px 22px rgba(101,33,184,.22); }
.directory-add-btn span { font-size:17px; line-height:0; }
.directory-list-head { display:flex; align-items:center; justify-content:space-between; margin:20px 2px 10px; }
.directory-list-head strong { display:block; color:var(--text2); font-size:12px; }
.directory-list-head span { display:block; margin-top:2px; color:var(--text4); font-size:10px; }
.directory-cards-grid { grid-template-columns:repeat(auto-fill,minmax(285px,1fr)); gap:14px; }
.premium-record-card { min-height:220px; padding:17px !important; padding-right:17px !important; border-radius:14px !important; border-color:rgba(168,85,247,.18) !important; background:linear-gradient(145deg,rgba(16,9,25,.98),rgba(7,5,11,.98)) !important; overflow:visible !important; box-shadow:inset 0 1px rgba(255,255,255,.025); }
.premium-record-card:hover { border-color:rgba(192,132,252,.4) !important; transform:translateY(-2px); box-shadow:0 14px 32px rgba(0,0,0,.22); }
.record-card-accent { position:absolute; left:0; top:17px; bottom:17px; width:2px; border-radius:99px; background:linear-gradient(#c084fc,#7c3aed,transparent); opacity:.75; }
.premium-record-card .action-menu { top:12px; right:12px; }
.premium-record-card .action-menu-btn { width:32px; height:32px; border-radius:8px; background:#160d20; }
.record-card-top,.professional-card-top,.service-card-head { display:flex; align-items:center; gap:10px; padding-right:40px; }
.record-main { min-width:0; flex:1; }
.record-avatar { width:45px !important; height:45px !important; margin:0 !important; border-radius:11px !important; background:linear-gradient(145deg,#2b1243,#170a24) !important; }
.record-name { color:#f8f3ff; font-size:14px !important; font-weight:750 !important; }
.record-type { margin-top:3px; color:#7e6d90; font-size:9px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.record-status { margin-left:auto; }
.record-contact-list { display:grid; gap:7px; margin:16px 0 13px; padding:11px 12px; border:1px solid rgba(168,85,247,.1); border-radius:10px; background:rgba(168,85,247,.025); }
.record-contact { display:flex; align-items:center; gap:9px; min-width:0; }
.record-contact>span { width:25px; height:25px; display:grid; place-items:center; border-radius:7px; background:#170b23; color:#b76df0; font-size:11px; }
.record-contact div { min-width:0; }
.record-contact small { display:block; color:#6f607d; font-size:8px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.record-contact strong { display:block; margin-top:1px; color:#baacc8; font-size:10.5px; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-stats { margin-top:auto !important; }
.record-stats .cc-stat { padding:10px 11px; background:#0d0714; border-color:rgba(168,85,247,.12); }
.record-money { font-size:14px !important; }
.service-record-card { min-height:218px; }
.service-symbol { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(168,85,247,.24); border-radius:10px; background:#170b23; color:#c084fc; font-size:18px; }
.service-record-card .record-name { margin-top:17px; font-size:16px !important; }
.service-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
.service-info { padding:11px; border:1px solid rgba(168,85,247,.12); border-radius:10px; background:#0e0815; }
.service-info small { display:block; color:#70617d; font-size:8px; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.service-info strong { display:block; margin-top:4px; color:#f2e9fa; font-family:'Instrument Serif',serif; font-size:18px; font-weight:500; }
.service-footer { display:flex; align-items:center; justify-content:space-between; margin-top:13px; padding-top:11px; border-top:1px solid rgba(168,85,247,.1); color:#776788; font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.professional-record-card { text-align:left !important; min-height:220px; padding-top:17px !important; }
.professional-card-top { justify-content:flex-start; }
.professional-record-card .record-status { margin-left:auto; }
.professional-record-card .record-name { margin-top:15px; font-size:16px !important; }
.professional-specialty { margin-top:4px !important; color:#b879eb !important; font-size:10px !important; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.professional-contact { display:flex; align-items:center; gap:8px; margin-top:15px; padding:10px 11px; border:1px solid rgba(168,85,247,.11); border-radius:9px; background:#0e0815; color:#7b6b89; }
.professional-contact span { color:#b879eb; }
.professional-contact strong { color:#b4a4c3; font-size:10.5px; font-weight:550; }
.professional-footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid rgba(168,85,247,.1); }
.professional-footer .online-dot { margin-top:0; }
.team-label { color:#695a77; font-size:8px; font-weight:750; letter-spacing:.12em; text-transform:uppercase; }
.directory-empty { min-height:210px; border:1px dashed rgba(168,85,247,.18); border-radius:14px; background:rgba(168,85,247,.018); }
.directory-empty span { display:block; margin-top:5px; color:var(--text4); font-size:10.5px; }
@media(max-width:1150px){.directory-form-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.directory-submit{grid-column:span 2}}
@media(max-width:680px){.directory-intro{padding:16px}.directory-intro h2{font-size:23px}.directory-icon{width:44px;height:44px}.directory-form-head{align-items:flex-start}.directory-form-badge{display:none}.directory-form-grid{grid-template-columns:1fr !important;padding:14px}.directory-submit{grid-column:auto}.directory-cards-grid{grid-template-columns:1fr}.premium-record-card{min-height:0}.directory-add-btn{min-height:45px}}


/* =========================================================
   V29 — AVISOS NO TOPO E TROCA DE TELAS ESTÁVEL NO ANDROID
   ========================================================= */

@media (max-width: 768px) {
  /* Avisos operacionais no padrão de notificação de aplicativo. */
  .notif-stack {
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: 520px;
    margin-inline: auto;
    align-items: stretch;
    z-index: 100500 !important;
  }

  .notif-item {
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #100a18;
    border-color: rgba(168, 85, 247, .32);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .42);
    animation: vxNotifTopIn .2s ease-out both;
    transition: opacity .2s ease, transform .2s ease;
  }

  .notif-item.out {
    opacity: 0;
    transform: translateY(-10px);
  }

  @keyframes vxNotifTopIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Remove o fade/translate que fazia a tela anterior piscar no WebView. */
  .view,
  .view.active,
  body.vx-view-switching .view,
  body.vx-view-switching .view.active {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .dash-main,
  .view.active {
    background-color: var(--bg);
  }

  .view.active {
    contain: layout paint;
  }
}
