* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles pour les icônes emoji */
.emoji-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 4px;
}

.emoji-icon-small {
    width: 10px;
    height: 10px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 4px;
}

.emoji-icon-btn {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
}

.emoji-icon-chat {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Version PC - Téléphone à hauteur de la page visible */
@media (min-width: 481px) {
    html {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        background-attachment: fixed;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    html {
        overflow: hidden !important;
    }
    
    body {
        height: calc(100vh - 40px);
        min-height: calc(100vh - 40px);
        max-height: calc(100vh - 40px);
        overflow: hidden !important;
        border-radius: 30px;
        border: 8px solid #1a1a1a;
        box-shadow: 
            0 0 0 4px #2a2a2a,
            0 0 0 8px #1a1a1a,
            0 20px 60px rgba(0, 0, 0, 0.8),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        position: relative;
        background: #ffffff;
        z-index: 1;
    }
    
    body::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: #2a2a2a;
        border-radius: 2px;
        z-index: 10000;
    }
    
    /* Header - Style identique au téléphone - Hauteur réduite */
    .premium-header {
        padding: 6px 16px 6px !important;
        text-align: center;
        position: relative;
        border-radius: 22px 22px 0 0;
    }
    
    .header-badge {
        position: absolute;
        top: 6px;
        right: 12px;
        background: #ffffff;
        border: 1.5px solid #FF8E53;
        color: #333333;
        margin-bottom: 0 !important;
        font-size: 9px;
        padding: 3px 8px !important;
        backdrop-filter: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        animation: none;
    }
    
    
    .premium-header .subtitle {
        display: none !important;
    }
    
    .premium-header .try-text {
        background: #ffffff;
        border: 1.5px solid rgba(255, 142, 83, 0.5);
        color: #333333;
        font-size: 9px;
        margin-top: 4px !important;
        padding: 4px 10px !important;
        backdrop-filter: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        line-height: 1.3;
    }
    
    .premium-header h1 {
        font-size: 18px !important;
        letter-spacing: 1.5px;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
        line-height: 1.2;
    }
    
    /* Modals limitées à la zone du téléphone */
    body .modal {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        z-index: 2000 !important;
    }
    
    body .modal.active {
        background-color: rgba(0, 0, 0, 0.95) !important;
    }
    
    .unlock-footer {
        border-radius: 0 0 22px 22px;
        padding: 6px 16px 6px !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
    }
    
    .unlock-text {
        font-size: 9px;
        padding: 4px 10px !important;
        margin-bottom: 0 !important;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .unlock-btn {
        padding: 7px 16px !important;
        font-size: 12px;
    }
    
    .footer-top-row {
        margin-bottom: 4px !important;
        height: 14px !important;
        min-height: 14px !important;
    }
    
    .footer-badge {
        font-size: 8px;
        padding: 2px 6px !important;
    }
    
    .btn-icon {
        font-size: 14px;
    }
    
    .btn-text {
        font-size: 12px;
    }
    
    .btn-price {
        font-size: 11px;
        padding: 2px 5px !important;
    }
    
    /* Réduction des contacts */
    .contact-item {
        padding: 10px 14px;
    }
    
    .avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .contact-name {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .snap-status {
        font-size: 9px;
    }
    
    .new-snap {
        font-size: 9px;
    }
    
    .time {
        font-size: 8px;
    }
    
    .content-indicator {
        width: 8px;
        height: 8px;
        margin-right: 4px;
    }
    
    .chat-icon {
        font-size: 14px;
    }
    
    /* Désactiver le scroll dans le téléphone */
    .contacts-list {
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
    
    /* Réduction des notifications */
    .notifications-container-footer .notification {
        padding: 2px 4px;
    }
    
    .notifications-container-footer .notification-icon {
        font-size: 6px;
    }
    
    .notifications-container-footer .notification-text {
        font-size: 5px;
    }
    
    .notifications-container-footer .notification-time {
        font-size: 4px;
    }
}

/* Header Premium */
.premium-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 30%, #FF6B9D 70%, #C44569 100%);
    padding: 14px 20px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: max(14px, env(safe-area-inset-top));
}

.premium-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.premium-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
    margin-top: 0;
    display: block;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    line-height: 1.2;
    text-transform: uppercase;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.premium-header .subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: block;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    animation: subtitleGlow 2.5s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 1;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.3);
    }
}

.premium-header .try-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.premium-header .try-text:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Liste des contacts */
.contacts-list {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contacts-list.mobile-limit {
    overflow: hidden;
    max-height: none;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 0;
    transform: translateX(0);
}

.contact-item:hover {
    background-color: #fafafa;
    transform: translateX(4px);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.contact-item:active {
    background-color: #f5f5f5;
    transform: translateX(2px) scale(0.98);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    font-size: 14px;
}

.badge.premium {
    color: #FFD700;
    font-size: 16px;
    animation: lightningPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes lightningPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.badge.halo {
    color: #FFD700;
    font-size: 16px;
    animation: haloGlow 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes haloGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
        filter: brightness(1.4);
    }
}

.badge.heart {
    color: #ff0000;
    font-size: 16px;
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

.badge.shrug {
    color: #666;
    font-size: 16px;
    display: inline-block;
}

.badge.search {
    color: #ff0000;
}

.snap-status {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.new-snap {
    font-weight: 600;
    margin-right: 5px;
}

.new-snap.photo {
    color: #ff0000;
}

.new-snap.video {
    color: #8B00FF;
}

.new-snap.message {
    color: #0066ff;
}

.time {
    color: #999;
}

.views {
    color: #999;
}

.fire {
    color: #ff6b00;
    font-size: 14px;
    margin-left: 2px;
    animation: fireFlicker 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(0.95);
        filter: brightness(0.9);
    }
    75% {
        transform: scale(1.05) rotate(2deg);
        filter: brightness(1.1);
    }
}

.heart-icon {
    font-size: 18px;
    color: #000;
    margin-left: 5px;
    flex-shrink: 0;
}

.content-indicator {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    flex-shrink: 0;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-item:hover .content-indicator {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.snap-status-content {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.content-indicator.photo {
    background-color: #ff0000;
}

.content-indicator.video {
    background-color: #8B00FF;
}

.content-indicator.message {
    background-color: #0066ff;
}

.chat-icon {
    font-size: 20px;
    color: #ccc;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.contact-item:hover .chat-icon {
    opacity: 0.6;
    transform: scale(1.1);
}

/* Footer avec bouton débloquer */
.unlock-footer {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 10px 20px max(20px, calc(20px + env(safe-area-inset-bottom)));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 100;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 2px solid rgba(255, 107, 107, 0.3);
    overflow: visible;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.unlock-btn {
    order: 1;
}

.unlock-text {
    order: 2;
}


.unlock-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 142, 83, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
    position: relative;
    z-index: 1;
    height: 24px;
    min-height: 24px;
}

.footer-badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    flex-shrink: 0;
    animation: footerBadgePulse 2.5s ease-in-out infinite;
}

.notifications-container-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    flex: 1;
    position: relative;
    pointer-events: none;
    min-width: 0;
    align-self: center;
}

@keyframes footerBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.unlock-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.4;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.unlock-btn {
    margin-top: 6px;
    margin-bottom: 0;
    transform: translateY(-6px);
}

.unlock-text strong {
    color: #FFD700;
    font-weight: 700;
    animation: textHighlight 2s ease-in-out infinite;
}

@keyframes textHighlight {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* Notifications */
.notifications-container {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 320px;
    z-index: 200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}


.notifications-container-footer .notification {
    width: 0;
    max-width: none;
    padding: 0;
    border-radius: 14px;
    margin: 0;
    opacity: 0;
    animation: none;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.96) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 16px rgba(255, 107, 107, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.notifications-container-footer .notification.sliding-in {
    animation: notificationExpandIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notifications-container-footer .notification.sliding-out {
    animation: notificationExpandOut 0.3s ease-in forwards;
}

@keyframes notificationExpandIn {
    from {
        width: 0;
        opacity: 0;
        padding: 0;
    }
    to {
        width: 100%;
        opacity: 1;
        padding: 8px 14px;
    }
}

@keyframes notificationExpandOut {
    from {
        width: 100%;
        opacity: 1;
        padding: 8px 14px;
    }
    to {
        width: 0;
        opacity: 0;
        padding: 0;
    }
}

.notifications-container-footer .notification-icon {
    font-size: 16px;
}

.notifications-container-footer .notification-text {
    font-size: 12px;
    line-height: 1.2;
}

.notifications-container-footer .notification-time {
    font-size: 10px;
}


.notifications-container-footer .notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 107, 107, 0.15) 50%,
        transparent 100%);
    animation: notificationShine 3s ease-in-out infinite;
    z-index: 0;
}

.notifications-container-footer .notification-icon {
    position: relative;
    z-index: 1;
}

.notifications-container-footer .notification-content {
    position: relative;
    z-index: 1;
}

.notification {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.96) 100%);
    backdrop-filter: blur(25px);
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 
        0 4px 16px rgba(255, 107, 107, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    animation: notificationSlideIn 0.3s ease-out forwards, notificationSlideOut 0.3s ease-in forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    max-width: 220px;
    transition: all 0.3s ease;
}



.notification:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.35),
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 107, 107, 0.15) 50%,
        transparent 100%);
    animation: notificationShine 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes notificationSlideOut {
    0%, 90% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}

@keyframes notificationShine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 107, 0.4));
    position: relative;
    z-index: 1;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.notification-text {
    font-size: 13px;
    color: #2a2a2a;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-name {
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.notification-time {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.8;
    flex-shrink: 0;
    white-space: nowrap;
}

.unlock-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FF6B9D 100%);
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonBounce 2s ease-in-out infinite;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}

.btn-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-price {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.unlock-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.unlock-btn:hover::before {
    left: 100%;
}

.unlock-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #FF7B7B 0%, #FF9E63 50%, #FF7BAD 100%);
    animation: buttonBounceHover 1s ease-in-out infinite, buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonBounceHover {
    0%, 100% {
        transform: translateY(-2px) scale(1.01);
    }
    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

.unlock-btn:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: buttonBounce 2s ease-in-out infinite;
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 6px 24px rgba(255, 107, 107, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 24px rgba(255, 107, 107, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.95);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.95);
    }
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contentScaleIn 0.3s ease-out;
    transform-origin: center center;
}

@keyframes contentScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-content {
    background-color: #000;
}

.photo-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease-out, opacity 0.3s ease-in;
    opacity: 0;
    animation: imageFadeIn 0.4s ease-out forwards;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-content img.loaded {
    opacity: 1;
}

.photo-content.blurred img {
    filter: blur(10px);
}

.video-content {
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.video-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    pointer-events: none;
}

.video-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease-out, opacity 0.3s ease-in;
    opacity: 0;
    animation: videoFadeIn 0.4s ease-out forwards;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    controls: false;
}

.video-content video::-webkit-media-controls {
    display: none !important;
}

.video-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-content video::-webkit-media-controls-panel {
    display: none !important;
}

.video-content video::-webkit-media-controls-play-button {
    display: none !important;
}

.video-content video::-webkit-media-controls-timeline {
    display: none !important;
}

.video-content video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.video-content video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.video-content video::-webkit-media-controls-mute-button {
    display: none !important;
}

.video-content video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.video-content video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-content video.loaded {
    opacity: 1;
}

.video-content.blurred video {
    filter: blur(10px);
}

/* Overlay avec flou et bouton débloquer */
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.blur-overlay[style*="flex"] {
    opacity: 1;
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.unlock-overlay-content {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100px;
}

.unlock-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 380px;
}

.unlock-catchphrase {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.5px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 107, 107, 0.4);
    }
}

.unlock-benefits {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
}

.benefit-item {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    padding: 8px 0;
    animation: benefitAppear 0.6s ease-out forwards;
    opacity: 0;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes benefitAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.unlock-overlay-btn {
    background: linear-gradient(135deg, #FF0080 0%, #FF6B6B 20%, #FF8E53 40%, #FF6B9D 60%, #FF0080 80%, #FF6B6B 100%);
    background-size: 300% 300%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.6),
        0 0 60px rgba(255, 107, 107, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    line-height: 1.4;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    animation: 
        overlayButtonAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        overlayButtonBreathe 2.5s ease-in-out infinite 0.8s,
        gradientShift 4s ease infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.unlock-overlay-btn span {
    position: relative;
    z-index: 2;
}

@keyframes overlayButtonAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.3) rotate(-10deg);
        filter: blur(10px);
    }
    50% {
        transform: translateY(-10px) scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes overlayButtonBreathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 
            0 0 30px rgba(255, 0, 128, 0.6),
            0 0 60px rgba(255, 107, 107, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: translateY(-8px) scale(1.08);
        box-shadow: 
            0 0 50px rgba(255, 0, 128, 0.8),
            0 0 90px rgba(255, 107, 107, 0.6),
            0 12px 40px rgba(0, 0, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.6);
    }
}


.unlock-overlay-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #FF0080, #FF6B6B, #FF8E53, #FF6B9D, #FF0080);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.7;
    animation: gradientShift 3s ease infinite, glowPulse 2s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.unlock-overlay-btn:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
        0 0 60px rgba(255, 0, 128, 1),
        0 0 100px rgba(255, 107, 107, 0.8),
        0 0 140px rgba(255, 142, 83, 0.6),
        0 12px 48px rgba(0, 0, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    animation: gradientShift 3s ease infinite;
    text-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(255, 255, 255, 0.6);
}

.unlock-overlay-btn:hover::after {
    opacity: 1;
    filter: blur(12px);
    transform: scale(1.1);
}

.unlock-overlay-btn:active {
    transform: translateY(-2px) scale(1.02) rotate(0deg);
    box-shadow: 
        0 0 40px rgba(255, 0, 128, 0.9),
        0 0 80px rgba(255, 107, 107, 0.7),
        0 6px 24px rgba(0, 0, 0, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
    animation: buttonClick 0.3s ease;
}

@keyframes buttonClick {
    0% {
        transform: translateY(-2px) scale(1.02);
    }
    50% {
        transform: translateY(0px) scale(0.98);
    }
    100% {
        transform: translateY(-2px) scale(1.02);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 1001;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Cacher la croix pour photo et vidéo */
.photo-content .close-btn,
.video-content .close-btn {
    display: none;
}

/* Timer bar pour photo */
.timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

/* Modal Message/Conversation */
.message-content {
    background-color: #fff;
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 700px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.message-header {
    background: linear-gradient(180deg, #FFFC00 0%, #FFEB3B 50%, #FFD700 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-name {
    font-weight: 700;
    font-size: 18px;
    color: #000;
    flex: 1;
}

.message-content .close-btn {
    position: relative;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.conversation {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #fafafa;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.message-bubble.received {
    background-color: #ffffff;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble.sent {
    background-color: #FFFC00;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble p {
    margin: 0;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    color: #999;
    align-self: flex-end;
    margin-top: 2px;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
        overflow-y: hidden;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        margin: 0;
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: 0;
    }
    
    html {
        height: -webkit-fill-available;
    }
    
    .unlock-footer {
        left: 0;
        transform: none;
        max-width: 100%;
    }
    
    .premium-header {
        padding: 14px 16px 12px;
        padding-top: max(14px, env(safe-area-inset-top));
    }
    
    .header-badge {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 6px;
    }
    
    .premium-header h1 {
        font-size: 22px;
        letter-spacing: 1.5px;
        margin-bottom: 4px;
    }
    
    .premium-header .subtitle {
        display: none;
    }
    
    .premium-header .try-text {
        font-size: 10px;
        margin-top: 4px;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .footer-badge {
        font-size: 9px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    
    .unlock-text {
        font-size: 12px;
        padding: 10px 14px;
        margin-bottom: 14px;
    }
    
    .unlock-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .btn-price {
        padding: 3px 8px;
        font-size: 14px;
    }
    
    .contact-item {
        padding: 12px 15px;
    }
    
    /* Cacher les contacts après Jade sur mobile */
    .contact-item:nth-child(n+8) {
        display: none;
    }
    
    .avatar {
        width: 45px;
        height: 45px;
    }
    
    .content-indicator {
        width: 10px;
        height: 10px;
    }
    
    .unlock-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
        margin-bottom: 0;
        z-index: 1000;
    }
    
    .contacts-list {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    .unlock-text {
        font-size: 11px;
        margin-bottom: 0;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .unlock-btn {
        padding: 12px;
        font-size: 16px;
        margin-top: 4px;
        transform: translateY(-4px);
    }
    
    .contacts-list {
        padding-bottom: 0;
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
    
    .footer-top-row {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
        height: 26px;
        min-height: 26px;
    }
    
    .footer-badge {
        font-size: 9px;
        padding: 4px 10px;
    }
    
    .notifications-container-footer {
        height: 100%;
    }
    
    .notifications-container-footer .notification {
        width: 100%;
        max-width: none;
        padding: 6px 8px;
    }
    
    .notifications-container-footer .notification-icon {
        font-size: 14px;
    }
    
    .notifications-container-footer .notification-text {
        font-size: 11px;
    }
    
    .notifications-container-footer .notification-time {
        font-size: 9px;
    }
    
    .unlock-overlay-btn {
        white-space: nowrap;
        font-size: 16px;
        padding: 16px 24px;
        max-width: 90%;
    }
    
    .unlock-overlay-btn span {
        white-space: nowrap;
    }
}

