/* ==========================================================================
   BEXGRAM COMPOSER & BACKGROUND/TAG MODAL STYLES (Screenshots 2, 3, 4, 5)
   Pixel-perfect match to Facebook / Instagram / WhatsApp Web standard
   ========================================================================== */

.bex-composer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 768px) {
    .bex-composer-overlay {
        align-items: center;
        padding: 24px;
    }
}

.bex-composer-overlay.hidden,
.bex-composer-overlay[aria-hidden="true"],
.bex-composer-overlay[inert] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Dialog Container */
.bex-composer-dialog {
    box-sizing: border-box;
    width: min(100%, 500px);
    min-width: 0;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    background: var(--wa-surface, var(--color-bg-light));
    color: var(--wa-text, var(--color-bg-dark));
    border-radius: 20px;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    animation: bex-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

html.dark .bex-composer-dialog {
    background: var(--wa-surface, #242526);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .bex-composer-dialog {
        border-radius: 14px;
        max-height: 85vh;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
        animation: bex-zoom-in 0.2s ease;
    }
}

@keyframes bex-slide-down {
    from { opacity: 0; transform: translateY(-18px); }
    to { transform: translateY(0); }
}

@keyframes bex-zoom-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bex-composer-overlay,
    .bex-composer-dialog {
        transition: none;
        animation: none;
    }
}

/* Handle for mobile pull */
.bex-composer-handle {
    width: 38px;
    height: 4px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    margin: 8px auto 2px;
    flex-shrink: 0;
}
html.dark .bex-composer-handle {
    background: rgba(255, 255, 255, 0.2);
}

/* Subviews container */
.bex-composer-subview {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    min-width: 0;
}
.bex-composer-subview.hidden {
    display: none !important;
}

/* Modal Header (Centered title, right close, left back) */
.bex-composer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--wa-line, rgba(0, 0, 0, 0.08));
    position: relative;
    flex-shrink: 0;
}
html.dark .bex-composer-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.bex-composer-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--wa-text, #050505);
    text-align: center;
    flex: 1;
    margin: 0;
}
html.dark .bex-composer-modal-title {
    color: #e4e6eb;
}

.bex-composer-icon-close,
.bex-composer-icon-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #606770;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
html.dark .bex-composer-icon-close,
html.dark .bex-composer-icon-back {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b3b8;
}
.bex-composer-icon-close:hover,
.bex-composer-icon-back:hover {
    background: rgba(0, 0, 0, 0.1);
}
html.dark .bex-composer-icon-close:hover,
html.dark .bex-composer-icon-back:hover {
    background: rgba(255, 255, 255, 0.18);
}

.bex-composer-btn-done {
    background: transparent;
    color: #1877f2;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}
.bex-composer-btn-done:hover {
    background: rgba(24, 119, 242, 0.1);
}

/* Modal Body */
.bex-composer-modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Author Row & Privacy Pills */
/* Author Row & Privacy / AI Pills */
.bex-composer-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 100;
}
.bex-composer-author-row:has(.bex-composer-dropdown-menu:not(.hidden)),
.bex-composer-author-row.is-open {
    z-index: 100050 !important;
    z-index: 99999 !important;
}
.bex-composer-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bex-composer-author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.bex-composer-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wa-text, #050505);
    line-height: 1.2;
}
html.dark .bex-composer-author-name {
    color: #e4e6eb;
}

.bex-composer-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 101;
}
.bex-composer-pills-row:has(.bex-composer-dropdown-menu:not(.hidden)),
.bex-composer-pills-row.is-open {
    z-index: 100050 !important;
    z-index: 99999 !important;
}

.bex-dropdown-pill-wrap {
    position: relative;
    z-index: 102;
}
.bex-dropdown-pill-wrap.is-open,
.bex-dropdown-pill-wrap:has(.bex-composer-dropdown-menu:not(.hidden)) {
    z-index: 100050 !important;
    z-index: 99999 !important;
}

.bex-composer-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e4e6eb;
    color: #050505;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    position: relative;
    z-index: 103;
}
.bex-composer-pill-btn * {
    pointer-events: none;
}
html.dark .bex-composer-pill-btn {
    background: #3a3b3c;
    color: #e4e6eb;
    border-color: rgba(255, 255, 255, 0.1);
}
.bex-composer-pill-btn:hover {
    background: #d8dadf;
    border-color: rgba(0, 0, 0, 0.15);
}
html.dark .bex-composer-pill-btn:hover {
    background: #4e4f50;
    border-color: rgba(255, 255, 255, 0.2);
}
.bex-pill-icon {
    display: inline-flex;
    align-items: center;
}

/* Dropdown Menu */
.bex-composer-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100050 !important;
    z-index: 99999 !important;
    background: var(--wa-surface, var(--color-bg-light));
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 6px;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    display: block;
}
.bex-dropdown-pill-wrap:last-child .bex-composer-dropdown-menu {
    left: auto;
    right: 0;
}
@media (max-width: 480px) {
    .bex-dropdown-pill-wrap:last-child .bex-composer-dropdown-menu {
        left: auto;
        right: 0;
    }
}
html.dark .bex-composer-dropdown-menu {
    background: #242526;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.bex-composer-dropdown-menu.hidden {
    display: none !important;
}
.bex-drop-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wa-text, #050505);
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
}
html.dark .bex-drop-opt {
    color: #e4e6eb;
}
.bex-drop-opt:hover {
    background: rgba(0, 0, 0, 0.05);
}
html.dark .bex-drop-opt:hover {
    background: rgba(255, 255, 255, 0.08);
}
.bex-drop-opt.is-selected {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
}

/* Stage / Textarea */
.bex-composer-stage {
    position: relative;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.bex-composer-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 19px;
    color: var(--wa-text, #050505);
    resize: none;
    min-height: 110px;
    padding: 8px 0;
    line-height: 1.4;
    caret-color: var(--wa-green-deep, #00a884);
}
html.dark .bex-composer-textarea {
    color: #e4e6eb;
}
.bex-composer-textarea::placeholder {
    color: #8c939d;
}

/* Text on Background Canvas Mode (Tam Renk + Yüksek Kontrast Beyaz Yazı) */
.bex-composer-stage.has-bg {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 4px 0 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}
.bex-composer-stage.has-bg .bex-composer-textarea,
.bex-composer-textarea.is-canvas-typing {
    color: var(--color-bg-light) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
    caret-color: var(--color-bg-light) !important;
    min-height: 140px;
}
.bex-composer-stage.has-bg .bex-composer-textarea::placeholder,
.bex-composer-textarea.is-canvas-typing::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Arka Plan Üzeri Font & Renk Ayarlama Çubuğu */
.bex-canvas-formatting-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    z-index: 20;
    position: relative;
}
.bex-canvas-formatting-bar.hidden {
    display: none !important;
}
.bex-format-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.15s ease;
}
.bex-format-pill:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}
.bex-color-swatches-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 6px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.bex-text-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}
.bex-text-color-dot:hover {
    transform: scale(1.15);
}
.bex-text-color-dot.is-active {
    border-color: var(--color-bg-light) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Font Aileleri */
.font-sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important; }
.font-serif { font-family: Georgia, Cambria, "Times New Roman", Times, serif !important; font-style: italic; }
.font-cursive { font-family: 'Segoe Script', 'Brush Script MT', 'Dancing Script', cursive !important; }
.font-bold-headline { font-family: Impact, "Arial Black", sans-serif !important; letter-spacing: 0.5px; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; letter-spacing: -0.5px; }

/* His & Hareket Grid */
.bex-feelings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 0;
}
@media (min-width: 480px) {
    .bex-feelings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.bex-feeling-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wa-search, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--wa-line, rgba(0, 0, 0, 0.08));
    color: var(--wa-text, var(--color-bg-dark));
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}
.bex-feeling-btn:hover {
    background: var(--wa-hover, rgba(0, 0, 0, 0.08));
    border-color: #00a884;
    transform: translateY(-1px);
}
html.dark .bex-feeling-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}
html.dark .bex-feeling-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00a884;
}
.bex-feeling-icon {
    font-size: 20px;
    line-height: 1;
}

/* Konum Çipleri */
.bex-location-chip {
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--wa-search, rgba(0, 0, 0, 0.05));
    border: 1px solid var(--wa-line, rgba(0, 0, 0, 0.08));
    color: var(--wa-text, var(--color-bg-dark));
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bex-location-chip:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
html.dark .bex-location-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

/* Profil Sayfası Arka Planlı Gönderi Kartı (uye.php) */
.member-tile-canvas {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}
.member-tile-canvas-text {
    color: var(--color-bg-light) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chips / Attachments */
.bex-composer-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.bex-composer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    padding: 3px 8px;
    border-radius: 12px;
}

.bex-composer-media-box {
    position: relative;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 280px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.bex-composer-media-box img,
.bex-composer-media-box video {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.bex-composer-remove-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: var(--color-bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bex-composer-attach-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
}
html.dark .bex-composer-attach-card {
    background: rgba(255, 255, 255, 0.1);
}
.bex-attach-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #8c939d;
}

/* Palette & Emoji Bar (Screenshot 3) */
.bex-composer-palette-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 14px;
    min-height: 38px;
}

.bex-btn-aa-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
}
.bex-aa-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #ec4899 100%);
    color: var(--color-bg-light);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s;
}
.bex-btn-aa-toggle:hover .bex-aa-badge {
    transform: scale(1.05);
}

.bex-palette-expanded {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}
.bex-palette-expanded::-webkit-scrollbar {
    display: none;
}

.bex-palette-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #555;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
html.dark .bex-palette-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ddd;
}

.bex-palette-swatch {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.bex-palette-swatch:hover {
    transform: scale(1.12);
}
.bex-palette-swatch.is-selected {
    border-color: #1877f2;
    transform: scale(1.1);
}
.bex-swatch-none {
    background: #e4e6eb;
    color: #606770;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.dark .bex-swatch-none {
    background: #3a3b3c;
    color: #b0b3b8;
}

.bex-composer-emoji-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #8c939d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.bex-composer-emoji-btn:hover {
    color: #f59e0b;
}

/* "Gönderine Ekle" Toolbar Card (Screenshot 2) */
.bex-composer-add-box {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    background: var(--wa-surface, var(--color-bg-light));
}
html.dark .bex-composer-add-box {
    background: #242526;
    border-color: rgba(255, 255, 255, 0.12);
}
.bex-composer-add-lbl {
    font-size: 14px;
    font-weight: 600;
    color: var(--wa-text, #050505);
}
html.dark .bex-composer-add-lbl {
    color: #e4e6eb;
}
.bex-composer-add-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bex-tool-item {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.bex-tool-item:hover {
    background: rgba(0, 0, 0, 0.06);
}
html.dark .bex-tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Action Submit Pill (Screenshot 2) */
.bex-composer-action-wrap {
    margin-top: auto;
}
.bex-composer-submit-pill {
    width: 100%;
    padding: 11px 16px;
    background: #1877f2;
    color: var(--color-bg-light);
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bex-composer-submit-pill:hover {
    background: #166fe5;
}
.bex-composer-submit-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────────────────
   DEKORATİF ARKA PLAN STİLLERİ & ŞEFFAF EMOJİLİ ZENGİN DUVAR KAĞITLARI
   Tam Renk ("Full Color") + Yüksek Kontrast + Post Feed Eşleşmesi
   ───────────────────────────────────────────────────────────────────────── */
.bex-bg-none { background: #e4e6eb !important; }

/* 1. Şeffaf Emojili Arka Planlar (Floating Translucent Emojis) */
.bex-bg-hearts {
    background-color: #e11d48 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%E2%9D%A4%EF%B8%8F%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%92%96%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%92%95%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #e11d48 0%, #ff1493 50%, #ff4d6d 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-fire {
    background-color: #dc2626 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%94%A5%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%E2%9A%A1%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%92%A5%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f59e0b 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-stars {
    background-color: #3730a3 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%E2%9C%A8%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%8C%9F%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%92%AB%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #3730a3 0%, #6366f1 50%, #a855f7 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-party {
    background-color: #0284c7 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%8E%89%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%A5%B3%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8E%88%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #ec4899 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-coffee {
    background-color: #582f0e !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%E2%98%95%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%A5%90%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8D%A9%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #582f0e 0%, #7f4f24 50%, #936639 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-space {
    background-color: #090d16 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%9A%80%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%AA%90%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8C%8C%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #090d16 0%, #1e1b4b 50%, #312e81 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-music {
    background-color: #0891b2 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%8E%B5%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%8E%B6%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8E%A7%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #0891b2 0%, #4f46e5 50%, #9333ea 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-blossom {
    background-color: #f43f5e !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%8C%B8%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%8C%BA%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8C%B7%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #fb7185 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-lucky {
    background-color: #047857 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%8D%80%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%8C%BF%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8D%83%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-food {
    background-color: #ea580c !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%8D%95%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%8D%94%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8D%9F%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #ea580c 0%, #d97706 50%, #f59e0b 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-chat {
    background-color: var(--color-primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%92%AC%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%92%AD%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%93%B1%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, var(--color-primary) 0%, #00a884 50%, #059669 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}
.bex-bg-crown {
    background-color: #a16207 !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Ctext%20x%3D%2715%27%20y%3D%2740%27%20font-size%3D%2728%27%20opacity%3D%270.25%27%3E%F0%9F%91%91%3C%2Ftext%3E%3Ctext%20x%3D%2770%27%20y%3D%2765%27%20font-size%3D%2724%27%20opacity%3D%270.20%27%3E%F0%9F%92%8E%3C%2Ftext%3E%3Ctext%20x%3D%2735%27%20y%3D%27105%27%20font-size%3D%2726%27%20opacity%3D%270.22%27%3E%F0%9F%8F%86%3C%2Ftext%3E%3C%2Fsvg%3E"), linear-gradient(135deg, #a16207 0%, #ca8a04 50%, #eab308 100%) !important;
    background-repeat: repeat;
    color: #fff !important;
}

/* 2. Doygun Canlı Renkler & Gradyanlar ("Tam Renk") */
.bex-bg-magenta { background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #f43f5e 100%) !important; color: #fff !important; }
.bex-bg-sunset { background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #facc15 100%) !important; color: #fff !important; }
.bex-bg-ocean { background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #06b6d4 100%) !important; color: #fff !important; }
.bex-bg-emerald { background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%) !important; color: #fff !important; }
.bex-bg-purple { background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #c084fc 100%) !important; color: #fff !important; }
.bex-bg-cyber { background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%) !important; color: #fff !important; }
.bex-bg-candy { background: linear-gradient(135deg, #db2777 0%, #ec4899 50%, #f472b6 100%) !important; color: #fff !important; }
.bex-bg-sunshine { background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%) !important; color: #fff !important; }
.bex-bg-dark { background: linear-gradient(135deg, #0b0f19 0%, #182234 50%, #0f172a 100%) !important; color: #fff !important; }
.bex-bg-aurora { background: linear-gradient(135deg, #059669 0%, #0284c7 50%, #7c3aed 100%) !important; color: #fff !important; }
.bex-bg-retro { background: linear-gradient(135deg, #d97706 0%, #db2777 50%, #7c3aed 100%) !important; color: #fff !important; }
.bex-bg-slate { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; color: #fff !important; }
.bex-bg-midnight { background: linear-gradient(135deg, #0b1329 0%, #172554 100%) !important; color: #fff !important; }

/* Subview 2: Background Picker Grid (Screenshot 4) */
.bex-bg-picker-body {
    padding: 16px;
}
.bex-bg-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #606770;
    margin-bottom: 12px;
}
html.dark .bex-bg-category-title {
    color: #b0b3b8;
}

.bex-bg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.bex-bg-tile {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #555;
}
.bex-bg-tile:hover {
    transform: scale(1.08);
}
.bex-bg-tile.is-selected {
    border-color: #1877f2;
    transform: scale(1.06);
}

/* Subview 3: Tag Friends (Screenshot 5) */
.bex-tag-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f0f2f5;
    margin-bottom: 14px;
}
html.dark .bex-tag-search-wrap {
    background: #3a3b3c;
}
.bex-tag-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--wa-text, #050505);
    outline: none;
}
html.dark .bex-tag-search-input {
    color: #e4e6eb;
}

.bex-tag-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #606770;
    margin-bottom: 8px;
}
html.dark .bex-tag-section-title {
    color: #b0b3b8;
}

.bex-tag-friends-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bex-tag-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.bex-tag-user-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
html.dark .bex-tag-user-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.bex-tag-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bex-tag-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--wa-text, #050505);
}
html.dark .bex-tag-user-name {
    color: #e4e6eb;
}
.bex-tag-user-sub {
    font-size: 12px;
    color: #8c939d;
}
.bex-tag-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    accent-color: #1877f2;
    cursor: pointer;
}
