/* ==========================================================================
   Crypto Québec — Funnel Web Desktop & iPhone 16 Pro Design System
   Aesthetics: Luxury Dark Mode, Titanium Accents, Glassmorphism, Fluid 60fps
   ========================================================================== */

:root {
  --bg-dark: #090a0f;
  --bg-card: #12141c;
  --bg-card-alt: #171a25;
  --bg-glass: rgba(18, 20, 28, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  
  --cq-emerald: #10b981;
  --cq-emerald-glow: rgba(16, 185, 129, 0.25);
  --cq-cyan: #06b6d4;
  --cq-blue: #3b82f6;
  --cq-purple: #8b5cf6;
  --cq-gold: #f59e0b;
  --cq-danger: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --iphone-chassis: #1e2025;
  --iphone-titanium: linear-gradient(135deg, #383a42 0%, #1c1d22 50%, #2a2c33 100%);
  --iphone-screen-bg: #0b0c10;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
}

/* ==========================================================================
   CQ VIP FUNNEL — 90-DEGREE LATERAL TRIGGER TAB & DRAWER POSITIONING
   ========================================================================== */

#cq-funnel-root {
  --cq-zindex: var(--cq-custom-zindex, 999990);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

#cq-funnel-root * {
  box-sizing: border-box;
}

/* 90-Degree Side Tab (Left) */
#cq-funnel-root.pos-left .cq-side-tab-90 {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--cq-zindex) - 10);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  user-select: none;
}

#cq-funnel-root.pos-left .cq-side-tab-90:hover {
  transform: translateY(-50%) translateX(6px);
}

/* 90-Degree Side Tab (Right) */
#cq-funnel-root.pos-right .cq-side-tab-90 {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--cq-zindex) - 10);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  user-select: none;
}

#cq-funnel-root.pos-right .cq-side-tab-90:hover {
  transform: translateY(-50%) translateX(-6px);
}

.side-tab-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(8, 18, 36, 0.97) 0%, rgba(3, 8, 19, 0.98) 100%);
  border: 2px solid #00e5ff;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4), 0 12px 35px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cq-funnel-root.pos-left .side-tab-inner {
  border-left: none;
  border-radius: 0 50px 50px 0;
}

#cq-funnel-root.pos-right .side-tab-inner {
  border-right: none;
  border-radius: 50px 0 0 50px;
}

#cq-funnel-root.pos-left .cq-side-tab-90:hover .side-tab-inner {
  transform: translateX(8px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.65), 0 15px 40px rgba(0, 0, 0, 0.9);
  border-color: #f9b707;
}

#cq-funnel-root.pos-right .cq-side-tab-90:hover .side-tab-inner {
  transform: translateX(-8px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.65), 0 15px 40px rgba(0, 0, 0, 0.9);
  border-color: #f9b707;
}

#cq-funnel-root.pos-left .side-tab-inner {
  border-left: none;
  border-radius: 0 18px 18px 0;
}

#cq-funnel-root.pos-right .side-tab-inner {
  border-right: none;
  border-radius: 18px 0 0 18px;
}

.side-tab-icon {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 2px solid #10b981;
  opacity: 0.85;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.side-tab-label {
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.side-tab-label .tab-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.side-tab-label .tab-sub {
  font-size: 10px;
  color: #34d399;
  font-weight: 700;
}

.side-tab-badge {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  font-weight: 800;
  background: #10b981;
  color: #064e3b;
  padding: 8px 4px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  white-space: nowrap;
}

/* Full-width sticky top-bar trigger on Mobile (< 600px) */
@media (max-width: 600px) {
  #cq-funnel-root .cq-side-tab-90,
  #cq-funnel-root.pos-left .cq-side-tab-90,
  #cq-funnel-root.pos-right .cq-side-tab-90 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
    z-index: calc(var(--cq-zindex) - 5) !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  #cq-funnel-root .cq-side-tab-90:hover,
  #cq-funnel-root.pos-left .cq-side-tab-90:hover,
  #cq-funnel-root.pos-right .cq-side-tab-90:hover {
    transform: none !important;
  }

  .side-tab-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    gap: 12px !important;
    background: rgba(11, 14, 22, 0.96) !important;
    border: none !important;
    border-bottom: 1.5px solid #10b981 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(16, 185, 129, 0.25) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  #cq-funnel-root.pos-left .side-tab-inner,
  #cq-funnel-root.pos-right .side-tab-inner {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .side-tab-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .glow-ring {
    inset: -2px !important;
    border-radius: 9px !important;
    border-width: 1.5px !important;
  }

  .side-tab-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    flex: 1 !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .side-tab-label .tab-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .side-tab-label .tab-sub {
    display: inline-block !important;
    font-size: 10px !important;
    color: #34d399 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .side-tab-badge {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 9px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4) !important;
  }
}

/* Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.78);
  backdrop-filter: blur(8px);
  z-index: calc(var(--cq-zindex) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* iPhone Drawer Container */
.iphone-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 600px;
  max-width: 100vw;
  z-index: var(--cq-zindex);
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  background: rgba(10, 12, 18, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#cq-funnel-root.pos-left .iphone-drawer {
  left: 0;
  right: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateX(-100%);
}

#cq-funnel-root.pos-left .iphone-drawer.open {
  transform: translateX(0);
}

#cq-funnel-root.pos-right .iphone-drawer {
  right: 0;
  left: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateX(100%);
}

#cq-funnel-root.pos-right .iphone-drawer.open {
  transform: translateX(0);
}

@media (max-width: 540px) {
  .iphone-drawer {
    width: 100vw;
    padding: 8px 10px 12px;
  }
  .iphone-chassis {
    border-radius: 36px !important;
    padding: 6px !important;
    max-height: calc(100vh - 56px) !important;
  }
  .iphone-screen {
    border-radius: 30px !important;
  }
}

.drawer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.drawer-brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.cq-dot {
  width: 7px;
  height: 7px;
  background: var(--cq-emerald);
  border-radius: 50%;
}

.close-drawer-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-drawer-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--cq-danger);
  color: var(--cq-danger);
}

.drawer-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-restart-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.drawer-restart-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--cq-emerald);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.drawer-restart-btn:hover .restart-icon {
  transform: rotate(-180deg);
}

/* ==========================================================================
   PHYSICAL IPHONE 16 PRO CHASSIS
   ========================================================================== */

.iphone-chassis {
  flex: 1;
  position: relative;
  background: var(--iphone-titanium);
  border-radius: 54px;
  padding: 11px;
  box-shadow: 
    0 0 0 2px #484a52,
    0 0 0 4px #1c1d22,
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: calc(100vh - 60px);
}

/* Hardware Buttons */
.hw-btn {
  position: absolute;
  background: #33353c;
  border-radius: 4px;
}

.hw-action-btn {
  left: -5px;
  top: 90px;
  width: 4px;
  height: 28px;
}

.hw-vol-up {
  left: -5px;
  top: 135px;
  width: 4px;
  height: 48px;
}

.hw-vol-down {
  left: -5px;
  top: 195px;
  width: 4px;
  height: 48px;
}

.hw-power {
  right: -5px;
  top: 140px;
  width: 4px;
  height: 64px;
}

/* Screen */
.iphone-screen {
  flex: 1;
  background: var(--iphone-screen-bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dynamic Island & Status Bar */
.dynamic-island-container {
  padding: 10px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  z-index: 30;
  position: relative;
}

.ios-status-time {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.island-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border: 1.5px solid #222;
  border-radius: 50%;
}

.island-sensor {
  width: 6px;
  height: 6px;
  background: #09090b;
  border-radius: 50%;
}

.island-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
}

.island-dot {
  width: 6px;
  height: 6px;
  background: var(--cq-emerald);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.island-text {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

/* In-App Chat Header */
.chat-app-header {
  padding: 10px 18px;
  background: rgba(18, 20, 27, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cq-emerald), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--cq-emerald);
  border: 2px solid #0b0c10;
  border-radius: 50%;
}

.chat-title-wrap {
  display: flex;
  flex-direction: column;
}

.chat-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}

.verified-badge {
  background: #3b82f6;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-status {
  font-size: 12px;
  color: var(--cq-emerald);
  font-weight: 500;
}

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

.lang-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.lang-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.restart-bot-header-btn {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.restart-bot-header-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: var(--cq-emerald);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.restart-icon {
  font-size: 12px;
  display: inline-block;
  transition: transform 0.35s ease;
}

.restart-bot-header-btn:hover .restart-icon {
  transform: rotate(-180deg);
}

.restart-label {
  font-size: 11px;
  letter-spacing: 0.2px;
}

/* Font Size Adjustment Controls */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 2px 4px;
}

.font-size-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  letter-spacing: 0.3px;
  min-width: 24px;
}

.font-size-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.font-size-btn:active {
  transform: scale(0.92);
}

.font-size-btn--plus {
  color: var(--cq-emerald);
}

.font-size-btn--plus:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

/* Font scale applied to the chat conversation area via CSS variable */
#chat-stream {
  font-size: calc(1em * var(--chat-font-scale, 1));
}

/* Conversation Scroll Area */
.chat-conversation-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: rgba(16, 185, 129, 0.5) rgba(0, 0, 0, 0.3);
}

.chat-conversation-area::-webkit-scrollbar {
  width: 10px;
}

.chat-conversation-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin: 8px 0;
}

.chat-conversation-area::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.45);
  border: 2px solid rgba(11, 12, 16, 0.9);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-conversation-area::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.chat-conversation-area::-webkit-scrollbar-thumb:active {
  background: var(--cq-emerald);
}

/* Chat Bubbles */
.message-bubble {
  max-width: 90%;
  font-size: 15px;
  line-height: 1.65;
  border-radius: 18px;
  padding: 12px 16px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  word-break: break-word;
}

.bot-msg {
  align-self: flex-start;
  background: #191c26;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.system-card {
  align-self: stretch;
  background: rgba(23, 26, 36, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Typing Indicator */
.typing-indicator-bubble {
  align-self: flex-start;
  background: #191c26;
  padding: 10px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--cq-emerald);
  border-radius: 50%;
  animation: typing-wave 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Interactive Options & Buttons in Chat */
.chat-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chat-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--cq-emerald);
  color: #a7f3d0;
  transform: translateX(2px);
}

.chat-btn-primary {
  background: linear-gradient(135deg, var(--cq-emerald), #059669);
  border: none;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--cq-emerald-glow);
}

.chat-btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
}

/* ==========================================================================
   EMAIL & LEGAL CONSENT CHECKBOXES IN IPHONE CHAT
   ========================================================================== */

.email-consent-card {
  background: #171a25;
  border: 1.5px solid var(--cq-emerald);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
}

.consent-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.consent-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 14px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.consent-check-input {
  width: 18px; height: 18px;
  accent-color: var(--cq-emerald);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.legal-popup-link {
  color: var(--cq-cyan);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
}

.legal-popup-link:hover {
  color: #38bdf8;
}

/* ==========================================================================
   SECOND CHANCE CONSENT CARD & TELEGRAM NOTICE
   ========================================================================== */

.second-chance-card {
  background: linear-gradient(135deg, rgba(23, 26, 37, 0.98), rgba(15, 23, 42, 0.98));
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  animation: fadeIn 0.25s ease-out;
}

.second-chance-lead {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 6px 0 12px;
}

.second-chance-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.benefit-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-text strong {
  font-size: 11px;
  color: #fff;
}

.benefit-text small {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.second-chance-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.second-chance-optin-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-align: center;
}

.second-chance-optin-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.second-chance-skip-btn {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.second-chance-skip-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.second-chance-tg-notice {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(14, 165, 233, 0.06));
  border: 1px dashed rgba(0, 136, 204, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
}

.tg-notice-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.tg-notice-text {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 8px;
}

.tg-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0088cc;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tg-notice-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.tg-dual-buttons-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tg-dual-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.tg-dual-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 136, 204, 0.35);
}

.tg-dual-telegram:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.tg-dual-continue {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.tg-dual-continue:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--cq-emerald);
  color: #ffffff;
  transform: translateY(-1px);
}

.tg-btn-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.tg-btn-arrow {
  font-size: 10px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Telegram Auth Styles */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider:not(:empty)::before {
  margin-right: 8px;
}

.auth-divider:not(:empty)::after {
  margin-left: 8px;
}

.auth-divider-mini {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0 8px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-divider-mini::before,
.auth-divider-mini::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider-mini:not(:empty)::before {
  margin-right: 6px;
}

.auth-divider-mini:not(:empty)::after {
  margin-left: 6px;
}

.telegram-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0088cc, #00a2ed);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.telegram-login-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0099e6, #00b0ff);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.tg-svg-icon {
  display: inline-block;
  vertical-align: middle;
}

.tg-auth-card {
  border-color: rgba(0, 136, 204, 0.4) !important;
  background: linear-gradient(180deg, rgba(0, 136, 204, 0.08), rgba(15, 17, 24, 0.95)) !important;
}

.tg-title {
  color: #38bdf8 !important;
}

.tg-auth-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
  text-align: center;
}

.tg-auth-mode-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.tg-btn-submit {
  background: linear-gradient(135deg, #0088cc, #0284c7) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.tg-btn-submit:hover {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
}

.tg-widget-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  min-height: 38px;
}

.tg-code-box {
  border-color: rgba(0, 136, 204, 0.4) !important;
}

.tg-code-box:focus {
  border-color: #0088cc !important;
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.5) !important;
}

/* Code Validation Input in Chat */
.otp-input-card {
  background: #171b26;
  border: 1.5px solid var(--cq-cyan);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  text-align: center;
}

.otp-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.otp-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.otp-digit-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.otp-box {
  width: 38px;
  height: 48px;
  background: #0b0d13;
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: monospace;
  transition: all 0.2s ease;
}

.otp-box:focus {
  border-color: var(--cq-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.otp-resend-row {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.otp-resend-btn {
  background: none;
  border: none;
  color: var(--cq-cyan);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 11px;
}

/* Recognized User Profile Card */
.recognized-profile-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1.5px solid var(--cq-emerald);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
}

.recognized-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.recognized-badge {
  background: var(--cq-emerald);
  color: #064e3b;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.recognized-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.profile-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.profile-pill-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  color: #cbd5e1;
}

.profile-pill-item strong {
  color: #fff;
}

/* ==========================================================================
   TERMS & CONDITIONS MODAL POPUP
   ========================================================================== */

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.85);
  backdrop-filter: blur(12px);
  z-index: calc(var(--cq-zindex, 999990) + 100) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-overlay.active {
  display: flex !important;
}

#uid-help-modal {
  z-index: calc(var(--cq-zindex, 999990) + 150) !important;
}

#uid-help-modal.active {
  display: flex !important;
}

.legal-modal-card {
  background: #131622;
  border: 1px solid var(--border-highlight);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(16, 185, 129, 0.1);
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-header {
  padding: 20px 28px;
  background: #171b29;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-shield {
  font-size: 24px;
}

.legal-modal-title h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.legal-sub {
  font-size: 11px;
  color: var(--cq-emerald);
  font-weight: 600;
}

.close-legal-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.close-legal-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--cq-danger);
  border-color: var(--cq-danger);
}

.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.legal-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.legal-section code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cq-emerald);
  font-size: 12px;
}

.legal-modal-footer {
  padding: 16px 28px;
  background: #171b29;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.primary-legal-btn {
  background: linear-gradient(135deg, var(--cq-emerald), #059669);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-legal-btn:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Exchange Card in Chat */
.exchange-select-card {
  background: #131620;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.exchange-select-card:hover {
  border-color: var(--cq-cyan);
}

.ex-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ex-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ex-code-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--cq-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  cursor: pointer;
}

.ex-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ex-card-actions {
  display: flex;
  gap: 8px;
}

.ex-link-btn {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.ex-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ex-validate-btn {
  flex: 1;
  background: var(--cq-emerald);
  color: #064e3b;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ex-validate-btn:hover {
  background: #34d399;
}

/* Saisie Input in Chat */
.input-prompt-box {
  background: #171b26;
  border: 1.5px solid var(--cq-emerald);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.prompt-label {
  font-size: 11px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 8px;
  display: block;
}

.prompt-input-row {
  display: flex;
  gap: 8px;
}

.prompt-input {
  flex: 1;
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.prompt-input:focus {
  border-color: var(--cq-emerald);
}

.prompt-submit-btn {
  background: var(--cq-emerald);
  color: #044332;
  border: none;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.prompt-submit-btn:hover {
  background: #34d399;
}

/* Validation Feedback Pills */
.validation-pill {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.valid-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.valid-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.valid-loading {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #bae6fd;
}

/* Quick Return / Restart Floating Strip */
.chat-quick-restart-bar {
  padding: 6px 14px;
  background: rgba(11, 13, 19, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

.dock-restart-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  outline: none;
}

.dock-restart-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--cq-emerald);
  color: #10b981;
  transform: scale(1.02);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.dock-restart-btn:hover .restart-icon {
  transform: rotate(-180deg);
}

/* Bottom Input Dock */
.chat-input-dock {
  padding: 10px 16px;
  background: rgba(15, 17, 24, 0.95);
  border-top: 1px solid var(--border-subtle);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* VIP Quick Access Bottom Menu */
.vip-dock-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.vip-pill-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--cq-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

.vip-uid-info {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.vip-dock-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vip-dock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  outline: none;
}

.vip-btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.vip-btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.vip-btn-text strong {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-btn-text small {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-btn-arrow {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vip-indicators-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.1));
  border-color: rgba(6, 182, 212, 0.35);
  color: #fff;
}

.vip-indicators-btn .vip-btn-text strong {
  color: #38bdf8;
}

.vip-indicators-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(16, 185, 129, 0.2));
  border-color: var(--cq-cyan);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.vip-indicators-btn:hover .vip-btn-arrow {
  transform: translateX(2px);
  opacity: 1;
}

.vip-courses-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.1));
  border-color: rgba(16, 185, 129, 0.35);
  color: #fff;
}

.vip-courses-btn .vip-btn-text strong {
  color: #34d399;
}

.vip-courses-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(245, 158, 11, 0.2));
  border-color: var(--cq-emerald);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.vip-courses-btn:hover .vip-btn-arrow {
  transform: translateX(2px);
  opacity: 1;
}

/* Teachable Hub Card */
.teachable-hub-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
  border: 1.5px solid var(--cq-emerald);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
}

.teachable-course-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 14px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.teachable-course-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.teachable-course-item span.chk {
  color: var(--cq-emerald);
  font-weight: 800;
}

/* iOS Home Indicator */
.ios-home-bar {
  width: 130px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  margin: 8px auto 4px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes ping {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes typing-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ==========================================================================
   UID HELP VISUAL MODAL & TAB SYSTEM
   ========================================================================== */

.btn-uid-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--cq-cyan);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.btn-uid-help:hover {
  color: #67e8f9;
}

.uid-tab-header {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
}

.uid-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uid-tab-btn.active {
  background: var(--surface-card);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.uid-tab-btn#tab-btn-weex.active {
  color: var(--cq-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.uid-tab-btn#tab-btn-bitunix.active {
  color: var(--cq-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.uid-step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.uid-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.uid-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--cq-emerald);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.uid-step-item strong {
  font-size: 15px;
  color: #fff;
  display: block;
}

.uid-step-item p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.uid-visual-mock {
  background: #090a0f;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}

.mock-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--cq-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mock-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.mock-uid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  color: #cbd5e1;
}

.mock-copy-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--cq-emerald);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.mock-partner-tag {
  margin-top: 10px;
  padding: 5px 8px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cq-emerald);
  text-align: center;
}

/* ==========================================================================
   AFFILIATION RECOVERY CARD (P0 RETENTION)
   ========================================================================== */

.affiliation-recovery-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

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

.recovery-icon {
  font-size: 18px;
}

.recovery-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
}

.recovery-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.recovery-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.recovery-option-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.recovery-option-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recovery-option-text {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.recovery-copy-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recovery-msg-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.recovery-copy-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.recovery-copy-btn:hover {
  background: rgba(245, 158, 11, 0.35);
}

.recovery-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recovery-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

.recovery-support-btn:hover {
  transform: translateY(-1px);
}

.recovery-alt-buttons {
  display: flex;
  gap: 8px;
}

.recovery-retry-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recovery-retry-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.recovery-continue-btn {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--cq-emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recovery-continue-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   INBOX SYSTEM & NOTIFICATION BADGES (v3.0.0)
   ========================================================================== */
.drawer-inbox-btn,
.chat-inbox-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-inbox-btn:hover,
.chat-inbox-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.inbox-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 10px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #090a0f;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.85);
  animation: inbox-badge-pulse 2s infinite ease-in-out;
}

@keyframes inbox-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.85); }
  50% { transform: scale(1.15); box-shadow: 0 0 16px rgba(239, 68, 68, 1); }
}

.inbox-modal-card {
  max-width: 580px;
  max-height: 85vh;
}

.inbox-modal-body {
  max-height: 55vh;
  overflow-y: auto;
  padding: 16px 20px;
}

.inbox-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-msg-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.inbox-msg-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.inbox-msg-card.unread {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.inbox-msg-card.unread::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.inbox-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-right: 18px;
}

.inbox-msg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inbox-badge-tradingview { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.inbox-badge-uid { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.inbox-badge-teachable { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.inbox-badge-general { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.inbox-msg-time {
  font-size: 11px;
  color: #64748b;
}

.inbox-msg-subject {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px;
  line-height: 1.4;
}

.inbox-msg-body {
  font-size: 13px;
  line-height: 1.65;
  color: #cbd5e1;
}

.inbox-msg-body strong { color: #ffffff; }

.inbox-msg-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #10b981;
  font-family: monospace;
  font-size: 12px;
}

.inbox-msg-body a {
  color: #34d399;
  text-decoration: underline;
  font-weight: 600;
}

.inbox-mark-read-btn {
  background: transparent;
  border: none;
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.inbox-mark-read-btn:hover {
  background: rgba(16, 185, 129, 0.12);
}


/* --- CRO HIGH CONVERSION TAB OVERRIDES --- */
.cq-side-tab-90 .side-tab-label {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
}

.cq-side-tab-90 .side-tab-label .tab-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #ffffff 0%, #f9b707 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: block !important;
  line-height: 1.2 !important;
}

.cq-side-tab-90 .side-tab-label .tab-sub {
  font-size: 10px !important;
  color: #00e5ff !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  display: block !important;
  line-height: 1.2 !important;
}

.cq-side-tab-90 .side-tab-icon {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  background: linear-gradient(135deg, #f9b707, #ff9800) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 20px rgba(249, 183, 7, 0.6) !important;
}

.cq-side-tab-90 .side-tab-icon::after {
  content: '1' !important;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #ff334b !important;
  color: #ffffff !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #040914 !important;
  box-shadow: 0 0 10px #ff334b !important;
}

/* ==========================================================================
   DRAWER FEED BUTTON (📡 Flux VIP in top bars)
   ========================================================================== */

.drawer-feed-btn {
  display: none;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  padding: 5px 10px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-feed-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(0, 229, 255, 0.18));
  border-color: #a78bfa;
  color: #ede9fe;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.chat-feed-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-size: 14px;
}

.chat-feed-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: #a78bfa;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.feed-badge-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  border: 2px solid #090a0f;
  animation: feed-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes feed-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  50% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0); }
}

/* ==========================================================================
   VIP FEED BUTTON IN DOCK MENU (3rd button)
   ========================================================================== */

.vip-feed-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(0, 229, 255, 0.08));
  border-color: rgba(139, 92, 246, 0.35);
  color: #fff;
}

.vip-feed-btn .vip-btn-text strong {
  color: #c4b5fd;
}

.vip-feed-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 229, 255, 0.15));
  border-color: #a78bfa;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.vip-feed-btn:hover .vip-btn-arrow {
  transform: translateX(2px);
  opacity: 1;
}

/* Update dock grid to accommodate 3 buttons */
.vip-dock-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

/* ==========================================================================
   VIP FEED MODAL
   ========================================================================== */

.vip-feed-modal-card {
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.vip-feed-modal-header {
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

/* TOOLBAR: Search + Filter Pills */
.vip-feed-toolbar {
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-feed-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 7px 12px;
  transition: border-color 0.2s ease;
}

.vip-feed-search-wrap:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.vip-search-icon {
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.6;
}

#vip-feed-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

#vip-feed-search::placeholder {
  color: #64748b;
}

.vip-feed-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.vip-feed-filters::-webkit-scrollbar { display: none; }

.vip-filter-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vip-filter-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.08);
}

.vip-filter-pill.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(0, 229, 255, 0.1));
  border-color: rgba(139, 92, 246, 0.55);
  color: #ede9fe;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* MODAL BODY */
.vip-feed-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  max-height: calc(90vh - 260px);
}

/* LOADING SPINNER */
.vip-feed-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: vip-feed-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes vip-feed-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* FEED LIST */
.vip-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FEED CARD (base) */
.vip-feed-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.vip-feed-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* FEED CARD HEADER */
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.feed-badge-signal {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.feed-badge-podcast {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.feed-badge-analysis {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.feed-badge-sub, .feed-badge-dir {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

/* SIGNAL CARD */
.feed-type-signal {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
}

.feed-signal-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

.signal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.signal-metric-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.signal-metric-box.stop-loss {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.signal-metric-box.take-profit {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.metric-label {
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-val {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-metric-box.stop-loss .metric-val { color: #f87171; }
.signal-metric-box.take-profit .metric-val { color: #34d399; }

.feed-signal-content, .feed-analysis-content {
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.feed-signal-content strong, .feed-analysis-content strong { color: #fff; }
.feed-signal-content code, .feed-analysis-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: #10b981;
  font-size: 11px;
}

/* FEED CARD ACTIONS */
.feed-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.feed-copy-setup-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feed-copy-setup-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.feed-copy-setup-btn.copied {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.feed-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.35);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feed-tg-btn:hover {
  background: rgba(0, 136, 204, 0.25);
  border-color: #0088cc;
  color: #7dd3fc;
}

/* PODCAST CARD */
.feed-type-podcast {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent);
}

.feed-podcast-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

.feed-podcast-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 12px;
}

.podcast-player-slot {
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
}

.podcast-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.podcast-play-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(0, 229, 255, 0.18));
  border-color: #8b5cf6;
  color: #ede9fe;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.play-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.feed-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.feed-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* ANALYSIS CARD */
.feed-type-analysis {
  border-color: rgba(0, 229, 255, 0.18);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), transparent);
}

.feed-analysis-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

/* TAGS */
.feed-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.feed-tag {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 7px;
}

/* FEED CARD FOOTER */
.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-timestamp {
  font-size: 11px;
  color: #475569;
}

.feed-ext-link {
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.feed-ext-link:hover {
  color: #94a3b8;
}

/* MODAL FOOTER */
.vip-feed-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-feed-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-feed-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-feed-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.vip-feed-test-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-feed-test-toggle:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.5);
}

.vip-feed-test-toggle.active-test {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ==========================================================================
   EXPULSION CARD (CryptoAds J+15)
   ========================================================================== */

.vip-expulsion-container {
  padding: 4px;
}

.vip-expulsion-card {
  border-radius: 16px;
  border: 2px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(17, 24, 39, 0.95));
  overflow: hidden;
}

.expulsion-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 12px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.12));
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.expulsion-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.expulsion-badge {
  font-size: 9px;
  font-weight: 900;
  color: #fca5a5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.expulsion-title {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.expulsion-desc {
  margin: 10px 20px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #cbd5e1;
}

.expulsion-account-box {
  margin: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.acc-lbl {
  color: #64748b;
  font-weight: 600;
}

.acc-val {
  color: #e2e8f0;
  font-weight: 700;
}

.acc-val code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fca5a5;
  font-size: 11px;
}

.expulsion-steps {
  margin: 0 20px 14px;
}

.expulsion-steps h4 {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expulsion-steps ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expulsion-steps li {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
}

.expulsion-steps code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.expulsion-actions {
  display: flex;
  gap: 8px;
  margin: 0 20px 14px;
  flex-wrap: wrap;
}

.expulsion-btn-broker {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: #b91c1c !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.expulsion-btn-broker:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-1.5px);
}

.expulsion-btn-support {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-decoration: none;
}

.expulsion-test-hint {
  padding: 10px 20px 14px;
  font-size: 10px;
  color: #475569;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

