@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: #06060a;
  --bg1: #0d0b14;
  --bg2: #13101d;
  --bg3: #181423;
  --bg4: #1f192d;

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

  --border: rgba(167,139,250,0.08);
  --border2: rgba(167,139,250,0.14);
  --border3: rgba(167,139,250,0.22);

  --text: #faf7ff;
  --text2: #c4b5fd;
  --text3: #8b7bb8;
  --text4: #62557f;

  --accent: #8b5cf6;
  --accent2: #a78bfa;
  --accent3: rgba(139,92,246,0.18);
  --accent4: rgba(139,92,246,0.09);
  --accent-border: rgba(139,92,246,0.35);

  --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: #c084fc;
  --purple-bg: rgba(192,132,252,0.08);
  --purple-border: rgba(192,132,252,0.2);

  --sidebar-w: 248px;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
}

/* ── TEMA CLARO ─────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f3ff;
  --bg1: #ffffff;
  --bg2: #f0edfc;
  --bg3: #e9e4f9;
  --bg4: #e2dbf5;

  --surface: rgba(139,92,246,0.04);
  --surface2: rgba(139,92,246,0.07);
  --surface3: rgba(139,92,246,0.11);

  --border: rgba(139,92,246,0.10);
  --border2: rgba(139,92,246,0.18);
  --border3: rgba(139,92,246,0.28);

  --text: #1a1030;
  --text2: #4c3a80;
  --text3: #7c6aaa;
  --text4: #a897cc;

  --accent: #7c3aed;
  --accent2: #8b5cf6;
  --accent3: rgba(124,58,237,0.15);
  --accent4: rgba(124,58,237,0.07);
  --accent-border: rgba(124,58,237,0.30);

  --green: #16a34a;
  --green-bg: rgba(22,163,74,0.08);
  --green-border: rgba(22,163,74,0.2);

  --yellow: #ca8a04;
  --yellow-bg: rgba(202,138,4,0.08);
  --yellow-border: rgba(202,138,4,0.2);

  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.08);
  --red-border: rgba(220,38,38,0.2);

  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,0.08);
  --blue-border: rgba(37,99,235,0.2);

  --purple: #9333ea;
  --purple-bg: rgba(147,51,234,0.08);
  --purple-border: rgba(147,51,234,0.2);
}
/* ─────────────────────────────────────────────────────────────── */

*, *::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: all 0.18s ease; white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.4), 0 4px 16px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.5), 0 6px 22px rgba(99,102,241,0.35);
}
.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; }

.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; }
.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: 520px; margin-top: 12px; }

.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.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.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.2s, transform 0.2s; }
.feat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.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.2s; }
.test-card:hover { border-color: var(--border2); }
.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; }

.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: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px; margin-bottom: 20px; flex-shrink: 0; font-family: 'Instrument Serif', serif; font-size: 19px; }
.side-nav-section { flex-shrink: 0; }
.side-nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text4); font-weight: 600; padding: 10px 10px 5px; }
.side-nav-sep { height: 1px; background: var(--border); margin: 8px 0; }
.nav-btn {
  width: 100%; background: none; border: none; color: var(--text2);
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px; text-align: left;
  font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.nav-btn .ni { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; background: var(--surface); flex-shrink: 0; transition: background 0.15s; }
.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: var(--accent4); color: var(--accent2); border: 1px solid var(--accent-border); }
.nav-btn.active .ni { background: var(--accent3); }
.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; }
.view#view-ai { display: none; }
.view#view-ai.active { display: flex; animation: none; }
@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; }

.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); }

/* VYXORA AI */
/* ══ VYXORA AI — Chat estilo WhatsApp/Claude ══ */

/* View do AI ocupa tela toda, sem scroll externo */
#view-ai {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
#view-ai.active {
  display: flex;
}

@media (min-width: 769px) {
  #view-ai {
    left: calc(var(--sidebar-w) + 22px);
    padding: 12px 16px;
  }
  .ai-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  }
  .ai-hero {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
.ai-back-btn { display: none; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--accent-border); background: rgba(18,18,28,0.85); color: var(--accent2); font-family: "Geist", sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }

}

.ai-shell {
  display: flex; flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header do chat */
.ai-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(255,255,255,0.018) 60%), var(--bg1);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.ai-hero::after {
  content: ''; position: absolute; inset: auto -60px -80px auto; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,0.18), transparent 65%);
  pointer-events: none;
}
.ai-hero > * { position: relative; z-index: 1; }
.ai-hero-left { display: flex; align-items: center; gap: 12px; }
.ai-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(139,92,246,0.4);
}
.ai-hero-info { display: flex; flex-direction: column; }
.ai-hero-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ai-hero-sub { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.ai-hero-sub::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); display: inline-block; }
.ai-kicker { display: none; }
.ai-hero h1 { display: none; }
.ai-hero p { display: none; }
.ai-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text3); font-size: 11px; white-space: nowrap;
}
.ai-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }

/* Área do chat */
.ai-chat {
  display: flex; flex-direction: column; flex: 1 1 0; min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.04), transparent 60%),
    var(--bg1);
}

/* Mensagens */
.ai-messages {
  flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.25); border-radius: 4px; }

.ai-message { display: flex; width: 100%; margin-bottom: 2px; }
.ai-message-user { justify-content: flex-end; }
.ai-message-bot { justify-content: flex-start; align-items: flex-end; gap: 8px; }

/* Avatar da IA nas mensagens */
.ai-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 2px;
}

/* Bolhas */
.ai-bubble {
  max-width: min(72%, 520px);
  padding: 10px 14px;
  line-height: 1.55; font-size: 14px;
  white-space: pre-wrap; overflow-wrap: anywhere;
  position: relative;
}

/* Bolha do usuário — direita, roxo, estilo WhatsApp */
.ai-message-user .ai-bubble {
  background: linear-gradient(135deg, #7c3aed, var(--accent));
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}

/* Bolha da IA — esquerda, fundo escuro */
.ai-message-bot .ai-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Agrupamento de mensagens consecutivas */
.ai-message-user + .ai-message-user .ai-bubble { border-radius: 18px 6px 4px 18px; }
.ai-message-bot + .ai-message-bot .ai-msg-avatar { visibility: hidden; }
.ai-message-bot + .ai-message-bot .ai-bubble { border-radius: 6px 18px 18px 4px; }

/* Horário nas bolhas */
.ai-bubble-time {
  display: block; font-size: 10px; margin-top: 4px; text-align: right; opacity: 0.55;
}

/* Indicador de digitando */
.ai-typing .ai-bubble {
  padding: 12px 16px;
}
.ai-typing-dots { display: flex; gap: 4px; align-items: center; }
.ai-typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2); opacity: 0.6;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Compose — barra de input */
.ai-compose {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,12,0.85); backdrop-filter: blur(20px);
  flex-shrink: 0;
}
.ai-compose input {
  flex: 1; min-height: 46px; border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  color: var(--text); padding: 0 18px;
  font-family: 'Geist', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.ai-compose input::placeholder { color: var(--text3); }
.ai-compose input:focus {
  border-color: rgba(139,92,246,0.5);
  background: rgba(255,255,255,0.1);
}

/* Botão enviar — círculo igual WhatsApp */
.ai-send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(139,92,246,0.45);
}
.ai-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(139,92,246,0.55); }
.ai-send-btn:active { transform: scale(0.95); }
.ai-send-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.ai-send-btn svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════
   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;
}

.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%; }
  .view#view-ai.active { height: 100dvh; max-height: 100dvh; overflow: hidden; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
  .view#view-ai.active .ai-chat { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .view#view-ai.active .ai-messages { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  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; }

  .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: 16px; }
  .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: 18px; padding: 18px 20px; }
  .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)); }
  .ai-hero { padding: 12px 14px; border-radius: 0; border-left: none; border-right: none; border-top: none; }
  .ai-chat { border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
  .ai-messages { padding: 12px 10px 8px; gap: 3px; }
  .ai-bubble { max-width: 85%; font-size: 14px; }
  .ai-compose { padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 8px; flex-shrink: 0; }
  .ai-compose input { min-height: 46px; font-size: 15px; }
  .ai-send-btn { width: 46px; height: 46px; }
  .ai-status { display: none; }

  .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-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); }
  .ai-hero h1 { font-size: 34px; }
  .ai-bubble { max-width: 90%; font-size: 14px; }
  .ai-msg-avatar { width: 24px; height: 24px; font-size: 11px; }
  .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);
}

/* ── OVERRIDES MODO CLARO — elementos com cores fixas ───────────── */
[data-theme="light"] .land-nav {
  background: rgba(245,243,255,0.85) !important;
  border-bottom: 1px solid rgba(139,92,246,0.12);
}
[data-theme="light"] .land-nav.scrolled {
  background: rgba(245,243,255,0.97) !important;
}
[data-theme="light"] .modal-overlay,
[data-theme="light"] .edit-overlay {
  background: rgba(200,190,240,0.5) !important;
}
[data-theme="light"] .modal,
[data-theme="light"] .edit-modal {
  box-shadow: 0 32px 90px rgba(100,80,180,0.18) !important;
}
[data-theme="light"] .action-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(139,92,246,0.2) !important;
  box-shadow: 0 8px 32px rgba(100,80,200,0.15) !important;
}
[data-theme="light"] .action-item:hover {
  background: rgba(139,92,246,0.07) !important;
  color: var(--text) !important;
}
[data-theme="light"] .mobile-menu-overlay {
  background: rgba(180,170,220,0.4) !important;
}
[data-theme="light"] .mobile-menu-drawer {
  background: #ffffff !important;
  border-right: 1px solid rgba(139,92,246,0.15) !important;
  box-shadow: 28px 0 80px rgba(100,80,200,0.15) !important;
}
[data-theme="light"] .mobile-nav-bar {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 4px 24px rgba(100,80,200,0.15) !important;
  border: 1px solid rgba(139,92,246,0.15) !important;
}
[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border: 1px solid rgba(139,92,246,0.12) !important;
  box-shadow: 0 4px 24px rgba(100,80,200,0.10) !important;
}
[data-theme="light"] .topbar {
  background: rgba(245,243,255,0.9) !important;
  border-bottom: 1px solid rgba(139,92,246,0.12) !important;
  box-shadow: none !important;
}
[data-theme="light"] .auth-overlay {
  background: rgba(200,190,240,0.5) !important;
}
[data-theme="light"] .auth-modal {
  box-shadow: 0 40px 120px rgba(100,80,200,0.18) !important;
}
[data-theme="light"] .auth-panel-left {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}
[data-theme="light"] .land-footer {
  background: var(--bg2) !important;
  border-top: 1px solid var(--border) !important;
}
[data-theme="light"] .mockup-wrap {
  box-shadow: 0 40px 100px rgba(100,80,200,0.2) !important;
}
[data-theme="light"] .stat-card,
[data-theme="light"] .panel,
[data-theme="light"] .tl-card,
[data-theme="light"] .client-card,
[data-theme="light"] .svc-card,
[data-theme="light"] .prof-card,
[data-theme="light"] .fin-card {
  background: #ffffff !important;
  border-color: rgba(139,92,246,0.12) !important;
}
[data-theme="light"] .dash-hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(168,85,247,0.05)) !important;
  border-color: rgba(139,92,246,0.15) !important;
}
[data-theme="light"] .nav-btn.active {
  background: rgba(124,58,237,0.1) !important;
  color: var(--accent) !important;
}
[data-theme="light"] .notif-item {
  background: #ffffff !important;
  border-color: rgba(139,92,246,0.12) !important;
}
/* ─────────────────────────────────────────────────────────────── */

[data-theme="light"] .ai-compose {
  background: rgba(245,243,255,0.97) !important;
  border-top: 1px solid rgba(139,92,246,0.12) !important;
}
[data-theme="light"] .ai-compose input {
  background: #ffffff !important;
  border: 1px solid rgba(139,92,246,0.2) !important;
  color: var(--text) !important;
}
[data-theme="light"] .ai-compose input:focus {
  border-color: rgba(124,58,237,0.5) !important;
  background: #ffffff !important;
}
[data-theme="light"] .ai-chat {
  background: #f8f6ff !important;
}
[data-theme="light"] .view#view-ai {
  background: #f8f6ff !important;
}

/* ── 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); }
/* ─────────────────────────────────────────────────────────────────── */
