/* ============================================
   VIVIANA CHAT - DARK DESIGN SYSTEM
   Rich, atmospheric, emotionally alive
   Dark Mode only
   ============================================ */

/* ========================================
   ATMOSPHERIC DARK BASE
   ======================================== */

:root {
    /* Deep purple-black palette */
    --app-bg: #0D0A0F;
    --app-surface: #161218;
    --app-surface-2: #1C1620;
    --app-surface-3: #130F16;
    --app-border: #2E2433;
    --app-border-subtle: #1E1824;
    --app-text: #ffffff;
    --app-text-secondary: #a0a0a0;
    --app-text-muted: #666666;
    --app-text-faded: #444444;
    --app-msg-received: #1C1428;
    --app-nav-active: #FF4081;
    --app-scrollbar: #3A2E42;
    --app-scrollbar-hover: #4A3E52;

    /* Glowing shadows */
    --shadow-soft: 0 2px 16px rgba(233, 30, 99, 0.08);
    --shadow-glow: 0 0 28px rgba(233, 30, 99, 0.18);

    /* Chat variables */
    --bg-primary: #0D0A0F;
    --bg-secondary: #161218;
    --bg-tertiary: #1C1620;
    --bg-input: #201A26;
    --bg-bubble-received: linear-gradient(135deg, #1C1428 0%, #201830 100%);
    --bg-bubble-sent: linear-gradient(135deg, #E91E63 0%, #D81558 50%, #C2185B 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2E2433;
    --border-light: #382C40;
    --accent-light: rgba(255, 64, 129, 0.10);
    --accent-glow: rgba(255, 64, 129, 0.20);
}

/* ========================================
   APP BACKGROUND - SUBTLE TEXTURE
   ======================================== */

body {
    background: var(--app-bg) !important;
}

/* Subtle warm grain overlay on main screens */
#chatScreen::before,
#profileSelection::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(233, 30, 99, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(156, 39, 176, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] #chatScreen::before,
[data-theme="dark"] #profileSelection::before {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(233, 30, 99, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(124, 77, 255, 0.04) 0%, transparent 50%);
}

/* ========================================
   NAV BAR - MORE PRESENCE
   ======================================== */

.app-nav {
    background: rgba(255, 248, 249, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(233, 30, 99, 0.08) !important;
    box-shadow: 0 -4px 24px rgba(233, 30, 99, 0.04) !important;
}

[data-theme="dark"] .app-nav {
    background: rgba(13, 10, 15, 0.92) !important;
    border-top: 1px solid rgba(233, 30, 99, 0.1) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3) !important;
}

.nav-item.active {
    color: #E91E63 !important;
}

.nav-item.active svg {
    filter: drop-shadow(0 0 6px rgba(233, 30, 99, 0.3));
}

/* ========================================
   CONTACT LIST - WARMTH & DEPTH
   ======================================== */

/* Messages header - warm gradient line */
#profileSelection .messages-header {
    background: var(--app-bg) !important;
    border-bottom: none !important;
    box-shadow: 0 1px 0 rgba(233, 30, 99, 0.06);
}

#profileSelection .messages-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.15), transparent);
}

#profileSelection .messages-header h1 {
    background: linear-gradient(135deg, #2D1F24 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

[data-theme="dark"] #profileSelection .messages-header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #FF80AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact items - subtle hover glow */
#profileSelection .contact-item {
    border-bottom: 1px solid rgba(233, 30, 99, 0.04) !important;
    transition: all 0.2s ease !important;
    position: relative;
}

#profileSelection .contact-item:active {
    background: rgba(233, 30, 99, 0.04) !important;
}

/* Avatar ring glow for unlocked contacts */
#profileSelection .contact-avatar-img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(233, 30, 99, 0.08);
}

/* Contact name - slightly bolder */
#profileSelection .contact-name h3 {
    font-weight: 700 !important;
    color: var(--app-text) !important;
}

/* Unread dot - glow */
#profileSelection .contact-unread-dot {
    box-shadow: 0 0 8px rgba(124, 77, 255, 0.4);
}

/* ========================================
   CHAT VIEW - EMOTIONAL DEPTH
   The heart of the redesign
   ======================================== */

/* Chat header - warm, present */
#actualChat .chat-header {
    background: rgba(255, 248, 249, 0.95) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: none !important;
    box-shadow: 0 2px 16px rgba(233, 30, 99, 0.04);
}

[data-theme="dark"] #actualChat .chat-header {
    background: rgba(13, 10, 15, 0.95) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

#actualChat .chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
}

/* Chat partner name - warm */
#actualChat .chat-partner-name {
    font-weight: 700 !important;
    color: var(--app-text) !important;
}

/* Chat partner avatar - subtle pink ring */
#actualChat .chat-partner-avatar {
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Chat messages area - warm background with subtle gradient */
#actualChat .chat-messages {
    background: var(--app-bg) !important;
    position: relative;
}

/* Received message bubbles - warm, soft, inviting */
#actualChat .message.received .message-bubble {
    background: linear-gradient(135deg, #FFF0F3 0%, #FFE8EE 100%) !important;
    color: var(--app-text) !important;
    border: 1px solid rgba(233, 30, 99, 0.06);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.04);
    border-bottom-left-radius: 6px;
}

[data-theme="dark"] #actualChat .message.received .message-bubble {
    background: linear-gradient(135deg, #1C1428 0%, #201830 100%) !important;
    border: 1px solid rgba(233, 30, 99, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Sent message bubbles - rich, vibrant gradient with depth */
#actualChat .message.sent .message-bubble {
    background: linear-gradient(135deg, #E91E63 0%, #D81558 40%, #C2185B 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25), 0 1px 4px rgba(0, 0, 0, 0.1);
    border-bottom-right-radius: 6px;
}

/* Message bubble text */
#actualChat .message-bubble p {
    font-size: 15px;
    line-height: 1.5;
}

/* Message time stamp */
#actualChat .message-time {
    font-size: 11px;
    opacity: 0.6;
}

/* Chat input area - elevated, warm */
#actualChat .chat-input-area {
    background: rgba(255, 248, 249, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: none !important;
    box-shadow: 0 -4px 20px rgba(233, 30, 99, 0.04);
}

[data-theme="dark"] #actualChat .chat-input-area {
    background: rgba(13, 10, 15, 0.95) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

#actualChat .chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
}

/* Input field - warm, soft focus */
#actualChat .chat-input-field {
    background: var(--app-surface) !important;
    border: 1px solid rgba(233, 30, 99, 0.08) !important;
    border-radius: 24px !important;
    transition: all 0.2s ease;
}

#actualChat .chat-input-field:focus-within {
    border-color: rgba(233, 30, 99, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.06), 0 2px 8px rgba(233, 30, 99, 0.06);
}

/* Send button - glow on hover */
#actualChat .input-action-btn.send-btn {
    color: #E91E63;
    transition: all 0.2s ease;
}

/* Joker button - vibrant, alive */
#actualChat .card-btn {
    background: rgba(233, 30, 99, 0.06) !important;
    border: 2px solid rgba(233, 30, 99, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#actualChat .card-btn:active {
    transform: scale(0.9);
    background: rgba(233, 30, 99, 0.12) !important;
    box-shadow: 0 0 16px rgba(233, 30, 99, 0.15);
}

/* ========================================
   DISCOVER SCREEN - VIBRANT
   ======================================== */

#discoverScreen {
    background: var(--app-bg) !important;
}

/* Discover header - gradient text */
#discoverScreen .discover-header h2 {
    background: linear-gradient(135deg, var(--app-text) 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
}

[data-theme="dark"] #discoverScreen .discover-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #FF80AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards - richer shadows */
#discoverScreen .discover-card {
    box-shadow:
        0 8px 32px rgba(233, 30, 99, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(233, 30, 99, 0.04);
}

[data-theme="dark"] #discoverScreen .discover-card {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(233, 30, 99, 0.08) !important;
    border: 1px solid rgba(233, 30, 99, 0.06);
}

/* Like button - more alive with pulse glow */
#discoverScreen .discover-like-btn {
    background: linear-gradient(135deg, #E91E63 0%, #FF4081 50%, #F06292 100%) !important;
    box-shadow:
        0 6px 24px rgba(233, 30, 99, 0.35),
        0 0 40px rgba(233, 30, 99, 0.1) !important;
}

#discoverScreen .discover-like-btn:active {
    box-shadow:
        0 3px 12px rgba(233, 30, 99, 0.2),
        0 0 20px rgba(233, 30, 99, 0.05) !important;
}

/* Skip button - subtle warm border */
#discoverScreen .discover-skip-btn {
    background: var(--app-surface-2) !important;
    border: 2px solid rgba(233, 30, 99, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* Tags - warmer */
#discoverScreen .discover-tag {
    background: rgba(233, 30, 99, 0.04) !important;
    border-color: rgba(233, 30, 99, 0.08) !important;
    color: var(--app-text-secondary) !important;
}

/* ========================================
   PROFILE SCREEN - HERO GLOW
   ======================================== */

/* Hero gradient - richer, deeper */
.profile-hero-bg {
    background: linear-gradient(135deg, #E91E63 0%, #D81558 30%, #AD1457 60%, #880E4F 100%) !important;
}

[data-theme="dark"] .profile-hero-bg {
    background: linear-gradient(135deg, #C2185B 0%, #AD1457 30%, #880E4F 60%, #6A0E3B 100%) !important;
}

/* Profile avatar - glow ring */
.profile-avatar-ring {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px rgba(233, 30, 99, 0.15) !important;
}

/* Credits button – dark mode pink gradient */
.profile-buy-credits-btn {
    background: linear-gradient(135deg, #E91E63 0%, #FF4081 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.45), 0 0 28px rgba(255, 64, 129, 0.20) !important;
}

.profile-buy-credits-btn svg {
    stroke: #ffffff !important;
}

.profile-buy-credits-btn:active {
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.35) !important;
}

/* Stat cards - warm shadows */
.stat-card {
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    background: var(--app-surface-2) !important;
}

.stat-card-primary {
    background: linear-gradient(135deg, #E91E63 0%, #D81558 50%, #C2185B 100%) !important;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Settings card - warm */
.settings-card {
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    background: var(--app-surface-2) !important;
}

.profile-form-card {
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    background: var(--app-surface-2) !important;
}

/* Form inputs - warm focus */
.form-field input:focus,
.form-field textarea:focus {
    border-color: #E91E63 !important;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08) !important;
}

/* Save button - richer gradient */
.btn-save {
    background: linear-gradient(135deg, #E91E63 0%, #D81558 50%, #C2185B 100%) !important;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3) !important;
}

/* ========================================
   CREDITS SCREEN - WARM
   ======================================== */

#creditsScreen {
    background: var(--app-bg) !important;
}

#creditsScreen .credit-card {
    background: var(--app-surface-2) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.04) !important;
    transition: all 0.2s ease;
}

/* Purchase buttons – glowing pink */
#creditsScreen .btn-purchase {
    background: linear-gradient(135deg, #E91E63 0%, #FF4081 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(233, 30, 99, 0.40) !important;
    letter-spacing: 0.4px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#creditsScreen .btn-purchase:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.30) !important;
}

/* Balance badge in store header */
#creditsScreen .current-balance {
    background: rgba(233, 30, 99, 0.15) !important;
    color: #FF4081 !important;
    border: 1px solid rgba(233, 30, 99, 0.28) !important;
}

/* ========================================
   AUTH SCREENS - WARM
   ======================================== */

#authScreen {
    background: var(--app-bg) !important;
}

#authScreen .auth-container {
    background: var(--app-surface-2) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.06) !important;
}

/* ========================================
   POPUP/MODAL - WARM
   ======================================== */

.popup-overlay .popup-content {
    background: var(--app-surface-2) !important;
    border: 1px solid rgba(233, 30, 99, 0.06) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 40px rgba(233, 30, 99, 0.04) !important;
}

/* ========================================
   TOGGLE SWITCH - ALIVE
   ======================================== */

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #E91E63, #FF4081) !important;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.25);
}

/* ========================================
   SCROLLBAR - WARM
   ======================================== */

::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.12) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.2) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.15) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.25) !important;
}

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

@media (prefers-reduced-motion: reduce) {
    #chatScreen::before,
    #profileSelection::before {
        display: none;
    }
}

/* ========================================
   PROFILE SCREEN – scroll overrides (highest priority)
   Kill all legacy hero/fixed-header rules
   ======================================== */
#profileScreen .profile-hero,
#profileScreen .profile-hero-bg,
#profileScreen .profile-hero-content,
#profileScreen .profile-hero-bg::before,
#profileScreen .profile-hero-bg::after {
    display: none !important;
}

#profileScreen {
    overflow: hidden !important;
}

/* The scroll wrapper takes all remaining height */
#profileScreen .profile-scroll-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Content area: not scrollable itself, flows inside scroll body */
#profileScreen .profile-content {
    flex: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    margin-top: 0 !important;
}

/* Nav stays pinned at the bottom */
#profileScreen > .app-nav {
    flex-shrink: 0;
    position: relative !important;
}

/* ========================================
   QUIZ – ATMOSPHERIC DARK BACKGROUND
   style.css hardcodes .quiz-container { background: white }
   this overrides it for the permanent dark mode
   ======================================== */

.quiz-container {
    background: #0D0A0F !important;
}

#quizFlow {
    background: linear-gradient(160deg, #0D0A0F 0%, #130F18 60%, #0a0812 100%) !important;
}

#quizFlow .quiz-header {
    background: #161218 !important;
    border-bottom-color: #2E2433 !important;
}

#quizFlow .quiz-content {
    background: transparent !important;
}

#quizFlow .quiz-question-card {
    background: #1C1620 !important;
    border-color: #2E2433 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(233, 30, 99, 0.06) !important;
}

#quizFlow .quiz-choice {
    background: #1C1620 !important;
    border-color: #2E2433 !important;
    color: #ffffff !important;
}

#quizFlow .quiz-choice:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.18) 0%, #1C1620 100%) !important;
    border-color: #E91E63 !important;
}

#quizFlow .quiz-progress-bar {
    background: #2E2433 !important;
}

#quizFlow .quiz-step {
    background: #2E2433 !important;
}

#quizFlow .match-content,
#quizFlow .unlock-card {
    background: #1C1620 !important;
    border: 1px solid #2E2433 !important;
}

/* ========================================
   PROFILE LANDING SCREEN
   Public preview shown for ?p= invite links
   ======================================== */

#profileLandingScreen {
    background: radial-gradient(ellipse at 40% 20%, #2d0045 0%, #0d0015 50%, #100020 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-landing-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 100%;
    box-sizing: border-box;
}

/* Avatar glow + ring */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.landing-avatar-glow {
    --landing-glow: #E91E63;
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-avatar-glow::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--landing-glow) 35%, transparent) 0%, transparent 70%);
    animation: landingGlowPulse 2.4s ease-in-out infinite alternate;
}

@keyframes landingGlowPulse {
    from { opacity: 0.7; transform: scale(0.92); }
    to   { opacity: 1;   transform: scale(1.08); }
}

.landing-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.12),
        0 8px 32px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.landing-avatar-letter {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.landing-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.landing-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ed573;
    box-shadow: 0 0 6px #2ed573;
    animation: onlinePulse 1.8s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Name + tagline */
.landing-name {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    text-align: center;
}

.landing-tagline {
    font-size: 16px;
    color: rgba(196, 181, 253, 0.75);
    margin: 0 0 28px;
    text-align: center;
}

/* Stats row */
.landing-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 28px;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.landing-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.landing-stat-lbl {
    font-size: 11px;
    color: rgba(196, 181, 253, 0.55);
    white-space: nowrap;
}

.landing-stat-div {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
}

/* Pitch text */
.landing-pitch {
    font-size: 15px;
    color: rgba(196, 181, 253, 0.6);
    text-align: center;
    line-height: 1.55;
    margin: 0 0 36px;
    max-width: 280px;
}

/* CTA buttons */
.landing-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #E91E63 0%, #FF4081 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233, 30, 99, 0.5);
}

.landing-btn-primary:active {
    transform: scale(0.97);
}

.landing-btn-secondary {
    width: 100%;
    padding: 14px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    color: rgba(196, 181, 253, 0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.landing-btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.25);
}

/* ========================================
   CHATS EMPTY STATE
   ======================================== */

.chats-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 24px 28px;
    gap: 10px;
    text-align: center;
}

.chats-empty-icon {
    font-size: 52px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.chats-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.chats-empty-sub {
    font-size: 14px;
    color: rgba(196, 181, 253, 0.5);
    margin: 0 0 8px;
}

/* ── Loading state (bouncing dots) ──────────── */
.chats-loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 40px;
}

.loading-heart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-bounce-dots {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 32px;
}

.bounce-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color, #E91E63);
    animation: dot-bounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.35);
}

.bounce-dot:nth-child(2) {
    animation-delay: 0.16s;
    background: #F06292;
}

.bounce-dot:nth-child(3) {
    animation-delay: 0.32s;
    background: #7C4DFF;
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.35);
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-16px) scale(1.15);
        opacity: 1;
    }
}

.loading-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(196, 181, 253, 0.55);
    letter-spacing: 0.3px;
    margin: 0;
}

/* ========================================
   INVITE / SHARE SECTION
   ======================================== */

.invite-section {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invite-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(196, 181, 253, 0.4);
    margin: 8px 0 2px;
    padding: 0 4px;
}

.invite-copy-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(233, 30, 99, 0.2);
    border-radius: 16px;
    background: rgba(233, 30, 99, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
}

.invite-copy-btn:hover {
    border-color: rgba(233, 30, 99, 0.45);
    background: rgba(233, 30, 99, 0.08);
}

.invite-copy-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.invite-copy-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invite-copy-text strong {
    font-size: 14px;
    color: var(--text-primary, #fff);
    font-weight: 700;
}

.invite-copy-text span {
    font-size: 12px;
    color: rgba(196, 181, 253, 0.5);
}

.invite-copy-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Share button on each contact card */
.contact-share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.55;
    transition: opacity 0.2s;
    line-height: 1;
}

.contact-share-btn:hover {
    opacity: 1;
}
