/* ═══════════════════════════════════════════════════════════════════════
   Bots 2 Convert — Dashboard Design System
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral:      #DC5F4C;
  --coral-hover:#e8755f;
  --blue:       #5a9abd;
  --gold:       #D4A84B;
  --navy:       #15355B;
  --navy-deep:  #0F2340;
  --navy-card:  #ffffff;
  --mint:       #2a8a7a;
  --text:       #15355B;
  --text-muted: rgba(21,53,91,0.5);
  --border:     rgba(21,53,91,0.1);
  --max-w:      1200px;
}

html, body {
  margin: 0; padding: 0;
  background: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── TOS Gate ─────────────────────────────────────────────────────────── */
.tos-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(21,53,91,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity .4s, visibility .4s;
}
.tos-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.tos-box {
  width: 100%; max-width: 600px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(21,53,91,0.2);
  animation: tosSlide .35s ease-out;
}
@keyframes tosSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tos-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.tos-header h2 {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 4px;
}
.tos-header p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

.tos-content {
  padding: 20px 28px;
  max-height: 45vh; overflow-y: auto;
  font-size: 13px; color: rgba(21,53,91,0.65); line-height: 1.8;
}
.tos-content::-webkit-scrollbar { width: 4px; }
.tos-content::-webkit-scrollbar-thumb { background: rgba(21,53,91,0.12); border-radius: 4px; }

.tos-content h3 {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 16px 0 6px;
}
.tos-content h3:first-child { margin-top: 0; }
.tos-content ul {
  padding-left: 20px; margin: 6px 0;
}
.tos-content li { margin-bottom: 4px; }
.tos-content a { color: var(--blue); text-decoration: underline; }

.tos-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.tos-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.tos-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--coral);
  cursor: pointer; flex-shrink: 0;
}
.tos-checkbox label {
  font-size: 13px; color: var(--text); line-height: 1.5;
  cursor: pointer;
}
.tos-checkbox label strong { color: var(--gold); }

.tos-accept-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 800;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(220,95,76,0.35);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.tos-accept-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(220,95,76,0.45); }
.tos-accept-btn:disabled {
  opacity: 0.35; cursor: not-allowed; transform: none;
  box-shadow: 0 4px 16px rgba(220,95,76,0.15);
}

@media (max-width: 480px) {
  .tos-box { border-radius: 16px; }
  .tos-header { padding: 20px 20px 14px; }
  .tos-content { padding: 16px 20px; max-height: 40vh; }
  .tos-footer { padding: 14px 20px 20px; }
}

/* ─── Countdown Banner ─────────────────────────────────────────────────── */
.countdown-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #0F2340, #15355B);
  border-bottom: 1px solid rgba(245,193,108,0.12);
  font-size: 13px; font-weight: 500; color: rgba(244,242,236,0.9);
  text-align: center;
  position: relative; z-index: 101;
}
.countdown-banner .cb-label {
  color: rgba(244,242,236,0.5); font-size: 12px;
}
.countdown-banner .cb-event {
  font-weight: 700; color: var(--gold);
}
.countdown-banner .cb-timer {
  display: inline-flex; gap: 4px;
}
.countdown-banner .cb-unit {
  background: rgba(245,193,108,0.1);
  border: 1px solid rgba(245,193,108,0.18);
  border-radius: 5px; padding: 2px 7px;
  font-size: 13px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 30px; text-align: center;
}
.countdown-banner .cb-sep {
  color: rgba(245,193,108,0.3); font-weight: 700; font-size: 13px;
  display: flex; align-items: center;
}
.countdown-banner .cb-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2);
  border-radius: 12px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; color: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
.cb-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none; white-space: nowrap;
}
.cb-btn.signup {
  background: rgba(245,193,108,0.12); border: 1px solid rgba(245,193,108,0.25);
  color: var(--gold);
}
.cb-btn.signup:hover {
  background: rgba(245,193,108,0.2); border-color: rgba(245,193,108,0.4);
  transform: translateY(-1px); box-shadow: 0 3px 12px rgba(245,193,108,0.15);
}
.cb-btn.join {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff; border: none;
  box-shadow: 0 3px 14px rgba(74,222,128,0.3);
  animation: joinPulse 1.5s ease-in-out infinite;
}
.cb-btn.join:hover {
  transform: translateY(-1px); box-shadow: 0 5px 20px rgba(74,222,128,0.4);
}
@keyframes joinPulse {
  0%,100% { box-shadow: 0 3px 14px rgba(74,222,128,0.3); }
  50% { box-shadow: 0 3px 20px rgba(74,222,128,0.5); }
}
.cb-btn svg { width: 11px; height: 11px; }

@media (max-width: 600px) {
  .countdown-banner { flex-wrap: wrap; gap: 6px; padding: 6px 12px; font-size: 11px; }
  .countdown-banner .cb-unit { font-size: 11px; padding: 2px 5px; min-width: 26px; }
  .countdown-banner .cb-label { font-size: 10px; }
}

/* ─── Top Nav ──────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(21,53,91,0.06);
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-left a { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav-logo svg { width: 28px; height: 28px; display: block; }

.nav-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1;
}
.nav-wordmark {
  display: flex; align-items: baseline; gap: 4px; line-height: 1;
}
.nw-bots {
  font-size: 13px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(135deg, #DC5F4C, #f0956c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nw-sep { font-size: 10px; color: rgba(21,53,91,0.2); }
.nw-to {
  font-size: 8px; font-weight: 700; letter-spacing: 4px;
  color: rgba(21,53,91,0.35); text-transform: uppercase;
}
.nw-conv {
  font-size: 13px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(135deg, #15355B, #5a9abd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-divider {
  width: 100%; height: 1px; margin: 4px 0 3px;
  background: linear-gradient(90deg, transparent, rgba(245,193,108,0.35), transparent);
}
.nw-academy-wrap {
  display: flex; align-items: center; gap: 6px; align-self: center;
}
.nw-crest {
  display: flex; align-items: center;
  opacity: 0.4;
}
.nw-crest svg { width: 14px; height: 14px; }
.nw-academy {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #D4A84B 0%,
    #F5C16C 20%,
    #FFF8E7 40%,
    #F5C16C 55%,
    #D4A84B 70%,
    #F5C16C 85%,
    #D4A84B 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: goldSheen 3.5s ease-in-out infinite;
}
@keyframes goldSheen {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* Login page — larger stacked logo */
.login-brand {
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1;
}
.login-brand .nav-wordmark { gap: 5px; }
.login-brand .nw-bots { font-size: 18px; letter-spacing: 4px; }
.login-brand .nw-conv { font-size: 18px; letter-spacing: 4px; }
.login-brand .nw-sep { font-size: 13px; }
.login-brand .nw-to { font-size: 10px; letter-spacing: 5px; }
.login-brand .nav-divider { margin: 8px 0 6px; }
.login-brand .nw-academy {
  font-size: 16px; letter-spacing: 0.35em; font-weight: 600;
}
.login-brand .nw-crest { opacity: 0.45; }
.login-brand .nw-crest svg { width: 20px; height: 20px; }
.login-brand .nw-academy-wrap { gap: 10px; }

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

.nav-community {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(21,53,91,0.06), rgba(151,192,217,0.1));
  border: 1px solid rgba(21,53,91,0.1);
  color: var(--navy); font-size: 12px; font-weight: 800;
  text-decoration: none; letter-spacing: 0.4px;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.nav-community::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(151,192,217,0.2), transparent);
  animation: commSheen 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes commSheen {
  0%,65% { left: -100%; }
  100% { left: 200%; }
}
.nav-community:hover {
  background: linear-gradient(135deg, rgba(21,53,91,0.1), rgba(151,192,217,0.15));
  border-color: rgba(21,53,91,0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21,53,91,0.08);
}
.nav-community:hover::before { animation: none; }
.nav-community svg { width: 14px; height: 14px; }
.nav-community .nc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6);
  animation: pulse 2s ease-in-out infinite;
}

.nav-back {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { width: 16px; height: 16px; }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(151,192,217,0.15); border: 1px solid rgba(21,53,91,0.08);
  display: flex; align-items: center; justify-content: center;
}
.nav-avatar svg { width: 14px; height: 14px; color: var(--navy); }

.nav-logout {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px;
  transition: color .2s, border-color .2s;
}
.nav-logout:hover { color: var(--coral); border-color: rgba(220,95,76,0.3); }

/* ─── Bot SVG Icon (reusable) ──────────────────────────────────────────── */
.bot-icon { display: block; }

/* ─── Page Container ───────────────────────────────────────────────────── */
.page-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* ─── Page Hero ────────────────────────────────────────────────────────── */
.page-hero {
  margin-bottom: 40px;
}
.page-hero h1 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(130deg, #0F2340, #15355B, #5a9abd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 15px; color: var(--text-muted); max-width: 500px; line-height: 1.6;
}

/* ─── Category Section ─────────────────────────────────────────────────── */
.category-section { margin-bottom: 36px; }

.category-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
  transition: border-color .2s;
}
.category-header:hover { border-color: rgba(152,193,217,0.25); }

.category-chevron {
  width: 18px; height: 18px; color: var(--text-muted);
  transition: transform .25s; flex-shrink: 0;
}
.category-section.collapsed .category-chevron { transform: rotate(-90deg); }

.category-header h2 {
  font-size: 16px; font-weight: 700; letter-spacing: 0.3px; color: var(--text);
  flex: 1;
}
.category-count {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: rgba(151,192,217,0.12); border-radius: 10px; padding: 2px 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transition: max-height .35s ease, opacity .25s;
  overflow: hidden;
}
.category-section.collapsed .category-grid {
  max-height: 0; opacity: 0; margin: 0;
}

/* ─── Bot Card ─────────────────────────────────────────────────────────── */
.bot-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; color: inherit; display: block;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(21,53,91,0.04);
}
.bot-card::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(151,192,217,0.06), transparent);
  animation: cardShimmer 5s ease-in-out infinite;
}
@keyframes cardShimmer { 0%{left:-100%}100%{left:200%} }

.bot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220,95,76,0.3);
  box-shadow: 0 8px 30px rgba(21,53,91,0.1), 0 0 0 1px rgba(220,95,76,0.08);
}

.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(151,192,217,0.1); border: 1px solid rgba(21,53,91,0.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; }

.card-name {
  font-size: 14px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--text); line-height: 1.3;
}

.card-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  padding: 3px 8px; border-radius: 6px;
}
.card-tag.videos {
  background: rgba(151,192,217,0.12); color: var(--blue);
  border: 1px solid rgba(151,192,217,0.25);
}
.card-tag.prompt {
  background: rgba(245,193,108,0.08); color: var(--gold);
  border: 1px solid rgba(245,193,108,0.15);
}

/* ─── Bot Detail: Two-Column Layout ────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.detail-content { min-width: 0; }

.detail-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 8px;
}
.detail-breadcrumb a { color: var(--blue); text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb .bc-sep { color: rgba(152,193,217,0.3); }

.detail-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text); margin-bottom: 12px;
}

.detail-desc {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 28px; max-width: 600px;
}

/* Video placeholders */
.video-section { margin-bottom: 24px; }
.video-section h3 {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.video-section h3 .vid-num {
  font-size: 11px; font-weight: 700;
  background: rgba(220,95,76,0.12); color: var(--coral);
  padding: 2px 8px; border-radius: 5px;
}

.video-embed {
  position: relative;
  width: 100%; padding-top: 56.25%; /* 16:9 */
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.video-placeholder {
  position: relative;
  width: 100%; padding-top: 56.25%; /* 16:9 */
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.video-placeholder .play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(220,95,76,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(220,95,76,0.3);
  transition: transform .2s, box-shadow .2s;
}
.video-placeholder:hover .play-btn {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(220,95,76,0.4);
}
.play-btn svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }
.play-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Prompt card */
.prompt-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  margin-top: 24px;
}
.prompt-card h3 {
  font-size: 14px; font-weight: 700; color: var(--gold);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.prompt-card h3 svg { width: 14px; height: 14px; }
.prompt-text {
  font-size: 13px; color: var(--text); line-height: 1.7;
  background: rgba(151,192,217,0.06); border-radius: 8px; padding: 14px;
  font-family: 'Inter', monospace; white-space: pre-wrap;
  border: 1px solid rgba(21,53,91,0.06);
}
.prompt-copy-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,193,108,0.08); border: 1px solid rgba(245,193,108,0.2);
  border-radius: 6px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: var(--gold);
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.prompt-copy-btn:hover { background: rgba(245,193,108,0.15); border-color: rgba(245,193,108,0.35); }
.prompt-copy-btn svg { width: 12px; height: 12px; }

/* ─── Chat Panel (detail page) ─────────────────────────────────────────── */
.chat-panel {
  position: sticky; top: 72px;
  height: calc(100vh - 96px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.chat-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-panel-header .cp-icon { width: 22px; height: 22px; }
.chat-panel-header .cp-title {
  font-size: 13px; font-weight: 700; color: var(--text); flex: 1;
}
.chat-panel-header .cp-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: #4ade80;
}
.cp-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }

.chat-panel-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-panel-messages::-webkit-scrollbar { width: 3px; }
.chat-panel-messages::-webkit-scrollbar-thumb { background: rgba(21,53,91,0.08); border-radius: 3px; }

.chat-panel-input {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chat-input-area {
  display: flex; align-items: center; gap: 8px;
  background: rgba(151,192,217,0.06);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
  transition: border-color .2s;
}
.chat-input-area:focus-within { border-color: rgba(152,193,217,0.25); }
.chat-input-area input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: var(--text); font-family: 'Inter', sans-serif;
}
.chat-input-area input::placeholder { color: rgba(21,53,91,0.3); }
.chat-send-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(220,95,76,0.3);
  transition: transform .2s, box-shadow .2s;
}
.chat-send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,95,76,0.4); }
.chat-send-btn svg { width: 12px; height: 12px; color: #fff; }

/* Chat bubbles in panel */
.cp-bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.cp-bubble-row.user { flex-direction: row-reverse; }

.cp-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(151,192,217,0.15); border: 1px solid rgba(21,53,91,0.08);
  display: flex; align-items: center; justify-content: center;
}
.cp-avatar svg { width: 12px; height: 12px; }

.cp-bubble {
  padding: 9px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.6; max-width: 85%;
}
.cp-bubble.bot {
  background: rgba(151,192,217,0.06);
  border: 1px solid rgba(21,53,91,0.06);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.cp-bubble.user {
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border-bottom-right-radius: 4px; color: #fff; font-weight: 500;
}
.cp-bubble strong { color: var(--gold); }

.chat-panel-footer {
  text-align: center; padding: 6px;
  font-size: 10px; color: rgba(21,53,91,0.2); letter-spacing: 0.3px;
}

/* ─── Login Page ───────────────────────────────────────────────────────── */
.login-container {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px;
  background: #ffffff;
  position: relative;
}
.login-container::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(151,192,217,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(151,192,217,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(220,95,76,0.04) 0%, transparent 50%);
}

.login-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 8px; }
.login-logo svg { width: 52px; height: 52px; }

.login-form {
  width: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.login-field {
  width: 100%; padding: 14px 16px;
  background: rgba(151,192,217,0.06);
  border: 1px solid rgba(21,53,91,0.1);
  border-radius: 12px; color: var(--text);
  font-size: 15px; font-family: 'Inter', sans-serif; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-field::placeholder { color: rgba(21,53,91,0.3); }
.login-field:focus {
  border-color: rgba(220,95,76,0.4);
  box-shadow: 0 0 0 3px rgba(220,95,76,0.12);
}
.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 800;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(220,95,76,0.35);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; text-align: center; display: block;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(220,95,76,0.45); }

.login-forgot {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  text-align: center; transition: color .2s;
}
.login-forgot:hover { color: var(--blue); }

.login-footer {
  font-size: 11px; color: rgba(21,53,91,0.25);
  margin-top: 20px; letter-spacing: 0.3px;
}

/* ─── Locked / Upsell Category ─────────────────────────────────────────── */
.category-section.locked .category-grid {
  position: relative;
  pointer-events: none;
}
.category-section.locked .category-grid::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.9) 100%);
  border-radius: 14px;
}
.category-section.locked .bot-card {
  opacity: 0.45;
  filter: blur(1.5px);
}
.category-section.locked .bot-card::after { animation: none; }

.category-locked-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--gold); text-transform: uppercase;
  background: rgba(245,193,108,0.1); border: 1px solid rgba(245,193,108,0.2);
  border-radius: 8px; padding: 3px 10px;
}
.category-locked-badge svg { width: 12px; height: 12px; }

.upsell-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 20px;
  text-align: center;
}
.upsell-lock-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(245,193,108,0.1); border: 2px solid rgba(245,193,108,0.25);
  display: flex; align-items: center; justify-content: center;
}
.upsell-lock-icon svg { width: 22px; height: 22px; color: var(--gold); }

.upsell-text {
  font-size: 15px; font-weight: 700; color: var(--text);
  max-width: 320px; line-height: 1.5;
}
.upsell-sub {
  font-size: 13px; color: var(--text-muted);
  max-width: 300px; line-height: 1.5;
}

.upsell-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 24px; border-radius: 10px;
  background: linear-gradient(135deg, #D4A84B, #F5C16C, #D4A84B);
  background-size: 200% 100%;
  animation: goldSheen 3.5s ease-in-out infinite;
  border: none; color: #1a1a18; font-size: 14px; font-weight: 800;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: 0.3px; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,193,108,0.3);
  transition: transform .2s, box-shadow .2s;
}
.upsell-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,193,108,0.45);
}
.upsell-btn svg { width: 14px; height: 14px; }

/* ─── Coach Brandon Floating Chat ──────────────────────────────────────── */
.coach-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(21,53,91,0.1);
  border-radius: 50px;
  color: var(--text); font-size: 12px; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  box-shadow: 0 4px 20px rgba(21,53,91,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
}
.coach-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(220,95,76,0.3);
  box-shadow: 0 6px 28px rgba(21,53,91,0.15);
}
.coach-fab .fab-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.coach-fab .fab-text {
  white-space: nowrap;
  color: var(--text-muted);
}
.coach-fab .fab-text strong {
  color: var(--text);
}

/* Coach chat window */
.coach-window {
  position: fixed; bottom: 24px; right: 24px; z-index: 201;
  width: 400px; height: 560px;
  background: #1B2D4B;
  border: 1px solid rgba(152,193,217,0.12);
  border-radius: 20px;
  display: none; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(21,53,91,0.25), 0 0 0 1px rgba(152,193,217,0.06);
  animation: coachSlideUp .3s ease-out;
}
.coach-window.open { display: flex; }
@keyframes coachSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.coach-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(220,95,76,0.12), rgba(220,95,76,0.04));
  border-bottom: 1px solid rgba(152,193,217,0.12);
  display: flex; align-items: center; gap: 12px;
}
.coach-header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.coach-header-info { flex: 1; }
.coach-header-info .coach-name {
  font-size: 14px; font-weight: 800; color: rgba(244,242,236,0.9);
}
.coach-header-info .coach-role {
  font-size: 11px; color: rgba(244,242,236,0.45);
}
.coach-close {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(152,193,217,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: background .2s, color .2s;
}
.coach-close:hover { background: rgba(255,255,255,0.08); color: rgba(244,242,236,0.9); }
.coach-close svg { width: 14px; height: 14px; }

.coach-messages {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.coach-messages::-webkit-scrollbar { width: 3px; }
.coach-messages::-webkit-scrollbar-thumb { background: rgba(152,193,217,0.1); border-radius: 3px; }

.coach-input {
  padding: 12px 14px;
  border-top: 1px solid rgba(152,193,217,0.12);
}
.coach-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(152,193,217,0.12);
  border-radius: 12px; padding: 10px 12px;
  transition: border-color .2s;
}
.coach-input-wrap:focus-within { border-color: rgba(220,95,76,0.3); }
.coach-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: rgba(244,242,236,0.9); font-family: 'Inter', sans-serif;
}
.coach-input-wrap input::placeholder { color: rgba(152,193,217,0.3); }
.coach-send {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(220,95,76,0.3);
  transition: transform .2s;
}
.coach-send:hover { transform: translateY(-1px); }
.coach-send svg { width: 12px; height: 12px; color: #fff; }

.coach-footer {
  text-align: center; padding: 6px;
  font-size: 10px; color: rgba(152,193,217,0.2);
}

/* Coach quick prompts */
.coach-prompts {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px;
}
.coach-prompt-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(152,193,217,0.12);
  border-radius: 16px; padding: 6px 12px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.coach-prompt-btn:hover {
  background: rgba(220,95,76,0.08); border-color: rgba(220,95,76,0.25);
  color: var(--text);
}

@media (max-width: 480px) {
  .coach-window { width: calc(100vw - 16px); right: 8px; bottom: 8px; height: 70vh; border-radius: 16px; }
  .coach-fab { padding: 10px 14px; font-size: 12px; bottom: 16px; right: 16px; }
  .coach-fab .fab-text { display: none; }
  .coach-fab .fab-avatar { width: 32px; height: 32px; font-size: 16px; }
  .nav-community span { display: none; }
}

/* ─── Messaging Profile Section ────────────────────────────────────────── */
.profile-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.profile-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.profile-header-left { flex: 1; min-width: 200px; }
.profile-header-left h2 {
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.profile-header-left p {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}

/* Progress Ring */
.progress-ring-wrap {
  display: flex; align-items: center; gap: 14px;
  background: rgba(151,192,217,0.08);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
}
.progress-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.progress-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.progress-ring .ring-bg {
  fill: none; stroke: rgba(21,53,91,0.06); stroke-width: 5;
}
.progress-ring .ring-fill {
  fill: none; stroke-width: 5; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.progress-ring .ring-fill.coral { stroke: var(--coral); }
.progress-ring .ring-fill.gold { stroke: var(--gold); }
.progress-ring .ring-fill.mint { stroke: #4ade80; }
.progress-ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--text);
}
.progress-ring-text {
  display: flex; flex-direction: column; gap: 2px;
}
.progress-ring-text .pr-title {
  font-size: 14px; font-weight: 700; color: var(--text);
}
.progress-ring-text .pr-sub {
  font-size: 12px; color: var(--text-muted);
}

/* Profile Cards Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.profile-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none; color: inherit; display: block;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  box-shadow: 0 1px 4px rgba(21,53,91,0.04);
}
.profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(151,192,217,0.3);
  box-shadow: 0 6px 24px rgba(21,53,91,0.08);
}

.profile-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.profile-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.profile-card-icon.avatar { background: rgba(220,95,76,0.12); }
.profile-card-icon.painpoints { background: rgba(245,193,108,0.12); }
.profile-card-icon.beliefs { background: rgba(152,193,217,0.12); }
.profile-card-icon.niche { background: rgba(208,235,233,0.12); }
.profile-card-icon.offer { background: rgba(220,95,76,0.12); }
.profile-card-icon.signs { background: rgba(245,193,108,0.12); }
.profile-card-icon.headlines { background: rgba(152,193,217,0.12); }
.profile-card-icon.voice { background: rgba(208,235,233,0.12); }

.profile-card-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.profile-card-status.complete {
  background: rgba(74,222,128,0.1); color: #4ade80;
  border: 1px solid rgba(74,222,128,0.2);
}
.profile-card-status.partial {
  background: rgba(245,193,108,0.1); color: var(--gold);
  border: 1px solid rgba(245,193,108,0.2);
}
.profile-card-status.empty {
  background: rgba(152,193,217,0.06); color: var(--text-muted);
  border: 1px solid var(--border);
}

.profile-card-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.profile-card-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* Profile card preview items (for completed cards) */
.profile-card-preview {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.profile-card-preview li {
  font-size: 11px; color: rgba(21,53,91,0.55); line-height: 1.6;
  list-style: none; padding-left: 12px; position: relative;
}
.profile-card-preview li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--coral); opacity: 0.5;
}

/* ─── Profile Detail Page ──────────────────────────────────────────────── */
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-data-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.profile-data-card.full-width {
  grid-column: 1 / -1;
}
.profile-data-card h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.profile-data-card h3 .pdc-icon { font-size: 16px; }
.profile-data-card .pdc-sub {
  font-size: 12px; color: var(--text-muted); margin-bottom: 16px;
}

.profile-data-card .data-item {
  background: rgba(151,192,217,0.06);
  border: 1px solid rgba(21,53,91,0.06);
  border-radius: 10px; padding: 14px;
  margin-bottom: 10px;
}
.profile-data-card .data-item:last-child { margin-bottom: 0; }
.profile-data-card .data-item .data-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.profile-data-card .data-item .data-value {
  font-size: 14px; color: var(--text); line-height: 1.6;
}
.profile-data-card .data-item .data-value strong { color: var(--gold); }

.data-list { list-style: none; }
.data-list li {
  font-size: 14px; color: var(--text); line-height: 1.6;
  padding: 10px 14px;
  background: rgba(151,192,217,0.06);
  border: 1px solid rgba(21,53,91,0.06);
  border-radius: 10px; margin-bottom: 8px;
  display: flex; align-items: flex-start; gap: 10px;
}
.data-list li:last-child { margin-bottom: 0; }
.data-list .data-num {
  font-size: 12px; font-weight: 800; color: var(--coral);
  background: rgba(220,95,76,0.1); border-radius: 6px;
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.profile-empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted);
}
.profile-empty-state .empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.4; }
.profile-empty-state p { font-size: 14px; line-height: 1.6; max-width: 300px; margin: 0 auto; }
.profile-empty-state .empty-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 20px;
  background: linear-gradient(135deg, #DC5F4C, #e8755f);
  border: none; border-radius: 10px;
  color: #fff; font-size: 13px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(220,95,76,0.3);
  transition: transform .2s, box-shadow .2s;
}
.profile-empty-state .empty-btn:hover {
  transform: translateY(-1px); box-shadow: 0 5px 18px rgba(220,95,76,0.4);
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .chat-panel {
    position: relative; top: auto;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .top-nav { padding: 12px 16px; }
  .page-container { padding: 24px 16px 48px; }
  .page-hero h1 { font-size: 22px; }
  .detail-title { font-size: 22px; }
  .nav-user span { display: none; }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .progress-ring-wrap { width: 100%; }
  .nav-wordmark { display: none; }
  .chat-panel { height: 420px; }
  .detail-layout { gap: 20px; }
}
