/* LoveLink AI Custom Styles */
:root {
    --crimson: #DC143C;
    --rose: #FF69B4;
    --gold: #FFD700;
    --purple: #8A2BE2;
    --dark-bg: #0f0f0f;
    --dark-card: #1e1e1e;
    --dark-nav: #151515;
    --text-muted: #888888;
    --text-light: #e0e0e0;
    --text-bright: #ffffff;
}

/* GLOBAL SCROLLBAR REMOVAL - Use "Scroll for More" popup instead */

* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-bright);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Color Utilities */
.text-crimson { color: var(--crimson) !important; }
.text-rose { color: var(--rose) !important; }
.text-gold { color: var(--gold) !important; }
.text-purple { color: var(--purple) !important; }
.text-light { color: var(--text-light) !important; }
.text-bright { color: var(--text-bright) !important; }
.bg-dark-card { background-color: var(--dark-card) !important; }
.bg-dark-nav { background-color: var(--dark-nav) !important; }
.bg-purple { background-color: var(--purple) !important; }
.border-purple { border-color: var(--purple) !important; }

/* Enhanced Card Animations */
@keyframes subtle-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes gentle-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes partner-mood-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

@keyframes notification-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== COMPLETE MOBILE REBUILD ========== */
@media (max-width: 768px) {
    /* STEP 1: Force all content below browser chrome */
    html, body {
        padding-top: 0 !important;
        margin-top: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* STEP 2: Create mobile-only XP bar at very top */
    .xp-progress-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2000 !important; /* Highest priority */
        height: 35px !important;
        padding: 3px 8px !important;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 15, 20, 0.98)) !important;
        backdrop-filter: blur(12px) !important;
        border-bottom: 2px solid rgba(255, 107, 157, 0.5) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* STEP 3: Compact XP content layout */
    .xp-progress-container * {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .xp-progress-container .progress {
        height: 8px !important;
        margin: 1px 0 !important;
        border-radius: 4px !important;
    }
    
    /* STEP 4: Push dashboard header WAY down */
    .dashboard-header {
        margin-top: 50px !important; /* XP bar (35px) + safe spacing (15px) */
        padding: 1.2rem 0 !important;
        position: relative !important;
        z-index: 1500 !important;
        background: linear-gradient(135deg, #1a0d0d 0%, #2d1414 25%, #4a1a2e 50%, #6d2c5a 75%, #8b1538 100%) !important;
        min-height: 80px !important;
    }
    
    /* Mobile XP text adjustments */
    .xp-progress-container .xp-text {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    /* Mobile XP progress bar adjustments */
    .xp-progress-container .progress {
        height: 20px !important;
        margin-top: 4px !important;
    }
    
    /* Compact mobile navigation buttons */
    .header-nav .btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.8rem !important;
        margin: 0 0.1rem !important;
    }
    
    /* Mobile dropdown full-width positioning */
    .header-nav .dropdown-menu {
        position: fixed !important;
        top: 165px !important; /* XP bar (35px) + header (80px) + spacing (50px) */
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-height: calc(100vh - 175px) !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        background: rgba(15, 15, 15, 0.98) !important;
        border: 1px solid rgba(255, 107, 157, 0.3) !important;
        border-radius: 12px !important;
    }
    
    /* Mobile card and content adjustments */
    .card {
        margin-bottom: 0.8rem !important;
        border-radius: 12px !important;
    }
    
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top: 0 !important; /* Prevent extra spacing */
    }
    
    /* Prevent text overlapping on mobile */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Mobile typography adjustments */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    p, .text-muted, .small {
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .xp-progress-container {
        height: 30px !important;
        padding: 2px 6px !important;
        font-size: 0.6rem !important;
    }
    
    .xp-progress-container .progress {
        height: 6px !important;
    }
    
    .dashboard-header {
        margin-top: 45px !important; /* XP bar (30px) + spacing (15px) */
        padding: 1rem 0 !important;
        min-height: 70px !important;
    }
    
    .header-nav .dropdown-menu {
        top: 145px !important; /* Adjusted for smaller XP bar */
        left: 4px !important;
        right: 4px !important;
    }
    
    .lovelink-title {
        font-size: 1.4rem !important;
    }
    
    .lovelink-subtitle {
        font-size: 0.5rem !important;
    }
}

/* ========== ENHANCED TOAST NOTIFICATION SYSTEM ========== */
@keyframes epic-slide-in {
    0% {
        opacity: 0;
        transform: translateX(400px) scale(0.8) rotate(5deg);
        filter: blur(8px);
    }
    60% {
        transform: translateX(-10px) scale(1.05) rotate(-1deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes epic-slide-out {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(400px) scale(0.8);
        filter: blur(4px);
    }
}

@keyframes sparkle-effect {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 107, 157, 0.4),
            0 0 60px rgba(138, 43, 226, 0.3),
            inset 0 1px 3px rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 107, 157, 0.6),
            0 0 90px rgba(138, 43, 226, 0.5),
            inset 0 1px 3px rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

@keyframes xp-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-8px) scale(1.1); }
    40% { transform: translateY(-4px) scale(1.05); }
    60% { transform: translateY(-6px) scale(1.08); }
    80% { transform: translateY(-2px) scale(1.02); }
}

@keyframes coin-flip {
    0% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(90deg) scale(1.1); }
    50% { transform: rotateY(180deg) scale(1.2); }
    75% { transform: rotateY(270deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* Enhanced Toast Container */
.lovelink-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    max-width: 420px;
    min-width: 350px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: epic-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lovelink-toast:hover {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(1.1);
}

.lovelink-toast.closing {
    animation: epic-slide-out 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Toast Type Styles */
.lovelink-toast.success {
    background: linear-gradient(135deg, 
        rgba(0, 150, 0, 0.95) 0%,
        rgba(50, 200, 50, 0.95) 50%,
        rgba(100, 255, 100, 0.95) 100%);
    border-color: rgba(0, 255, 0, 0.6);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: epic-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               pulse-glow 3s ease-in-out infinite;
}

.lovelink-toast.points {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%,
        rgba(255, 140, 0, 0.95) 50%,
        rgba(255, 69, 0, 0.95) 100%);
    border-color: rgba(255, 215, 0, 0.8);
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    animation: epic-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               sparkle-effect 2s ease-in-out infinite,
               coin-flip 1.2s ease-out;
}

.lovelink-toast.xp {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.95) 0%,
        rgba(186, 85, 211, 0.95) 30%,
        rgba(255, 20, 147, 0.95) 70%,
        rgba(255, 105, 180, 0.95) 100%);
    border-color: rgba(255, 20, 147, 0.7);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: epic-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               xp-bounce 1.5s ease-out,
               sparkle-effect 2.5s ease-in-out infinite;
}

.lovelink-toast.mood {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.95) 0%,
        rgba(255, 182, 193, 0.95) 50%,
        rgba(255, 20, 147, 0.95) 100%);
    border-color: rgba(255, 107, 157, 0.7);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: epic-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               pulse-glow 2s ease-in-out infinite;
}

.lovelink-toast.level-up {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.98) 0%,
        rgba(255, 140, 0, 0.98) 25%,
        rgba(255, 69, 0, 0.98) 50%,
        rgba(220, 20, 60, 0.98) 75%,
        rgba(138, 43, 226, 0.98) 100%);
    border: 3px solid rgba(255, 215, 0, 0.9);
    color: #ffffff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    font-size: 18px;
    padding: 25px 30px;
    animation: epic-slide-in 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               sparkle-effect 1.5s ease-in-out infinite,
               xp-bounce 2s ease-out,
               pulse-glow 3s ease-in-out infinite;
}

.lovelink-toast.error {
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.95) 0%,
        rgba(255, 69, 0, 0.95) 50%,
        rgba(255, 20, 147, 0.95) 100%);
    border-color: rgba(220, 20, 60, 0.8);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.lovelink-toast.info {
    background: linear-gradient(135deg, 
        rgba(30, 144, 255, 0.95) 0%,
        rgba(0, 191, 255, 0.95) 50%,
        rgba(138, 43, 226, 0.95) 100%);
    border-color: rgba(30, 144, 255, 0.7);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Toast Icon Styling */
.lovelink-toast .toast-icon {
    display: inline-block;
    font-size: 24px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: gentle-rotate 3s ease-in-out infinite;
}

.lovelink-toast.points .toast-icon {
    animation: coin-flip 1.2s ease-out, gentle-rotate 4s ease-in-out infinite;
}

.lovelink-toast.xp .toast-icon {
    animation: xp-bounce 1.5s ease-out, gentle-rotate 3s ease-in-out infinite;
}

.lovelink-toast.level-up .toast-icon {
    font-size: 30px;
    animation: sparkle-effect 1s ease-in-out infinite, 
               xp-bounce 2s ease-out,
               gentle-rotate 4s ease-in-out infinite;
}

/* Close button styling */
.lovelink-toast .toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lovelink-toast .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* Progress bar for toast duration */
.lovelink-toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 18px 18px;
    transition: width linear;
}

.lovelink-toast.success .toast-progress { background: rgba(0, 255, 0, 0.6); }
.lovelink-toast.points .toast-progress { background: rgba(255, 215, 0, 0.8); }
.lovelink-toast.xp .toast-progress { background: rgba(255, 20, 147, 0.7); }
.lovelink-toast.mood .toast-progress { background: rgba(255, 107, 157, 0.7); }
.lovelink-toast.level-up .toast-progress { background: rgba(255, 215, 0, 0.9); }
.lovelink-toast.error .toast-progress { background: rgba(220, 20, 60, 0.7); }
.lovelink-toast.info .toast-progress { background: rgba(30, 144, 255, 0.7); }

/* Mobile Responsive Toast Adjustments */
@media (max-width: 768px) {
    .lovelink-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: calc(100vw - 30px);
        min-width: unset;
        padding: 18px 20px;
        font-size: 15px;
        animation: epic-slide-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .lovelink-toast.level-up {
        padding: 22px 25px;
        font-size: 17px;
    }
    
    .lovelink-toast .toast-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .lovelink-toast.level-up .toast-icon {
        font-size: 26px;
    }
}

/* Button styling for notification demos */
.btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFD700;
    color: #1a1a1a;
    font-weight: 600;
    text-shadow: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-color: #FFA500;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

/* ========== ENHANCED NOTIFICATION DROPDOWN SYSTEM ========== */

/* Main dropdown container */
.notification-dropdown-enhanced {
    background: linear-gradient(145deg, 
        rgba(26, 13, 13, 0.98) 0%, 
        rgba(45, 20, 20, 0.98) 25%, 
        rgba(74, 26, 46, 0.98) 50%, 
        rgba(109, 44, 90, 0.98) 75%, 
        rgba(139, 21, 56, 0.98) 100%) !important;
    
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.15) !important;
    
    animation: notification-enhanced-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
    
    min-width: 380px !important;
    max-width: 420px !important;
    max-height: 70vh !important;
    
    padding: 0 !important;
    overflow: hidden !important;
}

/* Notification header */
.notification-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 107, 157, 0.15));
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.notification-title {
    color: #ffd700 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin: 0 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bg-gradient-gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    color: #1a0d0d !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
}

/* Notification summary styling */
.notification-summary {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.text-gold {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}

/* Scrollable notifications area */
.notifications-scroll-area {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 0;
    position: relative;
}

    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}


/* Individual notification items */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    margin: 4px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.15), 
        rgba(255, 215, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.25);
}

.notification-unread {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.1), 
        rgba(255, 215, 0, 0.05)) !important;
    border-color: rgba(255, 107, 157, 0.3) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 157, 0.2);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 157, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.notification-icon i {
    color: #ffd700;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notification-time {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 12px;
    font-weight: 400;
}

.notification-new-indicator {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #ff6b9d, #ffd700);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.8);
    animation: notification-pulse 2s infinite;
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Empty state */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.notification-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    color: rgba(255, 215, 0, 0.4);
}

.notification-empty span {
    font-size: 14px;
    font-weight: 500;
}

/* Fixed action buttons */
.notification-actions {
    background: linear-gradient(135deg, rgba(26, 13, 13, 0.9), rgba(45, 20, 20, 0.9));
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    padding: 16px 20px;
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.notification-action-form {
    margin: 0;
}

.notification-action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-action-btn.primary {
    background: linear-gradient(135deg, #ff6b9d, #ffd700);
    color: #1a0d0d !important;
    text-shadow: none;
    box-shadow: 
        0 6px 16px rgba(255, 107, 157, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.notification-action-btn.primary:hover {
    background: linear-gradient(135deg, #ff8fb3, #ffe650);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(255, 107, 157, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: #1a0d0d !important;
}

.notification-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.notification-action-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

/* Animation keyframes */
@keyframes notification-enhanced-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notification-pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 107, 157, 0.8);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(255, 107, 157, 1);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 107, 157, 0.8);
    }
}

/* Mobile responsiveness for enhanced notifications */
@media (max-width: 768px) {
    .notification-dropdown-enhanced {
        min-width: 320px !important;
        max-width: 95vw !important;
        max-height: 80vh !important;
        margin: 0 10px !important;
    }
    
    .notification-header {
        padding: 14px 16px;
    }
    
    .notification-title {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }
    
    .notifications-scroll-area {
        max-height: 200px;
    }
    
    .notification-item {
        padding: 12px 16px;
        margin: 3px 8px;
    }
    
    .notification-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .notification-icon i {
        font-size: 12px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .notification-time {
        font-size: 11px;
    }
    
    .notification-actions {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .notification-action-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Enhanced notification count badge for header and dropdown */
.notification-count-badge {
    position: absolute;
    background: linear-gradient(45deg, #ff6b9d, #ffd700) !important;
    color: #1a0d0d !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 7px !important;
    border-radius: 12px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(255, 107, 157, 0.5), 
                0 0 15px rgba(255, 215, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    animation: notification-count-pulse 2s infinite !important;
    z-index: 1060 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced notification bell badge with pulse animation */
.notification-pulse {
    animation: notification-bell-pulse 2s infinite !important;
}

/* Special styling for notification button when there are unread notifications */
.notification-bell.has-unread {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 215, 0, 0.1)) !important;
    border-color: rgba(255, 107, 157, 0.8) !important;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3) !important;
}

.notification-bell.has-unread:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(255, 215, 0, 0.2)) !important;
    border-color: rgba(255, 107, 157, 1) !important;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5) !important;
}

/* Enhanced dropdown styling for all premium dropdowns */
.notification-dropdown-enhanced,
.dropdown-menu.premium-dropdown {
    min-width: 380px !important;
    max-width: 420px !important;
    background: linear-gradient(135deg, 
        rgba(26, 13, 13, 0.98), 
        rgba(45, 20, 30, 0.98)) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3), 
                0 0 40px rgba(255, 215, 0, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    position: fixed !important;
    transform: none !important;
    will-change: auto !important;
    z-index: 1055 !important;
}

@keyframes notification-count-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 107, 157, 0.5), 
                    0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 107, 157, 0.7), 
                    0 0 25px rgba(255, 215, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 107, 157, 0.5), 
                    0 0 15px rgba(255, 215, 0, 0.3);
    }
}

@keyframes notification-bell-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Make the primary notification action button position relative for badge positioning */
.notification-action-btn.primary {
    position: relative;
}

/* Enhanced Notification Header */
.notification-header {
    padding: 20px 24px 16px !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08), 
        rgba(255, 107, 157, 0.05)) !important;
    border-radius: 20px 20px 0 0 !important;
}

.notification-title {
    color: #ffd700 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 0 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Scrollable Notifications Area */
.notifications-scroll-area {
    max-height: 240px !important;
    overflow-y: auto !important;
    padding: 8px 0 !important;
}

    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

/* Individual Notification Items */
.notification-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 16px 24px !important;
    margin: 4px 12px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.notification-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.15), 
        rgba(255, 215, 0, 0.15)) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(255, 107, 157, 0.2) !important;
}

.notification-unread {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.2), 
        rgba(255, 215, 0, 0.1)) !important;
    border-left: 4px solid #ff6b9d !important;
    font-weight: 600 !important;
}

.notification-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 157, 0.2)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.notification-icon i {
    color: #ffd700 !important;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5) !important;
    font-size: 16px !important;
}

.notification-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.notification-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.notification-time {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.notification-badge {
    margin-left: 8px !important;
    flex-shrink: 0 !important;
}

/* Empty State */
.notification-empty .notification-icon {
    background: rgba(255, 255, 255, 0.05) !important;
}

.notification-empty .notification-icon i {
    color: rgba(255, 215, 0, 0.3) !important;
}

.notification-empty .notification-title {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

/* Fixed Action Buttons */
.notification-actions {
    padding: 16px 24px 20px !important;
    border-top: 1px solid rgba(255, 215, 0, 0.2) !important;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05), 
        rgba(255, 107, 157, 0.03)) !important;
    border-radius: 0 0 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.notification-action-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.notification-action-btn.primary {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.2), 
        rgba(255, 215, 0, 0.2)) !important;
    border: 2px solid rgba(255, 215, 0, 0.4) !important;
    color: #ffd700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.notification-action-btn.primary:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.3), 
        rgba(255, 215, 0, 0.3)) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3) !important;
    color: #ffd700 !important;
}

.notification-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.notification-action-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
    color: #ffd700 !important;
}
.btn-purple { 
    background-color: var(--purple); 
    border-color: var(--purple); 
    color: white; 
}
.btn-purple:hover { 
    background-color: #7B1FA2; 
    border-color: #7B1FA2; 
    color: white; 
}

/* Improved Text Readability */
.text-muted {
    color: var(--text-muted) !important;
}

p, .lead, .card-text {
    color: var(--text-light) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-bright) !important;
}

.form-label {
    color: var(--text-light) !important;
    font-weight: 500;
}

.form-control {
    background-color: var(--dark-card);
    border-color: #444;
    color: var(--text-bright);
}

.form-control:focus {
    background-color: var(--dark-card);
    border-color: var(--crimson);
    color: var(--text-bright);
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

.form-check-label {
    color: var(--text-light) !important;
}

.navbar-brand, .nav-link {
    color: var(--text-bright) !important;
}

.alert {
    border: 1px solid #444;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    color: var(--text-light);
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a0a0a  100%);
}

.hero-content {
    max-width: 500px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    border: 1px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.border-crimson {
    border-color: var(--crimson) !important;
}

.border-rose {
    border-color: var(--rose) !important;
}

/* Enhanced 3D glossy message bubbles */
.message-bubble {
    max-width: 300px;
    word-wrap: break-word;
    position: relative;
    transform: translateZ(0);
    transition: all 0.2s ease;
}

.message-bubble:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.message-bubble.sent {
    margin-left: auto;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #000;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-bubble.received {
    margin-right: auto;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glossy avatar effects */
.avatar {
    position: relative;
    transform: translateZ(0);
    transition: all 0.2s ease;
}

.avatar:hover {
    transform: translateY(-1px) scale(1.05);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, var(--crimson), var(--rose));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #b91138, #e55a9c);
}

.btn-rose {
    background: linear-gradient(45deg, var(--rose), #e91e63);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-rose:hover {
    background: linear-gradient(45deg, #e55a9c, #c2185b);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-gold {
    background: linear-gradient(45deg, var(--gold), #e0a800);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(45deg, #e0a800, #d39e00);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--crimson);
    color: var(--crimson);
}

.btn-outline-primary:hover {
    background-color: var(--crimson);
    border-color: var(--crimson);
}

/* Enhanced Gradient Button Styles */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--rose) 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #b91138 0%, #e55a9c 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.btn-secondary-gradient {
    background: linear-gradient(135deg, var(--purple) 0%, #9c27b0 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary-gradient:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #8e24aa 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.btn-accent-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, #f4a100 100%);
    border: none;
    color: #000;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-accent-gradient:hover {
    background: linear-gradient(135deg, #e0a800 0%, #e59100 100%);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-enhanced {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--rose) !important;
}

/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 76px);
    border-right: 1px solid #333;
}

.sidebar .nav-link {
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(220, 20, 60, 0.1);
    color: var(--rose);
}

.sidebar .nav-link.active {
    background-color: var(--crimson);
    color: #ffffff;
}

/* Main Content */
.main-content {
    padding-left: 0;
}

/* Form Styles */
.form-control, .form-select {
    background-color: var(--dark-card);
    border: 1px solid #444;
    color: #ffffff;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark-card);
    border-color: var(--crimson);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Badge Styles */
.bg-rose-badge {
    background-color: var(--rose) !important;
    color: #ffffff;
}

.bg-crimson {
    background-color: var(--crimson) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
    color: #000000;
}

/* Auth Forms */
.auth-forms {
    padding: 2rem;
}

.auth-form {
    transition: opacity 0.3s ease;
}

/* Quiz Styles */
.quiz-question {
    background-color: var(--dark-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.form-check-input:checked {
    background-color: var(--crimson);
    border-color: var(--crimson);
}

.form-check-input:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

/* Archetype Display */
.archetype-display {
    padding: 2rem;
}

.archetype-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--crimson), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Kink Tags */
.kink-tags .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 3px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Step Guide */
.step-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--crimson), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h6 {
    margin-bottom: 0.5rem;
    color: var(--rose);
}

/* Message Styles */
.generated-message {
    background-color: rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    border: 1px solid var(--crimson);
}

.message-preview {
    font-size: 1.1rem;
    line-height: 1.6;
}

.message-text {
    font-style: italic;
    margin-bottom: 0;
}

.message-meta {
    border-top: 1px solid #444 !important;
}

/* Send Options */
.send-option {
    background-color: var(--dark-card);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.send-option:hover {
    border-color: var(--crimson);
    background-color: rgba(220, 20, 60, 0.05);
}

.sms-fields {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
}

/* Chat History */
.chat-container {
    max-height: 600px;
    overflow-y: auto;
}

.chat-message {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.chat-message:last-child {
    border-bottom: none;
}

.message-header {
    margin-bottom: 0.75rem;
}

.message-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--crimson);
    padding: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-divider {
    border-color: #333;
    margin: 1.5rem 0;
}

/* Store Styles */
.store-item {
    transition: all 0.3s ease;
}

.store-item:hover {
    transform: translateY(-3px);
}

.features {
    text-align: left;
}

.features ul {
    padding-left: 1rem;
}

/* Credit Cost Display */
.credit-cost-display {
    border: 1px solid var(--crimson);
    background: rgba(220, 20, 60, 0.1);
}

/* Statistics */
.stat-item h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .auth-forms {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .tags-container {
        justify-content: flex-start;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .alert {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover Effects */
.card-body:hover .fa-2x {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom Scrollbar */
    background: var(--dark-card);
    border-radius: 4px;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Focus States */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* Text Selection */
::selection {
    background-color: var(--crimson);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--crimson);
    color: #ffffff;
}

/* Comprehensive Explanation Styling */
.explanation-content {
    background-color: rgba(30, 30, 30, 0.8);
    border-left: 4px solid var(--crimson);
    font-size: 1rem;
    line-height: 1.7;
}

.explanation-content strong {
    color: var(--rose);
    font-weight: 600;
}

.explanation-content p {
    margin-bottom: 1rem;
}

.bg-dark-secondary {
    background-color: #2a2a2a !important;
}

/* In-app messaging styles */
.chat-messages {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #333;
}

.message-bubble {
    max-width: 80%;
    margin-bottom: 15px;
}

.message-bubble.sent {
    margin-left: auto;
    text-align: right;
}

.message-bubble.received {
    margin-right: auto;
    text-align: left;
}

.message-content {
    word-wrap: break-word;
    line-height: 1.4;
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #b3d9ff;
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #b3e5c7;
}

.message-tags {
    opacity: 0.8;
}

.response-option {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.response-option:hover {
    border-color: #555;
    background-color: rgba(255, 255, 255, 0.05);
}

.response-content {
    font-size: 0.9em;
    line-height: 1.3;
}

.quick-actions {
    border-top: 1px solid #333;
    padding-top: 15px;
}

.chat-stats .stat-item {
    padding: 10px;
    border-radius: 8px;
    background: rgba(220, 20, 60, 0.1);
    margin: 5px 0;
}

/* Copy Button Styles - Mobile Friendly */
.copy-button {
    transition: all 0.2s ease;
    min-width: 44px; /* Minimum touch target size for mobile */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-button.btn-sm {
    min-width: 36px;
    min-height: 36px;
    font-size: 0.8rem;
}

/* Generated Message Copy Button */
.generated-message .copy-button {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Chat Message Copy Button */
.message-bubble .copy-button {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.message-bubble .copy-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #000 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .copy-button {
        min-width: 48px;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .copy-button.btn-sm {
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    .generated-message .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .generated-message .copy-button {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .message-bubble .d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .message-bubble .copy-button {
        margin-top: 8px;
    }
}

/* Success state for copy buttons */
.copy-button.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.copy-button.btn-success i {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Chat Mode Selector Styles */
.chat-mode-selector .btn-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-mode-selector .btn {
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chat-mode-selector .btn-outline-rose {
    color: var(--rose);
    border-color: var(--rose);
    background: rgba(255, 182, 193, 0.1);
}

.chat-mode-selector .btn-outline-rose:hover {
    background: rgba(255, 182, 193, 0.2);
    transform: translateY(-1px);
}

.chat-mode-selector .btn-check:checked + .btn-outline-rose {
    background: var(--rose);
    border-color: var(--rose);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.4);
}

.mode-description {
    font-style: italic;
    padding: 8px 12px;
    background: rgba(255, 182, 193, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--rose);
}

/* Mode-specific fields styling */
.mode-specific-fields {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333;
}

.mode-specific-fields .form-select {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.mode-specific-fields .form-select:focus {
    background-color: #333;
    border-color: var(--rose);
    box-shadow: 0 0 0 0.2rem rgba(255, 182, 193, 0.25);
}

/* Responsive chat mode selector */
@media (max-width: 768px) {
    .chat-mode-selector .btn {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .chat-mode-selector .btn i {
        display: none;
    }
    
    .mode-description {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

/* Additional Button Styles */
.btn-outline-rose {
    color: var(--rose);
    border: 2px solid var(--rose);
    background: transparent;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-rose:hover {
    background: var(--rose);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-outline-light {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline-gold {
    color: var(--gold);
    border: 2px solid var(--gold);
    background: transparent;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.text-gold {
    color: var(--gold) !important;
}

.btn-rose {
    background: linear-gradient(135deg, var(--crimson), var(--rose));
    border: none;
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-rose:hover {
    background: linear-gradient(135deg, var(--rose), var(--crimson));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-outline-crimson {
    color: var(--crimson);
    border: 2px solid var(--crimson);
    background: transparent;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-crimson:hover {
    background: var(--crimson);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

/* Button styles for partner cards */
.partner-card button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none !important;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.partner-card button:focus,
.partner-card button:active {
    outline: none !important;
    border: none !important;
}

/* Golden Badge Cover Effect - Sparks Marketplace Item */
.golden-badge-cover {
    position: relative;
}

.golden-badge-cover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffb347, #ffd700);
    background-size: 300% 300%;
    animation: golden-glow-rotate 3s linear infinite;
    z-index: -1;
    filter: blur(3px);
}

.golden-badge-cover::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    background: radial-gradient(circle, #ffd700, #ffb347);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    z-index: 10;
    animation: crown-pulse 2s ease-in-out infinite;
}

@keyframes golden-glow-rotate {
    0% { 
        background-position: 0% 50%;
        filter: blur(3px) brightness(1.2);
    }
    50% { 
        background-position: 100% 50%;
        filter: blur(2px) brightness(1.5);
    }
    100% { 
        background-position: 0% 50%;
        filter: blur(3px) brightness(1.2);
    }
}

@keyframes crown-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px gold);
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px gold);
    }
}

/* User Profile Section Styles */
.user-profile-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(255, 105, 180, 0.1));
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none !important;
    cursor: pointer;
    min-width: 140px;
    margin: 0 8px;
}

.user-profile-header:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(255, 105, 180, 0.2));
    border-color: rgba(255, 105, 180, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    color: white !important;
    text-decoration: none !important;
}

.user-kink-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.user-display-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-profile-header {
        padding: 6px 12px;
        gap: 8px;
        margin: 0 4px;
        min-width: 120px;
    }
    
    .user-kink-badge {
        width: 32px;
        height: 32px;
    }
    
    .user-display-name {
        font-size: 0.85rem;
    }
}
