/* =========================================
   mobile.css - Mobile-Specific Layouts
   ========================================= */

@media (max-width: 1023px) {

  /* HIDE DESKTOP ELEMENTS */
  .layout,
  .desktop-only {
    display: none !important;
  }

  .mobile-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }

  /* Add floating particles for fun background */
  .mobile-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
      radial-gradient(circle at 20% 50%,
        rgba(0, 220, 130, 0.1) 0%,
        transparent 50%),
      radial-gradient(circle at 80% 80%,
        rgba(168, 85, 247, 0.08) 0%,
        transparent 50%),
      radial-gradient(circle at 40% 20%,
        rgba(14, 165, 233, 0.08) 0%,
        transparent 50%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

  /* =========================================
     Mobile Header
     ========================================= */
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    padding-top: var(--safe-area-top);
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    transition: all var(--transition-base);
  }

  .mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    height: var(--mobile-header-height);
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }

  .header-content h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
  }

  .header-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
  }

  /* Mobile Logo with Animation */
  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
  }

  .mobile-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
    animation: pulse 4s ease-in-out infinite;
  }

  .mobile-logo-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .mobile-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-base);
  }

  .mobile-user-avatar:active {
    transform: scale(0.95);
  }

  /* Enhanced Menu Toggle */
  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
  }

  .menu-toggle:active {
    transform: scale(0.95);
    background: var(--bg-elevated);
  }

  /* Animated menu toggle with emoji */
  .menu-toggle::after {
    content: "☰";
    color: rgb(0, 228, 30);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    transition: all 0.3s;
  }

  .menu-toggle.active::after {
    content: "✕";
    transform: translate(-50%, -50%) rotate(180deg);
  }

  /* Hide the spans when using emoji */
  .menu-toggle .menu-icon {
    display: none;
  }

  /* =========================================
     Mobile Chat Container
     ========================================= */
  .mobile-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--mobile-header-height) + var(--safe-area-top));
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
  }

  /* Phase Bar - Fixed under header */
  .mobile-phase-bar {
    padding: 14px 20px;
    background: linear-gradient(135deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
  }

  .mobile-phase-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        transparent);
    animation: shimmer 3s infinite;
  }

  .phase-label-mobile {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    background: rgba(0, 220, 130, 0.1);
    border: 1px solid rgba(0, 220, 130, 0.2);
    border-radius: 20px;
    white-space: nowrap;
    animation: phasePulse 2s ease-in-out infinite;
  }

  @keyframes phasePulse {

    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }

    50% {
      opacity: 0.9;
      transform: scale(1.02);
    }
  }

  .phase-steps-mobile {
    display: flex;
    gap: 8px;
    flex: 1;
  }

  .phase-step-mobile {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }

  .phase-step-mobile.active {
    background: var(--accent-gradient);
  }

  /* =========================================
     Mobile Messages
     ========================================= */
  .mobile-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 100px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    min-height: 0;
  }

  .mobile-messages::-webkit-scrollbar {
    display: none;
  }

  /* Message Bubbles */
  .mobile-message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.2s;
  }

  .mobile-message:active {
    transform: scale(0.98);
  }

  @keyframes messageSlide {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.9);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .mobile-message.user {
    justify-content: flex-end;
  }

  .mobile-message.assistant {
    justify-content: flex-start;
  }

  .mobile-message-content {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-message.user .mobile-message-content {
    align-items: flex-end;
  }

  .mobile-message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
  }

  .mobile-message.assistant .mobile-message-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 4px;
  }

  .mobile-message.user .mobile-message-bubble {
    background: var(--accent-gradient);
    color: white;
    border-radius: 18px 18px 4px 18px;
  }

  .mobile-message-time {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 0 4px;
  }

  /* Floating emoji reactions (fun element) */
  .message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .mobile-message:hover .message-reactions {
    opacity: 1;
  }

  .reaction {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .reaction:active {
    transform: scale(1.3) rotate(15deg);
  }

  /* Mobile Typing Indicator */
  .mobile-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
  }

  .typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 18px 18px 18px 4px;
  }

  .typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: typing 1.4s infinite;
  }

  .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
  }

  .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
  }

  /* =========================================
     Quick Actions - Above Input
     ========================================= */
  .mobile-quick-actions {
    position: fixed;
    bottom: calc(70px + var(--safe-area-bottom));
    left: 0;
    right: 0;
    padding: 0 12px;
    z-index: 80;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .quick-actions-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quick-actions-scroll::-webkit-scrollbar {
    display: none;
  }

  .quick-action-chip {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
  }

  /* Add these right below .quick-action-chip */

  .quick-action-chip.enrich {
    border-color: var(--blue-accent);
    color: var(--blue-accent);
    background: rgba(14, 165, 233, 0.08);
    /* Soft blue tint */
  }

  .quick-action-chip.pitch {
    border-color: var(--purple-accent);
    color: var(--purple-accent);
    background: rgba(168, 85, 247, 0.08);
    /* Soft purple tint */
  }

  .quick-action-chip.pdf {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 220, 130, 0.08);
    /* Soft green tint */
  }

  .quick-action-chip.sheets {
    border-color: var(--orange-accent);
    color: var(--orange-accent);
    background: rgba(251, 146, 60, 0.08);
    /* Soft orange tint */
  }

  /* Add a press/active state for better mobile UX */
  .quick-action-chip:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* =========================================
     Mobile Input Container
     ========================================= */
  .mobile-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 12px;
    padding-bottom: calc(12px + var(--safe-area-bottom));
    z-index: 90;
    animation: slideUp 0.3s ease;
  }

  .mobile-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 8px 8px 16px;
    transition: all var(--transition-base);
  }

  .mobile-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 220, 130, 0.1);
  }

  .mobile-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    padding: 0;
    resize: none;
    max-height: 100px;
    line-height: 1.5;
  }

  .mobile-input-field::placeholder {
    color: var(--text-tertiary);
  }

  .mobile-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 220, 130, 0.3);
  }

  .mobile-send-btn:active {
    transform: scale(0.9);
  }

  .mobile-send-btn:disabled {
    opacity: 0.5;
  }

  /* =========================================
     Mobile Drawer
     ========================================= */
  .mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--transition-base),
      visibility var(--transition-base);
  }

  .mobile-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: linear-gradient(135deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 220, 130, 0.1);
    overflow: hidden;
  }

  .mobile-drawer.show {
    transform: translateX(0);
  }

  /* Animated gradient background for drawer */
  .mobile-drawer::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        var(--accent-primary) 0%,
        transparent 70%);
    opacity: 0.1;
    animation: floatGlow 15s ease-in-out infinite;
  }

  @keyframes floatGlow {

    0%,
    100% {
      transform: translate(0, 0) scale(1);
    }

    33% {
      transform: translate(50px, -50px) scale(1.1);
    }

    66% {
      transform: translate(-50px, 50px) scale(0.9);
    }
  }

  /* Drawer Header */
  .drawer-header {
    padding: 24px 20px;
    padding-top: calc(24px + var(--safe-area-top));
    background: linear-gradient(135deg,
        var(--accent-gradient) 0%,
        rgba(0, 220, 130, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
  }

  .drawer-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .drawer-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: avatarPulse 3s ease-in-out infinite;
  }

  @keyframes avatarPulse {

    0%,
    100% {
      transform: scale(1);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    50% {
      transform: scale(1.05);
      box-shadow: 0 8px 24px rgba(0, 220, 130, 0.3);
    }
  }

  .drawer-user-info {
    flex: 1;
  }

  .drawer-user-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .drawer-user-email {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
  }

  /* Drawer Action Buttons */
  .drawer-actions {
    display: flex;
    gap: 10px;
  }

  .drawer-btn {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .drawer-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition:
      width 0.6s,
      height 0.6s;
  }

  .drawer-btn:active::before {
    width: 300px;
    height: 300px;
  }

  .drawer-btn.primary {
    background: linear-gradient(135deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
  }

  .drawer-btn.primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 220, 130, 0.2);
  }

  .drawer-btn.secondary {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    /* Slightly thicker border for definition */
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Spaces out the emojis from the text nicely */
    transition: all 0.2s ease;
  }

  .drawer-btn.secondary:active {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(0.98);
  }

  /* Make Clear All button red like desktop */
  #mobileClearAllBtn {
    background: linear-gradient(135deg, var(--red-accent), #ec4458);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  }

  #mobileClearAllBtn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.2);
  }

  /* Drawer Content - Session List */
  .drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    min-height: 0;
  }

  .drawer-content::-webkit-scrollbar {
    width: 4px;
  }

  .drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }

  .drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    padding-left: 8px;
    letter-spacing: 1px;
    opacity: 0.7;
  }

  .session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* 2. Fix Chat History Default State */
  .session-item {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-hover) !important;
    /* Visible border */
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease;
  }

  .session-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary) !important;
  }

  .session-item-meta {
    font-size: 11px;
    color: var(--text-tertiary);
  }

  .session-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.5s;
  }

  .session-item:hover::before {
    left: 100%;
  }

  .session-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
  }

  /* Make the active session perfectly match the desktop green */
  .session-item.active {
    background: linear-gradient(135deg, #00c091 0%, #00a37b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 192, 145, 0.15) !important;
    transform: scale(1.02);
    animation: none;
    /* Removed the continuous pulsing glow to match desktop's clean look */
  }

  /* 3. FORCE the Active Green State for Chat History */
  #mobileSessionList .session-item.active {
    background: linear-gradient(135deg, #00c091 0%, #00a37b 100%) !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 12px rgba(0, 192, 145, 0.3) !important;
    transform: scale(1.02);
  }

  #mobileSessionList .session-item.active .session-item-title,
  #mobileSessionList .session-item.active .session-item-meta {
    color: #ffffff !important;
    /* Forces text to white when green */
  }

  @keyframes sessionGlow {

    0%,
    100% {
      box-shadow: 0 8px 24px rgba(0, 220, 130, 0.3);
    }

    50% {
      box-shadow: 0 8px 32px rgba(0, 220, 130, 0.5);
    }
  }

  .session-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .session-item-meta {
    font-size: 11px;
    opacity: 0.7;
  }

  .session-item.active .session-item-meta {
    opacity: 0.9;
  }

  .session-delete {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--red-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
  }

  .session-item:hover .session-delete {
    opacity: 1;
  }

  .session-delete:active {
    transform: translateY(-50%) scale(0.9);
  }

  /* Drawer Footer */
  /* Drawer Footer */
  .drawer-footer {
    padding: 20px;
    background: var(--bg-primary);
    /* Clean matching background instead of grey */
    border-top: 1px solid var(--border-color);
    padding-bottom: calc(20px + var(--safe-area-bottom));
    position: relative;
    z-index: 1;
  }

  .theme-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
  }

  .theme-switcher::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
  }

  .theme-switcher.light::before {
    transform: translateX(100%);
  }

  .theme-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 1;
    position: relative;
    transition: all 0.3s;
  }

  .theme-option.active {
    color: white;
  }

  .logout-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid rgba(244, 63, 94, 0.3);
    color: var(--red-accent);
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
  }

  .logout-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(244, 63, 94, 0.1);
    transition: left 0.3s;
  }

  .logout-btn:hover::before {
    left: 0;
  }

  .logout-btn:active {
    transform: scale(0.98);
  }
}

/* ── Stop Button — Mobile ──────────────────────────────────────────── */
.mobile-stop-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.1s;
}

.mobile-stop-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

.mobile-stop-btn:active {
  transform: scale(0.92);
}

body.light-mode .mobile-stop-btn {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}