/* ═════════════════════════════════════════════════════════════════
   NOVAY AI - ENTERPRISE AGENT WORKSPACE & STUDIO STYLES
   Royal Purple & Dark Luxury Glassmorphism
   ═════════════════════════════════════════════════════════════════ */

:root {
  --novay-bg-main: #0a0414;
  --novay-bg-secondary: #120724;
  --novay-bg-card: rgba(26, 12, 48, 0.65);
  --novay-card-border: rgba(168, 85, 247, 0.22);
  --novay-purple-glow: rgba(168, 85, 247, 0.4);
  --novay-purple-primary: #9333ea;
  --novay-purple-light: #df9aff;
  --novay-purple-accent: #c084fc;
  --novay-text-main: #f5f0fc;
  --novay-text-muted: rgba(255, 255, 255, 0.68);
  --novay-text-subtle: rgba(255, 255, 255, 0.45);
  --novay-success: #10b981;
  --novay-success-glow: rgba(16, 185, 129, 0.35);
  --novay-danger: #ef4444;
  --novay-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page container */
.workspace-page-wrapper {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #2f0e4b 0%, #150624 45%, #080312 100%);
  color: var(--novay-text-main);
  padding: 0 0 80px;
  position: relative;
  overflow-x: hidden;
}

.workspace-ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 75%, rgba(126, 34, 206, 0.18) 0%, transparent 60%);
  z-index: 0;
}

.workspace-content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── Top Bar / Header ────────────────────────────────────────────── */
.workspace-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.nav-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workspace-logo-link img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.workspace-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--novay-purple-light);
  letter-spacing: 0.3px;
}

.nav-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-portal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfd2ec;
  text-decoration: none;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--novay-transition);
}

.btn-portal-back:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(192, 132, 252, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(45, 18, 77, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  font-size: 13.5px;
}

.user-profile-chip i.fa-circle-user {
  color: var(--novay-purple-light);
  font-size: 16px;
}

.user-profile-chip .user-name {
  color: #ffffff;
  font-weight: 600;
}

.user-profile-chip .sub-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-weight: 700;
}

.btn-logout-icon {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: var(--novay-transition);
}

.btn-logout-icon:hover {
  color: #ff6b8b;
  transform: scale(1.1);
}

/* ── Stepper Navigation Bar ──────────────────────────────────────── */
.stepper-progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(19, 8, 36, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 16px 24px;
  margin-bottom: 35px;
  backdrop-filter: blur(14px);
  gap: 12px;
  flex-wrap: wrap;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 12px;
  transition: var(--novay-transition);
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 200px;
}

.stepper-step:hover {
  background: rgba(255, 255, 255, 0.04);
}

.step-num-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--novay-transition);
  flex-shrink: 0;
}

.step-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.step-desc {
  font-size: 11.5px;
  color: var(--novay-text-muted);
}

.stepper-step.is-active .step-num-bubble {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: #df9aff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.stepper-step.is-active {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.stepper-step.is-completed .step-num-bubble {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.stepper-step.is-completed .step-desc {
  color: #34d399;
}

.stepper-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* ── Section Cards (Glassmorphism) ───────────────────────────────── */
.workspace-card {
  background: var(--novay-bg-card);
  border: 1px solid var(--novay-card-border);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 35px;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.workspace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
}

.section-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--novay-purple-light);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-main-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-lead-text {
  font-size: 14.5px;
  color: var(--novay-text-muted);
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 30px;
}

/* ── STEP 1: AUTHENTICATION SECTION ──────────────────────────────── */
.auth-flow-card {
  max-width: 580px;
  margin: 0 auto 40px;
  padding: 40px 36px;
}

.auth-tabs-header {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--novay-text-muted);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--novay-transition);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
}

.auth-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper i.input-icon {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  pointer-events: none;
}

[dir="rtl"] .auth-input-wrapper i.input-icon {
  left: auto;
  right: 16px;
}

.auth-field-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  background: rgba(14, 5, 28, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
  transition: var(--novay-transition);
}

[dir="rtl"] .auth-field-input {
  padding: 13px 44px 13px 18px;
}

.auth-field-input:focus {
  border-color: #df9aff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
  background: rgba(20, 8, 40, 0.95);
}

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #8b2ecb, #a855f7);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--novay-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
  margin-top: 10px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5);
  filter: brightness(1.1);
}

/* OTP Code screen */
.otp-container {
  text-align: center;
  padding: 10px 0;
}

.otp-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--novay-purple-light);
  margin-bottom: 18px;
}

.otp-digits-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
  direction: ltr !important;
}

.otp-input-digit {
  width: 50px;
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  background: rgba(15, 6, 30, 0.9);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  color: #ffffff;
  outline: none;
  transition: var(--novay-transition);
}

.otp-input-digit:focus {
  border-color: #df9aff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  transform: scale(1.05);
}

.otp-timer-text {
  font-size: 13px;
  color: var(--novay-text-muted);
  margin-bottom: 20px;
}

.otp-resend-link {
  color: var(--novay-purple-light);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

/* ── STEP 2: VIRTUAL SUBSCRIPTIONS ───────────────────────────────── */
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 25px;
}

@media (max-width: 992px) {
  .subscriptions-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 25px auto 0;
  }
}

.sub-plan-card {
  background: rgba(22, 10, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--novay-transition);
  backdrop-filter: blur(12px);
}

.sub-plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.sub-plan-card.featured {
  background: rgba(36, 14, 66, 0.85);
  border: 2px solid #a855f7;
  box-shadow: 0 15px 45px rgba(147, 51, 234, 0.25);
  transform: scale(1.03);
}

.sub-plan-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #1a052e;
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.sub-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.sub-plan-tagline {
  font-size: 13px;
  color: var(--novay-text-muted);
  margin-bottom: 20px;
  min-height: 38px;
}

.sub-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--novay-purple-light);
}

.sub-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.sub-period {
  font-size: 13px;
  color: var(--novay-text-muted);
}

.sub-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.sub-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.sub-features-list li i {
  color: #34d399;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-select-plan {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--novay-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
  color: #ffffff;
}

.sub-plan-card.featured .btn-select-plan {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border: none;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

.btn-select-plan:hover {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #0d021c;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.4);
}

/* ── STEP 3: AGENT STUDIO & KNOWLEDGE BASE ───────────────────────── */
.studio-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .studio-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.agent-builder-box {
  background: rgba(18, 7, 36, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 28px;
}

.builder-subhead {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-subhead i {
  color: var(--novay-purple-light);
}

.voice-persona-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.persona-choice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--novay-transition);
}

.persona-choice-card:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

.persona-choice-card.selected {
  background: rgba(168, 85, 247, 0.18);
  border-color: #df9aff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.persona-choice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
}

.persona-choice-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.persona-choice-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.persona-choice-role {
  font-size: 11px;
  color: var(--novay-text-muted);
}

.btn-mini-voice-preview {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--novay-purple-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--novay-transition);
}

.btn-mini-voice-preview:hover {
  background: var(--novay-purple-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* Knowledge Base Table & Manager */
.kb-manager-box {
  background: rgba(18, 7, 36, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 28px;
}

.kb-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.kb-btns-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-kb-action {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--novay-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-kb-upload {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.35);
}

.btn-kb-upload:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-kb-add-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #ffffff;
}

.btn-kb-add-text:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: #df9aff;
}

.kb-docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-bottom: 20px;
}

.kb-table-header th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.kb-doc-row td {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--novay-transition);
}

.kb-doc-row td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.kb-doc-row td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

[dir="rtl"] .kb-doc-row td:first-child {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

[dir="rtl"] .kb-doc-row td:last-child {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.kb-doc-row:hover td {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
}

.doc-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #ffffff;
}

.doc-name-cell i {
  color: var(--novay-purple-light);
  font-size: 16px;
}

.category-chip-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--novay-purple-light);
}

.status-chip-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
}

.kb-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--novay-transition);
  font-size: 12px;
}

.action-icon-btn.btn-view:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.action-icon-btn.btn-edit:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
  color: #df9aff;
}

.action-icon-btn.btn-del:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #f87171;
}

.kb-storage-meter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--novay-text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ── STEP 4: LIVE VOICE TESTING CONSOLE ──────────────────────────── */
.live-voice-console-card {
  background: radial-gradient(circle at 50% 30%, rgba(45, 14, 75, 0.85) 0%, rgba(18, 6, 32, 0.95) 70%);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(147, 51, 234, 0.2);
  text-align: center;
  padding: 45px 30px;
}

.console-avatar-stage {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.console-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #7e22ce, #a855f7, #c084fc);
  position: relative;
  transition: var(--novay-transition);
}

.console-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #19082e;
}

.console-avatar-ring.is-calling {
  animation: consolePulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
}

@keyframes consolePulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 45px rgba(223, 154, 255, 0.85); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
}

.console-live-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #64748b;
  border: 3px solid #140526;
  transition: var(--novay-transition);
}

.console-live-badge.is-live {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: liveBadgeGlow 1.4s infinite;
}

@keyframes liveBadgeGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.console-agent-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.console-agent-desc {
  font-size: 14.5px;
  color: var(--novay-text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.console-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.console-status-pill.status-live {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.console-status-pill.status-connecting {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.console-status-pill.status-speaking {
  background: rgba(168, 85, 247, 0.2);
  border-color: #df9aff;
  color: #df9aff;
}

/* Big Luxury Call Toggle Button */
.btn-console-call-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  border-radius: 60px;
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  border: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(126, 34, 206, 0.4);
  transition: var(--novay-transition);
  overflow: hidden;
}

.btn-console-call-toggle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

.btn-console-call-toggle.is-active-call {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-console-call-toggle.is-active-call:hover {
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

.sound-bars-cluster {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.sound-bars-cluster .bar {
  width: 3.5px;
  height: 6px;
  background: #ffffff;
  border-radius: 3px;
  transition: height 0.2s ease;
}

.sound-bars-cluster.active .bar {
  animation: waveBarBounce 0.8s infinite ease-in-out alternate;
}

.sound-bars-cluster.active .bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bars-cluster.active .bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bars-cluster.active .bar:nth-child(3) { animation-delay: 0.15s; }
.sound-bars-cluster.active .bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes waveBarBounce {
  0% { height: 6px; }
  100% { height: 22px; }
}

.console-call-timer {
  font-family: monospace;
  font-size: 14.5px;
  color: #ffffff;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.hidden-convai-container {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

/* ── MODALS & POPUPS ─────────────────────────────────────────────── */
.workspace-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 2, 16, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.workspace-modal-dialog {
  background: rgba(22, 9, 44, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.modal-dialog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-dialog-title i {
  color: var(--novay-purple-light);
}

.btn-modal-close-icon {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 18px;
  transition: var(--novay-transition);
}

.btn-modal-close-icon:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.modal-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  margin-bottom: 20px;
  max-height: 250px;
  overflow-y: auto;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-meta-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
}

.modal-meta-item .meta-label {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.modal-meta-item .meta-val {
  color: #ffffff;
  font-weight: 600;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-cancel {
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.btn-modal-confirm-delete {
  padding: 10px 22px;
  border-radius: 10px;
  background: #dc2626;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--novay-transition);
}

.btn-modal-confirm-delete:hover {
  background: #ef4444;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Alert Notification Banner */
.workspace-alert-banner {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: slideDown 0.3s ease-out;
}

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

.workspace-alert-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.workspace-alert-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Mock Card Input */
.mock-card-visual {
  background: linear-gradient(135deg, #4c1d95, #6b21a8, #9333ea);
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.mock-card-visual::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mock-chip {
  width: 40px;
  height: 28px;
  background: #fbbf24;
  border-radius: 6px;
  margin-bottom: 20px;
}

.mock-card-num {
  font-family: monospace;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.mock-card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mock-card-bottom .val {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2px;
}

