:root {
  --black: #020203;
  --purple: #9d5cff;
  --purple-soft: rgba(157, 92, 255, .18);
  --blue: #5965ff;
  --text: #fff;
  --muted: rgba(255, 255, 255, .48);
  --border: rgba(255, 255, 255, .09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: white;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

button {
  font: inherit;
}

.app {
  position: relative;
  width: 70%;
  height: 70vh;
  min-height: 500px;
  margin: 15vh auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.586);
  border-radius: 15px;
  background: #020203;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .55),
    0 0 60px rgba(100, 50, 180, .08);
}

.bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}

.bg-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.glow-one {
  background: radial-gradient(circle at 8% 8%, rgba(176, 76, 255, .3), transparent 28%);
}

.glow-two {
  background: radial-gradient(circle at 90% 90%, rgba(70, 82, 255, .22), transparent 32%);
}

/* INTRO */

.intro-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 3, .55);
  backdrop-filter: blur(10px);
  transition: opacity .9s ease, visibility .9s ease;
}

.intro-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-orb {
  position: relative;
  width: 105px;
  height: 105px;
  margin-bottom: 25px;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(157, 92, 255, .25);
  border-radius: 50%;
  animation: rotate 8s linear infinite;
}

.ring-two {
  inset: 14px;
  border-color: rgba(89, 101, 255, .4);
  animation-direction: reverse;
  animation-duration: 5s;
}

.orb-core {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #c59bff, #7135ce 60%, #281044);
  box-shadow:
    0 0 35px rgba(157, 92, 255, .6),
    0 0 90px rgba(111, 54, 220, .25);
}

.orb-core span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 15px white;
}

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

.intro-brand {
  margin-bottom: 10px;
  color: #b58aff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.intro-content {
  text-align: center;
}

.intro-content h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 600;
}

.intro-content h1 span {
  color: #b28aff;
}

.intro-content p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 24px;
  border: 1px solid rgba(157, 92, 255, 0.4);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.25), rgba(89, 101, 255, 0.25));
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.45), rgba(89, 101, 255, 0.45));
  border-color: rgba(181, 138, 255, 0.8);
  box-shadow: 0 0 30px rgba(157, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.explore-btn:active {
  transform: translateY(0) scale(0.98);
}

.explore-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.explore-btn:hover svg {
  transform: translateX(4px);
}

.intro-status {
  position: absolute;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
}

.intro-status span,
.live-dot span,
.mini-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #48df9b;
  box-shadow: 0 0 8px #48df9b;
}

/* WORKSPACE */

.workspace {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .8s ease, transform .8s ease;
}

.workspace.show {
  opacity: 1;
  transform: scale(1);
}

/* SIDEBAR */

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 5, 8, .32);
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
}

.sidebar-logo {
  margin-bottom: 25px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-item {
  position: relative;
  width: 58px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: .25s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: 9.5px;
}

.nav-item:hover {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  color: white;
  border-color: rgba(157, 92, 255, .28);
  background: rgba(124, 55, 205, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -9px;
  width: 2px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: #a66cff;
  box-shadow: 0 0 10px #8d4dff;
  display: none;
}

.sidebar-bottom {
  margin-top: auto;
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .38);
  font-size: 9.5px;
}

.main-area {
  position: relative;
  width: 100%;
  height: 100%;
  margin-left: 76px;
  padding: 0 32px;
  overflow: hidden;
  box-sizing: border-box;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 0 -16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  background: rgba(12, 10, 22, 0.429);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 50;
}

.page-label {
  margin-bottom: 2px;
  color: #685885;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.topbar h2 {
  font-size: 14px;
  font-weight: 600;
  color: #bdbdbd;
  letter-spacing: 0.1px;
}

.head-bar {
  border: 1px solid #a0a0a078;
  padding: 4px 20px;
  border-radius: 5px;
  background: #00000047;
  box-shadow: 0 0 10px rgba(157, 92, 255, 0.15);
}

.preview-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(157, 92, 255, 0.3);
  border-radius: 8px;
  background: rgba(157, 92, 255, 0.1);
  color: #c7a4ff;
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(157, 92, 255, 0.15);
}

.preview-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 8px #49dc99;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ASSISTANT */

.section {
  height: calc(100% - 56px);
  box-sizing: border-box;
}

.assistant-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 35px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

.assistant-intro {
  min-width: 0;
  width: 100%;
  padding-left: 10px;
  box-sizing: border-box;
}

.ai-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(157, 92, 255, .3);
  border-radius: 12px;
  background: rgba(157, 92, 255, .12);
  box-shadow: 0 0 25px rgba(157, 92, 255, .12);
}

.ai-icon span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7a4ff;
  box-shadow: 0 0 15px #9d5cff;
}

.section-eyebrow {
  margin-bottom: 9px;
  color: #a977ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.assistant-intro h1 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 600;
}

.assistant-intro h1 span {
  color: #a979ff;
}

.assistant-intro>p {
  max-width: 330px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.connected-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  transition: all 0.25s ease;
}

.tool:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .15);
}

.tool>div {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: white;
  font-size: 8px;
  font-weight: 700;
}

.tool.more-tools {
  border-color: rgba(157, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.16), rgba(89, 101, 255, 0.16));
  color: #c7a4ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(157, 92, 255, 0.15);
}

.tool.more-tools:hover {
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.35), rgba(89, 101, 255, 0.35));
  border-color: rgba(181, 138, 255, 0.7);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.35);
}

.tool.more-tools .plus-badge {
  background: rgba(157, 92, 255, 0.35);
  color: #ffffff;
  font-size: 10px;
}

/* ASSISTANT CARD */

.assistant-card {
  width: 100%;
  min-width: 0;
  max-width: 480px;
  min-height: 380px;
  margin-left: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 17px;
  background: rgba(10, 10, 15, .48);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .055);
  overflow: hidden;
}

.assistant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #9d5cff, #4d32a5);
  box-shadow: 0 0 15px rgba(157, 92, 255, .25);
}

.assistant-avatar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px white;
}

.assistant-title strong {
  display: block;
  font-size: 11px;
}

.assistant-title small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .32);
  font-size: 9px;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #50dca0;
  font-size: 9px;
}

.source-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.more-tabs-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px dashed rgba(157, 92, 255, 0.4);
  border-radius: 6px;
  background: rgba(157, 92, 255, 0.08);
  color: #c7a4ff;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.more-tabs-badge:hover {
  background: rgba(157, 92, 255, 0.25);
  border-style: solid;
  border-color: rgba(181, 138, 255, 0.8);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(157, 92, 255, 0.3);
}

.source-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  cursor: pointer;
}

.source-tab.active {
  border-color: rgba(157, 92, 255, .25);
  background: rgba(157, 92, 255, .1);
  color: white;
}

.source-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  font-size: 9px;
  font-weight: 700;
}

.chat {
  height: 235px;
  padding: 15px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat::-webkit-scrollbar {
  display: none;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}

.welcome-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 9px;
  background: rgba(157, 92, 255, .1);
  color: #b990ff;
  font-size: 11px;
}

.chat-welcome strong {
  font-size: 11px;
  font-weight: 500;
}

.chat-welcome span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.message {
  max-width: 85%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
  animation: messageIn .35s ease;
}

.message.user {
  margin-left: auto;
  border: 1px solid rgba(157, 92, 255, .18);
  background: rgba(115, 57, 190, .18);
  color: rgba(255, 255, 255, .85);
}

.message.ai {
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .65);
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing {
  display: flex;
  align-items: center;
  gap: 3px;
}

.typing i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a979ff;
  animation: typing 1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: .15s;
}

.typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes typing {

  0%,
  100% {
    opacity: .25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 10px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(0, 0, 0, .25);
}

.typing-area {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 11px;
  padding: 2px 4px;
}

.typing-area::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-prompt-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px;
}

.login-prompt-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c7a4ff;
  font-weight: 600;
  font-size: 11px;
}

.login-prompt-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  line-height: 1.5;
}

.login-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 16px;
  border: 1px solid rgba(157, 92, 255, 0.4);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.35), rgba(89, 101, 255, 0.35));
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(157, 92, 255, 0.25);
  transition: all 0.25s ease;
}

.login-action-btn:hover {
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.6), rgba(89, 101, 255, 0.6));
  border-color: rgba(181, 138, 255, 0.8);
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

/* LOGIN MODAL STYLING */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.login-modal-card {
  position: relative;
  width: 90%;
  max-width: 380px;
  padding: 30px 25px;
  border: 1px solid rgba(157, 92, 255, 0.3);
  border-radius: 20px;
  background: rgba(15, 15, 24, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(157, 92, 255, 0.2);
  color: white;
  text-align: center;
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: white;
}

.modal-brand {
  color: #b58aff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.login-modal-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-modal-card p {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 500;
}

.form-group input {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #9d5cff;
  background: rgba(255, 255, 255, 0.08);
}

.submit-login-btn {
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(157, 92, 255, 0.5);
}

.modal-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.modal-footer a {
  color: #b58aff;
  text-decoration: none;
  font-weight: 600;
}

.send-button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #9d5cff;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(157, 92, 255, .2);
}

.send-button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-hint {
  padding: 7px 13px 10px;
  color: rgba(255, 255, 255, .35);
  font-size: 9px;
}

/* PLACEHOLDER */

.placeholder-section {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.placeholder-section.active-section {
  display: flex;
}

.placeholder-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(157, 92, 255, .25);
  border-radius: 13px;
  background: rgba(157, 92, 255, .1);
  color: #ad82ff;
  font-size: 18px;
}

.placeholder-section>span {
  color: #a979ff;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.placeholder-section h1 {
  margin-top: 9px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.placeholder-section h1 strong {
  color: #a979ff;
  font-weight: 600;
}

.placeholder-section p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .app {
    width: 90%;
    height: 75vh;
    margin: 12.5vh auto;
  }

  .assistant-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 0;
    overflow-y: auto;
  }

  .assistant-intro {
    padding-left: 0;
    text-align: center;
  }

  .assistant-intro>p {
    margin-left: auto;
    margin-right: auto;
  }

  .connected-tools {
    justify-content: center;
  }

  .assistant-card {
    margin: auto;
  }
}

@media (max-width: 600px) {
  .app {
    width: 94%;
    height: 82vh;
    min-height: 520px;
    margin: 9vh auto;
    border-radius: 18px;
  }

  .sidebar {
    width: 62px;
  }

  .main-area {
    margin-left: 62px;
    padding: 0 15px;
  }

  .nav-item {
    width: 48px;
    height: 50px;
  }

  .nav-item span {
    font-size: 8.5px;
  }

  .assistant-layout {
    display: block;
    padding-top: 25px;
  }

  .assistant-intro {
    margin-bottom: 20px;
  }

  .assistant-intro h1 {
    font-size: 27px;
  }

  .assistant-card {
    min-height: 350px;
  }

  .chat {
    height: 210px;
  }
}

/* ==============================
   CRM EXPERIENCE
============================== */

/* ==============================
   CRM EXPERIENCE
============================== */

.crm-section {
  display: none;
  flex-direction: column;
  height: calc(100% - 60px);
  padding-top: 10px;
  overflow: hidden;
}

.crm-section.active-section {
  display: flex;
}

.crm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.177);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 5px;
}

.crm-tab {
  padding: 6px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s ease;
}

.crm-tab:hover {
  color: rgba(255, 255, 255, .85);
}

.crm-tab.active {
  color: white;
  background: rgba(157, 92, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(157, 92, 255, 0.3);
}

.crm-nav-separator {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.crm-tool-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5.5px 11px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.crm-tool-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.whatsapp-badge {
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-badge:hover {
  background: rgba(37, 211, 102, 0.28);
  border-color: rgba(37, 211, 102, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.35);
}

.whatsapp-icon {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.gmail-badge {
  border: 1px solid rgba(234, 67, 53, 0.35);
  background: rgba(234, 67, 53, 0.12);
  color: #ff786b;
  box-shadow: 0 0 12px rgba(234, 67, 53, 0.15);
}

.gmail-badge:hover {
  background: rgba(234, 67, 53, 0.28);
  border-color: rgba(234, 67, 53, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(234, 67, 53, 0.35);
}

.gmail-icon {
  background: rgba(234, 67, 53, 0.2);
  color: #ff786b;
}

.crm-view {
  display: none;
  flex: 1;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.crm-view::-webkit-scrollbar {
  display: none;
}

.crm-view.active {
  display: flex;
  flex-direction: column;
}

.crm-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.crm-heading>div>span {
  color: #a979ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.crm-heading h1 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.crm-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
}

.crm-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 8px #49dc99;
}

.crm-add-btn {
  padding: 7px 14px;
  border: 1px solid rgba(157, 92, 255, .35);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(157, 92, 255, .25), rgba(89, 101, 255, .2));
  color: #d1b9ff;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.crm-add-btn:hover {
  background: rgba(157, 92, 255, .35);
  color: white;
  border-color: rgba(157, 92, 255, .7);
}

/* STATS */

.crm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.crm-stat,
.crm-panel,
.crm-table,
.lead-card,
.invoice-list {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 10, 15, .42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.crm-stat {
  padding: 10px 12px;
  border-radius: 10px;
}

.crm-stat span {
  display: block;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
}

.crm-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
}

.crm-stat small {
  display: block;
  margin-top: 3px;
  color: #56dba0;
  font-size: 9.5px;
}

/* OVERVIEW */

.crm-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.crm-panel {
  border-radius: 11px;
  padding: 12px 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-head span {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
}

.panel-head h3 {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.panel-live {
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(73, 220, 153, .1);
  color: #55dca1;
  font-size: 9px;
  font-weight: 600;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.activity:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}

.activity-icon.purple {
  background: rgba(157, 92, 255, .15);
  color: #b48aff;
}

.activity-icon.blue {
  background: rgba(89, 101, 255, .15);
  color: #8790ff;
}

.activity-icon.green {
  background: rgba(73, 220, 153, .12);
  color: #55dca1;
}

.activity-icon.orange {
  background: rgba(255, 170, 80, .12);
  color: #ffb36b;
}

.activity div:nth-child(2) {
  flex: 1;
}

.activity strong {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
}

.activity span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.activity time {
  color: rgba(255, 255, 255, .35);
  font-size: 9px;
}

.progress-row {
  margin-bottom: 12px;
}

.progress-row>div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
}

.progress-row strong {
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d5cff, #5965ff);
  box-shadow: 0 0 8px rgba(157, 92, 255, .35);
}

/* PIPELINE */

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  flex: 1;
  min-height: 0;
}

.pipeline-column {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(5, 5, 8, .28);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
}

.pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 9px;
}

.pipeline-head div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pipeline-head span {
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
}

.pipeline-head strong {
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 10px;
}

.pipeline-head>b {
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  font-weight: 500;
}

.deal-list {
  min-height: 100px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: .2s ease;
  overflow-y: auto;
  scrollbar-width: none;
}

.deal-list::-webkit-scrollbar {
  display: none;
}

.deal-list.drag-over {
  min-height: 120px;
  border-radius: 8px;
  background: rgba(157, 92, 255, .08);
  outline: 1px dashed rgba(181, 138, 255, .5);
}

.deal-card {
  position: relative;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: rgba(15, 15, 21, .75);
  cursor: grab;
  will-change: transform;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.deal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 92, 255, .35);
  background: rgba(25, 20, 38, .85);
}

.deal-card.dragging {
  opacity: .4;
  transform: scale(0.98);
}

.deal-card.auto-moving {
  border-color: rgba(181, 138, 255, 0.8) !important;
}

.deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-top strong {
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 600;
}

.deal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9d5cff;
  box-shadow: 0 0 7px rgba(157, 92, 255, .8);
}

.deal-card p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
}

.deal-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.deal-bottom span {
  color: #b58aff;
  font-size: 10.5px;
  font-weight: 600;
}

.deal-bottom small {
  color: rgba(255, 255, 255, .35);
  font-size: 9.5px;
}

.won-card {
  border-color: rgba(73, 220, 153, .2);
}

.won-card .deal-dot {
  background: #49dc99;
  box-shadow: 0 0 7px #49dc99;
}

/* TABLE */

.crm-table {
  overflow: hidden;
  border-radius: 10px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr .7fr .8fr;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
}

.table-head {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .025);
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
}

.table-row {
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .55);
  font-size: 10.5px;
}

.table-row:last-child {
  border-bottom: 0;
}

.person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person>div {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(157, 92, 255, .15);
  color: #b58aff;
  font-size: 10px;
  font-weight: 600;
}

.person strong {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 500;
}

.person small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .35);
  font-size: 9.5px;
}

.status {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
}

.status.active {
  background: rgba(73, 220, 153, .1);
  color: #55dca1;
}

.status.pending {
  background: rgba(255, 180, 80, .1);
  color: #ffb66d;
}

.lead-score-pill {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.lead-score-pill.high {
  border: 1px solid rgba(73, 220, 153, .25);
  background: rgba(73, 220, 153, .12);
  color: #55dca1;
}

.lead-score-pill.medium {
  border: 1px solid rgba(255, 180, 80, .25);
  background: rgba(255, 180, 80, .12);
  color: #ffb66d;
}

/* LEADS */

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.lead-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-radius: 10px;
}

.lead-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(157, 92, 255, .25), rgba(89, 101, 255, .2));
  color: #c3a3ff;
  font-size: 10.5px;
  font-weight: 600;
}

.lead-info {
  flex: 1;
}

.lead-info strong {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 500;
}

.lead-info span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
}

.lead-card>small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, .38);
  font-size: 9.5px;
}

.lead-score {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}

.lead-score.high {
  border: 1px solid rgba(73, 220, 153, .25);
  background: rgba(73, 220, 153, .1);
  color: #55dca1;
}

.lead-score.medium {
  border: 1px solid rgba(255, 180, 80, .25);
  background: rgba(255, 180, 80, .1);
  color: #ffb66d;
}

/* INVOICES */

.invoice-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.invoice-summary>div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(10, 10, 15, .4);
}

.invoice-summary span {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
}

.invoice-summary strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  font-weight: 500;
}

.invoice-list {
  overflow: hidden;
  border-radius: 10px;
}

.invoice-row {
  display: grid;
  grid-template-columns: .8fr 1.4fr .8fr .7fr;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .55);
  font-size: 10.5px;
}

.invoice-row:last-child {
  border-bottom: 0;
}

.invoice-row>strong {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
}

.invoice-row b {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
}

.invoice-paid {
  background: rgba(73, 220, 153, .1);
  color: #55dca1;
}

.invoice-pending {
  background: rgba(255, 180, 80, .1);
  color: #ffb66d;
}

.invoice-overdue {
  background: rgba(255, 80, 100, .1);
  color: #ff7585;
}

@media (max-width: 900px) {
  .crm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-board {
    grid-template-columns: repeat(2, 1fr);
    overflow-y: auto;
  }

  .crm-overview-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  .crm-nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .crm-tab {
    white-space: nowrap;
  }

  .crm-heading h1 {
    font-size: 18px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .invoice-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
   SCHEDULER EXPERIENCE
============================== */

/* ==============================
   SCHEDULER EXPERIENCE
============================== */

.scheduler-section {
  display: none;
  flex-direction: column;
  height: calc(100% - 60px);
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}

.scheduler-section.active-section {
  display: flex;
}

.scheduler-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.scheduler-top>div>span {
  color: #a979ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.scheduler-top h1 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.scheduler-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scheduler-tool-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5.5px 11px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.scheduler-tool-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.gcal-badge {
  border: 1px solid rgba(66, 133, 244, 0.35);
  background: rgba(66, 133, 244, 0.12);
  color: #76a7ff;
  box-shadow: 0 0 12px rgba(66, 133, 244, 0.15);
}

.gcal-badge:hover {
  background: rgba(66, 133, 244, 0.28);
  border-color: rgba(66, 133, 244, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(66, 133, 244, 0.35);
}

.gcal-icon {
  background: rgba(66, 133, 244, 0.2);
  color: #76a7ff;
}

.gmeet-badge {
  border: 1px solid rgba(0, 172, 71, 0.35);
  background: rgba(0, 172, 71, 0.12);
  color: #49dc99;
  box-shadow: 0 0 12px rgba(0, 172, 71, 0.15);
}

.gmeet-badge:hover {
  background: rgba(0, 172, 71, 0.28);
  border-color: rgba(0, 172, 71, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 172, 71, 0.35);
}

.gmeet-icon {
  background: rgba(0, 172, 71, 0.2);
  color: #49dc99;
}

.scheduler-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(73, 220, 153, .2);
  border-radius: 6px;
  background: rgba(73, 220, 153, .08);
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 500;
}

.scheduler-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 8px #49dc99;
}

/* COMMAND */

.scheduler-command {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(157, 92, 255, .22);
  border-radius: 10px;
  background: rgba(15, 12, 22, .6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 25px rgba(157, 92, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  flex-shrink: 0;
}

.command-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(157, 92, 255, .3);
  border-radius: 8px;
  background: rgba(157, 92, 255, .15);
  color: #c3a3ff;
  font-size: 13px;
  box-shadow: 0 0 15px rgba(157, 92, 255, .15);
}

.command-content {
  flex: 1;
}

.command-content span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
}

.command-content input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  font-family: inherit;
  font-size: 11px;
}

.command-content input::placeholder {
  color: rgba(255, 255, 255, .35);
}

#scheduleBtn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(157, 92, 255, .3);
  transition: .2s ease;
  flex-shrink: 0;
}

#scheduleBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(157, 92, 255, .45);
}

#scheduleBtn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheduler-feedback {
  display: none;
  font-size: 10px;
  color: #55dca1;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(73, 220, 153, 0.12);
  border: 1px solid rgba(73, 220, 153, 0.25);
  animation: fadeIn 0.3s ease;
}

.scheduler-feedback.show {
  display: inline-block;
}

/* BODY */

.scheduler-body {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.calendar-panel,
.upcoming-panel {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(10, 10, 15, .42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.calendar-panel {
  position: relative;
  overflow: hidden;
}

/* TIMELINE OVERLAY LOGIN CARD */

.timeline-login-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  border-radius: 11px;
  background: rgba(10, 8, 20, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  place-items: center;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

.timeline-login-overlay.show {
  display: grid;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.overlay-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 24px 20px;
  border: 1px solid rgba(157, 92, 255, 0.45);
  border-radius: 14px;
  background: rgba(18, 14, 30, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(157, 92, 255, 0.3);
}

.close-overlay-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: 0.2s ease;
}

.close-overlay-btn:hover {
  color: white;
}

.overlay-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(157, 92, 255, 0.2);
  border: 1px solid rgba(157, 92, 255, 0.35);
  color: #c3a3ff;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.3);
}

.overlay-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.overlay-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 18px;
}

.overlay-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(157, 92, 255, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.35);
  transition: 0.2s ease;
}

.overlay-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(157, 92, 255, 0.55);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.calendar-date-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-date-box strong {
  color: rgba(255, 255, 255, .9);
  font-size: 11.5px;
  font-weight: 600;
}

.today-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(157, 92, 255, .15);
  color: #c3a3ff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-nav button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  cursor: pointer;
  transition: .2s ease;
}

.calendar-nav button:hover {
  background: rgba(157, 92, 255, .2);
  color: white;
}

.time-line {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.time-line::-webkit-scrollbar {
  display: none;
}

/* POLITE POPUP MODAL (CENTERED WITH BACKDROP BLUR) */

.scheduler-login-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 3, 10, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  place-items: center;
  padding: 20px;
  animation: popupFadeIn 0.25s ease-out;
}

.scheduler-login-popup.show {
  display: grid;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding: 26px 22px;
  border: 1px solid rgba(157, 92, 255, 0.45);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 16, 36, 0.96), rgba(12, 10, 24, 0.98));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(157, 92, 255, 0.3);
  animation: popupScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-popup-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  transition: 0.2s ease;
}

.close-popup-btn:hover {
  color: white;
}

.popup-icon {
  width: 45px;
  height: 65px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(157, 92, 255, 0.2);
  border: 1px solid rgba(157, 92, 255, 0.35);
  color: #c3a3ff;
  font-size: 40px;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.3);
  rotate: 90deg;
}

.tele-icon {
  rotate: 360deg;
  width: 70px;
}

.popup-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.popup-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 18px;
}

.popup-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(157, 92, 255, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.35);
  transition: 0.2s ease;
}

.popup-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(157, 92, 255, 0.55);
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: 65px 1fr;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  align-items: stretch;
}

.time-row time {
  padding: 10px 8px 0 12px;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.time-slot {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, .05);
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.schedule-event {
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
  z-index: 2;
  box-sizing: border-box;
}

.schedule-event strong {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 10.5px;
  font-weight: 500;
}

.schedule-event span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .45);
  font-size: 9.5px;
}

.purple-event {
  border: 1px solid rgba(157, 92, 255, .25);
  background: rgba(157, 92, 255, .14);
  box-shadow: inset 3px 0 #9d5cff;
}

.blue-event {
  border: 1px solid rgba(89, 101, 255, .25);
  background: rgba(89, 101, 255, .14);
  box-shadow: inset 3px 0 #5965ff;
}

.green-event {
  border: 1px solid rgba(73, 220, 153, .22);
  background: rgba(73, 220, 153, .1);
  box-shadow: inset 3px 0 #49dc99;
}

@keyframes eventPulse {

  0%,
  100% {
    opacity: .85;
  }

  50% {
    opacity: 1;
  }
}

/* UPCOMING */

.upcoming-panel {
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.upcoming-panel::-webkit-scrollbar {
  display: none;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.panel-title span {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
}

.panel-title h3 {
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: 11.5px;
  font-weight: 500;
}

.panel-title>b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(157, 92, 255, .15);
  color: #b58aff;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}

.automation-list {
  display: flex;
  flex-direction: column;
}

.automation-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.automation-item:last-child {
  border-bottom: 0;
}

.automation-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 11px;
}

.purple-icon {
  background: rgba(157, 92, 255, .15);
  color: #b58aff;
}

.blue-icon {
  background: rgba(89, 101, 255, .15);
  color: #8790ff;
}

.green-icon {
  background: rgba(73, 220, 153, .12);
  color: #55dca1;
}

.orange-icon {
  background: rgba(255, 180, 80, .12);
  color: #ffb66d;
}

.automation-item>div:nth-child(2) {
  flex: 1;
}

.automation-item strong {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 10.5px;
  font-weight: 500;
}

.automation-item span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.automation-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 7px #49dc99;
}

/* BOTTOM DEMO */

.scheduler-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  flex-shrink: 0;
}

.demo-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9d5cff;
  box-shadow: 0 0 8px #9d5cff;
  animation: schedulerPulse 1.5s infinite;
}

@keyframes schedulerPulse {

  0%,
  100% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.scheduler-new-task {
  animation: newTaskIn .5s ease;
}

@keyframes newTaskIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .scheduler-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .upcoming-panel {
    min-height: 180px;
  }
}

@media (max-width: 600px) {
  .scheduler-top h1 {
    font-size: 18px;
  }

  .scheduler-command {
    padding: 8px;
  }

  .command-content input {
    font-size: 9.5px;
  }
}

/* ==============================
   WORKFLOW EXPERIENCE
============================== */

.workflow-section {
  display: none;
  flex-direction: column;
  height: calc(100% - 60px);
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
}

.workflow-section.active-section {
  display: flex;
}

.workflow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.workflow-header>div>span {
  color: #a979ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.workflow-header h1 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.workflow-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(73, 220, 153, .2);
  border-radius: 6px;
  background: rgba(73, 220, 153, .08);
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 500;
}

.workflow-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 8px #49dc99;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.workflow-canvas,
.workflow-side {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(10, 10, 15, .42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 15px 40px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workflow-canvas {
  position: relative;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.workflow-canvas::-webkit-scrollbar {
  display: none;
}

.workflow-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.4;
}

.canvas-label {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.canvas-label span {
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
}

.canvas-label b {
  padding: 4px 8px;
  border: 1px solid rgba(73, 220, 153, .22);
  border-radius: 5px;
  background: rgba(73, 220, 153, .1);
  color: #50dca0;
  font-size: 9.5px;
  font-weight: 600;
}

.flow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 15px;
}

.flow-node {
  width: 135px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(15, 15, 22, .75);
  backdrop-filter: blur(15px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: .25s ease;
}

.flow-node:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 92, 255, .4);
  box-shadow: 0 12px 30px rgba(157, 92, 255, .15);
}

.node-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
}

.trigger-node .node-icon {
  background: rgba(255, 177, 70, .14);
  color: #ffb45c;
}

.ai-node .node-icon {
  background: rgba(157, 92, 255, .15);
  color: #bd9aff;
}

.action-node .node-icon {
  background: rgba(89, 101, 255, .15);
  color: #8991ff;
}

.integration-node .node-icon {
  background: rgba(73, 220, 153, .12);
  color: #55dca1;
}

.flow-node span {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 9px;
  letter-spacing: .8px;
  font-weight: 700;
}

.flow-node strong {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .88);
  font-size: 10.5px;
  font-weight: 500;
}

.flow-node small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .38);
  font-size: 9.5px;
  line-height: 1.3;
}

.flow-line {
  position: relative;
  width: 24px;
  height: 1px;
  background: rgba(157, 92, 255, .3);
}

.flow-line span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9d5cff;
  box-shadow: 0 0 8px #9d5cff;
  animation: flowMove 1.5s linear infinite;
}

@keyframes flowMove {
  from {
    left: 0;
    opacity: .2;
  }

  50% {
    opacity: 1;
  }

  to {
    left: calc(100% - 5px);
    opacity: .2;
  }
}

.flow-result {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: center;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(73, 220, 153, .18);
  border-radius: 7px;
  background: rgba(73, 220, 153, .06);
}

.result-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(73, 220, 153, .15);
  color: #50dca0;
  font-size: 10.5px;
  font-weight: 600;
}

.flow-result strong {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  font-weight: 500;
}

.flow-result span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

/* SIDE PANEL */

.workflow-side {
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.workflow-side::-webkit-scrollbar {
  display: none;
}

.workflow-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.workflow-side-head span {
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
}

.workflow-side-head strong {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(157, 92, 255, .15);
  color: #b58aff;
  font-size: 9.5px;
  font-weight: 600;
}

.step-list {
  display: flex;
  flex-direction: column;
}

.workflow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.step-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(157, 92, 255, .15);
  color: #b58aff;
  font-size: 10px;
  font-weight: 600;
}

.workflow-step>div:nth-child(2) {
  flex: 1;
}

.workflow-step strong {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  font-weight: 500;
}

.workflow-step span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.workflow-step>i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 7px #49dc99;
}

.workflow-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding: 9px;
  border: 1px solid rgba(157, 92, 255, .35);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(157, 92, 255, .25), rgba(89, 101, 255, .2));
  color: #d1b9ff;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
  flex-shrink: 0;
}

.workflow-edit span {
  font-size: 12px;
}

.workflow-edit:hover {
  background: rgba(157, 92, 255, .35);
  border-color: rgba(157, 92, 255, .7);
  color: white;
  box-shadow: 0 0 15px rgba(157, 92, 255, 0.3);
}

.workflow-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  flex-shrink: 0;
}

.workflow-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9d5cff;
  box-shadow: 0 0 8px #9d5cff;
  animation: workflowPulse 1.5s infinite;
}

@keyframes workflowPulse {

  0%,
  100% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 1050px) {
  .flow-node {
    width: 115px;
  }

  .flow-line {
    width: 14px;
  }
}

@media (max-width: 900px) {
  .workflow-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .workflow-side {
    min-height: 190px;
  }

  .flow {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .workflow-header h1 {
    font-size: 18px;
  }

  .flow {
    flex-direction: column;
  }

  .flow-line {
    width: 1px;
    height: 15px;
  }

  .flow-line span {
    top: 0;
    left: -2px;
  }
}

/* ==============================
   VOICE AI EXPERIENCE
============================== */

/* ==============================
   VOICE AI EXPERIENCE
============================== */

.voice-section {
  display: none;
  flex-direction: column;
  height: calc(100% - 60px);
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.voice-section::-webkit-scrollbar {
  display: none;
}

.voice-section.active-section {
  display: flex;
}

.voice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.voice-header > div > span {
  color: #a979ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.voice-header h1 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.voice-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(73, 220, 153, .2);
  border-radius: 6px;
  background: rgba(73, 220, 153, .08);
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 500;
}

.voice-status i,
.demo-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 8px #49dc99;
}

/* TABS */

.voice-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
  /* margin-right: 180px; */
  border: 1px solid #97979799;
  border-radius: 7px;
  backdrop-filter: blur(5px);
  padding: 5px ;
}

.voice-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .5);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .25s ease;
}

.voice-tab span {
  font-size: 11px;
}

.voice-tab:hover {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
}

.voice-tab.active {
  border-color: rgba(157, 92, 255, .35);
  background: rgba(157, 92, 255, 0.18);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* MODES */

.voice-mode {
  display: none !important;
  flex: 1;
  min-height: 0;
}

.voice-mode.active {
  display: grid !important;
}

/* AGENT */

.agent-mode {
  grid-template-columns: .8fr 1.2fr;
  gap: 14px;
  align-items: center;
}

.agent-info {
  padding: 10px 5px 10px 12px;
}

.agent-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(157, 92, 255, .3);
  border-radius: 50%;
  animation: voiceRotate 6s linear infinite;
}

.avatar-core {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #c6a3ff, #7135ce);
  color: white;
  font-size: 13px;
  box-shadow: 0 0 25px rgba(157, 92, 255, .4);
}

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

.voice-eyebrow {
  color: #a979ff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.agent-info h2 {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
}

.agent-info > p {
  max-width: 290px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: 10.5px;
  line-height: 1.6;
}

.agent-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.agent-capabilities div {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
  font-size: 9.5px;
  font-weight: 500;
}

.voice-providers-container {
  margin-top: 14px;
}

.providers-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.voice-providers-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 28px;
  box-sizing: border-box;
}

.provider-badge:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.provider-logo {
  height: 16px;
  width: auto;
  max-width: 75px;
  object-fit: contain;
  display: block;
}

/* FLOW BUILDER TUTORIAL DEMO CARD */

.flow-builder-card {
  position: relative;
  height: 330px;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0d0b18;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ANIMATED TUTORIAL CURSOR */
.demo-cursor {
  position: absolute;
  top: 35px;
  left: 280px;
  z-index: 500;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  transition: top 1.4s ease-in-out, left 1.4s ease-in-out, transform 0.2s ease;
}

.demo-cursor.clicking {
  transform: scale(0.78);
}

/* STRICT STAGE ISOLATION (NO OVERLAP CONFLICT) */
.flow-stage {
  display: none !important;
  width: 100%;
  height: calc(100% - 32px);
  position: absolute;
  top: 0;
  left: 0;
}

.flow-stage.active {
  display: flex !important;
}

/* STAGE 1: WORKFLOWS LIST */
.stage-workflows {
  flex-direction: column;
}

.workflow-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
}

.wf-item-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.wf-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wf-badge.purple {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(157, 92, 255, 0.2);
  color: #c3a3ff;
  font-size: 8.5px;
  font-weight: 600;
}

.wf-status.green {
  color: #50dca0;
  font-size: 8.5px;
  font-weight: 600;
}

.wf-status.yellow {
  color: #fbbc04;
  font-size: 8.5px;
  font-weight: 600;
}

.wf-item-card h5 {
  font-size: 11px;
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
}

.wf-item-card p {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
  margin-bottom: 8px;
}

.wf-item-btns {
  display: flex;
  gap: 5px;
}

.wf-mini-btn {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 8.5px;
  font-weight: 500;
}

.wf-mini-btn.edit {
  border-color: rgba(157, 92, 255, 0.4);
  background: rgba(157, 92, 255, 0.2);
  color: #d1b9ff;
  font-weight: 600;
}

/* STAGE 2: CANVAS EDITOR */
.stage-canvas {
  display: flex;
}

.builder-sidebar {
  width: 85px;
  padding: 10px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #090812;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-group span {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.tool-btn {
  padding: 5px;
  margin-bottom: 4px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
}

.tool-btn.purple {
  background: rgba(157, 92, 255, 0.2);
  color: #c3a3ff;
  border-color: rgba(157, 92, 255, 0.3);
}

.tool-btn.pink {
  background: rgba(234, 67, 53, 0.18);
  color: #ff8795;
  border-color: rgba(234, 67, 53, 0.3);
}

.tool-btn.save-btn {
  background: rgba(73, 220, 153, 0.15);
  color: #50dca0;
  border-color: rgba(73, 220, 153, 0.3);
}

.tool-btn.publish-btn {
  background: #2979ff;
  color: white;
}

.builder-canvas-area {
  flex: 1;
  position: relative;
  padding: 10px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
}

.canvas-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.canvas-top-bar span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9.5px;
  font-weight: 600;
}

.pill-blue {
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(41, 121, 255, 0.2);
  color: #76a7ff;
  font-size: 8.5px;
  font-weight: 600;
}

/* CONNECTED NODES FLOW (LEFT TO RIGHT) */
.canvas-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.node-start {
  padding: 10px 14px;
  border-radius: 8px;
  background: #00897b;
  color: white;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.node-start span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  opacity: 0.85;
}

.node-start strong {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
}

/* RIGHT ARROW WIRE CONNECTOR */
.node-wire {
  position: relative;
  width: 60px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wire-label {
  position: absolute;
  top: -12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #120f1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 8px;
}

.node-agent {
  width: 170px;
  padding: 9px;
  border: 1px solid rgba(41, 121, 255, 0.4);
  border-radius: 9px;
  background: #141224;
  text-align: left;
  transition: border-color 0.3s ease;
}

.node-agent-head span {
  display: block;
  color: #76a7ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.node-agent-head strong {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.node-agent-options {
  display: flex;
  gap: 8px;
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8.5px;
}

.node-prompt-box {
  padding: 5px 7px;
  border-radius: 5px;
  background: #0a0814;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 2;
}

.prompt-line small {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.prompt-line span {
  display: block;
  color: #d1b9ff;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PROMPT CONFIG MODAL */
.prompt-modal-overlay {
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: 250;
  background: rgba(5, 4, 12, 0.88);
  backdrop-filter: blur(10px);
  place-items: center;
  padding: 10px;
}

.prompt-modal-overlay.show {
  display: grid !important;
}

.prompt-modal-card {
  width: 100%;
  max-width: 250px;
  padding: 12px;
  border: 1px solid rgba(157, 92, 255, 0.4);
  border-radius: 10px;
  background: #120e20;
}

.modal-head strong {
  color: white;
  font-size: 10.5px;
  font-weight: 600;
}

.prompt-field {
  margin-top: 8px;
  text-align: left;
}

.prompt-field label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8.5px;
  margin-bottom: 3px;
}

.prompt-field textarea,
.prompt-field input {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: #0a0814;
  color: #d1b9ff;
  font-size: 9px;
  font-family: inherit;
  box-sizing: border-box;
}

.prompt-field textarea {
  height: 42px;
  resize: none;
}

.modal-actions {
  margin-top: 10px;
}

.modal-done-btn {
  width: 100%;
  padding: 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
}

/* BUILDER TOAST */
.builder-toast {
  display: none !important;
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 280;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #120f1e;
  border: 1px solid rgba(73, 220, 153, 0.5);
}

.builder-toast.show {
  display: flex !important;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.builder-toast span {
  color: #50dca0;
  font-size: 11px;
  font-weight: 700;
}

.builder-toast strong {
  color: white;
  font-size: 9.5px;
  font-weight: 600;
}

.agent-demo-footer {
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  background: rgba(8, 6, 16, 0.6);
}

.call-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.call-card-head span {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 600;
}

.call-card-head strong {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 500;
}

.demo-online {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #50dca0;
  font-size: 10px;
  font-weight: 500;
}

.conversation {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.voice-message {
  max-width: 82%;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 9px;
  animation: voiceMessageIn .6s ease;
}

.voice-message span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .4);
  font-size: 9px;
  font-weight: 600;
}

.voice-message p {
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  line-height: 1.5;
}

.voice-message.caller {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
}

.voice-message.agent {
  border: 1px solid rgba(157, 92, 255, .2);
  background: rgba(157, 92, 255, .12);
}

@keyframes voiceMessageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voice-wave,
.call-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.voice-wave {
  margin-top: 14px;
}

.voice-wave i,
.call-wave i {
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: #9d5cff;
  animation: voiceWave 1s ease-in-out infinite;
}

.voice-wave i:nth-child(2),
.call-wave i:nth-child(2) {
  animation-delay: .1s;
}

.voice-wave i:nth-child(3),
.call-wave i:nth-child(3) {
  animation-delay: .2s;
}

.voice-wave i:nth-child(4),
.call-wave i:nth-child(4) {
  animation-delay: .3s;
}

.voice-wave i:nth-child(5),
.call-wave i:nth-child(5) {
  animation-delay: .2s;
}

.voice-wave i:nth-child(6),
.call-wave i:nth-child(6) {
  animation-delay: .1s;
}

@keyframes voiceWave {
  0%, 100% {
    height: 6px;
    opacity: .35;
  }

  50% {
    height: 18px;
    opacity: 1;
  }
}

.agent-demo-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9d5cff;
  box-shadow: 0 0 8px #9d5cff;
  animation: voicePulse 1.3s infinite;
}

@keyframes voicePulse {
  50% {
    opacity: .35;
    transform: scale(.7);
  }
}

/* LIVE CALL */

/* LIVE CALL */

.live-mode {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.call-settings {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(10, 10, 15, .42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-icon {
  color: #c3a3ff;
  font-size: 11px;
}

.settings-label {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}

.provider-badges-top {
  display: flex;
  gap: 6px;
}

.provider-circle-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.badge-dot.green {
  background: #50dca0;
  box-shadow: 0 0 6px #50dca0;
}

.twilio-badge {
  background: rgba(242, 47, 70, 0.12);
  border: 1px solid rgba(242, 47, 70, 0.35);
  color: #ff7d8e;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.twilio-badge .limit-icon.red {
  color: #ff7d8e;
  font-size: 10px;
}

.vobiz-badge {
  background: rgba(80, 220, 160, 0.12);
  border: 1px solid rgba(80, 220, 160, 0.35);
  color: #50dca0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.done-settings-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(157, 92, 255, 0.4);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.25), rgba(89, 101, 255, 0.25));
  color: white;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.done-settings-btn:hover {
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.4), rgba(89, 101, 255, 0.4));
  border-color: rgba(157, 92, 255, 0.7);
  transform: translateY(-1px);
}

.done-settings-btn.applied {
  background: rgba(80, 220, 160, 0.2) !important;
  border-color: rgba(80, 220, 160, 0.5) !important;
  color: #50dca0 !important;
}

.start-call.disabled,
.start-call:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  transform: none !important;
  box-shadow: none !important;
}

.provider-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.provider-icon-dot.twilio {
  background: #9d5cff;
  box-shadow: 0 0 6px #9d5cff;
  display: none;
}

.provider-icon-dot.vobiz {
  background: #7C3AED;
  box-shadow: 0 0 6px #7C3AED;
  display: none;
}

.twilio-provider.active {
  border-color: rgba(157, 92, 255, 0.5) !important;
  background: rgba(157, 92, 255, 0.14) !important;
  color: white !important;
}

.vobiz-provider.active {
  border-color: rgba(124, 58, 237, 0.5) !important;
  background: rgba(124, 58, 237, 0.14) !important;
  color: white !important;
}

.twilio-limit-box {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(242, 47, 70, 0.1);
  border: 1px solid rgba(242, 47, 70, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.twilio-limit-box .limit-icon {
  color: #ff7d8e;
  font-size: 11px;
}

.input-row {
  display: flex;
  gap: 6px;
}

.live-input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: white;
  font-family: inherit;
  font-size: 10px;
  box-sizing: border-box;
}

.live-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.live-input:focus {
  border-color: gray;
  background: black;
}

.combo-status-badge {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(157, 92, 255, 0.12);
  border: 1px solid rgba(157, 92, 255, 0.3);
  color: #c3a3ff;
  font-size: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50dca0;
  box-shadow: 0 0 6px #50dca0;
}

.setting-group {
  margin-top: 12px;
}

.setting-group label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 500;
}

.provider-options,
.option-row {
  display: flex;
  gap: 6px;
}

.provider,
.voice-option {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider {
  padding: 8px;
  text-align: left;
}

.provider strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}

.provider span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.provider.active,
.voice-option.active {
  border-color: rgba(157, 92, 255, .35);
  background: rgba(157, 92, 255, .15);
  color: white;
}

.voice-option {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.agent-select {
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .8);
  font-family: inherit;
  font-size: 10.5px;
}

.agent-select option {
  background: #101015;
  color: white;
}

/* DUAL SIDE-BY-SIDE PROVIDER BLOCKS (VOBIZ & TWILIO) */

.voice-mode.dual-provider-mode.active {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.provider-block-card {
  padding: 18px 20px;
  border-radius: 14px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.vobiz-card {
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.15), rgba(10, 10, 18, 0.8));
}

.twilio-card {
  border: 1px solid rgba(157, 92, 255, 0.35);
  background: radial-gradient(circle at top right, rgba(157, 92, 255, 0.15), rgba(10, 10, 18, 0.8));
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.block-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-title strong {
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.vobiz-start-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, #7C3AED, #5965ff);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.vobiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.55);
}

.twilio-start-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(157, 92, 255, 0.5);
  background: linear-gradient(135deg, #9d5cff, #5965ff);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.35);
  transition: all 0.2s ease;
}

.twilio-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(157, 92, 255, 0.55);
}

.voice-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
  color: rgba(255, 255, 255, .4);
  font-size: 9.5px;
  flex-shrink: 0;
}

.voice-bottom > div {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #49dc99;
  box-shadow: 0 0 7px #49dc99;
}

/* CALLING STATE */

.live-call-card.calling .call-avatar {
  animation: callingAvatar 1.2s ease-in-out infinite;
}

@keyframes callingAvatar {
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(157, 92, 255, .5);
  }
}

.start-call.end-call {
  background: rgba(255, 70, 90, .15);
  border-color: rgba(255, 70, 90, .4);
  color: #ff8795;
}

@media (max-width: 900px) {
  .agent-mode,
  .live-mode {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .voice-demo-card,
  .live-call-card {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .voice-header h1 {
    font-size: 18px;
  }

  .agent-info {
    text-align: center;
  }

  .agent-avatar {
    margin-left: auto;
    margin-right: auto;
  }

  .agent-info > p {
    margin-left: auto;
    margin-right: auto;
  }

  .agent-capabilities {
    justify-content: center;
  }
}

/* ==============================
   AI EMPLOYEES
============================== */

.employees-section {
  display: none;
  flex-direction: column;
  height: calc(100% - 60px);
  padding: 24px 20px 20px;
  overflow-y: auto;
  scrollbar-width: none;
}

.employees-section::-webkit-scrollbar {
  display: none;
}

.employees-section.active-section {
  display: flex;
}

.employees-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
}

.employees-header > div:first-child > span {
  color: #a979ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.employees-header h1 {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #ffffff;
}

.employees-header p {
  max-width: 580px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.employee-count {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(157, 92, 255, 0.2);
  border-radius: 9px;
  background: rgba(157, 92, 255, 0.06);
  backdrop-filter: blur(1px);
}

.employee-count strong {
  color: #b58aff;
  font-size: 15px;
  font-weight: 700;
}

.employee-count span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 4px 20px;
}

.employee-card {
  position: relative;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.employee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(157, 92, 255, 0.8), transparent);
  opacity: 0.7;
}

.employee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 92, 255, 0.35);
  background: rgba(18, 14, 28, 0.75);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(157, 92, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.employee-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.employee-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 16px;
}

.employee-icon.blue {
  background: rgba(80, 95, 255, 0.12);
  color: #7280ff;
}

.employee-icon.cyan {
  background: rgba(40, 190, 220, 0.1);
  color: #43c9e8;
}

.employee-icon.orange {
  background: rgba(255, 170, 30, 0.1);
  color: #ffb52e;
}

.employee-icon.purple {
  background: rgba(157, 92, 255, 0.12);
  color: #b58aff;
}

.employee-icon.green {
  background: rgba(50, 210, 145, 0.1);
  color: #45d99b;
}

.employee-icon.red {
  background: rgba(255, 75, 85, 0.1);
  color: #ff727c;
}

.employee-icon.teal {
  background: rgba(35, 190, 175, 0.1);
  color: #45d5c7;
}

.employee-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.employee-card h3 {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
}

.employee-card > p {
  min-height: 36px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.5;
}

.employee-flow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.employee-flow span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
}

.employee-flow b {
  color: rgba(157, 92, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
}

.employee-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.employee-footer > span {
  color: #b58aff;
  font-size: 11px;
  font-weight: 500;
}

.employee-explore {
  padding: 5px 12px;
  border: 1px solid rgba(157, 92, 255, 0.3);
  border-radius: 6px;
  background: rgba(157, 92, 255, 0.12);
  color: #d1b3ff;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.employee-explore:hover {
  background: rgba(157, 92, 255, 0.25);
  color: #ffffff;
  border-color: rgba(157, 92, 255, 0.5);
}

@media (max-width: 900px) {
  .employee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .employees-header h1 {
    font-size: 20px;
  }

  .employee-grid {
    grid-template-columns: 1fr;
  }
}

.employees-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-help-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 75, 85, 0.35);
  border-radius: 9px;
  background: rgba(255, 75, 85, 0.1);
  color: #ff858e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(1px);
}

.employee-help-btn:hover {
  background: rgba(255, 75, 85, 0.22);
  color: #ffffff;
  border-color: rgba(255, 75, 85, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 75, 85, 0.2);
}

.employee-help-btn .play-icon {
  font-size: 10px;
}

/* AI Employee Popup Custom Styling */
.employee-popup-card {
  max-width: 480px;
  width: 92%;
  padding: 28px 24px;
  text-align: center;
}

.employee-popup-card h3 {
  font-size: 20px;
  margin-top: 12px;
  color: #ffffff;
}

.employee-popup-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.employee-popup-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 24px;
}

.employee-popup-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(157, 92, 255, 0.25);
  border-radius: 20px;
  background: rgba(157, 92, 255, 0.1);
  color: #d2aaff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Video Tutorial Lightbox Modal */
.video-popup-card {
  max-width: 720px;
  width: 94%;
  padding: 22px;
  background: rgba(10, 10, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.video-modal-head {
  text-align: left;
  margin-bottom: 14px;
}

.video-modal-head .pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 75, 85, 0.15);
  color: #ff707a;
  border: 1px solid rgba(255, 75, 85, 0.3);
  text-transform: uppercase;
}

.video-modal-head h3 {
  font-size: 18px;
  margin-top: 6px;
  color: #ffffff;
}

.video-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* AI SDR Side-by-Side 2-Column Modal (No Scroll) */
.sdr-modal-container {
  max-width: 860px;
  width: 95%;
  padding: 24px 26px;
  text-align: left;
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  overflow: hidden;
}

.sdr-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 768px) {
  .sdr-split-grid {
    grid-template-columns: 1fr;
  }
}

.sdr-left-col, .sdr-right-col {
  display: flex;
  flex-direction: column;
}

.sdr-flowchart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sdr-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.deploy-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-avatar-badge {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(157, 92, 255, 0.12);
  border: 1px solid rgba(157, 92, 255, 0.3);
  border-radius: 12px;
  font-size: 20px;
  color: #b58aff;
}

.deploy-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #32d191;
  border: 2px solid #0a0a10;
  box-shadow: 0 0 8px #32d191;
}

.deploy-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.deploy-card-head h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 3px;
}

/* Automated Hiring Progress Animation */
.deploy-stage-progress {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.deploy-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.deploy-progress-label strong {
  color: #b58aff;
  font-weight: 700;
}

.deploy-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.deploy-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #9d5cff, #32d191);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.deploy-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deploy-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.deploy-step-item .step-icon {
  margin-right: 10px;
  font-size: 14px;
}

.deploy-step-item .step-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

.deploy-step-item.active {
  border-color: rgba(157, 92, 255, 0.3);
  background: rgba(157, 92, 255, 0.08);
  color: #ffffff;
}

.deploy-step-item.active .step-status {
  background: rgba(157, 92, 255, 0.2);
  color: #c9a3ff;
}

.deploy-step-item.done {
  border-color: rgba(50, 209, 145, 0.3);
  background: rgba(50, 209, 145, 0.06);
  color: #ffffff;
}

.deploy-step-item.done .step-status {
  background: rgba(50, 209, 145, 0.2);
  color: #45d99b;
}

/* Workflow Flowchart & Suite */
.suite-section-title {
  margin-bottom: 12px;
}

.suite-section-title span {
  color: rgba(157, 92, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.deploy-flowchart {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 15, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 650px) {
  .deploy-flowchart {
    grid-template-columns: 1fr;
  }
}

.flow-step-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-step-box .step-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.flow-step-box .step-badge.purple { background: rgba(157, 92, 255, 0.15); color: #c9a3ff; }
.flow-step-box .step-badge.blue { background: rgba(80, 95, 255, 0.15); color: #7280ff; }
.flow-step-box .step-badge.orange { background: rgba(255, 170, 30, 0.15); color: #ffb52e; }
.flow-step-box .step-badge.green { background: rgba(50, 210, 145, 0.15); color: #45d99b; }

.flow-step-box strong {
  color: #ffffff;
  font-size: 12px;
}

.flow-step-box small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.flow-arrow {
  color: rgba(157, 92, 255, 0.6);
  font-size: 12px;
  text-align: center;
}

.suite-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tool-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-badge-item .tool-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
}

.tool-badge-item .tool-icon.red { background: rgba(255, 75, 85, 0.12); color: #ff727c; }
.tool-badge-item .tool-icon.green { background: rgba(50, 210, 145, 0.12); color: #45d99b; }
.tool-badge-item .tool-icon.blue { background: rgba(80, 95, 255, 0.12); color: #7280ff; }
.tool-badge-item .tool-icon.yellow { background: rgba(255, 170, 30, 0.12); color: #ffb52e; }

.tool-badge-item strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
}

.tool-badge-item small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}

.deploy-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-call-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(50, 209, 145, 0.4);
  background: rgba(50, 209, 145, 0.12);
  color: #45d99b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.test-call-action-btn:hover {
  background: rgba(50, 209, 145, 0.25);
  color: #ffffff;
}

.deploy-workspace-btn {
  flex: 1;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c37cd, #9d5cff);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(157, 92, 255, 0.3);
  transition: all 0.25s ease;
}

.deploy-workspace-btn:hover {
  box-shadow: 0 6px 20px rgba(157, 92, 255, 0.5);
  transform: translateY(-1px);
}
/* --- embed override (appended for the home-page iframe; no rule above is modified) ---
   Standalone, .app is 70% x 70vh centred in the browser window. Inside the home-page
   iframe the frame IS the window, so let it fill edge to edge.
   NOTE: the height must be a viewport unit, not a percentage. html/body declare only
   `min-height:100%`, so a percentage height on .app has no definite parent to resolve
   against and collapses to content height -- which in turn breaks every `height:100%`
   and `calc(100% - 56px)` below it (.workspace, .main-area, .section). That collapse
   is what left the intro off-centre, scrolled the frame to the bottom, and left the
   grey gap under the workflows/assistant panels. */
html,
body {
  height: 100%;
  overflow: hidden;
}

.app {
  width: 100%;
  height: 100vh;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
}
