/* ============================================
   ATOPSALES — Dashboard Styles
   Sidebar + Main Content Layout
   ============================================ */

/* ---------- Dashboard Layout ---------- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 240px;
  background: var(--bg-glass-strong);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
}

[data-theme="dark"] .sidebar {
  background: rgba(6, 6, 8, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ========== COLLAPSED SIDEBAR STATE ========== */
@media (min-width: 769px) {
  .sidebar.collapsed {
    transform: translateX(-100%);
  }
  .dashboard-main.expanded {
    margin-left: 0;
  }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.sidebar-logo:hover {
  transform: scale(1.02);
}

.sidebar-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-1);
}

.sidebar-user {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-user {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0;
}

.sidebar-user-plan {
  font-size: 10px;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  background: var(--border-glow);
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .sidebar-user-plan {
  color: var(--accent-purple-light);
  background: rgba(109, 124, 255, 0.15);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4) 0;
  overflow-y: auto;
}

.sidebar-section-label {
  padding: var(--space-3) var(--space-6) var(--space-1);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: var(--space-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-primary);
  transition: height var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: var(--accent-primary);
  background: rgba(52, 68, 218, 0.06);
  font-weight: 600;
}

[data-theme="dark"] .sidebar-link.active {
  color: var(--accent-purple-light);
  background: rgba(109, 124, 255, 0.08);
}

.sidebar-link.active::before {
  height: 24px;
}

.sidebar-link-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-fast);
}

.sidebar-link-badge {
  margin-left: auto;
  font-size: 9px;
  padding: 2px 6px;
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
}

[data-theme="dark"] .sidebar-link-badge {
  background: var(--accent-purple);
}

.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* ---------- Main Content ---------- */
.dashboard-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-topbar {
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-glass);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

[data-theme="dark"] .dashboard-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.2rem;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dashboard-content {
  flex: 1;
  padding: var(--space-8);
  overflow-y: auto;
}

/* ---------- Dashboard Section (Tab Content) ---------- */
.dash-section {
  display: none;
  animation: fadeIn 0.3s var(--ease-out);
}

.dash-section.active {
  display: block;
}

/* ---------- Chat Interface (REDESIGNED) ---------- */
.chat-container {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  overflow: visible;
  background: var(--bg-glass);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .chat-container {
  background: rgba(11, 11, 14, 0.4);
}

/* .chat-header-bar — defined below with new design */


.chat-history-dropdown {
  max-height: 250px;
  overflow-y: auto;
  background: var(--bg-glass-strong);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  animation: fadeIn 0.2s ease;
}

.chat-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color);
}

.chat-hist-item:hover { background: var(--bg-card-hover); }
.chat-hist-item.active { background: var(--border-glow); color: var(--accent-primary); }

[data-theme="dark"] .chat-hist-item.active {
  background: rgba(109, 124, 255, 0.15);
  color: #FFFFFF;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}

/* Chat Scrollbar Styling */
.chat-messages-area::-webkit-scrollbar {
  width: 6px;
}
.chat-messages-area::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages-area::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.chat-msg {
  display: flex;
  gap: var(--space-3);
  max-width: 85%;
  animation: fadeInUp 0.3s var(--ease-out);
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.chat-msg.assistant .chat-msg-avatar { 
  background: var(--gradient-primary); 
  color: white;
}

.chat-msg.user .chat-msg-avatar { 
  background: rgba(109, 124, 255, 0.15); 
  border: 1px solid var(--border-glow); 
  color: var(--accent-primary);
}

[data-theme="dark"] .chat-msg.user .chat-msg-avatar {
  color: var(--accent-purple-light);
}

.chat-msg-bubble {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.chat-msg.assistant .chat-msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

[data-theme="dark"] .chat-msg.assistant .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.03);
}

.chat-msg.user .chat-msg-bubble {
  background: var(--gradient-primary);
  border: none;
  color: white !important;
  border-top-right-radius: 4px;
}

/* .chat-input-bar, .chat-input, .chat-send-btn — redefined below with new design */


.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: var(--space-8);
  color: var(--text-muted);
}

/* .chat-welcome-icon — replaced with .chat-welcome-orb in redesign */


.chat-welcome h3 { 
  font-family: var(--font-heading); 
  font-size: var(--text-lg); 
  color: var(--text-primary); 
  margin-bottom: var(--space-2); 
  font-weight: 700;
  letter-spacing: 0;
}

.chat-welcome p { 
  font-size: var(--text-sm); 
  max-width: 400px; 
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Redesigned Chat Header ── */
.chat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
  flex-shrink: 0;
  gap: 12px;
}

[data-theme="dark"] .chat-header-bar {
  background: rgba(255,255,255,0.02);
}

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

.chat-ai-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(109, 124, 255, 0.3);
}

.chat-header-info {
  min-width: 0;
}

.chat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-header-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.chat-new-btn {
  background: var(--gradient-primary);
  color: white !important;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(109,124,255,0.35);
}

.chat-new-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Super Thinking Mode Badge in Header */
.super-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  letter-spacing: 0.03em;
  animation: superPulse 2s ease-in-out infinite;
}

@keyframes superPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.9); }
}

/* ── Chat History Search ── */
.chat-history-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.chat-history-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.chat-history-search-wrap input::placeholder {
  color: var(--text-muted);
}

/* ── Welcome Screen Redesign ── */
.chat-welcome-orb {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: 0 12px 30px rgba(109, 124, 255, 0.35);
  animation: float 4s ease-in-out infinite;
}

.chat-welcome-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.chat-welcome-sub {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
}

.chat-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}

.chat-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ── Redesigned Input Bar ── */
.chat-input-bar {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-bottom-left-radius: var(--radius-2xl);
  border-bottom-right-radius: var(--radius-2xl);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark"] .chat-input-bar {
  background: rgba(255,255,255,0.01);
}

.chat-input-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 46px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow-y: auto;
}

[data-theme="dark"] .chat-input {
  background: rgba(255,255,255,0.04);
}

.chat-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(109,124,255,0.15);
}

[data-theme="dark"] .chat-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
}

/* Super mode — electric border on input */
.chat-container.super-mode .chat-input {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}

.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(109, 124, 255, 0.35);
}

.chat-send-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(109, 124, 255, 0.5);
}

.chat-send-btn:active {
  transform: scale(0.97);
}

/* Super mode send button */
.chat-container.super-mode .chat-send-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 14px rgba(168,85,247,0.45);
}

/* ── Character Counter ── */
.chat-char-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-char-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
  font-family: var(--font-body);
}

/* ── Weekly Reset Tooltip ── */
.weekly-reset-tooltip-wrap {
  position: relative;
  cursor: default;
}

.weekly-reset-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card, #1e1e2e);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 999;
  animation: tooltipFadeIn 0.15s ease;
}

/* Small arrow pointing down */
.weekly-reset-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-color);
}

.weekly-reset-tooltip-wrap:hover .weekly-reset-tooltip {
  display: block;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Super Thinking Toggle Button ── */
.super-thinking-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  position: relative;
}

.super-thinking-btn:hover {
  border-color: #a855f7;
  color: #a855f7;
  background: rgba(168,85,247,0.06);
}

.super-thinking-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.1));
  border-color: #a855f7;
  color: #c084fc;
}

.st-bolt {
  font-size: 13px;
  transition: transform 0.3s ease;
}

.super-thinking-btn.active .st-bolt {
  animation: boltPulse 1.5s ease-in-out infinite;
}

@keyframes boltPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(-10deg); }
}

.st-credit-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(168,85,247,0.15);
  color: #a855f7;
  letter-spacing: 0.02em;
}

/* Toggle Pill */
.st-toggle-pill {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--border-color);
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.super-thinking-btn.active .st-toggle-pill {
  background: #a855f7;
}

.st-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.super-thinking-btn.active .st-toggle-knob {
  transform: translateX(13px);
}

/* ── Chat Container Super Mode Glow ── */
.chat-container.super-mode {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(168,85,247,0.15), 0 0 30px rgba(168,85,247,0.08);
}

/* ---------- Tool Sections (Coming Soon States) ---------- */

.tool-page {
  max-width: 900px;
  margin: 0 auto;
}

.tool-header {
  margin-bottom: var(--space-8);
}

.tool-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.tool-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.coming-soon-card {
  text-align: center;
  padding: var(--space-16);
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--accent-primary-light);
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  animation: float 3s ease-in-out infinite;
}

.coming-soon-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--accent-purple-light);
  margin-bottom: var(--space-3);
}

.coming-soon-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Script Generator Specific */
.script-form {
  display: grid;
  gap: var(--space-5);
}

.platform-selector {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.platform-chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-body);
}

.platform-chip:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.platform-chip.active {
  background: var(--bg-glass-strong);
  border-color: var(--accent-purple);
  color: var(--accent-purple-light);
}

.script-output {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 200px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-body);
}

.copy-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ---------- Workspace ---------- */
.workspace-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.workspace-tab {
  flex: 1;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.workspace-tab.active {
  background: var(--gradient-primary);
  color: white;
}

.workspace-tab:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.workspace-content {
  display: none;
}

.workspace-content.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

/* Links tracker */
.link-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .link-card {
  background: rgba(255, 255, 255, 0.02);
}

.link-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.link-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.link-platform-icon.tiktok { background: var(--bg-secondary); border: 1px solid #69c9d0; }
.link-platform-icon.youtube { background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255, 0, 0, 0.3); }
.link-platform-icon.instagram { background: rgba(225, 48, 108, 0.1); border: 1px solid rgba(225, 48, 108, 0.3); }
.link-platform-icon.other { background: var(--gradient-card); border: 1px solid var(--border-color); }

.link-info {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.link-url {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-stats {
  display: flex;
  gap: var(--space-5);
  flex-shrink: 0;
}

.link-stat {
  text-align: center;
}

.link-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.link-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.link-actions {
  display: flex;
  gap: var(--space-2);
}

.link-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.link-action-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Notes */
.note-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

[data-theme="dark"] .note-card {
  background: rgba(255, 255, 255, 0.02);
}

.note-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.note-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.note-card-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.note-card-preview {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reminder-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 10px;
  color: var(--accent-orange);
  margin-left: var(--space-2);
}

/* Tax Calculator */
.tax-subtab {
  flex: 1;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.tax-subtab.active {
  background: var(--gradient-primary);
  color: white;
}

.tax-subtab:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.tax-content { animation: fadeIn 0.3s var(--ease-out); }

.tax-step {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--bg-secondary);
}

.tax-step:last-of-type {
  border-bottom: none;
}

.tax-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.tax-step-content {
  flex: 1;
}

.tax-step-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tax-step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Add new item bar */
.add-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.add-bar .form-input {
  flex: 1;
}

/* ---------- Pricing Page ---------- */
.pricing-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.billing-toggle-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.billing-toggle-label.active {
  color: var(--accent-primary);
}

[data-theme="dark"] .billing-toggle-label.active {
  color: var(--accent-purple-light);
}

.billing-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .billing-switch {
  background: rgba(255, 255, 255, 0.05);
}

.billing-switch.active {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(52, 68, 218, 0.3);
}

.billing-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.billing-switch.active::after {
  transform: translateX(24px);
}

.save-badge {
  font-size: var(--text-xs);
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ---------- Modal / Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /* backdrop-filter removed for performance */
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.visible {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  animation: fadeInUp 0.3s var(--ease-out);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Image Upload Area ---------- */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-secondary);
}

.upload-area:hover {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.05);
}

.upload-area.dragover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.upload-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.upload-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Responsive Dashboard ---------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .dashboard-content {
    padding: var(--space-4);
  }

  .chat-container {
    height: calc(100dvh - 120px);
  }

  .link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
  }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.visible {
  display: block;
}

/* ---------- Dashboard Lock Overlay & Modal Styles ---------- */
.dashboard-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.15);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border-radius: var(--radius-2xl);
  animation: fadeIn 0.3s ease;
}

[data-theme="light"] .dashboard-lock-overlay {
  background: rgba(255, 255, 255, 0.15);
}

.lock-card {
  max-width: 440px;
  width: 90%;
  padding: var(--space-8);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.4s var(--ease-out);
}

[data-theme="dark"] .lock-card {
  background: #151518;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.lock-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.lock-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Pricing Switch Animation */
.billing-switch.active {
  background: var(--accent-primary) !important;
}

[data-theme="dark"] .billing-switch.active {
  background: var(--accent-purple) !important;
}

.billing-switch.active .switch-handle {
  left: 26px !important;
}

/* Custom Pricing Modal styling helper */
.pricing-modal-content {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
}

/* ---------- Product Recommendations ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.product-card {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .product-card:hover {
  border-color: var(--accent-purple-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-details {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.2s;
  overflow: hidden;
}

[data-theme="dark"] .product-details {
  background: rgba(255, 255, 255, 0.02);
}

.product-details summary {
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.product-details summary::-webkit-details-marker {
  display: none;
}

.details-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.product-details[open] summary {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .product-details[open] summary {
  background: rgba(255, 255, 255, 0.04);
}

.product-details[open] .details-chevron {
  transform: rotate(180deg);
}


/* ============================================
   AI WORKFLOW PRO — Complete Redesign
   ============================================ */

/* ---- Hero Header ---- */
.wf-tool-page { max-width: 1100px; }

.wf-hero {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.wf-hero-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: #f3eeff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-hero-icon svg { width: 22px; height: 22px; color: #7c3aed; }

.wf-hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
  margin: 0 0 4px;
}
.wf-hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}

.wf-usage-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #f3eeff;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Step Dots ---- */
.wf-step-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-8);
}
.wf-dot {
  width: 60px; height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.wf-dot.wf-dot-active {
  background: #7c3aed;
}
.wf-dot.wf-dot-done {
  background: rgba(0, 0, 0, 0.15);
}

/* ---- Question Wrap ---- */
.wf-questions-wrap {
  position: relative;
}

/* ---- Question Cards ---- */
.wf-q-card {
  display: none;
  animation: wfSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 640px;
  margin: 0 auto;
  background: transparent;
  border: none;
  padding: var(--space-4) 0;
}
.wf-q-card.wf-q-active { display: block; }

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

.wf-q-icon {
  display: none !important;
}
.wf-q-icon svg {
  width: 48px; height: 48px;
  color: #7c3aed;
}
.wf-q-label {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
  margin-bottom: var(--space-2);
  line-height: 1.25;
  text-align: center;
}
.wf-q-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  text-align: center;
}
.wf-q-label-sm {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  text-align: center;
}

/* ---- Choice Grid (Q0) ---- */
.wf-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.wf-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.wf-choice-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}
.wf-choice-btn.wf-choice-active {
  background: #f3eeff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
}
.wf-choice-icon-svg { display: none !important; }
.wf-choice-btn.wf-choice-active .wf-choice-icon-svg { color: #7c3aed; }
.wf-choice-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ---- Reveal Fields ---- */
.wf-reveal-field { margin-top: var(--space-4); }
.wf-text-input { margin-bottom: 0 !important; font-size: 15px !important; }

/* ---- Budget Input ---- */
.wf-budget-input-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}
.wf-currency {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; font-weight: 700;
  color: var(--accent-primary);
  pointer-events: none;
}
.wf-budget-input { padding-left: 38px !important; font-size: 24px !important; font-weight: 700 !important; height: 60px !important; }

.wf-budget-chips {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-5);
  justify-content: center;
}
.wf-chip {
  padding: 7px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wf-chip:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99,102,241,0.06);
}

/* ---- Goal Cards ---- */
.wf-goal-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.wf-goal-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.wf-goal-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}
.wf-goal-card.wf-goal-active {
  background: #f3eeff;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08);
}
.wf-goal-icon-svg { display: none !important; }
.wf-goal-card.wf-goal-active .wf-goal-icon-svg { color: #7c3aed; }
.wf-goal-text { font-size: 11px; font-weight: 700; color: var(--text-secondary); line-height: 1.3; }

/* ---- Audience Grid ---- */
.wf-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.wf-aud-btn {
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wf-aud-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.wf-aud-btn.wf-aud-active {
  background: #f3eeff;
  color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.08);
}

/* ---- Time Row ---- */
.wf-time-row {
  display: flex; gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.wf-time-btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wf-time-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.wf-time-btn.wf-time-active {
  background: #f3eeff;
  color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.08);
}

/* ---- Experience Buttons ---- */
.wf-exp-row {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.wf-exp-btn {
  flex: 1; min-width: 120px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wf-exp-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.wf-exp-btn.wf-exp-active {
  background: #f3eeff;
  color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.08);
}

/* ---- Video Zone ---- */
.wf-video-zone {
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  margin: var(--space-5) 0;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.wf-video-zone:hover { border-color: rgba(124,58,237,0.4); }
.wf-video-zone-inner {
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
}
.wf-video-icon-svg { width: 36px; height: 36px; margin: 0 auto var(--space-3) auto; color: #7c3aed; display: block; }
.wf-video-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.wf-video-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-3); max-width: 380px; margin-left: auto; margin-right: auto; }
.wf-video-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.2);
}
.wf-video-preview-box {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.wf-video-preview-box video { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.wf-video-remove {
  margin-left: auto;
  font-size: 12px; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  padding: 4px 8px;
}
.wf-video-remove:hover { color: #ef4444; }

/* ---- Navigation Buttons ---- */
.wf-q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.wf-next-btn, .wf-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 14px;
}
.wf-next-btn {
  background: #7c3aed !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2) !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wf-next-btn:hover {
  background: #6d28d9 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.3) !important;
}
.wf-launch-btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border: none !important;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
}
.wf-launch-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,58,237,0.45); }
.wf-back-btn { padding: 12px 18px; font-size: 14px; }

/* ---- Phase 2: Exec Header ---- */
.workflow-phase { animation: wfFadeIn 0.35s ease; }
@keyframes wfFadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.wf-exec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.wf-exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
  margin-bottom: var(--space-2);
  animation: wfPulse 2s infinite;
}
.wf-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: wfBlink 1.2s infinite;
}
@keyframes wfBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes wfPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.2); }
  50%     { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.wf-exec-title {
  font-size: var(--text-xl); font-weight: 800;
  color: var(--text-primary); letter-spacing: 0;
  margin: 0 0 4px;
}
.wf-exec-sub { font-size: 13px; color: var(--text-muted); margin: 0; }

.wf-start-over-btn { padding: 8px 16px; font-size: 13px; flex-shrink: 0; }

/* ---- Progress ---- */
.wf-progress-wrap { margin-bottom: var(--space-6); }
.workflow-progress-bar {
  width: 100%; height: 5px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.workflow-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.wf-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Split Layout ---- */
.workflow-split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-5);
  min-height: 560px;
  align-items: start;
}

/* ---- Left Panel ---- */
.wf-checklist-panel {
  border: none;
  border-radius: var(--radius-xl);
  background: #ffffff;
  overflow: hidden;
  position: sticky;
  top: 76px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}
.wf-panel-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 18px 20px 10px 20px;
  background: transparent;
}
.wf-checklist-nav { padding: var(--space-2) 0; }
.wf-plan-loading {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5);
  font-size: 13px; color: var(--text-muted);
}

/* Nav Item */
.wf-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.wf-nav-item:hover { background: rgba(99,102,241,0.04); }
.wf-nav-item.wf-nav-active {
  background: linear-gradient(90deg, rgba(99,102,241,0.07), transparent);
  border-left-color: #6366f1;
}
.wf-nav-item.wf-nav-done { border-left-color: #10b981; }

.wf-nav-status {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px; font-weight: 800;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wf-nav-item.wf-nav-active .wf-nav-status {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent; color: #fff;
}
.wf-nav-item.wf-nav-done .wf-nav-status {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: transparent; color: #fff;
  font-size: 0;
}
.wf-nav-item.wf-nav-done .wf-nav-status::after { content: '✓'; font-size: 13px; }
.wf-nav-label {
  flex: 1;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}
.wf-nav-item.wf-nav-active .wf-nav-label { color: #6366f1; }
.wf-nav-item.wf-nav-done .wf-nav-label  { color: #059669; }

/* ---- Right Panel ---- */
.wf-output-panel {
  border: none;
  border-radius: var(--radius-xl);
  background: #ffffff;
  display: flex; flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}
.wf-output-panel-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px 20px;
  background: transparent;
}
.wf-output-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* Placeholder */
.wf-output-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 400px;
  gap: var(--space-3);
}
.wf-placeholder-icon { font-size: 44px; opacity: 0.5; }
.wf-placeholder-title { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.wf-placeholder-sub { font-size: 13px; color: var(--text-muted); max-width: 260px; line-height: 1.6; }

/* Actions */
.wf-output-actions { display: flex; gap: var(--space-2); }
.wf-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wf-action-btn:hover { background: var(--accent-primary); color: #fff; border-color: transparent; }

/* ---- AI Result Output Styling ---- */
.wf-result-wrap { animation: wfFadeIn 0.3s ease; }

/* Section card */
.wf-section-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.wf-section-card:last-child { margin-bottom: 0; }

.wf-section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.wf-section-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  flex-shrink: 0;
}

.wf-section-title {
  font-size: 15px; font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  letter-spacing: 0;
}

.wf-item-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.wf-item-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.wf-item-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
  margin-top: 6px;
}
.wf-item-list li strong { color: var(--text-primary); }

/* Stat row */
.wf-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0;
}
.wf-stat-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
  border: 1px solid rgba(99,102,241,0.12);
  text-align: center;
}
.wf-stat-value {
  font-size: 20px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
  margin-bottom: 3px;
}
.wf-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* Run button area */
.wf-run-area {
  margin-bottom: var(--space-5);
}
.wf-run-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wf-run-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.wf-run-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

.wf-step-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border-left: 3px solid #6366f1;
}

/* Loading */
.wf-output-loading {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 13px; color: var(--text-muted);
  padding: var(--space-5) 0;
}

/* Product grid */
.wf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.wf-product-mini {
  padding: var(--space-4);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.wf-product-mini:hover { border-color: #6366f1; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.wf-product-mini.selected { border-color: #6366f1; background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(168,85,247,0.07)); }
.wf-product-mini img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.wf-product-mini-title { font-size: 11px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.wf-product-mini-price { font-size: 13px; font-weight: 800; color: #7c3aed; }
.wf-product-mini-supplier { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* WhatsApp */
.wf-wa-card {
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(37,211,102,0.06), rgba(16,185,129,0.04));
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: var(--radius-xl);
  margin: var(--space-4) 0;
}
.wf-wa-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: #059669; margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 6px;
}
.wf-wa-link {
  font-family: monospace; font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  word-break: break-all;
  margin-bottom: var(--space-3);
}
.wf-wa-actions { display: flex; gap: var(--space-3); }
.wf-phone-group { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-4) 0; }
.wf-phone-group input { flex: 1; margin-bottom: 0; }

/* Video analysis result */
.wf-video-score {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(168,85,247,0.07));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}
.wf-score-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.wf-score-num { font-size: 22px; font-weight: 900; line-height: 1; }
.wf-score-denom { font-size: 10px; opacity: 0.8; }
.wf-score-meta { flex: 1; }
.wf-score-title { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.wf-score-sub { font-size: 12px; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .workflow-split-layout { grid-template-columns: 1fr; }
  .wf-checklist-panel { position: static; }
  .wf-goal-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wf-hero { padding: var(--space-5); flex-direction: column; }
  .wf-q-card { padding: var(--space-5); }
  .wf-q-label { font-size: 18px; }
  .wf-choice-grid, .wf-audience-grid { grid-template-columns: 1fr 1fr; }
  .wf-goal-cards { grid-template-columns: repeat(2, 1fr); }
  .wf-budget-input { height: 52px !important; font-size: 20px !important; }
  .wf-exec-header { flex-direction: column; }
  .wf-product-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-stat-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   AI WORKFLOW PRO — Accordion Dropdown Layout
   ============================================ */

.wf-accordion-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
  animation: wfFadeIn 0.4s var(--ease-out);
}

.wf-acc-card {
  background: var(--bg-glass);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .wf-acc-card {
  background: rgba(20, 20, 25, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.wf-acc-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .wf-acc-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.06);
}

/* Active Expanded State */
.wf-acc-card.wf-acc-active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(52, 68, 218, 0.08);
  transform: none;
}

[data-theme="dark"] .wf-acc-card.wf-acc-active {
  border-color: var(--accent-purple-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(109, 124, 255, 0.12);
}

/* Completed State */
.wf-acc-card.wf-acc-done {
  border-color: rgba(16, 185, 129, 0.25);
}

.wf-acc-card.wf-acc-done:hover {
  border-color: var(--accent-secondary);
}

.wf-acc-card.wf-acc-done.wf-acc-active {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.08);
}

/* Header styling */
.wf-acc-header {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background var(--transition-fast);
}

.wf-acc-header:hover {
  background: var(--bg-card-hover);
}

[data-theme="dark"] .wf-acc-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Header Status Icon */
.wf-acc-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-4);
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .wf-acc-icon-wrap {
  background: rgba(255, 255, 255, 0.03);
}

/* Active Status Icon */
.wf-acc-active .wf-acc-icon-wrap {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(52, 68, 218, 0.25);
}

[data-theme="dark"] .wf-acc-active .wf-acc-icon-wrap {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
  box-shadow: 0 4px 12px rgba(109, 124, 255, 0.3);
}

/* Completed Status Icon */
.wf-acc-done .wf-acc-icon-wrap {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.wf-acc-done.wf-acc-active .wf-acc-icon-wrap {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-secondary-light));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.wf-acc-check-icon {
  font-size: 14px;
  font-weight: 800;
}

/* Title and Label Group */
.wf-acc-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wf-acc-step-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.wf-acc-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1.3;
  margin-top: 3px;
}

.wf-acc-emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-acc-emoji-icon svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.wf-acc-active .wf-acc-emoji-icon svg {
  color: var(--accent-primary);
}

[data-theme="dark"] .wf-acc-active .wf-acc-emoji-icon svg {
  color: var(--accent-purple-light);
}

.wf-acc-done .wf-acc-emoji-icon svg {
  color: var(--accent-secondary);
}

/* Status badge */
.wf-acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wf-acc-badge.badge-ready {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .wf-acc-badge.badge-ready {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.wf-acc-badge.badge-running {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

[data-theme="dark"] .wf-acc-badge.badge-running {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--accent-purple-light);
}

.wf-acc-badge.badge-completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-secondary);
}

/* Rotating Chevron */
.wf-acc-chevron {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.wf-acc-chevron svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: stroke var(--transition-fast);
}

.wf-acc-active .wf-acc-chevron {
  color: var(--text-primary);
}

/* Collapsible Content Body */
.wf-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.wf-acc-content-inner {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  border-top: 1px dashed var(--border-color);
  padding-top: var(--space-5);
}

[data-theme="dark"] .wf-acc-content-inner {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Copy Action inside accordion */
.wf-acc-copy-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .wf-acc-copy-wrap {
  border-color: rgba(255, 255, 255, 0.08);
}

.wf-acc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .wf-acc-copy-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.wf-acc-copy-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(52, 68, 218, 0.2);
  transform: translateY(-1px);
}

[data-theme="dark"] .wf-acc-copy-btn:hover {
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(109, 124, 255, 0.25);
}

.wf-acc-copy-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- micro1-inspired dashboard refresh ---------- */
.dashboard-wrapper {
  background:
    linear-gradient(180deg, rgba(52, 68, 218, 0.045) 0, rgba(52, 68, 218, 0) 300px),
    var(--bg-primary);
}

.sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--border-color);
  box-shadow: 14px 0 40px rgba(15, 19, 39, 0.04);
  /* backdrop-filter removed for performance */
  -webkit-/* backdrop-filter removed for performance */
}

[data-theme="dark"] .sidebar {
  background: rgba(8, 9, 14, 0.92);
  border-right-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.dashboard-main {
  margin-left: 260px;
}

.sidebar-header {
  padding: 22px 20px;
}

.sidebar-logo img {
  height: 34px;
}

.sidebar-user {
  margin: 14px 14px 6px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.sidebar-user-plan {
  border-radius: var(--radius-md);
  background: rgba(52, 68, 218, 0.08);
  color: var(--accent-primary);
}

.sidebar-nav {
  padding: 12px;
}

.sidebar-section-label {
  padding: 14px 10px 8px;
  text-transform: none;
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-link {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.sidebar-link::before {
  display: none;
}

.sidebar-link:hover {
  background: var(--bg-secondary);
}

.sidebar-link.active,
[data-theme="dark"] .sidebar-link.active {
  color: var(--text-primary);
  background: rgba(52, 68, 218, 0.08);
}

.sidebar-footer {
  padding: 14px 12px 20px;
}

.dashboard-topbar {
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 231, 239, 0.76);
  box-shadow: none;
}

[data-theme="dark"] .dashboard-topbar {
  background: rgba(8, 9, 14, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 650;
}

.dashboard-content {
  padding: 30px;
}

.chat-container,
.coming-soon-card,
.script-output,
.modal-content,
.upload-area,
.link-card,
.note-card,
.product-card,
.product-details,
.wf-choice-btn,
.wf-goal-card,
.wf-aud-btn,
.wf-time-btn,
.wf-exp-btn,
.wf-video-zone,
.wf-checklist-panel,
.wf-main-panel,
.wf-product-card,
.wf-result-card,
.wf-product-mini,
.wf-whatsapp-card,
.wf-script-card,
.wf-acc-card {
  border-radius: var(--radius-lg);
}

.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="dark"] .chat-container {
  background: var(--bg-card);
}

/* .chat-header-bar / .chat-input-bar \u2014 managed in new design section above */


.chat-messages-area {
  background:
    linear-gradient(90deg, rgba(52, 68, 218, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(52, 68, 218, 0.045) 1px, transparent 1px),
    var(--bg-card);
  background-size: 48px 48px;
}

[data-theme="dark"] .chat-messages-area {
  background:
    linear-gradient(90deg, rgba(109, 124, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(109, 124, 255, 0.07) 1px, transparent 1px),
    var(--bg-card);
}

.chat-msg-avatar,
.chat-send-btn {
  border-radius: var(--radius-md);
}

.chat-msg.assistant .chat-msg-avatar,
.chat-msg.user .chat-msg-bubble,
.chat-send-btn,
.workspace-tab.active,
.tax-subtab.active {
  background: #3444da;
}

.chat-msg-bubble {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.chat-msg.assistant .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .chat-msg.assistant .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.chat-msg.user .chat-msg-bubble {
  color: #ffffff !important;
}

/* Markdown Table Styles in Chat */
.chat-msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}
.chat-msg-bubble th,
.chat-msg-bubble td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-color);
}
.chat-msg-bubble th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}
.chat-msg-bubble td {
  color: var(--text-secondary);
}
.chat-msg-bubble tr:last-child td {
  border-bottom: none;
}
.chat-msg-bubble tr:hover td {
  background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .chat-msg-bubble tr:hover td {
  background: rgba(255,255,255,0.02);
}
.chat-msg-bubble p {
  margin-bottom: 10px;
}
.chat-msg-bubble p:last-child {
  margin-bottom: 0;
}

.chat-input {
  border-radius: var(--radius-md);
  background: var(--bg-primary);
}

.chat-send-btn {
  box-shadow: 0 12px 26px rgba(52, 68, 218, 0.22);
}

.chat-welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  animation: none;
}

.chat-history-dropdown,
.chat-hist-item {
  background: var(--bg-card);
}

.chat-hist-item:hover {
  background: var(--bg-secondary);
}

.tool-page {
  max-width: 1020px;
}

.tool-title,
.wf-hero-title,
.wf-q-label {
  font-weight: 650;
}

.tool-title {
  font-size: 2rem;
}

.tool-subtitle {
  max-width: 700px;
  line-height: 1.7;
}

.product-grid {
  gap: 18px;
}

.product-card,
.link-card,
.note-card,
.wf-acc-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md);
}

.product-card:hover,
.link-card:hover,
.note-card:hover,
.wf-acc-card:hover {
  border-color: rgba(52, 68, 218, 0.28) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-details {
  background: var(--bg-secondary);
}

.product-details[open] summary,
[data-theme="dark"] .product-details[open] summary {
  background: rgba(52, 68, 218, 0.07);
}

.workspace-tabs {
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.workspace-tab,
.tax-subtab,
.platform-chip,
.wf-chip {
  border-radius: var(--radius-md);
}

.platform-chip.active,
.wf-choice-btn.wf-choice-active,
.wf-goal-card.wf-goal-active,
.wf-aud-btn.wf-aud-active,
.wf-time-btn.wf-time-active,
.wf-exp-btn.wf-exp-active {
  background: rgba(52, 68, 218, 0.08);
  color: var(--accent-primary);
  box-shadow: none;
}

.wf-hero-icon,
.wf-usage-badge,
.wf-video-tag {
  background: rgba(52, 68, 218, 0.08);
  color: var(--accent-primary);
}

.wf-hero-icon svg,
.wf-video-icon-svg,
.wf-currency {
  color: var(--accent-primary);
}

.wf-dot.wf-dot-active,
.wf-next-btn,
.wf-launch-btn {
  background: #3444da !important;
}

.wf-next-btn,
.wf-launch-btn {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 14px 34px rgba(52, 68, 218, 0.22) !important;
}

.wf-checklist-panel,
.wf-main-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.wf-nav-item.wf-nav-active {
  background: rgba(52, 68, 218, 0.07);
  border-left-color: #3444da;
}

.wf-nav-item.wf-nav-active .wf-nav-status,
.workflow-progress-fill,
.wf-product-score,
.wf-script-number {
  background: #3444da;
}

.dashboard-lock-overlay {
  background: rgba(246, 247, 251, 0.56);
}

.lock-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .sidebar {
    width: 280px;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-topbar {
    padding: 14px 16px;
  }

  .dashboard-content {
    padding: 18px;
  }
}

/* ============================================
   SHOPPING CART — FAB + Bottom Sheet
   ============================================ */

/* Floating Cart Button */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(99,102,241,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.cart-fab.visible {
  opacity: 1;
  pointer-events: auto;
  animation: cart-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cart-pop-in {
  from { transform: scale(0.5) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

.cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

.cart-fab svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge on FAB */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary, #0b0b0e);
  animation: badge-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-bounce {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Bottom Sheet Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet */
.cart-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9002;
  background: var(--bg-secondary, #0f0f1a);
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}

.cart-sheet.open {
  transform: translateY(0);
}

.cart-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color, rgba(255,255,255,0.15));
  border-radius: 4px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.cart-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
  flex-shrink: 0;
}

.cart-sheet-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass-strong, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color);
  color: var(--text-muted, #888);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cart-sheet-close:hover {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
}

.cart-sheet-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  min-height: 0;
}

.cart-sheet-items::-webkit-scrollbar { width: 4px; }
.cart-sheet-items::-webkit-scrollbar-track { background: transparent; }
.cart-sheet-items::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-glass-strong, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 14px;
  margin-bottom: 10px;
  animation: fadeInUp 0.25s ease;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 12px;
  color: var(--accent-purple-light, #818cf8);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.cart-qty-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.cart-qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cart-qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  margin-left: 4px;
}

.cart-remove-btn:hover {
  background: rgba(239,68,68,0.18);
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 3.5rem; margin-bottom: 12px; display: block; }
.cart-empty p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.cart-sheet-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  flex-shrink: 0;
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
}

.cart-total-left {}

.cart-total-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.cart-total-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.cart-total-asi {
  font-size: 11px;
  color: var(--accent-purple-light);
  font-weight: 600;
  margin-top: 2px;
}

/* "Add to Cart" button */
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-lg, 10px);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--accent-primary, #6366f1);
  background: transparent;
  color: var(--accent-primary, #6366f1);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 8px;
}

.btn-add-cart:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.02);
}

[data-theme="dark"] .btn-add-cart {
  border-color: var(--accent-purple-light);
  color: var(--accent-purple-light);
}

[data-theme="dark"] .btn-add-cart:hover {
  background: var(--accent-purple);
  color: #fff;
}

.btn-add-cart svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Pulse animation on FAB after add */
@keyframes fab-pulse {
  0%   { box-shadow: 0 6px 24px rgba(99,102,241,0.45); }
  50%  { box-shadow: 0 6px 36px rgba(99,102,241,0.9), 0 0 0 10px rgba(99,102,241,0.12); }
  100% { box-shadow: 0 6px 24px rgba(99,102,241,0.45); }
}

.cart-fab.pulse {
  animation: fab-pulse 0.55s ease forwards;
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-container {
    height: calc(100dvh - 100px);
  }

  .chat-header-bar {
    padding: 10px 12px;
  }

  .chat-input-bar {
    padding: 10px 12px;
  }
  
  .chat-msg {
    max-width: 95%;
  }

  .chat-messages-area {
    padding: var(--space-4);
  }

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

/* ---------- Atopsales dashboard product polish ---------- */
.dashboard-wrapper { background: #f7f8fc; }
[data-theme="dark"] .dashboard-wrapper { background:#0b0e16; }
.sidebar { background:#111a45; border-right:0; box-shadow:none; }
[data-theme="dark"] .sidebar { background:#080d21; }
.sidebar-header { padding:26px 20px 18px; border-bottom:1px solid rgba(255,255,255,.1); }
.sidebar-user { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:10px; }
.sidebar-user-name { color:#fff; }.sidebar-user-plan { background:rgba(183,235,72,.14); color:#d7fa87; border:0; }
.sidebar-section-label { color:#9caad7; font-size:10px; letter-spacing:.1em !important; text-transform:uppercase; }
.sidebar-link { color:#d8def3; border-radius:7px; font-weight:560; }.sidebar-link:hover { background:rgba(255,255,255,.08); color:#fff; }.sidebar-link.active,[data-theme="dark"] .sidebar-link.active { background:var(--lime,#b7eb48); color:#101828; font-weight:750; }.sidebar-link-badge { background:rgba(255,255,255,.14); color:#fff; }
.dashboard-main { background:transparent; }.dashboard-topbar { min-height:74px; padding:16px 32px; background:rgba(247,248,252,.9); border-bottom:1px solid #dfe4ee; }.topbar-title { color:#101828; font-size:14px; font-weight:800; letter-spacing:.01em !important; }.dashboard-content { padding:34px; max-width:1480px; }
[data-theme="dark"] .dashboard-topbar { background:rgba(11,14,22,.9); border-color:rgba(255,255,255,.08); }.dashboard-topbar .topbar-title { color:#fff; }
.chat-container { box-shadow:0 18px 50px rgba(16,24,40,.08); border-radius:14px; overflow:hidden; }.chat-header-bar { background:#fff; border-bottom:1px solid #dfe4ee; }.chat-header-title { color:#101828; font-weight:800; }.chat-header-subtitle { color:#667085; }.chat-messages-area { background:#fbfcff; background-image:none; }.chat-input-bar { background:#fff; border-top:1px solid #dfe4ee; }.chat-input { border-color:#dfe4ee; box-shadow:none; }.chat-send-btn,.chat-msg.user .chat-msg-bubble { background:#3446c7; }.chat-welcome-orb { background:#e9edff; color:#3446c7; box-shadow:none; }
[data-theme="dark"] .chat-header-bar,[data-theme="dark"] .chat-input-bar { background:#11182b; border-color:rgba(255,255,255,.1); } [data-theme="dark"] .chat-header-title { color:#fff; } [data-theme="dark"] .chat-messages-area { background:#0d1324; }
.tool-page { max-width:1200px; }.tool-title { color:#101828; letter-spacing:-.045em !important; }.tool-subtitle { color:#667085; }.product-card,.link-card,.note-card,.wf-acc-card { border-radius:12px!important; box-shadow:0 10px 25px rgba(16,24,40,.045)!important; }.product-card:hover,.link-card:hover,.note-card:hover,.wf-acc-card:hover { box-shadow:0 18px 40px rgba(16,24,40,.1)!important; }
[data-theme="dark"] .tool-title { color:#fff; } [data-theme="dark"] .tool-subtitle { color:#aab4d1; }
@media (max-width:768px) { .dashboard-topbar{padding:14px 16px}.dashboard-content{padding:18px}.sidebar{background:#111a45}.topbar-right #topbar-greeting{display:none} #ai-credits-header-bar .ai-credits-balance-labels{display:none!important} }
@media (max-width:520px) { #ai-credits-header-bar .ai-credits-balance-pill{display:none!important} }

/* ---------- Settings workspace ---------- */
#section-settings .tool-page { max-width: 1080px; }
.settings-page-header { padding: 8px 0 20px; border-bottom: 1px solid var(--border-color); }
.settings-page-header .tool-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em !important; }
.settings-profile-hero { background: linear-gradient(120deg, #171f50 0%, #26369a 100%) !important; border: 0 !important; box-shadow: 0 20px 48px rgba(24, 35, 98, .22) !important; }
.settings-profile-hero #settings-name { color: #fff !important; font-size: 1.5rem !important; letter-spacing: -.035em !important; }
.settings-profile-hero #settings-email, .settings-profile-hero span { color: rgba(235,240,255,.72) !important; }
.settings-profile-hero #settings-plan-badge { background: var(--lime, #b7eb48) !important; color: #101828 !important; }
.settings-profile-hero .btn-outline { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.24) !important; color: #fff !important; }
.settings-profile-hero .btn-outline:hover { background: rgba(255,255,255,.18) !important; }
.settings-stats-grid > .glass-card, .settings-section-card { background: #fff !important; border-color: #dfe4ee !important; box-shadow: 0 10px 28px rgba(16,24,40,.05) !important; }
.settings-stats-grid > .glass-card { min-height: 110px; transition: transform .2s ease, box-shadow .2s ease; }
.settings-stats-grid > .glass-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16,24,40,.09) !important; }
.settings-section-card > div:first-child h3 { font-size: 1rem !important; letter-spacing: -.015em !important; }
.settings-danger-card { border-left: 3px solid #ef4444 !important; }
[data-theme="dark"] .settings-stats-grid > .glass-card, [data-theme="dark"] .settings-section-card { background: #11182b !important; border-color: rgba(255,255,255,.1) !important; }
@media (max-width: 640px) { .settings-profile-hero { padding: 24px !important; } .settings-stats-grid { grid-template-columns: 1fr !important; } }
