:root {
  color-scheme: dark;
  --ink: #100d18;
  --ink-2: #171220;
  --panel: rgba(36, 27, 50, 0.72);
  --panel-strong: rgba(45, 33, 62, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(237, 215, 234, 0.14);
  --line-strong: rgba(237, 215, 234, 0.24);
  --cloud: #f7f1f7;
  --muted: #b9aec0;
  --pink: #f077cc;
  --pink-soft: #ffc9e8;
  --lilac: #aba4ce;
  --violet: #7f67a3;
  --violet-deep: #513e69;
  --green: #5ee6aa;
  --green-bg: rgba(94, 230, 170, 0.11);
  --amber: #ffc86b;
  --red: #ff7f96;
  --blue: #72b6ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --radius-sm: 14px;
  --sidebar: 248px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--cloud); background: radial-gradient(circle at 80% 0%, rgba(81,62,105,.24), transparent 36%), linear-gradient(145deg, #0d0b13 0%, #15101e 55%, #100c18 100%); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(240,119,204,.32); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(171,164,206,.3); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.ambient { position: fixed; z-index: -1; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .15; }
.ambient-one { top: -22vw; left: -14vw; background: var(--pink); }
.ambient-two { right: -22vw; bottom: -24vw; background: var(--violet); }
.glass-panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.eyebrow { margin: 0 0 8px; color: var(--pink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .17em; }
.muted { color: var(--muted); }

.loading-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--ink); transition: opacity .35s ease; }
.loading-screen p { margin: 0; color: var(--muted); font-size: .84rem; letter-spacing: .04em; }
.loader-orbit { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(240,119,204,.24); border-radius: 50%; }
.loader-orbit::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(171,164,206,.22); border-radius: 50%; }
.loader-orbit::after { content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px var(--pink); transform-origin: 4px 60px; animation: orbit 1.3s linear infinite; }
.loader-orbit img { width: 56px; filter: drop-shadow(0 0 14px rgba(240,119,204,.25)); }
@keyframes orbit { to { transform: rotate(360deg); } }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 850; letter-spacing: .12em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-large { font-size: 1.08rem; }
.brand-large img { width: 44px; height: 44px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); padding: clamp(18px, 3vw, 46px); gap: clamp(20px, 4vw, 70px); align-items: stretch; }
.auth-story { position: relative; display: flex; min-height: calc(100vh - 92px); flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(28px, 5vw, 76px); border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(145deg, rgba(81,62,105,.42), rgba(16,13,24,.75)), radial-gradient(circle at 80% 20%, rgba(240,119,204,.22), transparent 30%); box-shadow: var(--shadow); }
.auth-story::before { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: 12%; border: 1px solid rgba(240,119,204,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(171,164,206,.025), 0 0 0 110px rgba(240,119,204,.018); }
.auth-story::after { content: "V"; position: absolute; right: 5%; bottom: -17%; color: rgba(240,119,204,.045); font-size: min(44vw, 580px); font-weight: 950; line-height: 1; pointer-events: none; }
.auth-copy { position: relative; z-index: 1; max-width: 720px; }
.auth-copy h1 { margin: 14px 0 22px; max-width: 680px; font-size: clamp(3rem, 5.5vw, 6.4rem); line-height: .96; letter-spacing: -.065em; }
.auth-copy h1 span { color: var(--pink); text-shadow: 0 0 45px rgba(240,119,204,.2); }
.auth-copy > p { max-width: 610px; margin: 0; color: #cbc0cf; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; }
.auth-proof { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-proof > div { padding: 17px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); backdrop-filter: blur(12px); }
.auth-proof strong, .auth-proof span { display: block; }
.auth-proof strong { font-size: .88rem; }
.auth-proof span { margin-top: 5px; color: var(--muted); font-size: .72rem; }

.auth-panel { align-self: center; width: min(100%, 510px); margin: 0 auto; padding: clamp(26px, 4vw, 48px); border-radius: 30px; }
.mobile-brand { display: none; margin-bottom: 40px; }
.step-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(240,119,204,.24); border-radius: 99px; color: var(--pink-soft); background: rgba(240,119,204,.08); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.auth-pane h2 { margin: 18px 0 8px; font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.04em; }
.auth-pane > p { margin: 0; font-size: .9rem; line-height: 1.6; }
.form-stack { display: grid; gap: 16px; margin-top: 28px; }
.form-stack label, .field { display: grid; gap: 8px; }
.form-stack label > span, .field > span, .field-label { color: #d9cfdd; font-size: .75rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); outline: none; border-radius: 13px; color: var(--cloud); background: rgba(255,255,255,.055); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input, select { min-height: 47px; padding: 0 14px; }
textarea { min-height: 110px; padding: 13px 14px; line-height: 1.55; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7f7388; }
input:focus, select:focus, textarea:focus { border-color: rgba(240,119,204,.6); background: rgba(255,255,255,.075); box-shadow: 0 0 0 3px rgba(240,119,204,.09); }
input[type="date"], input[type="time"], input[type="datetime-local"] { color-scheme: dark; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
option { background: #21182d; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.reveal-password { position: absolute; right: 8px; top: 50%; padding: 7px 8px; transform: translateY(-50%); border: 0; color: var(--pink-soft); background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.primary-button, .secondary-button, .ghost-button, .danger-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 13px; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease; }
.primary-button { color: #1a101b; background: linear-gradient(135deg, #ffc0e9, var(--pink)); box-shadow: 0 12px 30px rgba(240,119,204,.2); }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .danger-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled { opacity: .48; pointer-events: none; }
.secondary-button { border-color: rgba(171,164,206,.3); background: rgba(171,164,206,.12); color: #e6e1f6; }
.ghost-button { border-color: var(--line); background: rgba(255,255,255,.035); color: #e8e0e9; }
.danger-button { border-color: rgba(255,127,150,.22); background: rgba(255,127,150,.09); color: #ffb0be; }
.small-button { min-height: 34px; padding: 0 11px; border-radius: 10px; font-size: .7rem; }
.full { width: 100%; }
.auth-switch { margin-top: 22px !important; text-align: center; color: var(--muted); }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--pink-soft); font-weight: 800; cursor: pointer; }
.security-note { margin-top: 16px !important; padding: 11px 13px; border-radius: 12px; color: #bdb2c4 !important; background: rgba(255,255,255,.035); font-size: .72rem !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 16px auto 16px 16px; display: flex; width: var(--sidebar); flex-direction: column; padding: 22px 14px 15px; border-radius: 26px; }
.sidebar > .brand { padding: 4px 10px 26px; }
.side-nav { display: grid; gap: 6px; }
.side-nav button { display: flex; width: 100%; min-height: 45px; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid transparent; border-radius: 13px; color: #bdb2c4; background: transparent; font-size: .78rem; font-weight: 700; text-align: left; cursor: pointer; transition: .2s ease; }
.side-nav button:hover { color: var(--cloud); background: rgba(255,255,255,.04); }
.side-nav button.active { border-color: rgba(240,119,204,.18); color: var(--cloud); background: linear-gradient(90deg, rgba(240,119,204,.14), rgba(171,164,206,.06)); box-shadow: inset 3px 0 var(--pink); }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; font-size: 1.05rem; }
.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
.company-mini { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.company-mini > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--pink-soft); background: rgba(240,119,204,.13); font-weight: 900; }
.company-mini b, .company-mini small { display: block; }
.company-mini b { font-size: .72rem; }
.company-mini small { margin-top: 3px; color: var(--muted); font-size: .58rem; }
.logout-button { min-height: 40px; border: 0; border-radius: 12px; color: #a89eae; background: transparent; font-size: .72rem; cursor: pointer; }
.logout-button:hover { color: #ffd0d9; background: rgba(255,127,150,.07); }
.mobile-header, .mobile-nav { display: none; }

.workspace { min-height: 100vh; margin-left: calc(var(--sidebar) + 32px); padding: 25px clamp(20px, 3.2vw, 52px) 55px; }
.workspace-header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.workspace-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--panel-soft); font-size: 1.1rem; cursor: pointer; }
.icon-button:hover { color: var(--cloud); border-color: var(--line-strong); }
.user-pill { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 7px 13px 7px 8px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.avatar, .avatar-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(240,119,204,.25); border-radius: 12px; color: #26152a; background: linear-gradient(145deg, var(--pink-soft), var(--lilac)); font-size: .74rem; font-weight: 900; }
.user-pill b, .user-pill small { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill b { font-size: .72rem; }
.user-pill small { margin-top: 2px; color: var(--muted); font-size: .62rem; text-transform: capitalize; }
.view-root { animation: view-in .28s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.welcome-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); min-height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(125deg, rgba(63,43,78,.92), rgba(26,18,37,.82)); box-shadow: var(--shadow); }
.welcome-hero::after { content: "V"; position: absolute; right: -30px; bottom: -124px; color: rgba(240,119,204,.065); font-size: 330px; font-weight: 950; }
.welcome-copy { position: relative; z-index: 2; padding: clamp(26px, 4vw, 48px); }
.welcome-copy h2 { max-width: 670px; margin: 10px 0 13px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.02; letter-spacing: -.055em; }
.welcome-copy h2 span { color: var(--pink); }
.welcome-copy > p { max-width: 630px; margin: 0; color: #cabed0; line-height: 1.7; }
.pulse-badge { display: inline-flex; align-items: center; gap: 8px; color: #d8c9df; font-size: .68rem; font-weight: 750; }
.pulse-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(94,230,170,.09), 0 0 16px rgba(94,230,170,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.quote-zone { position: relative; z-index: 2; display: flex; align-items: flex-end; padding: 28px; }
.quote-card { width: 100%; padding: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.quote-card .quote-mark { color: var(--pink); font-size: 2.2rem; line-height: .65; }
.quote-card p { margin: 11px 0 14px; font-size: .9rem; font-weight: 650; line-height: 1.55; }
.quote-card small { color: var(--muted); font-size: .64rem; letter-spacing: .1em; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 15px; }
.section-head h2, .section-head h3 { margin: 0; letter-spacing: -.03em; }
.section-head h2 { font-size: 1.3rem; }
.section-head h3 { font-size: 1.02rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.section-head .head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.module-card { position: relative; display: grid; min-height: 208px; grid-template-columns: 1fr auto; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.04); cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(240,119,204,.3); box-shadow: 0 20px 45px rgba(0,0,0,.24); }
.module-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--card-glow); filter: blur(4px); opacity: .18; }
.module-call { --card-glow: var(--pink); }
.module-wa { --card-glow: var(--green); }
.module-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line-strong); border-radius: 17px; color: var(--pink-soft); background: rgba(240,119,204,.1); font-size: 1.35rem; }
.module-wa .module-icon { color: var(--green); background: var(--green-bg); }
.module-card h3 { margin: 22px 0 8px; font-size: 1.25rem; }
.module-card p { max-width: 430px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.module-arrow { align-self: end; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.stat-card span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.stat-card span b { color: var(--pink-soft); font-size: .9rem; }
.stat-card strong { display: block; margin-top: 10px; font-size: 1.65rem; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 6px; color: #817687; font-size: .61rem; }
.focus-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; }
.content-card { border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.035); }
.content-card-inner { padding: 20px; }
.activity-list, .meeting-list { display: grid; }
.activity-row, .meeting-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.activity-row:last-child, .meeting-row:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; border: 2px solid var(--pink); border-radius: 50%; box-shadow: 0 0 9px rgba(240,119,204,.32); }
.activity-row b, .meeting-row b { display: block; font-size: .72rem; }
.activity-row small, .meeting-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; }
.activity-row time, .meeting-row time { color: #8f8495; font-size: .59rem; text-align: right; }
.empty-state { display: grid; min-height: 150px; place-content: center; justify-items: center; padding: 25px; color: var(--muted); text-align: center; }
.empty-state span { margin-bottom: 10px; font-size: 1.5rem; opacity: .7; }
.empty-state p { max-width: 340px; margin: 0; font-size: .75rem; line-height: 1.55; }

.view-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.view-intro h2 { margin: 7px 0 7px; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.04em; }
.view-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.view-intro-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.slot-ribbon { position: relative; overflow: hidden; padding: 20px; border: 1px solid rgba(240,119,204,.13); border-radius: 22px; background: linear-gradient(120deg, rgba(81,62,105,.32), rgba(255,255,255,.025)); }
.slot-ribbon-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.slot-ribbon-head h3 { margin: 0; font-size: .9rem; }
.slot-ribbon-head p { margin: 4px 0 0; color: var(--muted); font-size: .65rem; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: .62rem; font-weight: 800; }
.live-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.slot-scroll { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.slot-card { min-width: 142px; scroll-snap-align: start; padding: 12px 13px; border: 1px solid rgba(94,230,170,.16); border-radius: 14px; background: rgba(94,230,170,.065); }
.slot-card.booked { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); opacity: .46; }
.slot-card b, .slot-card span { display: block; }
.slot-card b { font-size: .75rem; }
.slot-card span { margin-top: 5px; color: var(--green); font-size: .65rem; }
.slot-card.booked span { color: var(--muted); }

.sheet-card { margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.028); box-shadow: 0 20px 55px rgba(0,0,0,.18); }
.sheet-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; flex: 1; max-width: 420px; }
.search-box::before { content: "⌕"; position: absolute; left: 13px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.search-box input { min-height: 40px; padding-left: 36px; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group select { width: auto; min-width: 130px; min-height: 40px; }
.table-wrap { overflow-x: auto; }
.lead-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.lead-table th { padding: 12px 13px; border-bottom: 1px solid var(--line); color: #93879b; background: rgba(255,255,255,.02); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.lead-table td { padding: 13px; border-bottom: 1px solid rgba(255,255,255,.045); color: #ddd4df; font-size: .7rem; vertical-align: middle; }
.lead-table tr:hover td { background: rgba(255,255,255,.025); }
.lead-table tr:last-child td { border-bottom: 0; }
.lead-name { display: flex; min-width: 165px; align-items: center; gap: 9px; }
.lead-avatar { display: grid; flex: 0 0 auto; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #24172a; background: linear-gradient(145deg, #d9c4e6, #f0a6d8); font-size: .63rem; font-weight: 900; }
.lead-name b, .lead-name small { display: block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-name b { font-size: .7rem; }
.lead-name small { margin-top: 3px; color: var(--muted); font-size: .59rem; }
.lead-type, .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 99px; font-size: .57rem; font-weight: 800; white-space: nowrap; text-transform: capitalize; }
.lead-type::before, .status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lead-type.premium { color: #ffc0e9; background: rgba(240,119,204,.11); }
.lead-type.average { color: #c9c2f3; background: rgba(171,164,206,.12); }
.lead-type.normal { color: #aeb7c1; background: rgba(174,183,193,.1); }
.status-pill.new { color: var(--blue); background: rgba(114,182,255,.1); }
.status-pill.contacted { color: var(--lilac); background: rgba(171,164,206,.11); }
.status-pill.converted { color: var(--green); background: var(--green-bg); }
.status-pill.follow_up { color: var(--amber); background: rgba(255,200,107,.1); }
.status-pill.not_interested { color: var(--red); background: rgba(255,127,150,.1); }
.status-pill.meeting_booked { color: var(--pink-soft); background: rgba(240,119,204,.11); }
.table-link { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: #e8dfeb; background: rgba(255,255,255,.03); font-size: .59rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.table-link.call { border-color: rgba(94,230,170,.18); color: var(--green); }
.table-link.prompt { border-color: rgba(240,119,204,.18); color: var(--pink-soft); }
.table-actions { display: flex; gap: 5px; }
.action-menu-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.mobile-leads { display: none; }
.lead-mobile-card { padding: 16px; border-bottom: 1px solid var(--line); }
.lead-mobile-card:last-child { border-bottom: 0; }
.lead-mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lead-mobile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.lead-mobile-contact { display: grid; gap: 6px; color: var(--muted); font-size: .66rem; }
.lead-mobile-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 14px; }
.lead-mobile-actions button, .lead-mobile-actions a { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); font-size: .63rem; font-weight: 800; }

.wa-hero { position: relative; overflow: hidden; padding: clamp(24px,4vw,44px); border: 1px solid rgba(94,230,170,.16); border-radius: 25px; background: linear-gradient(125deg, rgba(26,57,48,.45), rgba(27,19,39,.8)); }
.wa-hero::after { content: "◉"; position: absolute; right: 5%; top: 50%; color: rgba(94,230,170,.075); font-size: 180px; transform: translateY(-50%); }
.wa-hero h2 { position: relative; z-index: 1; max-width: 650px; margin: 10px 0 12px; font-size: clamp(1.75rem,3.5vw,3rem); letter-spacing: -.05em; }
.wa-hero p { position: relative; z-index: 1; max-width: 660px; margin: 0; color: #bed2ca; line-height: 1.65; }
.wa-layout { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.25fr); gap: 16px; margin-top: 18px; }
.wa-compose, .wa-list { padding: 20px; }
.wa-compose h3, .wa-list h3 { margin: 0 0 5px; font-size: 1rem; }
.wa-compose > p, .wa-list > p { margin: 0 0 17px; color: var(--muted); font-size: .68rem; }
.variable-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.variable-chips button { padding: 6px 8px; border: 1px solid rgba(94,230,170,.14); border-radius: 8px; color: #9ee9c8; background: rgba(94,230,170,.06); font-size: .58rem; cursor: pointer; }
.wa-lead-list { display: grid; max-height: 480px; overflow-y: auto; }
.wa-lead-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.wa-lead-row:last-child { border-bottom: 0; }
.wa-lead-row b, .wa-lead-row small { display: block; }
.wa-lead-row b { font-size: .72rem; }
.wa-lead-row small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.wa-button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid rgba(94,230,170,.22); border-radius: 11px; color: #b3f4d7; background: rgba(94,230,170,.09); font-size: .65rem; font-weight: 800; cursor: pointer; }

.performance-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.chart-card { padding: 21px; }
.chart-card h3 { margin: 0; font-size: .9rem; }
.chart-card > p { margin: 5px 0 20px; color: var(--muted); font-size: .64rem; }
.funnel-list { display: grid; gap: 13px; }
.funnel-row { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 11px; }
.funnel-row span { color: #c8becd; font-size: .66rem; }
.funnel-row b { font-size: .67rem; text-align: right; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--violet),var(--pink)); box-shadow: 0 0 15px rgba(240,119,204,.2); }
.score-card { display: flex; align-items: center; gap: 22px; }
.score-ring { display: grid; flex: 0 0 auto; width: 118px; height: 118px; place-items: center; border-radius: 50%; background: conic-gradient(var(--pink) var(--score), rgba(255,255,255,.065) 0); }
.score-ring::before { content: ""; grid-area: 1/1; width: 88px; height: 88px; border-radius: 50%; background: #21182c; }
.score-ring strong { z-index: 1; grid-area: 1/1; font-size: 1.5rem; }
.score-copy h3 { margin: 0 0 7px; font-size: 1.1rem; }
.score-copy p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }

.admin-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.admin-tabs button { flex: 0 0 auto; min-height: 39px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .66rem; font-weight: 800; cursor: pointer; }
.admin-tabs button.active { border-color: rgba(240,119,204,.25); color: var(--pink-soft); background: rgba(240,119,204,.09); }
.admin-panel { padding: 21px; }
.admin-panel h3 { margin: 0 0 6px; font-size: 1.05rem; }
.admin-panel > p { margin: 0 0 20px; color: var(--muted); font-size: .69rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.slot-admin-grid { display: grid; grid-template-columns: minmax(310px,.7fr) minmax(0,1.3fr); gap: 16px; }
.date-checkboxes { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.date-check { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .64rem; cursor: pointer; }
.date-check input { width: 15px; min-height: auto; accent-color: var(--pink); }
.admin-slot-list { display: grid; max-height: 540px; overflow-y: auto; }
.admin-slot-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.admin-slot-row:last-child { border-bottom: 0; }
.admin-slot-row b, .admin-slot-row small { display: block; }
.admin-slot-row b { font-size: .7rem; }
.admin-slot-row small { margin-top: 4px; color: var(--muted); font-size: .6rem; }
.admin-slot-row .slot-state { color: var(--green); font-size: .59rem; }
.admin-slot-row .slot-state.booked { color: var(--pink-soft); }
.team-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.team-table th, .team-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.055); text-align: left; }
.team-table th { color: var(--muted); font-size: .59rem; text-transform: uppercase; letter-spacing: .08em; }
.team-table td { font-size: .68rem; }
.team-table select { width: 112px; min-height: 35px; font-size: .64rem; }
.toggle { position: relative; width: 38px; height: 22px; border: 0; border-radius: 99px; background: rgba(255,127,150,.22); cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #d6cbd9; transition: .2s ease; }
.toggle.on { background: rgba(94,230,170,.35); }
.toggle.on::after { left: 19px; background: var(--green); }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.prompt-textarea { min-height: 250px; }
.placeholder-help { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.placeholder-help code { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--pink-soft); background: rgba(255,255,255,.035); font-size: .57rem; }
.booking-list { display: grid; }
.booking-card { display: grid; grid-template-columns: 120px 1fr 1fr auto; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.booking-card:last-child { border-bottom: 0; }
.booking-time b, .booking-time small, .booking-client b, .booking-client small { display: block; }
.booking-time b { color: var(--pink-soft); font-size: .71rem; }
.booking-time small, .booking-client small { margin-top: 4px; color: var(--muted); font-size: .59rem; }
.booking-client b { font-size: .72rem; }
.booking-owner { color: #c7bccb; font-size: .64rem; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(6,4,10,.72); backdrop-filter: blur(9px); animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal { position: relative; width: min(100%, 610px); max-height: min(90vh, 860px); overflow-y: auto; padding: clamp(22px,4vw,34px); border-radius: 25px; animation: modal-in .25s ease; }
.modal.modal-wide { width: min(100%, 820px); }
@keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(10px); } }
.modal-close { position: absolute; z-index: 2; right: 14px; top: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 1.15rem; cursor: pointer; }
.modal-close:hover { color: var(--cloud); }
.modal h2 { margin: 3px 42px 8px 0; font-size: 1.45rem; letter-spacing: -.035em; }
.modal .modal-sub { margin: 0 42px 22px 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.drop-zone { display: grid; min-height: 130px; place-content: center; justify-items: center; padding: 18px; border: 1px dashed rgba(240,119,204,.3); border-radius: 16px; color: var(--muted); background: rgba(240,119,204,.045); text-align: center; cursor: pointer; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone strong { color: var(--pink-soft); font-size: .76rem; }
.drop-zone small { margin-top: 7px; font-size: .61rem; }
.drop-zone .file-name { margin-top: 9px; color: var(--cloud); font-size: .66rem; }
.prompt-preview { max-height: 340px; overflow-y: auto; padding: 17px; border: 1px solid var(--line); border-radius: 14px; color: #ded4e1; background: rgba(0,0,0,.16); font-size: .75rem; line-height: 1.7; white-space: pre-wrap; }
.status-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.status-option { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.03); font-size: .7rem; cursor: pointer; }
.status-option input { width: 15px; min-height: auto; accent-color: var(--pink); }
.company-profile { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.03); }
.company-profile-head { display: flex; align-items: center; gap: 13px; }
.company-profile-head img { width: 46px; height: 46px; }
.company-profile-head h3, .company-profile-head p { margin: 0; }
.company-profile-head p { margin-top: 5px; color: var(--pink-soft); font-size: .65rem; }
.company-profile > p { margin: 16px 0; color: var(--muted); font-size: .71rem; line-height: 1.65; }
.company-contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.company-contact-grid a, .company-contact-grid span { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: #cbc1cf; background: rgba(255,255,255,.025); font-size: .61rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast-region { position: fixed; z-index: 200; right: 18px; top: 18px; display: grid; gap: 8px; width: min(calc(100vw - 36px), 370px); }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(30,23,41,.96); box-shadow: var(--shadow); backdrop-filter: blur(15px); animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } }
.toast > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-bg); font-size: .68rem; }
.toast.error > span { color: var(--red); background: rgba(255,127,150,.1); }
.toast p { margin: 0; font-size: .69rem; line-height: 1.45; }
.toast button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.skeleton { position: relative; overflow: hidden; color: transparent !important; border-radius: 8px; background: rgba(255,255,255,.05); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .welcome-hero { grid-template-columns: 1fr 280px; }
  .slot-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; place-items: center; padding: 20px; }
  .auth-story { display: none; }
  .auth-panel { width: min(100%, 520px); }
  .mobile-brand { display: inline-flex; }
  .sidebar { display: none; }
  .mobile-header { position: fixed; z-index: 30; left: 10px; right: 10px; top: 10px; display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 17px; }
  .mobile-header .brand { font-size: .78rem; }
  .mobile-header .brand img { width: 31px; height: 31px; }
  .avatar-button { border: 0; cursor: pointer; }
  .workspace { margin-left: 0; padding: 86px 16px 105px; }
  .workspace-header { display: none; }
  .mobile-nav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; min-height: 64px; align-items: center; justify-content: space-around; padding: 7px; border-radius: 19px; }
  .mobile-nav button { display: grid; min-width: 58px; min-height: 49px; place-items: center; gap: 2px; border: 0; border-radius: 12px; color: #a99daf; background: transparent; cursor: pointer; }
  .mobile-nav button > span { font-size: 1.06rem; }
  .mobile-nav button small { font-size: .56rem; font-weight: 750; }
  .mobile-nav button.active { color: var(--pink-soft); background: rgba(240,119,204,.1); }
  .focus-grid, .wa-layout, .settings-layout { grid-template-columns: 1fr; }
  .welcome-hero { grid-template-columns: 1fr; }
  .quote-zone { padding-top: 0; }
  .module-grid { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 110px 1fr auto; }
  .booking-owner { display: none; }
}

@media (max-width: 640px) {
  .auth-shell { padding: 0; }
  .auth-panel { min-height: 100vh; padding: 28px 20px; border: 0; border-radius: 0; background: rgba(22,17,31,.82); box-shadow: none; }
  .mobile-brand { margin: 8px 0 60px; }
  .auth-pane h2 { font-size: 2rem; }
  .workspace { padding-left: 12px; padding-right: 12px; }
  .welcome-copy { padding: 25px 21px 20px; }
  .welcome-copy h2 { font-size: 2.15rem; }
  .quote-zone { padding: 0 21px 21px; }
  .hero-actions { display: grid; }
  .module-card { min-height: 185px; padding: 21px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 1.35rem; }
  .section-head { align-items: flex-start; }
  .section-head .head-actions { width: 100%; }
  .view-intro { align-items: stretch; flex-direction: column; }
  .view-intro-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .slot-ribbon { padding: 16px; }
  .sheet-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-group select { width: 100%; min-width: 0; }
  .table-wrap { display: none; }
  .mobile-leads { display: block; }
  .lead-mobile-actions { grid-template-columns: repeat(4,1fr); }
  .performance-grid { grid-template-columns: 1fr; }
  .score-card { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .date-checkboxes { grid-template-columns: 1fr; }
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 93vh; padding: 25px 18px calc(25px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .status-options { grid-template-columns: 1fr; }
  .company-contact-grid { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr auto; }
  .booking-time { grid-column: 1 / -1; }
  .admin-slot-row { grid-template-columns: 1fr auto; }
  .admin-slot-row .slot-state { grid-column: 1; }
  .toast-region { top: 78px; right: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

