/* ================================================
   SALESBOT PRO — Component Styles
   ================================================ */

/* ══════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════ */
#page-landing {
  position: relative;
  overflow: hidden;
}

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  position: relative;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  animation: fadeInDown 0.7s var(--ease-out);
}

.hero-logo-icon {
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 32px var(--accent-glow);
  animation: glowPulse 3s ease infinite;
}

.hero-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-logo-text span { color: var(--accent-light); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--sp-6);
  animation: fadeIn 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-10);
  line-height: 1.7;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--sp-10);
  margin-top: var(--sp-16);
  animation: fadeInUp 0.7s var(--ease-out) 0.5s both;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.demo-chat {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  animation: float 5s ease-in-out infinite, fadeInRight 0.8s var(--ease-out) 0.4s both;
}

@media (max-width: 1100px) { .demo-chat { display: none; } }

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-messages { display: flex; flex-direction: column; gap: var(--sp-3); }

.demo-msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 88%;
}

.demo-msg.bot {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  align-self: flex-start;
  border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
}

.demo-msg.user {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-end;
  border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
}

/* ══════════════════════════════════════
   LOGIN
══════════════════════════════════════ */
#page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  animation: scaleIn var(--t-slow) var(--ease-out);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.login-logo {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.login-logo-icon {
  width: 68px; height: 68px;
  background: var(--gradient-primary);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--sp-4);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.login-tabs {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--border-subtle);
}

.login-tab {
  flex: 1;
  padding: var(--sp-3);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all var(--t-base) var(--ease-out);
}

.login-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.login-form { display: flex; flex-direction: column; gap: var(--sp-4); }

.login-form-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--sp-2);
  font-weight: 400;
}

.login-forgot {
  text-align: right;
  font-size: 0.8rem;
}

/* ══════════════════════════════════════
   APP LAYOUT (Sidebar + Content)
══════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-base);
  transition: transform var(--t-slow) var(--ease-out);
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: opacity var(--t-fast);
}

.sidebar-logo:hover {
  opacity: 0.8;
}

.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.sidebar-logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.sidebar-logo-text span { color: var(--accent-light); }

.sidebar-nav {
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  font-weight: 700;
  margin-top: var(--sp-3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent-light);
  border-color: rgba(108, 99, 255, 0.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
}

.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.72rem; color: var(--text-muted); }

/* Main Content Area */
.app-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.app-header-title { font-size: 1.1rem; font-weight: 700; }
.app-header-sub   { font-size: 0.8rem; color: var(--text-muted); }

.app-main {
  flex: 1;
  padding: var(--sp-8);
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .app-content {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .app-header {
    padding: var(--sp-4);
  }
  .app-main {
    padding: var(--sp-4);
  }
}

/* ══════════════════════════════════════
   MANAGER DASHBOARD SECTIONS
══════════════════════════════════════ */

/* Config Panel */
.config-panel {
  display: none;
}
.config-panel.active { display: block; }

.config-section {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.config-section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.config-section-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.config-section-icon.purple { background: rgba(108,99,255,0.15); }
.config-section-icon.teal   { background: rgba(0,212,170,0.15); }
.config-section-icon.orange { background: rgba(255,165,2,0.15); }
.config-section-icon.red    { background: rgba(255,71,87,0.15); }
.config-section-icon.green  { background: rgba(46,213,115,0.15); }

.config-section-title { font-size: 1rem; font-weight: 700; }
.config-section-desc  { font-size: 0.8rem; color: var(--text-muted); }

.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.config-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.config-full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .config-grid, .config-grid-3 { grid-template-columns: 1fr; }
}

/* Behavior sliders section */
.behavior-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

@media (max-width: 900px) { .behavior-grid { grid-template-columns: 1fr; } }

.behavior-item { display: flex; flex-direction: column; gap: var(--sp-2); }

/* Difficulty selector */
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 700px) { .difficulty-grid { grid-template-columns: repeat(2, 1fr); } }

.diff-card {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  text-align: center;
  background: var(--bg-surface);
}

.diff-card:hover { border-color: var(--border); background: var(--bg-elevated); }

.diff-card.selected {
  border-color: var(--accent);
  background: rgba(108,99,255,0.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.diff-card.easy.selected     { border-color: var(--success); background: rgba(46,213,115,0.08); box-shadow: 0 0 20px var(--success-glow); }
.diff-card.medium.selected   { border-color: var(--teal); background: rgba(0,212,170,0.08); box-shadow: 0 0 20px var(--teal-glow); }
.diff-card.hard.selected     { border-color: var(--warning); background: rgba(255,165,2,0.08); box-shadow: 0 0 20px var(--warning-glow); }
.diff-card.expert.selected   { border-color: var(--danger); background: rgba(255,71,87,0.08); box-shadow: 0 0 20px var(--danger-glow); }

.diff-icon  { font-size: 1.8rem; margin-bottom: var(--sp-2); }
.diff-name  { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.diff-desc  { font-size: 0.72rem; color: var(--text-muted); margin-top: var(--sp-1); }

/* Tags input */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  min-height: 48px;
  transition: border-color var(--t-fast);
  cursor: text;
}

.tags-container:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

.tag-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 0.9rem;
  transition: opacity var(--t-fast);
}

.tag-remove:hover { opacity: 1; }

.tags-input {
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  min-width: 120px;
  flex: 1;
}

/* Seller table */
.seller-table {
  width: 100%;
  border-collapse: collapse;
}

.seller-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.seller-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.seller-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Scenario cards */
.scenario-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}

.scenario-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.scenario-card.active-scenario {
  border-color: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow);
}

.scenario-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.scenario-industry { font-size: 0.72rem; color: var(--text-muted); }
.scenario-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.scenario-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: var(--sp-4); }
.scenario-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ══════════════════════════════════════
   CHAT INTERFACE (Seller View)
══════════════════════════════════════ */
.chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.chat-header-customer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
}

.customer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.customer-name   { font-weight: 700; font-size: 0.95rem; }
.customer-role   { font-size: 0.75rem; color: var(--text-muted); }
.customer-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
}

/* Conviction meter */
.conviction-container {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-elevated);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

.conviction-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

.conviction-bar {
  width: 140px;
  height: 8px;
  background: var(--bg-overlay);
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
}

.conviction-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  border-radius: var(--r-full);
  transition: width 0.8s var(--ease-out), background 0.5s;
}

.conviction-value { font-size: 0.85rem; font-weight: 700; min-width: 36px; text-align: right; }

/* Chat timer */
.chat-timer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid var(--border-subtle);
}

.timer-icon { font-size: 0.9rem; }

/* Chat messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.chat-day-label {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: var(--sp-4) 0;
}

.chat-message {
  display: flex;
  gap: var(--sp-3);
  max-width: 75%;
  animation: messageSlideIn 0.3s var(--ease-out) forwards;
}

.chat-message.bot   { align-self: flex-start; }
.chat-message.user  { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.msg-avatar.bot-av  { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.msg-avatar.user-av { background: var(--gradient-primary); }

.msg-bubble {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.chat-message.bot .msg-bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
}

.chat-message.user .msg-bubble {
  background: linear-gradient(135deg, #e0442e, #ff5941);
  color: white;
  border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
  display: block;
}

.chat-message.bot  .msg-time { text-align: left; }
.chat-message.user .msg-time { text-align: right; }

/* Trick indicator */
.trick-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--warning);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-2);
  background: rgba(255,165,2,0.1);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,165,2,0.3);
}

/* Typing indicator message */
.typing-message {
  display: flex;
  gap: var(--sp-3);
  align-self: flex-start;
}

.typing-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
  padding: var(--sp-3) var(--sp-4);
}

/* Chat input area */
.chat-input-area {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.chat-hints { display: none !important; }

.hint-chip { display: none !important; }

.chat-input-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--sp-3) var(--sp-4);
  resize: none;
  max-height: 140px;
  min-height: 44px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  line-height: 1.5;
}

.chat-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-textarea::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--t-fast);
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px var(--accent-glow); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.chat-mic-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.chat-mic-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-light); }
.chat-mic-btn.recording {
  background: rgba(255, 71, 87, 0.2);
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.4);
  animation: pulse-recording 1.5s infinite;
}
@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Chat sidebar info */
.chat-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.chat-sidebar {
  width: 260px;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chat-sidebar-section {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

/* Mood indicator */
.mood-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.mood-emoji { font-size: 1.2rem; display: inline-block; transition: transform 0.3s ease; }
.mood-text  { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.4; }
.mood-label { font-size: 0.72rem; font-weight: 700; color: var(--text-primary); }

/* Criteria mini progress */
.criteria-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--sp-2);
}

.criteria-header { display: flex; justify-content: space-between; }
.criteria-name   { font-size: 0.7rem; color: var(--text-secondary); }
.criteria-score  { font-size: 0.7rem; font-weight: 700; color: var(--accent-light); display: inline-block; transition: color 0.3s ease, transform 0.15s ease; }

.criteria-bar { height: 3px; background: var(--bg-overlay); border-radius: var(--r-full); overflow: hidden; }
.criteria-fill { height: 100%; border-radius: var(--r-full); background: var(--criteria-color, var(--gradient-primary)); transition: width 0.6s var(--ease-out), background 0.4s ease; }

/* ══════════════════════════════════════
   SCORING / RESULTS SCREEN
══════════════════════════════════════ */
.results-page {
  min-height: 100vh;
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-base);
}

.results-header {
  text-align: center;
  margin-bottom: var(--sp-10);
  animation: fadeInDown 0.6s var(--ease-out);
}

.score-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--sp-6);
}

.score-ring-svg {
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--bg-overlay);
  stroke-width: 12;
}

.score-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: scoreCount 0.8s var(--ease-out) 0.5s both;
}

.score-big-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.score-label-text { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* Result badge */
.result-badge-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-xl);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: var(--sp-4);
}

.result-badge-large.bronze  { background: rgba(205,127,50,0.15); color: #cd7f32; border: 1px solid rgba(205,127,50,0.3); }
.result-badge-large.silver  { background: rgba(192,192,192,0.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.3); }
.result-badge-large.gold    { background: rgba(255,215,0,0.12); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.result-badge-large.diamond { background: rgba(185,242,255,0.12); color: #b9f2ff; border: 1px solid rgba(185,242,255,0.3); }
.result-badge-large.failed  { background: rgba(255,71,87,0.12); color: var(--danger); border: 1px solid rgba(255,71,87,0.3); }

/* Breakdown card */
.breakdown-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.breakdown-label { flex: 1; font-size: 0.88rem; font-weight: 600; }
.breakdown-desc  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.breakdown-score-bar { width: 120px; }

.breakdown-score-num {
  font-size: 1rem;
  font-weight: 800;
  min-width: 42px;
  text-align: right;
}

/* Feedback section */
.feedback-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}

.feedback-icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.feedback-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Highlight conversation */
.highlight-msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border-left: 3px solid;
  margin-bottom: var(--sp-3);
  font-size: 0.85rem;
  line-height: 1.6;
}

.highlight-msg.positive { border-color: var(--success); background: rgba(46,213,115,0.06); }
.highlight-msg.negative { border-color: var(--danger);  background: rgba(255,71,87,0.06); }
.highlight-msg.neutral  { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }

/* ══════════════════════════════════════
   ANALYTICS / REPORTS
══════════════════════════════════════ */
.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 var(--r-lg) 0 100%;
  opacity: 0.08;
}

.stat-card.purple-accent::before { background: var(--accent); }
.stat-card.teal-accent::before   { background: var(--teal); }
.stat-card.orange-accent::before { background: var(--warning); }
.stat-card.green-accent::before  { background: var(--success); }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--sp-1);
}

.stat-card-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--sp-3);
}

.trend-up   { color: var(--success); }
.trend-down { color: var(--danger); }

/* Chart placeholder */
.chart-container {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.chart-title { font-size: 0.9rem; font-weight: 700; margin-bottom: var(--sp-6); }

/* Mini bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  height: 100px;
}

.mini-bar {
  width: 100%;
  max-width: 40px;
  background: rgba(108,99,255,0.3);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  min-height: 6px;
  transition: height 0.8s var(--ease-out);
  position: relative;
}

.mini-bar:hover { background: rgba(108,99,255,0.6); }

/* Session history */
.session-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  transition: background var(--t-fast);
  cursor: pointer;
}

.session-row:hover { background: var(--bg-elevated); }
.session-row + .session-row { border-top: 1px solid var(--border-subtle); }

.session-score {
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
  font-family: var(--font-heading);
}

.session-info { flex: 1; }
.session-scenario { font-size: 0.88rem; font-weight: 600; }
.session-meta { font-size: 0.75rem; color: var(--text-muted); }
.session-diff { flex-shrink: 0; }

/* ══════════════════════════════════════
   API CONFIG MODAL
══════════════════════════════════════ */
.api-config-info {
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   ONBOARDING / EMPTY STATES
══════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}

.empty-state-icon { font-size: 3.5rem; margin-bottom: var(--sp-4); opacity: 0.5; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state-desc  { font-size: 0.88rem; color: var(--text-muted); max-width: 320px; line-height: 1.6; margin-bottom: var(--sp-6); }

.sidebar-backdrop, .chat-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.sidebar-backdrop.active, .chat-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-only { display: none; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 100; position: fixed; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: flex !important; }
  .desktop-only { display: none !important; }
  .app-content { margin-left: 0; }
  .app-main { padding: var(--sp-4); }
  .app-header { padding: var(--sp-4); }
  
  .chat-sidebar { 
    position: fixed;
    top: 0; bottom: 0; right: 0;
    z-index: 100;
    width: 280px;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease-out);
    border-left: none;
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  }
  .chat-sidebar.open { transform: translateX(0); }
  .conviction-container { display: none; }
  .mobile-only { display: flex !important; }
  
  .chat-messages { padding: var(--sp-3) var(--sp-4); }
  .chat-input-area { padding: var(--sp-3); }
  .chat-message { max-width: 92%; }
}

/* ══════════════════════════════════════
   CLIENTS SECTION
══════════════════════════════════════ */

/* Grid de cards de clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
}

/* Card de cliente */
.client-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--t-base);
}

.client-card:hover {
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 8px 32px rgba(108,99,255,0.12), var(--shadow-lg);
  transform: translateY(-2px);
}

.client-card:hover::before { opacity: 1; }

.client-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.client-avatar {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,212,170,0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.client-info { flex: 1; overflow: hidden; }
.client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges de características */
.client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

/* Mini preview de sliders */
.client-sliders-preview {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.client-slider-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.client-slider-mini span:first-child {
  width: 42px;
  flex-shrink: 0;
  font-weight: 600;
}

.client-slider-mini span:last-child {
  width: 24px;
  text-align: right;
  flex-shrink: 0;
  color: var(--accent-light);
  font-weight: 700;
}

.mini-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-overlay);
  border-radius: 2px;
  overflow: hidden;
}

/* Atribuição de vendedores */
.client-sellers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-height: 32px;
}

.client-sellers-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: var(--sp-1);
}

.client-seller-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

/* ══════════════════════════════════════
   MODAL COM ABAS (Client Modal)
══════════════════════════════════════ */

.modal-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.modal-tab {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
}

.modal-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.modal-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.modal-tab-content {
  animation: fadeInUp 0.25s var(--ease-out);
}

/* ══════════════════════════════════════
   COMMUNICATION PARAMS (Comm Tab)
══════════════════════════════════════ */

.comm-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 700px) { .comm-params-grid { grid-template-columns: 1fr; } }

.comm-param-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: border-color var(--t-fast);
}

.comm-param-card:hover { border-color: var(--border); }

.comm-param-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.comm-param-icon {
  font-size: 1.4rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,99,255,0.1);
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.comm-param-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.comm-param-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Toggles grid */
.comm-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

@media (max-width: 600px) { .comm-toggles-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   PRODUCTS SECTION (Manager + Sidebar)
══════════════════════════════════════ */

/* Manager: product cards grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  opacity: 0;
  transition: opacity var(--t-base);
}

.product-card:hover {
  border-color: rgba(0,212,170,0.3);
  box-shadow: 0 8px 32px rgba(0,212,170,0.1), var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card:hover::before { opacity: 1; }

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.product-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(108,99,255,0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.product-card-category {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: var(--sp-3);
}

.product-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Manager: assignment chips on product card */
.product-assignment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--sp-3);
}

.product-assign-chip {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 600;
}

.product-assign-chip.client-chip {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--accent-light);
}

.product-assign-chip.seller-chip {
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  color: var(--teal);
}

/* Chat sidebar: product items */
.sidebar-product-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  transition: border-color var(--t-fast);
}

.sidebar-product-item:last-child { margin-bottom: 0; }

.sidebar-product-item:hover { border-color: rgba(0,212,170,0.25); }

.sidebar-product-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sidebar-product-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 2px;
}

.sidebar-product-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}

.sidebar-product-category {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-product-no-match {
  font-size: 0.78rem;
  color: var(--warning);
  background: rgba(255,165,0,0.08);
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   ADVANCED FEATURES v2
══════════════════════════════════════ */

/* ── Hostile Mode Banner ── */
.hostile-banner {
  background: linear-gradient(90deg, #2d0a0a, #4a0e0e);
  border-bottom: 2px solid var(--danger);
  color: #ff8080;
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: hostilePulse 2s ease infinite;
}
@keyframes hostilePulse {
  0%,100% { background: linear-gradient(90deg, #2d0a0a, #4a0e0e); }
  50% { background: linear-gradient(90deg, #4a0e0e, #2d0a0a); }
}

/* ── Chat Layout ── */
.chat-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  flex-direction: row;
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.chat-sidebar {
  width: 280px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  flex-shrink: 0;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.chat-sidebar-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.chat-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* ── Chat Input Area ── */
.chat-input-area {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: var(--sp-4) var(--sp-6);
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-end;
}
.chat-textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: var(--sp-3) var(--sp-4);
  resize: none;
  font-family: var(--font-body);
  line-height: 1.5;
  transition: border-color var(--t-fast);
  min-height: 44px;
  max-height: 140px;
}
.chat-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.chat-send-btn {
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--r-lg);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px var(--accent-glow); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Hints ── */
.chat-hints {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.hint-chip {
  padding: var(--sp-1) var(--sp-3);
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  color: var(--accent-light);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.hint-chip:hover { background: rgba(108,99,255,0.18); transform: translateY(-1px); }

/* ── Mood Indicator ── */
.mood-indicator { display: flex; align-items: center; gap: var(--sp-3); }
.mood-emoji { font-size: 1.8rem; display: inline-block; transition: transform 0.3s ease; }
.mood-label { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.mood-text  { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }

/* ── Criteria live bars ── */
.criteria-item { margin-bottom: var(--sp-2); }
.criteria-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.criteria-name { font-size: 0.72rem; color: var(--text-secondary); }
.criteria-score { font-size: 0.7rem; font-weight: 700; color: var(--accent-light); display: inline-block; transition: color 0.3s ease, transform 0.15s ease; }
.criteria-bar { height: 4px; background: var(--bg-overlay); border-radius: 2px; overflow: hidden; }
.criteria-fill { height: 100%; background: var(--criteria-color, var(--gradient-primary)); border-radius: 2px; transition: width 0.6s var(--ease-out), background 0.4s ease; }

/* ── Coach Tip Overlay ── */
.coach-tip-overlay {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  animation: slideUpFade 0.3s var(--ease-out);
  max-width: 90%;
}
.coach-tip-inner {
  background: rgba(10,10,20,0.95);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px var(--accent-glow);
  backdrop-filter: blur(20px);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.coach-tip-icon { font-size: 1.2rem; flex-shrink: 0; }
.coach-tip-text { flex: 1; }
.coach-tip-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; padding: 0 0 0 var(--sp-2); transition: color var(--t-fast); }
.coach-tip-dismiss:hover { color: var(--text-primary); }

/* ── Constraint Badges ── */
.constraint-badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; padding: var(--sp-2) var(--sp-4); background: rgba(255,165,2,0.06); border-bottom: 1px solid rgba(255,165,2,0.15); }
.constraint-tag { font-size: 0.7rem; font-weight: 700; padding: 2px 10px; background: rgba(255,165,2,0.1); border: 1px solid rgba(255,165,2,0.25); border-radius: var(--r-full); color: var(--warning); }

/* ── Segment Indicator ── */
.segment-indicator { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); font-size: 0.8rem; font-weight: 700; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); color: var(--accent-light); }

/* ── Hidden Agenda ── */
.agenda-mystery { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); background: rgba(108,99,255,0.06); border: 1px dashed rgba(108,99,255,0.3); border-radius: var(--r-md); }
.agenda-mystery-icon { font-size: 1.5rem; }
.agenda-mystery-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }
.agenda-revealed { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); background: rgba(46,213,115,0.08); border: 1px solid rgba(46,213,115,0.25); border-radius: var(--r-md); animation: agendaReveal 0.5s var(--ease-out); }
@keyframes agendaReveal { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.agenda-revealed-icon { font-size: 1.5rem; }

/* ── Typing indicator ── */
.typing-message { display: flex; gap: var(--sp-3); align-self: flex-start; max-width: 75%; animation: messageSlideIn 0.3s var(--ease-out); }
.typing-bubble { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; padding: var(--sp-3) var(--sp-4); }
.typing-indicator { display: flex; gap: 6px; align-items: center; height: 18px; }
.typing-dot { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typingBounce 1.4s ease infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ── Trick shake ── */
.trick-shake { animation: trickShake 0.5s ease; }
@keyframes trickShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ── Raio-X Button pulse ── */
.xray-pulse { animation: xrayBlink 1.5s ease infinite; }
@keyframes xrayBlink { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 16px rgba(0,212,170,0.6); } }

/* ── Raio-X Modal ── */
.xray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (max-width: 560px) { .xray-grid { grid-template-columns: 1fr; } }
.xray-card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--sp-4); }
.xray-card-title { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.xray-stat { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); font-size: 0.82rem; }
.xray-stat-label { color: var(--text-muted); }
.xray-stat-val { font-weight: 700; }
.xray-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: var(--sp-2); line-height: 1.4; }
.xray-vice { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--warning); padding: var(--sp-1) 0; border-bottom: 1px dashed rgba(255,165,2,0.15); }
.xray-vice span { font-weight: 700; }

/* ── Trigger Meter ── */
.trigger-meter-grid { display: flex; flex-direction: column; gap: var(--sp-2); }
.trigger-meter-item { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.78rem; }
.trigger-meter-label { width: 120px; color: var(--text-secondary); flex-shrink: 0; }
.trigger-meter-bar { flex: 1; height: 6px; background: var(--bg-overlay); border-radius: 3px; overflow: hidden; }
.trigger-meter-val { width: 30px; text-align: right; font-weight: 700; font-size: 0.72rem; }

/* ── Archetype Grid (Manager) ── */
.archetype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--sp-2); }
.archetype-card { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-3) var(--sp-2); background: var(--bg-elevated); border: 2px solid var(--border-subtle); border-radius: var(--r-lg); cursor: pointer; transition: all var(--t-fast); text-align: center; }
.archetype-card:hover { border-color: var(--accent); background: rgba(108,99,255,0.08); }
.archetype-card.selected { border-color: var(--accent); background: rgba(108,99,255,0.15); box-shadow: 0 0 16px var(--accent-glow); }
.archetype-none.selected { border-color: var(--border); background: var(--bg-surface); box-shadow: none; }
.archetype-emoji { font-size: 1.6rem; }
.archetype-name { font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); }

/* ── Badge Cards ── */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-3); }
.badges-grid-compact { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.badge-card { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-3); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: var(--bg-elevated); text-align: center; transition: transform var(--t-fast); }
.badge-card:hover { transform: translateY(-2px); }
.badge-rarity-bronze { border-color: #cd7f32; background: rgba(205,127,50,0.07); }
.badge-rarity-silver { border-color: #a8a8c0; background: rgba(168,168,192,0.07); }
.badge-rarity-gold   { border-color: #ffd700; background: rgba(255,215,0,0.07); box-shadow: 0 0 16px rgba(255,215,0,0.15); }
.badge-rarity-diamond{ border-color: #b9f2ff; background: rgba(185,242,255,0.07); box-shadow: 0 0 20px rgba(185,242,255,0.2); }
.badge-emoji { font-size: 2rem; }
.badge-name  { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.badge-desc  { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; }
.badge-rarity-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.badge-empty { font-size: 0.85rem; color: var(--text-muted); padding: var(--sp-6); text-align: center; }

/* ── New Badges Popup ── */
.new-badges-popup { background: var(--gradient-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-5); margin-bottom: var(--sp-5); box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 32px var(--accent-glow); }
.new-badges-title { font-size: 1.1rem; font-weight: 800; margin-bottom: var(--sp-4); text-align: center; }
.new-badge-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); margin-bottom: var(--sp-2); }
.new-badge-item .badge-emoji { font-size: 1.8rem; }

/* ── Winning Phrases Library ── */
.phrase-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: var(--bg-elevated); transition: border-color var(--t-fast); }
.phrase-card.phrase-pending { border-color: rgba(255,165,2,0.3); background: rgba(255,165,2,0.04); }
.phrase-card.phrase-approved { border-color: rgba(46,213,115,0.25); }
.phrase-text { font-size: 0.9rem; color: var(--text-primary); font-style: italic; line-height: 1.5; }
.phrase-meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: 0.72rem; color: var(--text-muted); }
.phrase-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-1); }

/* ── Slide up animation ── */
@keyframes slideUpFade { from { transform: translateX(-50%) translateY(12px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ── Bot interruption ── */
.chat-message.bot-interruption .msg-bubble { background: rgba(255,165,2,0.08); border-color: rgba(255,165,2,0.25); font-style: italic; }

/* ── Grid helpers ── */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── comm-toggles-grid ── */
.comm-toggles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 640px) { .comm-toggles-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   SESSÕES AGENDADAS
══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--sp-1);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.metric-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
  transition: all var(--t-base) var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.metric-content {
  display: flex;
  flex-direction: column;
}

.metric-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sessao-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.sessao-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(108,99,255,0.1); }
.sessao-card.sessao-done { opacity: 0.55; }
.sessao-card.sessao-overdue { border-color: rgba(255,71,87,0.35); background: rgba(255,71,87,0.04); }

.sessao-card-left { display: flex; align-items: flex-start; gap: var(--sp-3); flex: 1; min-width: 0; }

.sessao-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: white;
  flex-shrink: 0;
}

.sessao-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sessao-seller-name { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }

.sessao-client-row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.sessao-client-name { font-size: 0.82rem; font-weight: 600; color: var(--accent-light); }
.sessao-client-role { font-size: 0.72rem; color: var(--text-muted); }

.sessao-meta { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: 3px; }
.sessao-tag {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  white-space: nowrap;
}
.sessao-tag-danger { background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.2); color: var(--danger); }

.sessao-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ── Seller Notification Banner ── */
.seller-notif-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(90deg, rgba(108,99,255,0.12), rgba(0,212,170,0.08));
  border-bottom: 1px solid rgba(108,99,255,0.25);
  color: var(--text-primary);
  animation: slideDownIn 0.4s var(--ease-out);
  position: relative;
  z-index: 10;
}
@keyframes slideDownIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
     . c h a t - l a y o u t   { 
         f l e x - d i r e c t i o n :   c o l u m n ; 
     } 
     . c h a t - s i d e b a r   { 
         w i d t h :   1 0 0 % ; 
         m a x - h e i g h t :   4 0 v h ; 
         b o r d e r - l e f t :   n o n e ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - b o r d e r - s u b t l e ) ; 
     } 
     . c h a t - m a i n   { 
         h e i g h t :   6 0 v h ; 
     } 
     
     . s e l l e r - d a s h b o a r d   { 
         p a d d i n g :   1 0 p x ; 
     } 
     . s e l l e r - h e r o   { 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         t e x t - a l i g n :   c e n t e r ; 
     } 
     . s e l l e r - h e r o - l e f t ,   . s e l l e r - h e r o - r i g h t   { 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         a l i g n - i t e m s :   c e n t e r ; 
     } 
     . s e l l e r - s t a t s - s t r i p   { 
         f l e x - d i r e c t i o n :   c o l u m n ; 
     } 
     . s t a t - p i l l   { 
         w i d t h :   1 0 0 % ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
     } 
     . s e l l e r - b o d y   { 
         f l e x - d i r e c t i o n :   c o l u m n ; 
     } 
     . s t a r t - c a r d ,   . r i g h t - p a n e l   { 
         w i d t h :   1 0 0 % ; 
         p a d d i n g :   1 0 p x ; 
     } 
 } 
 
 
 
 . m o d a l - t a b s   { 
     d i s p l a y :   f l e x ; 
     b a c k g r o u n d :   v a r ( - - b g - s u r f a c e ) ; 
     b o r d e r - r a d i u s :   v a r ( - - r - m d ) ; 
     p a d d i n g :   4 p x ; 
     m a r g i n - b o t t o m :   v a r ( - - s p - 6 ) ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - s u b t l e ) ; 
     f l e x - w r a p :   w r a p ; 
 } 
 
 . m o d a l - t a b   { 
     f l e x :   1   1   a u t o ; 
     p a d d i n g :   v a r ( - - s p - 3 ) ; 
     t e x t - a l i g n :   c e n t e r ; 
     f o n t - s i z e :   0 . 8 5 r e m ; 
     f o n t - w e i g h t :   6 0 0 ; 
     c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
     c u r s o r :   p o i n t e r ; 
     b o r d e r - r a d i u s :   v a r ( - - r - s m ) ; 
     t r a n s i t i o n :   a l l   v a r ( - - t - b a s e )   v a r ( - - e a s e - o u t ) ; 
     w h i t e - s p a c e :   n o r m a l ; 
     w o r d - b r e a k :   b r e a k - w o r d ; 
 } 
 
 . m o d a l - t a b . a c t i v e   { 
     b a c k g r o u n d :   v a r ( - - g r a d i e n t - p r i m a r y ) ; 
     c o l o r :   w h i t e ; 
     b o x - s h a d o w :   0   2 p x   1 2 p x   v a r ( - - a c c e n t - g l o w ) ; 
 } 
 
 
 
/* Mobile Responsiveness Added by Agent */
@media (max-width: 900px) {
  .chat-layout { flex-direction: column !important; }
  .chat-sidebar { display: none; } /* Use sidebar toggle */
  .chat-sidebar.open { display: flex; position: absolute; top: 0; right: 0; z-index: 1000; width: 100%; max-width: 300px; height: 100%; }
  .chat-header { flex-wrap: wrap; }
  .chat-timer, .conviction-container { font-size: 0.8rem; }
  .chat-input-row { flex-wrap: wrap; }
  .chat-textarea { min-height: 50px; }
}

/* ══════════════════════════════════════
   CHECKOUT (REQ-012) — cadastro de conta e recarga de crédito.
   Estilo de site de compra: stepper de progresso, cards de método de
   pagamento com ícone/descrição, resumo do pedido antes de pagar.
   ══════════════════════════════════════ */
.signup-step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0.45; transition: opacity .2s;
}
.signup-step-dot.active,
.signup-step-dot.done { opacity: 1; }
.signup-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-muted);
}
.signup-step-dot.active .signup-step-num {
  background: var(--gradient-primary); color: #fff; border-color: transparent;
  box-shadow: 0 0 0 4px var(--accent-glow, rgba(108,99,255,0.18));
}
.signup-step-dot.done .signup-step-num {
  background: rgba(46,213,115,0.18); color: var(--success); border-color: transparent;
}
.signup-step-label { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.02em; }
.signup-step-dot.active .signup-step-label { color: var(--accent-light); }
.signup-step-line { width: 28px; height: 1px; background: rgba(255,255,255,0.14); margin-bottom: 14px; }

.signup-plan-card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 2px solid rgba(255,255,255,0.1); border-radius: var(--r-md);
  padding: var(--sp-4); cursor: pointer; transition: border-color .15s, background .15s;
}
.signup-plan-card:hover { border-color: rgba(108,99,255,0.35); }
.signup-plan-card.selected { border-color: var(--accent-light); background: rgba(108,99,255,0.06); }
.signup-plan-radio {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid rgba(255,255,255,0.25); transition: border-color .15s, background .15s;
}
.signup-plan-card.selected .signup-plan-radio {
  border-color: var(--accent-light);
  background: radial-gradient(circle, var(--accent-light) 0 40%, transparent 44%);
}

.checkout-summary {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.checkout-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.95rem; font-weight: 700;
}
.checkout-summary-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

.checkout-method-card {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid rgba(255,255,255,0.1); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.checkout-method-card:hover { border-color: rgba(108,99,255,0.35); }
.checkout-method-card.selected { border-color: var(--accent-light); background: rgba(108,99,255,0.06); }
.checkout-method-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: rgba(255,255,255,0.06);
}
.checkout-method-name { font-weight: 700; font-size: 0.88rem; }
.checkout-method-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.checkout-method-radio {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.checkout-method-card.selected .checkout-method-radio {
  border-color: var(--accent-light);
  background: radial-gradient(circle, var(--accent-light) 0 40%, transparent 44%);
}

.checkout-card-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 10px; padding: var(--sp-3);
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.12); border-radius: var(--r-md);
}
.checkout-card-fields .form-input { font-family: monospace; letter-spacing: 0.03em; }
.checkout-card-fields .span-2 { grid-column: 1 / -1; }
.checkout-test-note {
  font-size: 0.68rem; color: var(--text-muted); grid-column: 1 / -1;
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

.checkout-amount-hero {
  text-align: center; padding: var(--sp-4) 0;
}
.checkout-amount-hero .amount { font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.checkout-amount-hero .cycle { font-size: 0.75rem; color: var(--text-muted); }
.checkout-secure-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.68rem; color: var(--text-muted); margin-top: var(--sp-3);
}
