/* ============================================
   CHAT VIBE - Visual Life Enhancement
   CSS-only, no structural changes
   Always loaded last — highest priority
   ============================================ */

/* ========================================
   BASE COLORS - Warmer, Richer Palette
   From dead black (#0D0A0F) to living deep rose
   ======================================== */

:root {
    --app-bg:           #190B14;
    --app-surface:      #221320;
    --app-surface-2:    #2A1A2C;
    --app-surface-3:    #1D0F1A;
    --app-border:       #361E30;
    --app-border-subtle: #28162A;
    --bg-primary:       #190B14;
    --bg-secondary:     #221320;
    --bg-tertiary:      #2A1A2C;
    --bg-input:         #2E1A30;
    --border-color:     #361E30;
    --border-light:     #3E2440;
}

/* ========================================
   BODY - Beautiful Gradient Mesh
   Soft glowing orbs, not flat black
   ======================================== */

body {
    background:
        radial-gradient(ellipse 75% 55% at 18% 5%,  rgba(233, 30, 99, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 92%, rgba(156, 39, 176, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(233, 30, 99, 0.04) 0%, transparent 60%),
        #190B14 !important;
    min-height: 100vh;
}

/* All main screens inherit the beautiful base */
#chatScreen,
#profileSelection,
#actualChat,
#discoverScreen,
#profileScreen,
#creditsScreen,
#authScreen {
    background: transparent !important;
}

/* Quiz: override the hardcoded near-black */
.quiz-container {
    background: #190B14 !important;
}

#quizFlow {
    background: linear-gradient(160deg, #190B14 0%, #201528 60%, #160B1C 100%) !important;
}

#quizFlow .quiz-header {
    background: #221320 !important;
    border-bottom-color: #361E30 !important;
}

#quizFlow .quiz-question-card {
    background: #2A1A2C !important;
    border-color: #361E30 !important;
}

#quizFlow .quiz-choice {
    background: #2A1A2C !important;
    border-color: #361E30 !important;
}

#quizFlow .quiz-progress-bar {
    background: #361E30 !important;
}

#quizFlow .quiz-step {
    background: #361E30 !important;
}

/* ========================================
   CHAT MESSAGE AREA - WARM BACKGROUND
   From clinical white to a living space
   ======================================== */

#actualChat .chat-messages {
    background:
        radial-gradient(circle, rgba(233, 30, 99, 0.028) 1.5px, transparent 1.5px),
        linear-gradient(180deg, #FFFBFC 0%, #FFF6F9 100%) !important;
    background-size: 26px 26px, 100% 100% !important;
    background-position: 0 0, 0 0 !important;
}

[data-theme="dark"] #actualChat .chat-messages {
    background:
        radial-gradient(circle, rgba(233, 30, 99, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(180deg, #190B14 0%, #1E0F1A 100%) !important;
    background-size: 26px 26px, 100% 100% !important;
    background-position: 0 0, 0 0 !important;
}

/* ========================================
   MESSAGE ANIMATION - SPRINGY PHYSICS
   Läuft NUR für .new-message (frisch angehängte Nachrichten).
   Bestehende Nachrichten bleiben komplett stabil – kein Wackeln.
   ======================================== */

/* Basis: kein will-change, keine Animation – stabil verankert */
.message {
    will-change: auto;
}

/* Animation nur für neue Nachrichten */
.message.new-message {
    animation: msgSpring 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    will-change: transform, opacity;
}

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

/* ========================================
   VIVIANA AVATAR - GRADIENT + BREATH
   ======================================== */

.message.received .message-avatar {
    background: linear-gradient(140deg, #E91E63 0%, #FF4081 45%, #9C27B0 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    animation: none !important;
}

@keyframes avatarBreath {
    0%, 100% {
        box-shadow:
            0 0 0 2.5px rgba(233, 30, 99, 0.18),
            0 3px 10px rgba(233, 30, 99, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 3.5px rgba(233, 30, 99, 0.30),
            0 3px 16px rgba(233, 30, 99, 0.32);
    }
}

/* ========================================
   SENT BUBBLE - GLASSY PINK DEPTH
   ======================================== */

.message.sent .message-bubble {
    background: linear-gradient(148deg, #F2266C 0%, #E91E63 28%, #D01556 68%, #BC1352 100%) !important;
    box-shadow:
        0 4px 20px rgba(233, 30, 99, 0.38),
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 -1px 0 rgba(0, 0, 0, 0.10) inset !important;
    position: relative;
}

/* Subtle top shine */
.message.sent .message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    border-radius: 0 0 4px 4px;
    pointer-events: none;
}

/* ========================================
   RECEIVED BUBBLE - WARM CARD
   ======================================== */

.message.received .message-bubble {
    background: linear-gradient(148deg, #FFFFFF 0%, #FFF3F7 100%) !important;
    border: 1px solid rgba(233, 30, 99, 0.09) !important;
    box-shadow:
        0 2px 14px rgba(233, 30, 99, 0.07),
        0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .message.received .message-bubble {
    background: linear-gradient(148deg, #231930 0%, #1C1428 100%) !important;
    border: 1px solid rgba(233, 30, 99, 0.11) !important;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28),
        0 0 0 0.5px rgba(233, 30, 99, 0.07) !important;
}

/* ========================================
   MESSAGE HOVER - SUBTLE LIFT
   ======================================== */

.message-bubble {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.message:hover .message-bubble {
    transform: translateY(-1.5px);
}

.message.sent:hover .message-bubble {
    box-shadow:
        0 7px 26px rgba(233, 30, 99, 0.44),
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 -1px 0 rgba(0, 0, 0, 0.10) inset !important;
}

.message.received:hover .message-bubble {
    box-shadow:
        0 5px 18px rgba(233, 30, 99, 0.12),
        0 1px 5px rgba(0, 0, 0, 0.06) !important;
}

/* ========================================
   MESSAGE TEXT - WARMTH & CLARITY
   ======================================== */

.message.received .message-bubble p {
    color: #1a1a1a !important;
    line-height: 1.52 !important;
}

[data-theme="dark"] .message.received .message-bubble p {
    color: #EEE4EC !important;
}

.message.sent .message-bubble p {
    line-height: 1.52 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ========================================
   TIMESTAMP - REFINED TINTS
   ======================================== */

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 10px !important;
    letter-spacing: 0.15px;
}

.message.received .message-time {
    color: rgba(233, 30, 99, 0.42) !important;
    font-size: 10px !important;
    letter-spacing: 0.15px;
}

/* ========================================
   TYPING INDICATOR - ALIVE WAVE
   ======================================== */

.typing-indicator span {
    width: 7px !important;
    height: 7px !important;
    background: rgba(233, 30, 99, 0.45) !important;
    animation: typingWave 1.15s ease-in-out infinite !important;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s !important; }
.typing-indicator span:nth-child(2) { animation-delay: 0.13s !important; }
.typing-indicator span:nth-child(3) { animation-delay: 0.26s !important; }

@keyframes typingWave {
    0%, 55%, 100% {
        transform: translateY(0);
        opacity: 0.35;
        background: rgba(233, 30, 99, 0.45);
    }
    27% {
        transform: translateY(-6px);
        opacity: 1;
        background: rgba(233, 30, 99, 0.85);
    }
}

/* ========================================
   DATE SEPARATOR - ELEGANT DIVIDER
   ======================================== */

.message-date-separator {
    position: relative;
    margin: 6px 0 !important;
}

.message-date-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(233, 30, 99, 0.18) 30%,
        rgba(233, 30, 99, 0.18) 70%,
        transparent 100%
    );
    transform: translateY(-50%);
    pointer-events: none;
}

.message-date-separator span {
    background: transparent !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    color: rgba(233, 30, 99, 0.48) !important;
    padding: 2px 14px !important;
    position: relative;
    z-index: 1;
}

/* ========================================
   CHAT HEADER - WARM GLASS
   ======================================== */

#actualChat .chat-header {
    background: rgba(255, 253, 254, 0.97) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: none !important;
    box-shadow:
        0 1px 0 rgba(233, 30, 99, 0.09),
        0 4px 24px rgba(233, 30, 99, 0.04) !important;
}

[data-theme="dark"] #actualChat .chat-header {
    background: rgba(12, 9, 14, 0.96) !important;
    box-shadow:
        0 1px 0 rgba(233, 30, 99, 0.12),
        0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Avatar: richer ring */
#actualChat .chat-partner-avatar {
    background: linear-gradient(140deg, #E91E63 0%, #FF4081 45%, #9C27B0 100%) !important;
    box-shadow:
        0 0 0 2px rgba(233, 30, 99, 0.2),
        0 2px 10px rgba(233, 30, 99, 0.22) !important;
}

/* ========================================
   INPUT AREA - GLOWING FOCUS
   ======================================== */

#actualChat .chat-input-area {
    background: rgba(255, 253, 254, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow:
        0 -1px 0 rgba(233, 30, 99, 0.09),
        0 -8px 28px rgba(233, 30, 99, 0.04) !important;
    border-top: none !important;
}

[data-theme="dark"] #actualChat .chat-input-area {
    background: rgba(12, 9, 14, 0.96) !important;
    box-shadow:
        0 -1px 0 rgba(233, 30, 99, 0.12),
        0 -8px 28px rgba(0, 0, 0, 0.35) !important;
}

#actualChat .chat-input-field {
    background: #F7EFF4 !important;
    border: 1.5px solid rgba(233, 30, 99, 0.10) !important;
    transition: all 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

[data-theme="dark"] #actualChat .chat-input-field {
    background: #19121F !important;
    border: 1.5px solid rgba(233, 30, 99, 0.10) !important;
}

#actualChat .chat-input-field:focus-within {
    background: #FFF0F6 !important;
    border-color: rgba(233, 30, 99, 0.32) !important;
    box-shadow:
        0 0 0 3.5px rgba(233, 30, 99, 0.09),
        0 4px 18px rgba(233, 30, 99, 0.09) !important;
    transform: scale(1.008);
}

[data-theme="dark"] #actualChat .chat-input-field:focus-within {
    background: #1E1428 !important;
    border-color: rgba(233, 30, 99, 0.35) !important;
    box-shadow:
        0 0 0 3.5px rgba(233, 30, 99, 0.12),
        0 4px 18px rgba(233, 30, 99, 0.12) !important;
}

/* ========================================
   CHAT ACTION BUTTONS ROW (Game + Cards)
   ======================================== */

.chat-action-buttons {
    display: flex;
    gap: 8px;
    padding: 6px 0 2px 0;
}

.chat-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chat-action-icon {
    font-size: 16px;
    line-height: 1;
}

.chat-action-label {
    font-family: inherit;
    letter-spacing: 0.2px;
}

/* Game button accent */
.chat-action-btn.game-action-btn {
    border-color: rgba(180, 77, 255, 0.3);
    background: rgba(180, 77, 255, 0.08);
}

.chat-action-btn.game-action-btn:hover {
    background: rgba(180, 77, 255, 0.18);
    border-color: rgba(180, 77, 255, 0.55);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(180, 77, 255, 0.2);
}

/* Card button accent */
.chat-action-btn.card-action-btn {
    border-color: rgba(233, 30, 99, 0.3);
    background: rgba(233, 30, 99, 0.08);
}

.chat-action-btn.card-action-btn:hover {
    background: rgba(233, 30, 99, 0.18);
    border-color: rgba(233, 30, 99, 0.55);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(233, 30, 99, 0.2);
}

.chat-action-btn:active {
    transform: scale(0.95) !important;
}

/* Subtle discovery pulse for new users */
.chat-action-btn.game-action-btn {
    animation: actionPulseGame 3s ease-in-out infinite;
}

.chat-action-btn.card-action-btn {
    animation: actionPulseCard 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes actionPulseGame {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(180, 77, 255, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(180, 77, 255, 0.15), 0 0 4px rgba(180, 77, 255, 0.1);
    }
}

@keyframes actionPulseCard {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(233, 30, 99, 0.15), 0 0 4px rgba(233, 30, 99, 0.1);
    }
}

/* Stop animation on hover – direct interaction takes over */
.chat-action-btn:hover {
    animation: none !important;
}

/* Hide old standalone buttons if any remain */
.mg-trigger-btn,
.card-btn {
    display: none !important;
}

/* ========================================
   SEND BUTTON - SNAPPY INTERACTION
   ======================================== */

#actualChat .input-action-btn.send-btn {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#actualChat .input-action-btn.send-btn:hover {
    color: #D81558 !important;
    transform: scale(1.22) rotate(12deg) !important;
    filter: drop-shadow(0 2px 6px rgba(233, 30, 99, 0.42)) !important;
}

#actualChat .input-action-btn.send-btn:active {
    transform: scale(0.88) rotate(0deg) !important;
}

/* ========================================
   SCROLLBAR - THIN & WARM
   ======================================== */

#actualChat .chat-messages::-webkit-scrollbar {
    width: 3px;
}

#actualChat .chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#actualChat .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.18) !important;
    border-radius: 4px !important;
}

#actualChat .chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.32) !important;
}

/* ========================================
   ACCESSIBILITY - Respect motion prefs
   ======================================== */

/* ========================================
   CONTACT LIST - PREMIUM CARD REDESIGN
   ======================================== */

/* Header area */
#profileSelection .messages-header {
    padding: 22px 20px 10px 20px !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

#profileSelection .messages-header h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.6px !important;
    background: linear-gradient(135deg, #ffffff 0%, #FF80AB 70%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
}

/* Remove the ::after gradient line – we have a new look */
#profileSelection .messages-header::after {
    display: none !important;
}

/* Contact list wrapper – card spacing */
#profileSelection .contact-list {
    padding: 10px 16px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Remove the old list divider lines */
#profileSelection .contact-item {
    border-bottom: none !important;
}

/* ── Contact Card ── */
#profileSelection .contact-item {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(233, 30, 99, 0.13) !important;
    border-radius: 20px !important;
    padding: 14px 16px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Subtle pink shimmer top-left inside each card */
#profileSelection .contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.07) 0%, transparent 55%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

#profileSelection .contact-item:hover {
    background: rgba(255, 255, 255, 0.075) !important;
    border-color: rgba(233, 30, 99, 0.28) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(233, 30, 99, 0.1) !important;
}

#profileSelection .contact-item:hover::before {
    opacity: 1;
}

#profileSelection .contact-item:active {
    transform: scale(0.97) translateY(0) !important;
    background: rgba(233, 30, 99, 0.09) !important;
}
/* Suppress active/hover transforms during swipe — they conflict with translateX */
.swiping .contact-item:active,
.swiped-open .contact-item:active {
    transform: none !important;
}

/* ══════════════════════════════════════════════
   SWIPE-TO-DELETE  –  Mobile 60 fps
   ══════════════════════════════════════════════ */

.swipe-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 8px;
    touch-action: pan-y;
    /* Promote to own compositor layer */
    isolation: isolate;
}

/* Card that slides left — GPU-composited via translate3d */
.swipe-container .contact-item.swipeable {
    position: relative;
    z-index: 2;
    transform: translate3d(0,0,0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin-bottom: 0 !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}

/* Red action zone — starts invisible.
   JS sets opacity + visibility inline during drag for
   proportional fade-in (not binary class toggle).        */
.swipe-actions-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(160deg, #ff3b30 0%, #c0392b 100%);
    visibility: hidden;
    opacity: 0;
    /* GPU layer */
    will-change: opacity;
    backface-visibility: hidden;
}

/* Delete button — fills entire zone for large tap target */
.swipe-delete-btn {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0.15);
}

.swipe-delete-btn:active {
    background: rgba(0,0,0,0.12);
}

.swipe-delete-btn svg {
    stroke: #fff;
    stroke-width: 2.2;
}

.swipe-delete-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   SWIPE-DELETE CONFIRM  –  Bottom sheet (mobile)
   ══════════════════════════════════════════════ */

#swipeDeleteConfirm {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    pointer-events: all;
}

/* Dark blurred backdrop */
.sdc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.26s ease;
}

#swipeDeleteConfirm.sdc-open .sdc-backdrop {
    opacity: 1;
}
#swipeDeleteConfirm.sdc-closing .sdc-backdrop {
    opacity: 0;
}

/* The bottom sheet card */
.sdc-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #1c1020;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: 0 -8px 48px rgba(0,0,0,0.55);
}

#swipeDeleteConfirm.sdc-open .sdc-sheet {
    transform: translateY(0);
}
#swipeDeleteConfirm.sdc-closing .sdc-sheet {
    transform: translateY(100%);
    transition: transform 0.22s ease-in;
}

/* Drag handle pill */
.sdc-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.18);
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Red trash icon circle */
.sdc-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.12);
    border: 1.5px solid rgba(255, 59, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sdc-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    text-align: center;
}

.sdc-body {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.62);
    text-align: center;
    margin: 0 0 24px;
    padding: 0 4px;
}

.sdc-body strong {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

/* Primary danger button */
.sdc-btn-danger {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #ff3b30 0%, #c0392b 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-bottom: 10px;
    flex-shrink: 0;
    /* Tap highlight */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    transition: opacity 0.15s;
}

.sdc-btn-danger:active {
    opacity: 0.82;
}

/* Secondary cancel button */
.sdc-btn-cancel {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0.06);
    transition: opacity 0.15s;
}

.sdc-btn-cancel:active {
    opacity: 0.7;
}

/* ── Avatar – bigger, gradient, glowing ── */
#profileSelection .contact-avatar-img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    background: linear-gradient(140deg, #E91E63 0%, #FF4081 45%, #9C27B0 100%) !important;
    box-shadow:
        0 0 0 2px rgba(233, 30, 99, 0.22),
        0 4px 18px rgba(233, 30, 99, 0.28) !important;
}

/* ── Online dot – green glow pulse ── */
.contact-online-dot {
    width: 13px !important;
    height: 13px !important;
    background: #4ade80 !important;
    border: 2.5px solid #190B14 !important;
    border-radius: 50% !important;
    position: absolute !important;
    bottom: 1px !important;
    right: 1px !important;
    animation: contactOnlinePulse 2.4s ease-in-out infinite !important;
}

@keyframes contactOnlinePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(74, 222, 128, 0.4); }
    50%       { box-shadow: 0 0 11px rgba(74, 222, 128, 0.75); }
}

/* ── Name – bold white ── */
#profileSelection .contact-name h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
}

/* ── Verified badge ── */
#profileSelection .contact-verified {
    color: #E91E63 !important;
    font-size: 15px !important;
    opacity: 0.9;
}

/* ── Preview text ── */
#profileSelection .contact-preview {
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.42) !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}

/* ── Time stamp ── */
#profileSelection .contact-time {
    font-size: 12px !important;
    color: rgba(233, 30, 99, 0.55) !important;
    font-weight: 500 !important;
}

/* ── Empty state ── */
#profileSelection .chats-empty-state {
    padding: 64px 24px 40px !important;
}

#profileSelection .chats-empty-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

#profileSelection .chats-empty-sub {
    color: rgba(255, 255, 255, 0.38) !important;
    font-size: 14px !important;
}

@media (prefers-reduced-motion: reduce) {
    .message,
    .message.received .message-avatar,
    #actualChat .card-btn {
        animation: none !important;
    }

    .message-bubble,
    #actualChat .chat-input-field {
        transition: none !important;
    }
}

/* ============================================
   LONG-PRESS COPY MENU
   ============================================ */

/* Disable native text selection & touch callout on message bubbles */
.message-bubble,
.message-bubble p,
.message-bubble span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Highlight on the held bubble */
.message-bubble.lp-highlight {
    transform: scale(1.03) !important;
    box-shadow: 0 4px 24px rgba(233, 30, 99, 0.3) !important;
    z-index: 10;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out !important;
}

/* Overlay behind the menu */
.msg-copy-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.msg-copy-overlay.active {
    opacity: 1;
}

/* The floating menu */
.msg-copy-menu {
    position: fixed;
    z-index: 10001;
    background: rgba(30, 22, 38, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 4px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.08) inset;
    transform: scale(0.85) translateY(6px);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.15s ease;
}
.msg-copy-overlay.active .msg-copy-menu {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Copy button */
.msg-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
}
.msg-copy-btn:active {
    background: rgba(233, 30, 99, 0.2);
}
.msg-copy-btn svg {
    opacity: 0.7;
    flex-shrink: 0;
}
