:root {
  --bg: #07081a;
  --ink: #eef0ff;
  --mute: #9aa2c8;
  --glass: rgba(255, 255, 255, 0.06);
  --edge: rgba(255, 255, 255, 0.13);
  --violet: #8b7cff;
  --cyan: #38d6ff;
  --green: #2ee59d;
  --red: #ff4d6a;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; min-width: 0; }

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: linear-gradient(125deg, #07081a, #160b38, #062434, #0d0a2a, #07081a);
  background-size: 400% 400%;
  animation: drift 28s ease-in-out infinite;
}

@keyframes drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.o1 { width: 52vmax; height: 52vmax; left: -18vmax; top: -16vmax; background: radial-gradient(circle, #6c4dff, transparent 68%); animation: float1 22s ease-in-out infinite; }
.o2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 22vh; background: radial-gradient(circle, #12b6e8, transparent 68%); animation: float2 26s ease-in-out infinite; }
.o3 { width: 40vmax; height: 40vmax; left: 12vw; bottom: -20vmax; background: radial-gradient(circle, #d1389e, transparent 68%); animation: float3 30s ease-in-out infinite; opacity: 0.3; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12vmax, 10vmax) scale(1.15); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-14vmax, -8vmax) scale(1.1); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10vmax, -12vmax) scale(1.2); } }

.app { position: relative; z-index: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 18px 16px 170px; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 18px; animation: rise 0.7s var(--ease) both; }
.brand { font-size: 1.35rem; font-weight: 750; letter-spacing: 0.2px; background: linear-gradient(90deg, #fff, #b9b0ff 45%, #7fe6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; font-size: 0.92rem; color: var(--mute); }
.who b { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }

.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }
.langbtn { border: 1px solid var(--edge); background: var(--glass); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s; }
.langbtn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }

.glass, .card, .panel {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel { padding: 18px; margin-bottom: 18px; animation: rise 0.8s var(--ease) both; }
.panel h2 { margin: 0 0 6px; font-size: 1.25rem; }
.panel p { margin: 6px 0; color: #d7dbf5; overflow-wrap: anywhere; }

.gate { max-width: 520px; margin: 8vh auto 0; }
.gate form { display: grid; gap: 10px; margin-top: 12px; }

label.lbl { font-size: 0.85rem; color: var(--mute); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(8, 10, 30, 0.55);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
select option { background: #11123a; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.28); }
textarea { min-height: 92px; resize: vertical; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 20px; font: inherit; font-weight: 700; color: #fff; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-main { background: linear-gradient(135deg, #7a5cff, #2aa8ff); box-shadow: 0 8px 24px rgba(88, 100, 255, 0.35); }
.btn-send { background: linear-gradient(135deg, #14c77f, #2ee59d); color: #04210f; box-shadow: 0 8px 24px rgba(46, 229, 157, 0.28); position: relative; }
.btn-no { background: rgba(255, 77, 106, 0.16); color: #ff9aac; border: 1px solid rgba(255, 77, 106, 0.5); }
.btn-no:hover { background: rgba(255, 77, 106, 0.3); color: #fff; }
.btn-more { background: var(--glass); border: 1px solid var(--edge); }

.err { color: #ff9aac; font-size: 0.9rem; min-height: 1.2em; }
.okmsg { color: var(--green); font-size: 0.9rem; }

.ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: left; }
.ghead h2 { margin: 0; }
.chev { width: 22px; height: 22px; flex: none; stroke: var(--cyan); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.open .chev { transform: rotate(180deg); }

.fold, .lfold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.6s var(--ease), opacity 0.5s ease; }
.fold > .fold-in, .lfold > .fold-in { overflow: hidden; min-height: 0; }
.open > .fold, .lfold.open { grid-template-rows: 1fr; opacity: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding-top: 14px; }
.tile { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--edge); border-radius: 16px; padding: 14px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(139, 124, 255, 0.55); }
.tile.wide { grid-column: 1 / -1; }
.tile h3 { margin: 0 0 6px; font-size: 1.02rem; color: #fff; }
.tile ol { margin: 6px 0 0; padding-left: 20px; }
.tile li { margin: 4px 0; color: #d7dbf5; overflow-wrap: anywhere; }
.tile a { color: var(--cyan); overflow-wrap: anywhere; }
.open .tile { animation: rise 0.6s var(--ease) both; }
.open .tile:nth-child(2) { animation-delay: 0.08s; }
.open .tile:nth-child(3) { animation-delay: 0.16s; }
.open .tile:nth-child(4) { animation-delay: 0.24s; }
.open .tile:nth-child(5) { animation-delay: 0.32s; }

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.count { padding: 12px 10px; text-align: center; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); animation: rise 0.7s var(--ease) both; }
.count b { display: block; font-size: 1.7rem; line-height: 1.1; background: linear-gradient(90deg, #fff, #9be7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.count span { font-size: 0.78rem; color: var(--mute); }
.count.c2 { animation-delay: 0.08s; }
.count.c3 { animation-delay: 0.16s; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; animation: rise 0.8s var(--ease) 0.2s both; }
.filters .search { grid-column: 1 / -1; }

.addrow { display: flex; justify-content: flex-end; margin: -4px 0 14px; animation: rise 0.8s var(--ease) 0.25s both; }
.addbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.addpanel { animation: rise 0.6s var(--ease) both; }
.addpanel form { display: grid; gap: 8px; margin-top: 12px; }
.addpanel label.lbl { margin-top: 4px; }
.badge { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #04141c; background: linear-gradient(135deg, #8b7cff, #38d6ff); box-shadow: 0 6px 18px rgba(88, 100, 255, 0.3); overflow-wrap: anywhere; }
.card.added { border-color: rgba(139, 124, 255, 0.4); }

.list { display: grid; gap: 14px; }

.card { padding: 16px; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-3px); border-color: rgba(139, 124, 255, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 124, 255, 0.18); }
.card.enter { animation: rise 0.7s var(--ease) both; }
.card.enter:nth-child(1) { animation-delay: 0s; }
.card.enter:nth-child(2) { animation-delay: 0.06s; }
.card.enter:nth-child(3) { animation-delay: 0.12s; }
.card.enter:nth-child(4) { animation-delay: 0.18s; }
.card.enter:nth-child(5) { animation-delay: 0.24s; }
.card.enter:nth-child(6) { animation-delay: 0.3s; }
.card.enter:nth-child(7) { animation-delay: 0.36s; }
.card.enter:nth-child(8) { animation-delay: 0.42s; }
.card.enter:nth-child(n+9) { animation-delay: 0.48s; }

@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }

.company { margin: 0; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.ctext { position: relative; display: inline; }
.ctext::after { content: ""; position: absolute; left: -3px; right: -3px; top: 56%; height: 3px; border-radius: 3px; background: var(--red); box-shadow: 0 0 10px rgba(255, 77, 106, 0.7); transform: scaleX(0); transform-origin: left center; transition: transform 0.55s var(--ease) 0.1s; }
.card.folded .ctext::after, .card.folding .ctext::after { transform: scaleX(1); }
.card.folded, .card.folding { border-color: rgba(255, 77, 106, 0.35); }
.card.folded .company, .card.folding .company { color: #a2a6c6; }
.meta { color: var(--mute); font-size: 0.92rem; margin-top: 2px; overflow-wrap: anywhere; }
.byline { color: #ff9aac; font-size: 0.88rem; margin-top: 4px; display: none; }
.card.folded .byline, .card.folding .byline { display: block; }

.card .fold { grid-template-rows: 1fr; opacity: 1; }
.card.folded .fold, .card.folding .fold { grid-template-rows: 0fr; opacity: 0; }

.phone { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, #14c77f, #1aa9d6); color: #04141c; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.3px; text-decoration: none; box-shadow: 0 10px 28px rgba(26, 169, 214, 0.3); transition: transform 0.3s var(--ease), filter 0.3s; }
.phone:hover { transform: translateY(-2px) scale(1.01); filter: brightness(1.08); }
.phone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phone2 { display: inline-block; margin-top: 8px; color: var(--cyan); font-weight: 650; text-decoration: none; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.92rem; color: var(--mute); }
.facts a { color: var(--cyan); overflow-wrap: anywhere; }

.letterbtn { margin-top: 10px; }
.letter { margin: 8px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(8, 10, 30, 0.5); border: 1px solid var(--edge); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.9rem; color: #d7dbf5; }
.letter b { display: block; color: #fff; margin-bottom: 6px; }

.notes { margin-top: 12px; display: grid; gap: 8px; }
.note { padding: 10px 12px; border-radius: 14px; background: rgba(46, 229, 157, 0.07); border-left: 3px solid var(--green); animation: rise 0.5s var(--ease) both; }
.note small { display: block; color: var(--mute); }
.note div { white-space: pre-wrap; overflow-wrap: anywhere; }
.notes h4 { margin: 0; font-size: 0.85rem; color: var(--mute); font-weight: 600; }

.write { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.row .btn { flex: 1 1 150px; }

.chk { stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-send.done { animation: pop 0.6s var(--ease); }
.btn-send.done .chk { animation: draw 0.8s ease forwards; }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7); } 100% { box-shadow: 0 0 0 22px rgba(46, 229, 157, 0); } }

.empty { text-align: center; padding: 34px 18px; }
.empty .big { width: 54px; height: 54px; stroke: var(--violet); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }

.skel { height: 150px; border-radius: 20px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.more { display: flex; justify-content: center; margin-top: 16px; }

.toasts { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 5; display: grid; gap: 8px; justify-items: center; padding: 0 72px 0 16px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 520px; width: 100%; padding: 12px 16px; border-radius: 16px; background: rgba(20, 22, 56, 0.92); border: 1px solid var(--edge); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); animation: rise 0.5s var(--ease) both; overflow-wrap: anywhere; }
.toast span { flex: 1; }
.toast .bar { position: absolute; }

@media (min-width: 700px) {
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .filters .search { grid-column: auto; }
  .phone { width: auto; min-width: 280px; }
  .app { padding-top: 28px; }
}

/* ---- who works which client: slim cards with a head button ---- */
.chead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.chead .company { display: block; grid-column: 1; }
.chead .meta, .chead .byline, .chead .badge { display: block; grid-column: 1; }
.chead .badge { justify-self: start; }
.chead .chev { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 22px; height: 22px; }
.card.open .chev { transform: rotate(180deg); }
.card.folded .chead { cursor: default; }
.chead:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; border-radius: 12px; }
.byline:empty { display: none; }
.chead .byline { display: block; font-size: 0.88rem; }
.chead .byline:empty { display: none; }
.card.mine .byline { color: var(--green); }
.card.taken { border-color: rgba(255, 196, 77, 0.45); background: linear-gradient(135deg, rgba(255, 196, 77, 0.07), var(--glass)); }
.card.taken .company { color: #c9cbe0; }
.card.taken .byline { color: #ffc84d; }
.card.taken .byline::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ffc84d; box-shadow: 0 0 10px rgba(255, 200, 77, 0.8); animation: breathe 2.4s ease-in-out infinite; }
.card.open { border-color: rgba(139, 124, 255, 0.55); }
.card.open > .fold { animation: rise 0.5s var(--ease) both; }

/* ---- onboarding: the agent agreement ---- */
.onb h2 { margin-bottom: 10px; }
.onb-steps { margin: 6px 0 12px; padding-left: 22px; color: #d7dbf5; }
.onb-steps li { margin: 6px 0; overflow-wrap: anywhere; }
.agree-box { max-height: 320px; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: rgba(8, 10, 30, 0.55); border: 1px solid var(--edge); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; color: #d7dbf5; -webkit-overflow-scrolling: touch; }
.agree-box:focus-visible { outline: 2px solid var(--violet); }
.onb-dl { display: inline-block; margin: 10px 0 4px; color: var(--cyan); font-weight: 650; overflow-wrap: anywhere; }
.onb form { display: grid; gap: 8px; margin-top: 10px; }
.tick { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; color: var(--ink); cursor: pointer; }
.tick input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; padding: 0; accent-color: #7a5cff; }
.onb-done { padding: 14px 16px; border-color: rgba(46, 229, 157, 0.4); background: linear-gradient(135deg, rgba(46, 229, 157, 0.1), var(--glass)); }
.onb-row { display: flex; align-items: center; gap: 14px; }
.onb-badge { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #14c77f, #2ee59d); color: #04210f; animation: pop 0.8s var(--ease); }
.onb-badge svg { width: 24px; height: 24px; }
.onb-txt { display: grid; gap: 2px; flex: 1; }
.onb-txt small { color: var(--mute); }
.onb-phone { margin-top: 6px; min-height: 48px; font-size: 1.15rem; }
@media (max-width: 480px) {
  .agree-box { font-size: 0.85rem; padding: 10px 12px; }
  .onb-phone { width: 100%; }
}

/* ---- sign-up gate, tabs, done rows, confirmation window, contact buttons ---- */
.gate.wait, .gate.refused, .gate.signup { text-align: left; }
.gate.wait .btn, .gate.refused .btn { margin-top: 12px; }
.perks { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.perk { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); animation: rise 0.7s var(--ease) both; }
.perk:nth-child(2) { animation-delay: 0.1s; }
.perk:nth-child(3) { animation-delay: 0.2s; }
.perk:nth-child(4) { animation-delay: 0.3s; }
.perk .pic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, rgba(122, 92, 255, 0.4), rgba(42, 168, 255, 0.32)); }
.perk svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk b { display: block; margin-bottom: 2px; }
.perk span { color: #d7dbf5; font-size: 0.95rem; overflow-wrap: anywhere; }
.panel .foot { color: var(--mute); font-size: 0.92rem; }
.welcome { border-color: rgba(139, 124, 255, 0.5); }
.welcome ol { margin: 10px 0; padding-left: 22px; display: grid; gap: 6px; color: #d7dbf5; }
.welcome li { overflow-wrap: anywhere; }
.welcome .btn { margin-top: 8px; }
.who .whoname { max-width: 40vw; }
.onb .ghead h2 { margin: 0; }
.ind-panel .ghead h2 { margin: 0; }
.ind-panel ul { margin: 10px 0 0; padding-left: 20px; }
.onb .fold-in > * { margin-left: 0; }
.onb-dl { background: none; border: 0; padding: 4px 0; font: inherit; }

.tabs { display: flex; gap: 8px; margin: 0 0 12px; animation: rise 0.7s var(--ease) 0.12s both; }
.tab { flex: 1 1 0; border: 1px solid var(--edge); background: var(--glass); color: var(--mute); font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 14px; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; }
.tab:hover { transform: translateY(-2px); color: var(--ink); }
.tab.on { color: #fff; border-color: rgba(139, 124, 255, 0.7); background: linear-gradient(135deg, rgba(122, 92, 255, 0.45), rgba(42, 168, 255, 0.3)); box-shadow: 0 8px 22px rgba(88, 100, 255, 0.28); }
.tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.btn-done { background: rgba(56, 214, 255, 0.14); color: #9be7ff; border: 1px solid rgba(56, 214, 255, 0.5); }
.btn-done:hover { background: rgba(56, 214, 255, 0.28); color: #fff; }

.drow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); font-size: 0.9rem; white-space: nowrap; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.drow:hover { border-color: rgba(139, 124, 255, 0.5); transform: translateX(3px); }
.drow.enter { animation: rise 0.5s var(--ease) both; }
.list:has(.drow) { gap: 6px; }
.dco { flex: 2 1 0; overflow: hidden; text-overflow: ellipsis; font-weight: 650; color: #d7dbf5; }
.dcity, .dby { flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; color: var(--mute); }
.dtag { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.dtag.tno { color: #ff9aac; background: rgba(255, 77, 106, 0.16); }
.dtag.tdone { color: #9be7ff; background: rgba(56, 214, 255, 0.16); }
.dundo { flex: none; background: none; border: 1px solid var(--edge); color: var(--cyan); font: inherit; font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; cursor: pointer; }
.dundo:hover { color: #fff; border-color: var(--cyan); }
@media (max-width: 480px) {
  .dcity { display: none; }
  .drow { gap: 8px; padding: 8px 10px; }
}

.dlg { border: 1px solid var(--edge); border-radius: 20px; padding: 22px; max-width: min(92vw, 380px); color: var(--ink); background: rgba(20, 22, 56, 0.96); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.dlg[open] { animation: dlgin 0.35s var(--ease) both; }
.dlg::backdrop { background: rgba(4, 5, 18, 0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadein 0.3s ease both; }
.dlg h2 { margin: 0 0 6px; font-size: 1.2rem; }
@keyframes dlgin { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.contact { position: fixed; right: 12px; bottom: 12px; z-index: 6; display: flex; flex-direction: column; gap: 10px; animation: rise 0.8s var(--ease) 0.3s both; }
.cbtn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; border: 1px solid var(--edge); background: rgba(20, 22, 56, 0.9); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease), filter 0.25s; }
.cbtn:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.2); }
.cbtn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.cbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cb-tg { background: linear-gradient(135deg, #2aa8ff, #1b7fd0); }
.cb-ms { background: linear-gradient(135deg, #8b7cff, #2aa8ff); }
.cb-mail { background: linear-gradient(135deg, #14c77f, #1aa9d6); }

/* ---- four tabs, Interested, My clients and the chat ---- */
.tabs { flex-wrap: wrap; }
.tab { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .tab { padding: 10px 8px; font-size: 0.85rem; }
}
.gone { display: none; }
.btn-yes { background: rgba(46, 229, 157, 0.14); color: #8ff0c6; border: 1px solid rgba(46, 229, 157, 0.5); }
.btn-yes:hover { background: rgba(46, 229, 157, 0.28); color: #fff; }
.dtag.tyes { color: #8ff0c6; background: rgba(46, 229, 157, 0.16); }

.mcard .chead { grid-template-columns: minmax(0, 1fr) auto; }
.chat { margin-top: 14px; display: grid; gap: 10px; min-width: 0; }
.chat-modes { display: flex; gap: 8px; }
.modebtn { flex: 1 1 0; border: 1px solid var(--edge); background: var(--glass); color: var(--mute); font: inherit; font-weight: 700; padding: 9px 12px; border-radius: 14px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.modebtn.on { color: #fff; border-color: rgba(139, 124, 255, 0.7); background: linear-gradient(135deg, rgba(122, 92, 255, 0.45), rgba(42, 168, 255, 0.3)); }
.modebtn:focus-visible, .chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.chat-hint { margin: 0; color: var(--mute); font-size: 0.88rem; overflow-wrap: anywhere; }
.chat-msgs { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px 2px; -webkit-overflow-scrolling: touch; }
.chat-none { color: var(--mute); font-size: 0.9rem; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--edge); animation: rise 0.4s var(--ease) both; min-width: 0; }
.msg.me { justify-self: end; background: rgba(139, 124, 255, 0.16); border-color: rgba(139, 124, 255, 0.4); }
.msg.us { justify-self: start; background: rgba(46, 229, 157, 0.08); border-color: rgba(46, 229, 157, 0.4); }
.msg.pending { opacity: 0.6; }
.msg small { display: block; color: var(--mute); font-size: 0.75rem; }
.msg .msg-tag { color: var(--cyan); font-weight: 700; }
.msg-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-status:empty { display: none; }
.chat-write textarea { min-height: 64px; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.chat-count { color: var(--mute); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { max-width: 100%; border: 1px solid var(--edge); background: var(--glass); color: var(--ink); font: inherit; font-size: 0.88rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; text-align: left; overflow-wrap: anywhere; transition: border-color 0.25s, background 0.25s; }
.chip:hover { border-color: var(--cyan); background: rgba(56, 214, 255, 0.12); }

/* ---- the new caller page: language menu, sign-up, e-mail code, agreement upload, limits, rules ---- */
.langsel { width: auto; max-width: 100%; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--glass); }
.fixed { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); }
.fixed b { overflow-wrap: anywhere; }
.fixed small { color: var(--mute); overflow-wrap: anywhere; }
.rulesbox { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); }
.rulesbox h3 { margin: 0 0 6px; font-size: 1rem; }
.rulesbox ul, .rulescard ul, .paycard ul { margin: 6px 0; padding-left: 20px; color: #d7dbf5; }
.rulesbox li, .rulescard li, .paycard li { margin: 4px 0; overflow-wrap: anywhere; }
.robot { min-height: 12px; overflow: hidden; max-width: 100%; }
.gate.code .btn, .gate.sign .btn { margin-top: 8px; }
.gate.code form, .gate.code .lbl { display: block; }
.sigstate:empty { display: none; }
.sigstate p { overflow-wrap: anywhere; }
.sub { margin: 12px 0 4px; font-size: 0.85rem; color: var(--mute); font-weight: 600; }
.card.gone-row { opacity: 0.55; }
.card.gone-row .company { text-decoration: line-through; }
.limits h2, .rulescard h2, .paycard h2 { margin-bottom: 8px; }
.limits .counters { grid-template-columns: repeat(3, 1fr); }
.limits .count b { font-size: 1.25rem; overflow-wrap: anywhere; }
.undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.undo p { margin: 0; }
.mcard .byline { display: block; }
.meta { overflow-wrap: anywhere; }
.top .who { min-width: 0; }
