@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bl-black: #000000;
  --bl-white: #ffffff;
  --bl-gold: #e8c55a;
  --bl-gold-dark: #d3a843;
  --bl-gold-deep: #a6863d;
  --bl-gray: #cacaca;

  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #cacaca;
  --text-muted: #888888;

  --accent: #e8c55a;
  --accent-hover: #d3a843;
  --success: #3ac083;
  --warning: #f6a53b;
  --danger: #ff6f5a;
  --info: #4a9fd4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 24px rgba(232, 197, 90, 0.25);

  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Fira Code", monospace;

  --bottom-nav-h: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  min-height: 100%;
  color: var(--text-primary);
  background: radial-gradient(circle at 12% 0%, rgba(232, 197, 90, 0.12), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(166, 134, 61, 0.16), transparent 38%),
    linear-gradient(155deg, #020202, #0a0a0a 50%, #111111);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

a {
  color: var(--accent);
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero {
  background: linear-gradient(125deg, rgba(18, 18, 18, 0.92), rgba(43, 36, 16, 0.92));
  border: 1px solid rgba(232, 197, 90, 0.32);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 10px 0 0;
  max-width: 900px;
  color: #ece2bb;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo-horizontal {
  min-width: 140px;
  max-width: 260px;
  width: 100%;
}

.brand-logo-primary {
  min-width: 120px;
  max-width: 180px;
  width: 100%;
}

.brand-crown {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(232, 197, 90, 0.38));
}

.brand-tagline {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.layout.two-col {
  grid-template-columns: 1.4fr 0.6fr;
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card-premium {
  border: 1px solid rgba(232, 197, 90, 0.35);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(232, 197, 90, 0.14), inset 0 1px 0 rgba(232, 197, 90, 0.08);
}

.card-premium:hover {
  border-color: rgba(232, 197, 90, 0.5);
  box-shadow: var(--shadow-md), 0 12px 32px rgba(232, 197, 90, 0.2), inset 0 1px 0 rgba(232, 197, 90, 0.12);
}

.card h2,
.card h3 {
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(42, 42, 42, 0.6);
  color: var(--text-primary);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 197, 90, 0.15), 0 0 16px rgba(232, 197, 90, 0.08);
  background: rgba(42, 42, 42, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: rgba(153, 153, 153, 0.7);
}

input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  accent-color: var(--bl-gold-dark);
}

textarea {
  min-height: 124px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.btn.primary {
  background: linear-gradient(115deg, var(--bl-gold), var(--bl-gold-dark));
  color: var(--bl-black);
  box-shadow: 0 8px 20px rgba(232, 197, 90, 0.3);
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(232, 197, 90, 0.45), 0 0 0 1px rgba(232, 197, 90, 0.15);
}

.btn.primary:active:not(:disabled) {
  box-shadow: 0 4px 12px rgba(232, 197, 90, 0.25);
}

.btn.secondary {
  background: rgba(42, 42, 42, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover:not(:disabled) {
  background: rgba(58, 58, 58, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(232, 197, 90, 0.4);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(232, 197, 90, 0.1);
  border-color: rgba(232, 197, 90, 0.6);
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bl-black);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

.btn.ghost.loading::after {
  border-color: rgba(232, 197, 90, 0.2);
  border-top-color: var(--accent);
}

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

.btn-cta {
  display: block;
  width: 100%;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bl-black);
  background: linear-gradient(115deg, var(--bl-gold), var(--bl-gold-dark));
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 197, 90, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
}

.btn-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 197, 90, 0.5);
}

.btn-cta:active:not(:disabled) {
  transform: translateY(0);
}

.btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-cta.loading {
  pointer-events: none;
  opacity: 0.8;
  color: transparent;
}

.btn-cta.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bl-black);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

.upload-state {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #f1e4b5;
}

.progress {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.17);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bl-gold), var(--bl-gold-dark));
}

.video-shell {
  position: relative;
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

video,
audio {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-md);
  background: #050505;
}

video {
  display: block;
}

.guide-frame {
  position: absolute;
  inset: 8%;
  border: 2px dashed rgba(232, 197, 90, 0.65);
  border-radius: 14px;
  pointer-events: none;
}

.guide-label {
  position: absolute;
  top: -26px;
  left: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff2b9;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  padding: 3px 10px;
}

.quality-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(58, 192, 131, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.quality-flash.show {
  opacity: 1;
}

.coach-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.coach-step {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.86rem;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, transform 0.25s ease;
}

.coach-step.active {
  border-color: rgba(232, 197, 90, 0.46);
  color: #fff3bf;
  background: rgba(232, 197, 90, 0.12);
  transform: translateX(4px);
}

.coach-step.done {
  border-color: rgba(58, 192, 131, 0.36);
  color: #c3f0de;
  background: rgba(58, 192, 131, 0.14);
}

.status-line {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 12px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.status-line.good {
  border-color: rgba(58, 192, 131, 0.45);
  background: rgba(58, 192, 131, 0.18);
  color: #c3f3de;
}

.status-line.warn {
  border-color: rgba(246, 165, 59, 0.44);
  background: rgba(246, 165, 59, 0.16);
  color: #ffe0ae;
}

.status-line.error {
  border-color: rgba(255, 111, 90, 0.44);
  background: rgba(255, 111, 90, 0.16);
  color: #ffd1c8;
}

.recap-block {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 9, 9, 0.55);
  padding: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat .value {
  margin-top: 4px;
  font-size: 1.95rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
}

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

.lead-card {
  background: rgba(19, 19, 19, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
  animation: card-enter 0.35s ease-out both;
}

.lead-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.lead-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-gold {
  background: rgba(232, 197, 90, 0.15);
  color: var(--accent);
  border-color: rgba(232, 197, 90, 0.3);
}

.badge-success {
  background: rgba(58, 192, 131, 0.15);
  color: var(--success);
  border-color: rgba(58, 192, 131, 0.3);
}

.badge-pending {
  background: rgba(246, 165, 59, 0.15);
  color: var(--warning);
  border-color: rgba(246, 165, 59, 0.3);
}

.badge-danger {
  background: rgba(255, 111, 90, 0.15);
  color: var(--danger);
  border-color: rgba(255, 111, 90, 0.3);
}

.tip-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.tip-item {
  padding: 10px;
  border-radius: 10px;
  background: rgba(232, 197, 90, 0.14);
  border: 1px solid rgba(232, 197, 90, 0.24);
  transition: all 0.25s ease;
}

.tip-selectable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 36px;
}

.tip-selectable::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(232, 197, 90, 0.4);
  background: transparent;
  transition: all 0.2s ease;
}

.tip-selectable:hover {
  background: rgba(232, 197, 90, 0.22);
  border-color: rgba(232, 197, 90, 0.5);
}

.tip-selectable.tip-selected {
  background: rgba(232, 197, 90, 0.28);
  border-color: var(--bl-gold);
}

.tip-selectable.tip-selected::before {
  background: var(--bl-gold);
  border-color: var(--bl-gold);
}

.tip-selectable.tip-selected::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
}

.notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.notice.success {
  background: rgba(58, 192, 131, 0.18);
  border: 1px solid rgba(58, 192, 131, 0.4);
}

.notice.error {
  background: rgba(255, 111, 90, 0.18);
  border: 1px solid rgba(255, 111, 90, 0.4);
}

.notice.warn {
  background: rgba(246, 165, 59, 0.18);
  border: 1px solid rgba(246, 165, 59, 0.4);
}

@keyframes gold-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 197, 90, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(232, 197, 90, 0.2);
  }
}

.pulse-gold {
  animation: gold-pulse 2s ease-in-out infinite;
}

.fade-in {
  animation: fade-in 0.3s ease-out;
}

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

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

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 20px;
  }

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

input.prefilled,
select.prefilled,
textarea.prefilled {
  border-color: rgba(58, 192, 131, 0.4);
  background: rgba(58, 192, 131, 0.06);
  box-shadow: inset 0 0 0 1px rgba(58, 192, 131, 0.08);
}

input[type="file"] {
  padding: 10px 14px;
  background: rgba(42, 42, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

input[type="file"]:hover {
  border-color: rgba(232, 197, 90, 0.4);
  background: rgba(42, 42, 42, 0.6);
}

input[type="file"]::file-selector-button {
  background: linear-gradient(115deg, var(--bl-gold), var(--bl-gold-dark));
  color: var(--bl-black);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  margin-right: 10px;
  transition: box-shadow 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  box-shadow: 0 4px 12px rgba(232, 197, 90, 0.3);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes celebration-enter {
  0% {
    opacity: 0;
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(232, 197, 90, 0);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 40px 8px rgba(232, 197, 90, 0.15);
  }
}

.celebration-reveal {
  animation: celebration-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.section-reveal {
  animation: card-enter 0.4s ease-out both;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stepped-page {
  max-width: 720px;
  padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

.step-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px 10px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 80px;
  position: relative;
}

.step-dot .step-num,
.step-dot .step-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-dot .step-check {
  background: var(--bl-gold);
  color: #000;
  border-color: var(--bl-gold);
  padding: 5px;
}

.step-dot.active .step-num {
  background: var(--bl-gold);
  color: #000;
  border-color: var(--bl-gold);
  box-shadow: 0 0 12px rgba(200, 169, 81, 0.4);
  transform: scale(1.1);
}

.step-dot.completed .step-num {
  background: var(--bl-gold);
  color: #000;
  border-color: var(--bl-gold);
}

.step-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.step-dot.active .step-label {
  color: var(--bl-gold);
  font-weight: 600;
}

.step-dot.completed .step-label {
  color: rgba(255, 255, 255, 0.6);
}

@keyframes step-celebrate {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes step-celebrate-ring {
  0% { box-shadow: 0 0 0 0 rgba(200, 169, 81, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(200, 169, 81, 0); }
}

.step-dot.celebrate .step-check,
.step-dot.celebrate .step-num {
  animation: step-celebrate 0.6s cubic-bezier(0.22, 1, 0.36, 1), step-celebrate-ring 0.8s ease-out;
}

.step-panel {
  display: none;
  min-height: 60vh;
}

.step-panel.active {
  display: block;
  animation: step-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step-panel.exit-left {
  display: block;
  animation: step-exit-left 0.3s ease-in both;
}

.step-panel.enter-right {
  display: block;
  animation: step-enter-right 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step-panel.enter-left {
  display: block;
  animation: step-enter-left 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step-panel.exit-right {
  display: block;
  animation: step-exit-right 0.3s ease-in both;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes step-exit-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}

@keyframes step-enter-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes step-enter-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes step-exit-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

.step-content {
  padding-top: 16px;
}

.step-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-bottom: 20px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0 32px;
}

.jax-avatar-welcome {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, var(--bl-gold), var(--bl-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(232, 197, 90, 0.3);
  overflow: hidden;
}

.jax-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.jax-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.jax-chat-bubble {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 14px 18px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(10px);
  animation: bubble-stagger 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.jax-chat-bubble p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #ece2bb;
}

.jax-chat-bubble.stagger-1 { animation-delay: 0.3s; }
.jax-chat-bubble.stagger-2 { animation-delay: 0.9s; }
.jax-chat-bubble.stagger-3 { animation-delay: 1.5s; }

.stagger-cta {
  opacity: 0;
  transform: translateY(10px);
  animation: bubble-stagger 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.0s;
}

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

.project-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--bl-gold);
  border-radius: var(--radius-md);
  background: rgba(232, 197, 90, 0.06);
}

.project-card[hidden] {
  display: none;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bl-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card-edit {
  font-size: 0.82rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.project-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card-row:last-child {
  border-bottom: none;
}

.project-card-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-card-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.prefilled-edit-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.prefilled-edit-form[hidden] {
  display: none;
}

.jax-avatar-sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--bl-gold), var(--bl-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
}

.jax-avatar-xs {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--bl-gold), var(--bl-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
}

.capture-step-content {
  padding-top: 0;
}

.capture-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capture-video-area {
  position: relative;
  width: 100%;
}

.capture-shell {
  width: 100%;
  min-height: 60vh;
  min-height: 60dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capture-shell video {
  min-height: 60vh;
  min-height: 60dvh;
  object-fit: cover;
}

.capture-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  z-index: 160;
}

.capture-start-overlay[hidden] {
  display: none;
}

.capture-start-content {
  text-align: center;
  padding: 24px;
}

.capture-start-content p {
  margin: 12px 0 24px;
  color: #ece2bb;
  font-size: 1rem;
}

.record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #ff3b30;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.4);
}

.record-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: #ff3b30;
  transition: all 0.2s ease;
}

.record-btn:hover {
  transform: scale(1.05);
}

.record-btn:active {
  transform: scale(0.95);
}

.record-btn.recording {
  animation: record-pulse 1.5s ease-in-out infinite;
}

.record-btn.recording::after {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 4px;
  background: #ff3b30;
}

@keyframes record-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5), 0 4px 20px rgba(255, 59, 48, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 59, 48, 0), 0 4px 20px rgba(255, 59, 48, 0.4);
  }
}

.capture-timer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ff3b30;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  padding: 4px 14px;
  display: inline-block;
  margin: 0 auto 6px;
}

.capture-timer[hidden] {
  display: none;
}

.capture-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.quality-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.quality-badges[hidden] {
  display: none;
}

.quality-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.4;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.quality-badge.good {
  opacity: 1;
  background: rgba(58, 192, 131, 0.3);
}

.quality-badge.bad {
  opacity: 1;
  background: rgba(255, 111, 90, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coach-step-pills {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.coach-pill {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, width 0.3s ease;
}

.coach-pill.active {
  background: var(--bl-gold);
  width: 40px;
}

.coach-pill.done {
  background: var(--success);
}

.capture-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
}

.capture-coach-prompt {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  margin: 0;
  border: none;
  background: none;
  padding: 0;
}

.capture-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.capture-controls-recording,
.capture-controls-done {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.capture-controls-recording[hidden],
.capture-controls-done[hidden] {
  display: none;
}

.capture-feedback {
  text-align: center;
}

.capture-upload-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.upload-alt-link {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.enrich-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.enrich-section:last-child {
  border-bottom: none;
}

.enrich-header {
  margin-bottom: 10px;
}

.enrich-header strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.enrich-header small {
  font-weight: 400;
  color: var(--text-muted);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.addon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 26, 0.7);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.addon-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.addon-card.selected {
  border-color: var(--bl-gold);
  background: rgba(232, 197, 90, 0.1);
  box-shadow: 0 0 0 1px rgba(232, 197, 90, 0.3), 0 4px 16px rgba(232, 197, 90, 0.15);
}

.addon-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.addon-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.addon-card-price {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.addon-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(232, 197, 90, 0.2);
  color: var(--bl-gold);
  border: 1px solid rgba(232, 197, 90, 0.3);
}

.addon-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.review-summary {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-item-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92rem;
  text-align: right;
}

.review-item-check {
  color: var(--success);
  font-weight: 700;
}

.review-item-missing {
  color: var(--text-muted);
  font-style: italic;
}

.review-item-warning {
  color: #e8a838;
  font-weight: 700;
  font-style: normal;
}

.video-skip-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-skip-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.video-skip-card h3 {
  color: #e8a838;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.video-skip-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.video-skip-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-skip-actions .btn {
  width: 100%;
}

.capture-example-link {
  text-align: center;
  margin-top: 10px;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--bl-gold);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 4px 8px;
}

.btn-text-link:hover {
  color: var(--bl-gold-dark);
}

.example-video-wrap {
  text-align: center;
  margin-top: 10px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #2da370);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 4px 24px rgba(58, 192, 131, 0.35);
}

.next-steps-card {
  margin: 24px auto 0;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
}

.next-steps-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bl-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.next-step-item + .next-step-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.next-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(232, 197, 90, 0.15);
  border: 1px solid rgba(232, 197, 90, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bl-gold);
}

.next-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav .btn {
  flex: 1;
  min-height: 48px;
  max-width: 200px;
}

.bottom-nav .record-btn {
  flex: none;
}

.jax-bubble {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px);
  right: 24px;
  z-index: 200;
  max-width: 340px;
  animation: jax-bubble-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: pointer;
  pointer-events: none;
}


.jax-bubble[hidden] {
  display: none;
}

.jax-bubble-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(232, 197, 90, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(232, 197, 90, 0.1);
  backdrop-filter: blur(16px);
}

.jax-bubble-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ece2bb;
}

@keyframes jax-bubble-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jax-bubble-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

.capture-step-content.recording-mode .capture-shell {
  position: fixed;
  inset: 0;
  z-index: 500;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border: none;
}

.capture-step-content.recording-mode .capture-shell video {
  min-height: 100vh;
  min-height: 100dvh;
}

.capture-step-content.recording-mode .capture-overlay-top {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

.capture-step-content.recording-mode .capture-overlay-bottom {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
}

.capture-step-content.recording-mode .capture-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 501;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.capture-step-content.recording-mode .capture-upload-alt,
.capture-step-content.recording-mode .capture-feedback {
  display: none !important;
}

.minimize-btn {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 502;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.capture-step-content.recording-mode .minimize-btn {
  display: flex;
}

.step-progress {
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}

@media (max-width: 640px) {
  .step-dot .step-num,
  .step-dot .step-check {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .step-label {
    font-size: 0.55rem;
  }
  .stepped-page {
    padding: 12px 12px calc(var(--bottom-nav-h) + 16px);
  }

  .step-progress {
    padding: 10px 0 6px;
  }

  .jax-bubble {
    bottom: calc(var(--bottom-nav-h) + 8px);
    right: 12px;
    left: 12px;
    max-width: none;
  }

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

  .capture-shell {
    min-height: 65vh;
    min-height: 65dvh;
    border-radius: 0;
  }

  .capture-shell video {
    min-height: 65vh;
    min-height: 65dvh;
  }

  .bottom-nav {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }

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

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

.upload-overlay[hidden] {
  display: none !important;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.upload-overlay-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.upload-overlay-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.upload-overlay-icon {
  font-size: 2rem;
}

.upload-overlay-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.upload-progress-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.upload-progress-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.upload-progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.upload-progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.4s ease;
}

.upload-progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.upload-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.upload-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.upload-stat-label {
  color: rgba(255, 255, 255, 0.5);
}

.upload-stat-value {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.connection-dot.good {
  background: #22c55e;
}

.connection-dot.fair {
  background: #f59e0b;
}

.connection-dot.weak {
  background: #ef4444;
}

.connection-dot.offline {
  background: #6b7280;
}

.upload-overlay-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.validation-error {
  border-color: #ff6f5a !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.intro-video-card {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.intro-video-label {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #fff);
  letter-spacing: 0.01em;
}

.intro-video-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

.intro-video-player {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.intro-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.intro-video-play-btn:hover {
  background: rgba(0,0,0,0.75);
}

.outbox-brand-header {
  text-align: center;
  margin-bottom: 12px;
}

.outbox-welcome-logo {
  height: 40px;
  width: auto;
  margin-bottom: 6px;
}

.outbox-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 2px 0;
  letter-spacing: 0.02em;
}

.outbox-subtitle {
  font-size: 0.95rem;
  color: var(--gold);
  margin: 0;
  font-weight: 500;
}

.outbox-subtitle-secondary {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.dashboard-footer {
  text-align: center;
  padding: 24px 16px 12px;
  font-size: 0.75rem;
}

.pipeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pipeline-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pipeline-search-wrap {
  position: relative;
  flex: 1;
  max-width: 240px;
  min-width: 140px;
}

.pipeline-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0.5;
}

.pipeline-search {
  width: 100%;
  padding: 8px 12px 8px 32px !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(42, 42, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pipeline-search:focus {
  border-color: var(--accent) !important;
}

.hot-leads-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  user-select: none;
}

.hot-leads-toggle input:checked + .hot-leads-label {
  color: #e53e3e;
  font-weight: 600;
}

.view-toggle {
  display: flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle-btn {
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease !important;
}

.view-toggle-btn.active {
  background: rgba(232, 197, 90, 0.15) !important;
  color: var(--accent) !important;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kanban-board {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  min-height: 300px;
}

.kanban-board::-webkit-scrollbar {
  height: 6px;
}

.kanban-board::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.kanban-column {
  flex: 0 0 210px;
  min-width: 210px;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  scroll-snap-align: start;
}

.kanban-column.col-dimmed {
  opacity: 0.55;
}

.kanban-column-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.kanban-column-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kanban-column-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

.kanban-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-column-body::-webkit-scrollbar {
  width: 4px;
}

.kanban-column-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.kanban-column-body.drag-over {
  background: rgba(232, 197, 90, 0.06);
  border: 1px dashed rgba(232, 197, 90, 0.4);
  border-radius: var(--radius-sm);
}

.kanban-card {
  background: rgba(19, 19, 19, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 10px 10px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.kanban-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.kanban-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
}

.kanban-card.tier-hot {
  border-left-color: #e53e3e;
}

.kanban-card.tier-warm {
  border-left-color: #dd6b20;
}

.kanban-card.tier-cool {
  border-left-color: #718096;
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.kanban-timeline-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline-asap {
  background: rgba(229, 62, 62, 0.2);
  color: #fc8181;
  border: 1px solid rgba(229, 62, 62, 0.3);
}

.timeline-soon {
  background: rgba(221, 107, 32, 0.2);
  color: #fbd38d;
  border: 1px solid rgba(221, 107, 32, 0.3);
}

.timeline-later {
  background: rgba(74, 159, 212, 0.2);
  color: #90cdf4;
  border: 1px solid rgba(74, 159, 212, 0.3);
}

.timeline-unsure {
  background: rgba(113, 128, 150, 0.2);
  color: #cbd5e0;
  border: 1px solid rgba(113, 128, 150, 0.3);
}

.kanban-score-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
}

.score-hot { background: #e53e3e; }
.score-warm { background: #dd6b20; }
.score-cool { background: #718096; }

.kanban-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-contact {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 3px;
}

.kanban-card-source {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
  text-align: center;
}

.lead-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.lead-detail-backdrop[hidden] {
  display: none;
}

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

.lead-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: rgba(14, 14, 14, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 950;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}

.lead-detail-panel[hidden] {
  display: none;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.lead-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lead-detail-header h2 {
  font-size: 1.15rem;
  margin: 0;
}

.lead-detail-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lead-detail-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lead-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.detail-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 0.88rem;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.detail-value {
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.detail-status-select {
  width: 100%;
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(42, 42, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.detail-actions .btn {
  font-size: 0.82rem;
  padding: 8px 14px;
}

.detail-recap-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.detail-thread {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.detail-thread-bubble {
  display: flex;
  margin-bottom: 6px;
}

.detail-thread-bubble.outbound {
  justify-content: flex-end;
}

.detail-thread-bubble-inner {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.detail-thread-bubble.inbound .detail-thread-bubble-inner {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.detail-thread-bubble.outbound .detail-thread-bubble-inner {
  background: rgba(232, 197, 90, 0.18);
  color: #ece2bb;
}

.detail-thread-time {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 3px;
}

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

.detail-reply-row input {
  flex: 1;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
}

.detail-reply-row .btn {
  font-size: 0.82rem;
  padding: 8px 14px;
}

.metrics-collapsible {
  cursor: pointer;
  user-select: none;
}

.metrics-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 6px;
  font-size: 0.8rem;
}

.metrics-toggle-icon.expanded {
  transform: rotate(180deg);
}

.metrics-body {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 400px;
  opacity: 1;
}

.metrics-body.collapsed {
  max-height: 0;
  opacity: 0;
}

.settings-subsection {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-subsection-toggle {
  cursor: pointer;
  user-select: none;
  padding: 10px 14px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-subsection-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.settings-toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.settings-subsection-toggle.open .settings-toggle-arrow {
  transform: rotate(180deg);
}

.settings-subsection-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
}

.settings-subsection-body.open {
  max-height: 800px;
  padding: 12px 14px 16px;
}

.column-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.column-editor-row.locked {
  opacity: 0.6;
}

.column-editor-row .col-drag-handle {
  cursor: grab;
  font-size: 1rem;
  color: var(--text-muted);
  min-width: 20px;
  text-align: center;
}

.column-editor-row.locked .col-drag-handle {
  cursor: default;
  visibility: hidden;
}

.column-editor-row input {
  flex: 1;
  font-size: 0.85rem;
  padding: 6px 10px;
}

.column-editor-row .col-label-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 60px;
}

.column-editor-row .col-delete-btn {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.column-editor-row .col-delete-btn:hover {
  background: rgba(229, 62, 62, 0.15);
}

.column-editor-row.locked .col-delete-btn {
  visibility: hidden;
}

.card-slot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.card-slot-row label {
  min-width: 50px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.card-slot-row select {
  flex: 1;
  font-size: 0.85rem;
  padding: 5px 8px;
}

@media (max-width: 1200px) {
  .lead-detail-panel {
    width: 100vw;
  }
}

@media (max-width: 1024px) {
  .kanban-column {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .pipeline-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-toolbar-left {
    flex-wrap: wrap;
  }

  .pipeline-search-wrap {
    max-width: none;
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .kanban-column {
    flex: 0 0 170px;
    min-width: 170px;
  }

  .pipeline-toolbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .lead-detail-panel {
    width: 100vw;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: var(--accent);
}

.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.flow-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.flow-row-inactive {
  opacity: 0.5;
}

.flow-row-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.flow-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.flow-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flow-badge-inactive {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 111, 90, 0.15);
  color: var(--danger);
  font-weight: 600;
}

.flow-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.flow-row-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.flow-row-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.flow-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.flow-editor-panel {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  width: 90%;
  max-width: 420px;
}

.flow-editor-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.flow-editor-panel label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 8px 0 4px;
}

.flow-editor-panel input[type="text"],
.flow-editor-panel textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-body);
  resize: vertical;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.team-count {
  font-size: 0.82rem;
  margin: 4px 0 0;
}

.team-invite-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.team-invite-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.team-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.team-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.team-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.team-table tr.team-row-pending td {
  opacity: 0.55;
}

.team-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-user-info {
  min-width: 0;
}

.team-user-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-role-select {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
}

.team-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(232, 197, 90, 0.15);
  color: var(--accent);
}

.team-radio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.team-toggle {
  position: relative;
  width: 38px;
  height: 20px;
  display: inline-block;
}

.team-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.team-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.team-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.team-toggle input:checked + .team-toggle-slider {
  background: var(--accent);
}

.team-toggle input:checked + .team-toggle-slider::before {
  transform: translateX(18px);
}

.team-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.team-actions button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-body);
}

.team-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.team-actions .team-btn-danger {
  color: var(--danger);
  border-color: rgba(255, 111, 90, 0.2);
}

.team-actions .team-btn-danger:hover {
  background: rgba(255, 111, 90, 0.1);
}

.team-pending-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team-pending-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.team-pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  opacity: 0.7;
}

.team-pending-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-badge-pending {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(246, 165, 59, 0.15);
  color: var(--warning);
  font-weight: 600;
}

@media (max-width: 640px) {
  .team-table thead {
    display: none;
  }

  .team-table,
  .team-table tbody,
  .team-table tr,
  .team-table td {
    display: block;
    width: 100%;
  }

  .team-table tr {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    padding: 10px;
  }

  .team-table td {
    border: none;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .team-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 80px;
  }

  .team-invite-fields {
    flex-direction: column;
  }
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 6px;
}

.integration-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.integration-connected {
  border-color: var(--success-text, #2e7d32);
  background: rgba(46, 125, 50, 0.04);
}

.integration-coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.integration-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.integration-card-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.integration-card-status {
  font-size: 0.75rem;
}

.integration-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.seq-stats-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.seq-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.seq-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
}

.seq-stat-sent { color: var(--success-text, #2e7d32); }
.seq-stat-pending { color: var(--accent, #e8c55a); }
.seq-stat-failed { color: var(--error-text, #c00); }

.seq-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--card-bg);
}

.seq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.seq-card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seq-timeline {
  position: relative;
  padding-left: 0;
}

.seq-step {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.seq-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 20px;
  padding-top: 14px;
}

.seq-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #e8c55a);
  flex-shrink: 0;
}

.seq-step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 20px;
}

.seq-step-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--surface-alt, #f9f9fb);
}

@media (prefers-color-scheme: dark) {
  .seq-step-card {
    background: rgba(255,255,255,0.03);
  }
}

.seq-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.seq-step-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.seq-step-timing {
  font-size: 0.78rem;
  background: var(--accent, #e8c55a);
  color: #1a1a2e;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.seq-step-channel {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.seq-step-message {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.seq-step-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.seq-step-actions .btn {
  font-size: 0.78rem;
  padding: 2px 8px;
}

.smart-tag {
  display: inline;
  background: rgba(232, 197, 90, 0.18);
  color: var(--accent, #c8a951);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.table-responsive {
  overflow-x: auto;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.template-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.template-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.template-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.template-card-name {
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid;
  border-radius: 10px;
  padding: 1px 8px;
  white-space: nowrap;
}

.template-card-preview {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 8px;
  max-height: 72px;
  overflow: hidden;
}

.template-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.template-card-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.calendar-connect-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt, #f9f9fb);
}

@media (prefers-color-scheme: dark) {
  .calendar-connect-card {
    background: rgba(255,255,255,0.03);
  }
}

.calendar-connect-icon {
  font-size: 2rem;
  line-height: 1;
}

.avail-week-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.avail-day-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt, #f9f9fb);
  border-left: 3px solid transparent;
}

@media (prefers-color-scheme: dark) {
  .avail-day-row {
    background: rgba(255,255,255,0.03);
  }
}

.avail-day-active {
  border-left-color: var(--success-text, #2e7d32);
  background: rgba(46, 125, 50, 0.06);
}

@media (prefers-color-scheme: dark) {
  .avail-day-active {
    background: rgba(46, 125, 50, 0.1);
  }
}

.avail-day-name {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 90px;
}

.avail-day-hours {
  font-size: 0.85rem;
}

.appt-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--card-bg);
}

.appt-card-left {
  flex-shrink: 0;
}

.appt-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.appt-card-body {
  flex: 1;
  min-width: 0;
}

.appt-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.appt-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

@media screen and (max-width: 600px) {
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .campaign-header {
    flex-direction: column;
  }

  .seq-step {
    gap: 8px;
  }

  .seq-step-connector {
    min-width: 16px;
  }

  .appt-card {
    flex-wrap: wrap;
  }

  .appt-card-actions {
    flex-direction: row;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .stepped-page {
    max-width: 900px;
    padding: 0 32px calc(var(--bottom-nav-h) + 32px);
  }

  .step-progress {
    padding: 16px 24px 12px;
  }

  .step-indicator {
    gap: 12px;
  }

  .step-dot {
    max-width: 110px;
    gap: 6px;
  }

  .step-dot .step-num,
  .step-dot .step-check {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .step-label {
    font-size: 0.78rem;
  }

  .step-content {
    padding-top: 24px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .stepped-page input,
  .stepped-page select,
  .stepped-page textarea {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .stepped-page select {
    padding: 14px 16px;
  }

  .stepped-page label {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .welcome-container {
    padding: 40px 0 48px;
    gap: 24px;
  }

  .jax-avatar-welcome {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 2.2rem;
  }

  .jax-chat-bubble {
    padding: 18px 22px;
    max-width: 88%;
  }

  .jax-chat-bubble p {
    font-size: 1.08rem;
  }

  .stepped-page .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .stepped-page .btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
  }

  .bottom-nav {
    padding: 14px 32px calc(14px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    gap: 20px;
  }

  .bottom-nav .btn {
    min-height: 52px;
    max-width: 240px;
    font-size: 1rem;
  }

  .capture-shell {
    min-height: 55vh;
    min-height: 55dvh;
    border-radius: var(--radius-lg);
  }

  .capture-shell video {
    min-height: 55vh;
    min-height: 55dvh;
  }

  .record-btn {
    width: 88px;
    height: 88px;
    border-width: 5px;
  }

  .record-btn::after {
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
  }

  .record-btn.recording::after {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }

  .capture-start-content {
    padding: 32px;
  }

  .capture-start-content p {
    font-size: 1.12rem;
    margin: 16px 0 28px;
  }

  .capture-controls-recording .btn,
  .capture-controls-done .btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .capture-timer {
    font-size: 1rem;
    padding: 6px 18px;
  }

  .quality-badge {
    font-size: 1.1rem;
    padding: 4px 10px;
  }

  .capture-coach-prompt {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .addon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .addon-card {
    padding: 16px;
  }

  .addon-card-name {
    font-size: 0.95rem;
  }

  .addon-card-price {
    font-size: 0.88rem;
  }

  .capture-upload-alt {
    font-size: 0.95rem;
  }

  .jax-bubble {
    bottom: calc(var(--bottom-nav-h) + 16px);
    right: 32px;
    max-width: 400px;
  }

  .jax-bubble-inner {
    padding: 16px 20px;
    gap: 12px;
  }

  .jax-bubble-text {
    font-size: 0.98rem;
  }

  .jax-avatar-sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .stepped-page .card {
    padding: 24px;
  }

  .stepped-page .card h2 {
    font-size: 1.3rem;
  }

  .project-card {
    padding: 18px;
  }

  .enrich-section textarea {
    min-height: 120px;
  }
}

@media (min-width: 1024px) {
  .layout.two-col {
    grid-template-columns: 2fr 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kanban-column {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .lead-detail-panel {
    width: 55%;
    min-width: 480px;
  }
}
