    /* 1. Temizle/Sıfırla Butonları */
    html body #app-root .filter-clear-all-btn,
    html body #app-root .filter-clear-all-quick {
      color: #94a3b8 !important;
      background: rgba(255, 255, 255, 0.03) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      transition: all 0.2s ease !important;
    }
    html body #app-root .filter-clear-all-btn:hover:not(:disabled),
    html body #app-root .filter-clear-all-quick:hover:not(:disabled) {
      color: #f87171 !important;
      background: rgba(248, 113, 113, 0.1) !important;
      border-color: rgba(248, 113, 113, 0.3) !important;
    }
    html body #app-root .filter-clear-all-btn:disabled,
    html body #app-root .filter-clear-all-btn.is-disabled,
    html body #app-root .filter-clear-all-quick:disabled,
    html body #app-root .filter-clear-all-quick.is-disabled {
      opacity: 0.35 !important;
      color: #64748b !important;
      background: rgba(255, 255, 255, 0.01) !important;
      border-color: rgba(255, 255, 255, 0.03) !important;
      cursor: not-allowed !important;
    }

    /* 2. Aktif Tab (Stok Havuzu vb.) */
    html body #app-root .main-nav-btn.active,
    html body #app-root .tab-btn.active,
    html body #app-root .nav-tabs .nav-link.active {
      background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
      border: none !important;
      color: #fff !important;
    }

    /* 3. WhatsApp ve Fiyat Yeşilleri */
    html body #app-root .product-price,
    html body #app-root .hizli-price-val,
    html body #app-root .whatsapp-btn-text,
    html body #app-root .price-text,
    html body #app-root .devices-table td.fiyat,
    html body #app-root .hizli-piyasa-value {
      color: #34d399 !important; /* Zümrüt Yeşili */
    }
    html body #app-root .whatsapp-btn {
      background: linear-gradient(135deg, #059669, #10b981) !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
      transition: all 0.2s ease !important;
    }
    html body #app-root .whatsapp-btn:hover {
      background: linear-gradient(135deg, #047857, #059669) !important;
      box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
      transform: translateY(-1px) !important;
    }

    /* 4. Takiplerim, Piyasa Ort., Takas Hesaplayıcı Butonları */
    html body #app-root .stock-tools-tabs .stock-tool-tab,
    html body #app-root .stock-tools-tabs button,
    html body #app-root .stock-tools-bar .stock-tool-btn {
      background: linear-gradient(135deg, rgba(93, 168, 232, 0.03), rgba(93, 168, 232, 0.08)) !important;
      border: 1px solid rgba(93, 168, 232, 0.18) !important;
      color: #9fb3ca !important;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
      border-radius: 12px !important;
      font-weight: 500 !important;
    }
    html body #app-root .stock-tools-tabs .stock-tool-tab:hover,
    html body #app-root .stock-tools-tabs button:hover,
    html body #app-root .stock-tools-bar .stock-tool-btn:hover {
      background: linear-gradient(135deg, rgba(93, 168, 232, 0.08), rgba(93, 168, 232, 0.14)) !important;
      border-color: rgba(93, 168, 232, 0.38) !important;
      color: #e8f4ff !important;
      box-shadow: 0 4px 12px rgba(93, 168, 232, 0.08) !important;
      transform: translateY(-1px) !important;
      font-weight: 500 !important;
    }
    html body #app-root .stock-tools-tabs .stock-tool-tab:active,
    html body #app-root .stock-tools-tabs button:active,
    html body #app-root .stock-tools-bar .stock-tool-btn:active {
      transform: translateY(0) scale(0.98) !important;
    }
    html body #app-root .stock-tools-tabs .stock-tool-tab.is-active,
    html body #app-root .stock-tools-tabs button.is-active,
    html body #app-root .stock-tools-bar .stock-tool-btn.is-active,
    html body #app-root .stock-tools-tabs .stock-tool-tab.active,
    html body #app-root .stock-tools-tabs button.active,
    html body #app-root .stock-tools-bar .stock-tool-btn.active {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(93, 168, 232, 0.22)) !important;
      border-color: rgba(93, 168, 232, 0.55) !important;
      color: #ffffff !important;
      font-weight: 500 !important;
      box-shadow: 0 0 14px rgba(59, 130, 246, 0.22) !important;
    }

    /* Çevrimdışı Mod Uyarı Şeridi */
    .offline-indicator-bar {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: linear-gradient(135deg, #ef4444, #b91c1c);
      color: #fff;
      text-align: center;
      padding: 0.35rem 1rem;
      font-size: 0.82rem;
      font-weight: 500;
      z-index: 9999;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
      animation: slideDown 0.3s ease forwards;
    }
    .offline-indicator-bar.online-restored {
      background: linear-gradient(135deg, #10b981, #047857) !important;
    }

    /* 💬 P2P ESNAF CHAT STYLES */
    .chat-floating-widget {
      position: fixed;
      right: 24px;
      bottom: 28px;
      z-index: 99990 !important;
      display: none;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.compare-bar-open .chat-floating-widget {
      bottom: 155px !important;
    }

    body.compare-bar-open .scroll-top-btn {
      bottom: 155px !important;
    }

    html.modal-lock-active .chat-floating-widget,
    html.modal-lock-active .chat-trash-zone {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    .chat-bubbles-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
    .chat-bubble-head {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1d6fe5, #2563eb);
      color: #ffffff;
      font-weight: 700;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
      position: relative;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid rgba(255,255,255,0.1);
      touch-action: none !important;
    }
    .chat-bubble-head:hover {
      transform: scale(1.1) translateY(-2px);
      box-shadow: 0 12px 24px rgba(37,99,235,0.4);
      border-color: rgba(255,255,255,0.4);
    }
    .chat-bubble-head.active {
      border-color: #34d399;
      box-shadow: 0 0 15px rgba(52,211,153,0.5);
    }
    .chat-bubble-dot {
      position: absolute;
      top: 0;
      right: 0;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: #ef4444;
      border: 2px solid #050a12;
      animation: pulse 2s infinite;
    }
    .chat-global-btn {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #ffffff;
      color: #0c182b;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(0,0,0,0.35);
      position: relative;
      transition: all 0.25s ease;
    }
    .chat-global-btn:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    }
    .chat-inbox-btn {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #ffffff;
      color: #0c182b;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(0,0,0,0.35);
      position: relative;
      transition: all 0.25s ease;
    }
    .chat-inbox-btn:hover {
      transform: translateY(-3px) scale(1.05);
      background: #f8fafc;
      box-shadow: 0 12px 28px rgba(255,255,255,0.15);
    }
    .chat-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      background-color: #ef4444;
      color: #ffffff;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 10px;
      border: 2px solid #050a12;
    }
    .chat-badge.hidden {
      display: none !important;
    }
    .chat-global-btn {
      position: relative;
    }
    .chat-global-activity-dot {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 9px;
      height: 9px;
      background-color: #64748b; /* slate / sessiz gri */
      border-radius: 50%;
      border: 1.5px solid #050a12;
      animation: pulse-dot-global 2.5s infinite;
    }
    .chat-global-activity-dot.hidden {
      display: none !important;
    }
    @keyframes pulse-dot-global {
      0% {
        box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.5);
      }
      70% {
        box-shadow: 0 0 0 6px rgba(100, 116, 139, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(100, 116, 139, 0);
      }
    }

    /* ======= DESKTOP: Sag alt Messenger tarzi panel ======= */
    @media (min-width: 768px) {
      .chat-inbox-modal, .chat-room-modal {
        display: none;
        position: fixed;
        /* Ekranin sag altinda sabitlenir (balonlarin solunda, 96px offset), overlay yok */
        inset: auto 96px 0 auto !important;
        bottom: 0 !important;
        z-index: 999999 !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
      }
      .chat-inbox-modal.open, .chat-room-modal.open {
        display: flex;
      }
      /* Desktop overlay transparan – tiklayinca panel kapansin ama sayfayi karatmasin */
      .chat-inbox-modal .chat-inbox-overlay,
      .chat-room-modal .chat-room-overlay {
        display: none;
      }
      .chat-inbox-card, .chat-room-card {
        background: #0a1424 !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) !important;
        width: 380px !important;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        height: 500px !important;
        max-height: min(70vh, 560px);
        border-radius: 16px 16px 0 0 !important;
        animation: chatPanelSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .chat-room-messages {
        flex: 1;
        padding: 20px;
        padding-bottom: 30px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: 120px !important;
        max-height: none !important;
        background: rgba(0,0,0,0.15);
      }
      .chat-inbox-list {
        flex: 1;
        overflow-y: auto;
        max-height: none !important;
        padding: 8px 0;
      }
      .chat-mobile-horizontal-bubbles {
        display: none !important;
      }
    }

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

    /* ======= MOBIL: Asagidan acilan cekmece (bottom sheet) ======= */
    @media (max-width: 767px) {
      .chat-floating-widget {
        right: 16px;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      body.compare-bar-open .chat-floating-widget {
        bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
      }
      .genel-compare-bar {
        left: 14px !important;
        right: 14px !important;
        transform: translate3d(0, 150%, 0) !important;
        width: auto !important;
        max-width: none !important;
        bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 99980 !important;
        display: grid !important;
        grid-template-columns: auto 1fr 1fr !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 0.45rem !important;
        padding: 0.45rem !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
      }
      .genel-compare-bar.compare-bar-visible {
        transform: translate3d(0, 0, 0) !important;
        animation: none !important;
      }
      .genel-compare-bar .genel-compare-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        min-height: 2rem !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 0.55rem !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.48) !important;
        border: 1px solid rgba(148, 163, 184, 0.16) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.76rem !important;
        line-height: 1 !important;
        margin-right: 0 !important;
      }
      .genel-compare-bar #genel-compare-count {
        min-width: 1.35rem !important;
        height: 1.35rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: rgba(96, 165, 250, 0.22) !important;
        color: #dbeafe !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
      }
      .genel-compare-bar .genel-compare-btn,
      .genel-compare-bar .genel-compare-clear-btn {
        width: 100% !important;
        min-height: 2rem !important;
        padding: 0.34rem 0.44rem !important;
        font-size: 0.76rem !important;
        border-radius: 12px !important;
        justify-content: center !important;
        gap: 0.22rem !important;
      }
      .genel-compare-bar .compare-btn-icon {
        width: 13px !important;
        height: 13px !important;
      }
      body.theme-light .genel-compare-bar .genel-compare-count,
      body.light-theme .genel-compare-bar .genel-compare-count {
        background: rgba(241, 245, 249, 0.92) !important;
        border-color: rgba(148, 163, 184, 0.28) !important;
        color: #334155 !important;
      }
      body.theme-light .genel-compare-bar #genel-compare-count,
      body.light-theme .genel-compare-bar #genel-compare-count {
        background: rgba(37, 99, 235, 0.12) !important;
        color: #1d4ed8 !important;
      }
      .chat-global-btn,
      .chat-inbox-btn {
        width: 44px !important;
        height: 44px !important;
      }
      .chat-global-btn svg,
      .chat-inbox-btn svg {
        width: 20px !important;
        height: 20px !important;
      }
      .chat-bubble-head {
        width: 42px !important;
        height: 42px !important;
      }
      .scroll-top-btn {
        width: 44px !important;
        height: 44px !important;
        right: auto !important;
        bottom: auto !important;
        position: static !important;
        margin-top: 10px !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
      }
      body.compare-bar-open .scroll-top-btn {
        bottom: auto !important;
      }
      .scroll-top-btn svg {
        width: 18px !important;
        height: 18px !important;
      }
      .chat-floating-widget.chat-room-open {
        display: none !important;
      }
      .chat-inbox-modal, .chat-room-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999999;
        align-items: flex-end;
        justify-content: stretch;
        padding: 0 !important;
        margin: 0 !important;
      }
      .chat-inbox-modal.open, .chat-room-modal.open {
        display: flex;
      }
      .chat-inbox-modal .chat-inbox-overlay,
      .chat-room-modal .chat-room-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
      }
      .chat-inbox-card, .chat-room-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a1424 !important;
        border: none !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 0 -12px 40px rgba(0,0,0,0.5) !important;
        width: 100% !important;
        height: 85vh;
        min-height: 85vh;
        max-height: 94vh;
        border-radius: 20px 20px 0 0 !important;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        bottom: 0 !important;
        animation: chatSheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        overscroll-behavior: contain;
      }
      .chat-inbox-card {
        overflow: hidden !important;
      }
      .chat-room-card {
        overflow: visible !important;
      }
      /* Cekmece tutamac cizgisi */
      .chat-inbox-card::before, .chat-room-card::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255,255,255,0.15);
        margin: 10px auto 0;
        flex-shrink: 0;
      }
      .chat-room-messages {
        flex: 1;
        padding: 16px;
        padding-bottom: 40px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        max-height: none !important;
        background: rgba(0,0,0,0.15);
      }
      .chat-inbox-list {
        flex: 1;
        overflow-y: auto;
        max-height: none !important;
        padding: 8px 0;
      }
      .chat-input-area {
        padding: 8px 12px !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 8px !important;
      }
      .chat-input-area input {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 18px !important;
      }
      .chat-send-btn {
        width: 34px !important;
        height: 34px !important;
      }
      .chat-attach-img-btn {
        width: 34px !important;
        height: 34px !important;
      }
      .chat-mobile-horizontal-bubbles {
        display: flex;
        gap: 12px;
        padding: 10px 16px;
        overflow-x: auto;
        background: transparent !important;
        border-bottom: none !important;
        align-items: center;
        scrollbar-width: none;
        position: absolute !important;
        top: -62px !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000000 !important;
        pointer-events: none !important;
      }
      .chat-mobile-horizontal-bubbles::-webkit-scrollbar {
        display: none;
      }
      .chat-mobile-horizontal-bubbles.hidden {
        display: none !important;
      }
      .chat-horizontal-bubble {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1d6fe5, #2563eb);
        color: #ffffff;
        font-weight: 700;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        border: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: transform 0.2s ease;
        pointer-events: auto !important;
      }
      .chat-horizontal-bubble:hover {
        transform: scale(1.05);
      }
      .chat-horizontal-bubble-dot {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ef4444;
        border: 2px solid #050a12;
        animation: pulse 2s infinite;
      }
    }

    .chat-room-back {
      width: 36px !important;
      height: 36px !important;
      border-radius: 50% !important;
      background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
      color: #ffffff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      flex-shrink: 0 !important;
      cursor: pointer !important;
      border: none !important;
      padding: 0 !important;
      transition: transform 0.2s ease !important;
    }
    .chat-room-back:hover {
      transform: scale(1.05) !important;
      background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
    }

    @keyframes chatSheetSlideUp {
      from { transform: translateY(100%); }
      to   { transform: translateY(0); }
    }

    /* ======= ORTAK STILLER (desktop + mobil) ======= */
    .chat-modal-header {
      padding: 16px 20px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255,255,255,0.01);
    }
    .chat-modal-title {
      font-size: 17px;
      font-weight: 700;
      color: #ffffff;
      margin: 0;
    }
    .chat-modal-close, .chat-room-back {
      background: transparent;
      border: none;
      color: #94a3b8;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      border-radius: 50%;
      transition: all 0.2s ease;
    }
    .chat-modal-close:hover, .chat-room-back:hover {
      background: rgba(255,255,255,0.06);
      color: #ffffff;
    }

    .chat-search-wrap {
      padding: 12px 20px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .chat-search-input {
      width: 100%;
      padding: 8px 14px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(0,0,0,0.25);
      color: #ffffff;
      font-size: 13px;
    }
    .chat-search-input:focus {
      outline: none;
      border-color: #3b82f6;
    }

    /* Inbox List (fallback – media query'de override edilir) */
    .chat-inbox-list {
      flex: 1;
      overflow-y: auto;
      max-height: 450px;
      padding: 8px 0;
    }
    .chat-inbox-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 20px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .chat-inbox-item:hover {
      background: rgba(255,255,255,0.03);
    }
    .chat-inbox-item.unread {
      background: rgba(59,130,246,0.05);
    }
    .chat-avatar-circle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4f46e5, #7c3aed);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 13px;
      flex-shrink: 0;
    }
    .chat-item-details {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .chat-item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .chat-item-store-name {
      color: #ffffff;
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-item-time {
      font-size: 11px;
      color: #64748b;
    }
    .chat-item-body {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .chat-item-last-message {
      font-size: 12px;
      color: #94a3b8;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }
    .chat-inbox-item.unread .chat-item-last-message {
      color: #ffffff;
      font-weight: 500;
    }
    .chat-list-badge {
      background-color: #3b82f6;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 8px;
    }

    /* Chat Room (fallback – media query'de override edilir) */
    .chat-header-user-info {
      flex: 1;
      margin-left: 12px;
      min-width: 0;
    }
    .chat-room-status {
      font-size: 11px;
      color: #94a3b8;
      display: block;
      margin-top: 2px;
    }
    .chat-room-status.online {
      color: #34d399;
    }
    .chat-room-messages {
      flex: 1;
      padding: 20px;
      padding-bottom: 30px !important;
      overflow-y: auto;
      overscroll-behavior: contain;
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-height: 320px;
      max-height: 450px;
      background: rgba(0,0,0,0.15);
    }
    .chat-date-divider {
      text-align: center;
      position: relative;
      margin: 8px 0;
    }
    .chat-date-divider::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      height: 1px;
      background: rgba(255,255,255,0.06);
      z-index: 1;
    }
    .chat-date-divider span {
      background: #0a1424;
      padding: 2px 10px;
      font-size: 11px;
      color: #64748b;
      position: relative;
      z-index: 2;
      border-radius: 10px;
    }
    .chat-message-row {
      display: flex;
      width: 100%;
    }
    .chat-message-row.has-avatar {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chat-message-row.has-avatar .chat-msg-avatar {
      width: 32px;
      height: 32px;
      font-size: 10px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1d6fe5, #2563eb);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      flex-shrink: 0;
      margin-top: 0;
    }
    .chat-message-row.own {
      justify-content: flex-end;
    }
    .chat-message-row.incoming {
      justify-content: flex-start;
    }
    .chat-inbox-fab {
      position: absolute;
      right: 20px;
      bottom: 24px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1d6fe5, #2563eb);
      color: #ffffff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
      z-index: 99999 !important;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .chat-inbox-fab:hover {
      transform: scale(1.05);
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
    }
    .chat-message-bubble {
      max-width: 75%;
      border-radius: 12px;
      position: relative;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-sizing: border-box;
    }
    .chat-message-row.own .chat-message-bubble {
      background: #2b3d54; /* soft, premium navy-slate instead of screaming blue */
      color: #f1f5f9;
      border-bottom-right-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      padding: 5px 52px 5px 10px; /* own mesajlarında tik işareti olduğu için sağ padding daha fazla */
    }
    .chat-message-row.incoming .chat-message-bubble {
      background: #1e293b;
      color: #f1f5f9;
      border-bottom-left-radius: 4px;
      padding: 5px 46px 5px 10px; /* incoming mesajlarında tik olmadığı için 46px yeterli */
    }
    .chat-message-content {
      margin: 0;
      font-size: 13px;
      line-height: 1.35;
      word-break: break-word;
    }
    .chat-message-footer {
      position: absolute;
      bottom: 4px;
      right: 8px;
      display: flex;
      align-items: center;
      gap: 3px;
      font-size: 9px;
      color: rgba(255,255,255,0.4);
      line-height: 1;
      margin: 0;
      pointer-events: none;
    }
    .chat-message-row.incoming .chat-message-footer {
      color: #64748b;
    }
    .chat-tick {
      font-size: 11px;
      color: rgba(241, 245, 249, 0.45);
      margin-left: 2px;
    }
    .chat-tick.delivered {
      color: rgba(241, 245, 249, 0.7);
    }
    .chat-tick.read {
      color: #4ade80 !important; /* WhatsApp-style read colored tick, using highly visible green */
    }

    /* Product Preview inside bubble */
    .chat-msg-product-card {
      display: flex;
      gap: 10px;
      padding: 8px;
      background: rgba(0,0,0,0.2);
      border-radius: 10px;
      margin-bottom: 8px;
      cursor: pointer;
      border: 1px solid rgba(255,255,255,0.06);
      transition: background 0.2s ease;
    }
    .chat-msg-product-card:hover {
      background: rgba(0,0,0,0.3);
    }
    .chat-msg-product-img {
      width: 44px;
      height: 44px;
      object-fit: cover;
      border-radius: 6px;
      background: #fff;
    }
    .chat-msg-product-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      min-width: 0;
    }
    .chat-msg-product-model {
      font-size: 12px;
      color: #ffffff;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-msg-product-price {
      font-size: 11px;
      color: #34d399;
      font-weight: 500;
    }

    /* Attached Product in footer */
    .chat-product-preview-attach {
      padding: 10px 20px;
      background: rgba(0,0,0,0.3);
      border-top: 1px solid rgba(255,255,255,0.06);
      flex-shrink: 0 !important;
    }
    .chat-product-preview-attach.hidden {
      display: none !important;
    }
    .chat-attach-card {
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(255,255,255,0.04);
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.08);
      position: relative;
    }
    .chat-attach-img {
      width: 36px;
      height: 36px;
      object-fit: cover;
      border-radius: 4px;
      background: #fff;
    }
    .chat-attach-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .chat-attach-model {
      font-size: 12px;
      color: #ffffff;
    }
    .chat-attach-price {
      font-size: 11px;
      color: #34d399;
    }
    .chat-attach-close-btn {
      background: transparent;
      border: none;
      color: #94a3b8;
      font-size: 18px;
      cursor: pointer;
      padding: 0 4px;
    }
    .chat-attach-close-btn:hover {
      color: #ffffff;
    }

    /* Input area */
    .chat-input-area {
      padding: 16px 20px;
      border-top: 1px solid rgba(255,255,255,0.06);
      display: flex;
      gap: 12px;
      background: rgba(0,0,0,0.2);
      flex-shrink: 0 !important;
    }
    .chat-input-area input {
      flex: 1;
      padding: 10px 16px;
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: #ffffff;
      font-size: 13.5px;
    }
    .chat-input-area input:focus {
      outline: none;
      border-color: #3b82f6;
    }
    .chat-send-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1d6fe5, #2563eb);
      color: #ffffff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(37,99,235,0.25);
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .chat-send-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    }

    /* Fotoğraf Ekleme Butonu */
    .chat-attach-img-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: #94a3b8;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .chat-attach-img-btn:hover {
      background: rgba(255,255,255,0.08);
      color: #ffffff;
      transform: scale(1.05);
    }
    .chat-msg-sender-name {
      font-size: 11px;
      font-weight: 700;
      color: #a855f7;
      margin-bottom: 2px;
      line-height: 1.1;
      opacity: 0.95;
      display: block;
      text-align: left;
    }

    /* Sohbet Balonundaki Görsel */
    .chat-msg-media {
      width: 220px;
      height: 165px;
      max-width: 100%;
      border-radius: 12px;
      margin-top: 4px;
      margin-bottom: 4px;
      display: block;
      cursor: pointer;
      object-fit: cover;
      transition: opacity 0.2s ease;
      background: rgba(255, 255, 255, 0.05);
    }
    .chat-msg-media:hover {
      opacity: 0.9;
    }

    .chat-empty-state, .chat-loading, .chat-error {
      text-align: center;
      padding: 40px 20px;
      font-size: 13px;
      color: #64748b;
    }
    .chat-error {
      color: #ef4444;
    }

    /* 🗑️ CHAT HEAD TRASH ZONE (Sürükleyip Kapatma) */
    .chat-trash-zone {
      position: fixed;
      left: 50%;
      bottom: 40px;
      transform: translateX(-50%) translateY(120px);
      z-index: 99999999;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      pointer-events: none;
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
      opacity: 0;
    }
    .chat-trash-zone.visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    .chat-trash-circle {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(239, 68, 68, 0.16);
      border: 2px dashed #ef4444;
      color: #ef4444;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
      transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    }
    .chat-trash-zone.active .chat-trash-circle {
      transform: scale(1.22);
      background: #ef4444;
      color: #ffffff;
      border-style: solid;
      box-shadow: 0 0 35px rgba(239, 68, 68, 0.65);
    }
    .chat-trash-icon {
      width: 28px;
      height: 28px;
      transition: transform 0.25s ease;
    }
    .chat-trash-zone.active .chat-trash-icon {
      transform: rotate(12deg) scale(1.15);
    }
    .chat-trash-text {
      font-size: 11.5px;
      color: #ef4444;
      font-weight: 600;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      background: rgba(10, 20, 36, 0.85);
      padding: 5px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.06);
      backdrop-filter: blur(6px);
    }

    /* FINAL TAB BAR OVERRIDE: Telefon esnaf modu kapsul yapisini tum ekranlarda korur. */
    body:not(.customer-mode) #app-root > .tabs,
    body.customer-mode #app-root > .tabs,
    #app-root > .tabs {
      gap: 0 !important;
      padding: 0.4rem 0.5rem !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 24px !important;
      background: rgba(30, 42, 60, 0.85) !important;
      box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-around !important;
    }

    body:not(.customer-mode) #app-root > .tabs .tab,
    body:not(.customer-mode) #app-root > .tabs>a.tab,
    body.customer-mode #app-root > .tabs .tab,
    body.customer-mode #app-root > .tabs>a.tab,
    #app-root > .tabs .tab,
    #app-root > .tabs>a.tab {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      min-height: 2.7rem !important;
      padding: 0.4rem 0 !important;
      border: 0 !important;
      border-radius: 16px !important;
      background: transparent !important;
      background-image: none !important;
      color: #9ca8b8 !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative !important;
      overflow: visible !important;
      text-align: center !important;
    }

    html:not(.admin-mode) #app-root > .tabs .admin-only-tab,
    body:not(.admin-mode) #app-root > .tabs .admin-only-tab,
    #app-root:not(.admin-mode) > .tabs .admin-only-tab,
    #app-root.admin-mode > .tabs #tab-magaza {
      display: none !important;
      visibility: hidden !important;
      flex: 0 0 0 !important;
      width: 0 !important;
      min-width: 0 !important;
      max-width: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }

    html.admin-mode:not(.customer-mode) #app-root > .tabs .admin-only-tab,
    body.admin-mode:not(.customer-mode) #app-root > .tabs .admin-only-tab,
    #app-root.admin-mode:not(.customer-mode) > .tabs .admin-only-tab {
      display: flex !important;
      visibility: visible !important;
      flex: 1 1 0 !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: none !important;
      overflow: visible !important;
      pointer-events: auto !important;
    }

    body:not(.customer-mode) #app-root > .tabs .tab.active,
    body:not(.customer-mode) #app-root > .tabs>a.tab.active,
    body.customer-mode #app-root > .tabs .tab.active,
    body.customer-mode #app-root > .tabs>a.tab.active,
    #app-root > .tabs .tab.active,
    #app-root > .tabs>a.tab.active {
      color: #ffffff !important;
      background: rgba(255, 255, 255, 0.1) !important;
      background-image: none !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    #app-root > .tabs .tab .tab-icon,
    #app-root > .tabs>a.tab .tab-icon {
      width: 1.4rem !important;
      height: 1.4rem !important;
      margin-right: 0 !important;
      margin-bottom: 0.2rem !important;
      filter: brightness(0) saturate(100%) invert(70%) sepia(20%) saturate(300%) hue-rotate(180deg) !important;
      transform: none !important;
    }

    #app-root > .tabs .tab.active .tab-icon,
    #app-root > .tabs>a.tab.active .tab-icon {
      filter: brightness(0) invert(1) !important;
      transform: translateY(-2px) !important;
    }

    #app-root > .tabs .tab.active::after,
    #app-root > .tabs>a.tab.active::after {
      content: "" !important;
      display: block !important;
      position: absolute !important;
      bottom: -0.1rem !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 4px !important;
      height: 4px !important;
      border-radius: 50% !important;
      background: #60a5fa !important;
      box-shadow: 0 0 8px rgba(96, 165, 250, 0.8) !important;
    }

    body.customer-mode #app-root > .tabs {
      justify-content: flex-start !important;
    }

    body.customer-mode #app-root > .tabs #tab-genel,
    body.customer-mode #app-root > .tabs #tab-genel.active {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: none !important;
      min-width: 0 !important;
    }

    body.theme-light #app-root > .tabs,
    body.light-theme #app-root > .tabs {
      border-color: rgba(0, 0, 0, 0.1) !important;
      background: rgba(255, 255, 255, 0.85) !important;
      box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    }

    body.theme-light #app-root > .tabs .tab.active,
    body.theme-light #app-root > .tabs>a.tab.active,
    body.light-theme #app-root > .tabs .tab.active,
    body.light-theme #app-root > .tabs>a.tab.active {
      color: #1e293b !important;
      background: rgba(15, 23, 42, 0.06) !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    }

    @media (max-width: 1024px) {
      #app-root > .tabs {
        position: fixed !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: 0.6rem !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 9999 !important;
    }

    /* Müşteriye Gönder & Satıldı Yap Buton Düzeltmesi (İkon ve yazı aynı renk - Zümrüt Yeşili) */
    html body #app-root .customer-share-standalone-btn,
    html body #app-root .magaza-compact-share-btn,
    html body #app-root .sattim-btn,
    html body #app-root .status-btn.satildi-btn,
    html body #app-root .hizli-action-btn.wp-action-btn,
    html body #app-root .magaza-card-actions .sattim-btn,
    html body #app-root .magaza-card-actions .wp-action-btn,
    html body #app-root .genel-card-actions .wp-action-btn {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.45rem !important;
      width: 100% !important;
      min-height: 38px !important;
      height: 38px !important;
      background: rgba(16, 185, 129, 0.08) !important;
      border: 1px solid rgba(16, 185, 129, 0.25) !important;
      border-radius: 10px !important;
      color: #10b981 !important;
      font-size: 0.85rem !important;
      font-weight: 500 !important;
      text-decoration: none !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
    }

    html body #app-root .customer-share-standalone-btn:hover,
    html body #app-root .magaza-compact-share-btn:hover,
    html body #app-root .sattim-btn:hover,
    html body #app-root .status-btn.satildi-btn:hover,
    html body #app-root .hizli-action-btn.wp-action-btn:hover,
    html body #app-root .magaza-card-actions .sattim-btn:hover,
    html body #app-root .magaza-card-actions .wp-action-btn:hover,
    html body #app-root .genel-card-actions .wp-action-btn:hover {
      background: rgba(16, 185, 129, 0.15) !important;
      border-color: rgba(16, 185, 129, 0.4) !important;
      transform: translateY(-1px) !important;
    }

    html body #app-root .customer-share-standalone-btn span,
    html body #app-root .magaza-compact-share-btn span,
    html body #app-root .sattim-btn span,
    html body #app-root .status-btn.satildi-btn span,
    html body #app-root .hizli-action-btn.wp-action-btn span,
    html body #app-root .magaza-card-actions .sattim-btn span,
    html body #app-root .magaza-card-actions .wp-action-btn span,
    html body #app-root .genel-card-actions .wp-action-btn span {
      display: inline-block !important;
      font-size: 0.85rem !important;
      color: #10b981 !important;
      line-height: 1 !important;
    }

    html body #app-root .customer-share-standalone-btn img,
    html body #app-root .magaza-compact-share-btn img,
    html body #app-root .sattim-btn img,
    html body #app-root .sattim-btn svg,
    html body #app-root .status-btn.satildi-btn img,
    html body #app-root .status-btn.satildi-btn svg,
    html body #app-root .hizli-action-btn.wp-action-btn img,
    html body #app-root .magaza-card-actions .sattim-btn img,
    html body #app-root .magaza-card-actions .sattim-btn svg,
    html body #app-root .magaza-card-actions .wp-action-btn img,
    html body #app-root .genel-card-actions .wp-action-btn img,
    html body #app-root .customer-share-standalone-btn .hizli-action-icon,
    html body #app-root .magaza-compact-share-btn .magaza-compact-action-icon {
      width: 16px !important;
      height: 16px !important;
      display: block !important;
      opacity: 1 !important;
      /* İkonları yazı rengiyle (Zümrüt Yeşili) birebir aynı renge boyar */
      filter: invert(53%) sepia(93%) saturate(382%) hue-rotate(115deg) brightness(97%) contrast(91%) !important;
    }