.heart-effect {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.heart-effect:hover {
    transform: scale(1.2);
    color: #ff6b9d;
}

.heart-effect.loved {
    color: #ff1744 !important;
    animation: heartBeat 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.5) rotate(-5deg); }
    30% { transform: scale(1.2) rotate(5deg); }
    45% { transform: scale(1.4) rotate(-3deg); }
    60% { transform: scale(1.1) rotate(2deg); }
    80% { transform: scale(1.3) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.heart-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

.heart-particle::before {
    content: '❤️';
    position: absolute;
    font-size: 12px;
    top: -6px;
    left: -6px;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.5);
    }
}

.heart-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #ff1744 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
    0% {
        width: 2px;
        height: 2px;
        opacity: 1;
    }
    50% {
        width: 30px;
        height: 30px;
        opacity: 0.8;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

/* Heart Popup Styles - Professional Design */
.heart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.25s ease-out forwards;
}

.heart-popup {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 35px 35px;
    text-align: center;
    color: #333;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    animation: popIn 0.25s ease-out forwards;
    overflow: hidden;
}

.heart-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #ff1744, #ff6b9d);
    border-radius: 20px 20px 0 0;
}

.heart-popup h2 {
    font-size: 1.6em;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ff1744;
    letter-spacing: 1px;
}

.heart-popup p {
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #777;
    text-align: center;
}

.heart-popup .close-btn {
    background: linear-gradient(135deg, #ff1744, #ff4569);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.heart-popup .close-btn:hover {
    background: linear-gradient(135deg, #e91e63, #ff1744);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.heart-popup .close-btn:active {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 23, 68, 0.3);
}

.heart-popup .password-input {
    width: 100%;
    padding: 14px 18px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    color: #333;
    font-size: 1em;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.heart-popup .password-input::placeholder {
    color: #aaa;
}

.heart-popup .password-input:focus {
    border-color: #ff6b9d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.heart-popup .password-input:hover:not(:focus) {
    border-color: #ccc;
    background: #fff;
}

.heart-popup .error-message {
    color: #d32f2f;
    font-size: 0.9em;
    margin-top: 15px;
    margin-bottom: 5px;
    display: none;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.2);
    text-align: center;
    font-weight: 500;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.02) translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes floatHeartBg {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: scale(1) translateX(0) rotate(0deg);
    }
    10% {
        transform: scale(1.02) translateX(-8px) rotate(-1deg);
    }
    20% {
        transform: scale(1.02) translateX(8px) rotate(1deg);
    }
    30% {
        transform: scale(1.02) translateX(-6px) rotate(-1deg);
    }
    40% {
        transform: scale(1.02) translateX(6px) rotate(1deg);
    }
    50% {
        transform: scale(1.02) translateX(-4px) rotate(-0.5deg);
    }
    60% {
        transform: scale(1.02) translateX(4px) rotate(0.5deg);
    }
    70% {
        transform: scale(1.01) translateX(-2px) rotate(-0.25deg);
    }
    80% {
        transform: scale(1.01) translateX(2px) rotate(0.25deg);
    }
    90% {
        transform: scale(1.005) translateX(-1px) rotate(0deg);
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.15),
            0 12px 24px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.15),
            0 12px 24px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 107, 157, 0.3);
    }
}

/* Secret Love Page Styles */
#secret-love {
    max-height: 100vh;
    overflow-y: auto;
}

#secret-love .center-container {
    padding: 20px 0;
}

#secret-love .quotations {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

#secret-love h3 {
    font-size: 1.5em !important;
    margin: 15px 0 !important;
}

#secret-love p {
    font-size: 1em !important;
    line-height: 1.5 !important;
    margin: 10px 0 !important;
}

#secret-love .love-section {
    margin: 20px 0 !important;
    padding: 15px !important;
}

#secret-love h4 {
    font-size: 1.2em !important;
    margin: 10px 0 !important;
}

#secret-love h5 {
    font-size: 1.1em !important;
    margin: 10px 0 !important;
}

#secret-love ul li {
    font-size: 0.95em !important;
    margin: 5px 0;
}

#secret-love .final-message {
    margin: 15px 0 !important;
}

#secret-love .final-message h3 {
    font-size: 1.3em !important;
}

#secret-love .final-message p {
    font-size: 0.85em !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Heart Popup Mobile Optimizations */
    .heart-popup {
        max-width: 95%;
        width: 95%;
        padding: 32px 24px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .heart-popup h2 {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .heart-popup p {
        font-size: 1em;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .heart-popup .password-input {
        padding: 14px 20px;
        font-size: 1em;
        margin: 20px 0;
    }
    
    .heart-popup .close-btn {
        padding: 12px 28px;
        font-size: 1em;
    }
    
    .heart-popup .error-message {
        font-size: 0.9em;
        padding: 10px 16px;
    }

    #secret-love h3 {
        font-size: 1.2em !important;
    }
    
    #secret-love p {
        font-size: 0.9em !important;
    }
    
    #secret-love h4 {
        font-size: 1em !important;
    }
    
    #secret-love .love-section {
        margin: 15px 0 !important;
        padding: 10px !important;
    }
    
    .love-corner-message {
        bottom: 10px !important;
        right: 10px !important;
        font-size: 0.7em !important;
        padding: 8px 12px !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .heart-popup {
        max-width: 98%;
        width: 98%;
        padding: 28px 20px;
        margin: 10px;
        border-radius: 16px;
    }
    
    .heart-popup h2 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    
    .heart-popup p {
        font-size: 0.95em;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .heart-popup .password-input {
        padding: 12px 18px;
        font-size: 0.95em;
        margin: 18px 0;
    }
    
    .heart-popup .close-btn {
        padding: 10px 24px;
        font-size: 0.95em;
    }
    
    .heart-popup .error-message {
        font-size: 0.85em;
        padding: 8px 14px;
    }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .heart-popup {
        max-width: 520px;
        padding: 56px 48px;
    }
    
    .heart-popup h2 {
        font-size: 2.4em;
        margin-bottom: 20px;
    }
    
    .heart-popup p {
        font-size: 1.15em;
        margin-bottom: 36px;
    }
    
    .heart-popup .password-input {
        padding: 18px 28px;
        font-size: 1.15em;
        margin: 28px 0;
    }
    
    .heart-popup .close-btn {
        padding: 16px 36px;
        font-size: 1.15em;
    }
}

/* Love corner message */
.love-corner-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 23, 68, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
    z-index: 1000;
    opacity: 0;
    animation: fadeInCorner 1s ease-out 2s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInCorner {
    to { opacity: 1; }
}

/* Message List Styles */
.message-list {
    padding: 20px 0;
}

.message-list-header {
    text-align: center;
    margin-bottom: 30px;
}

.message-list-header h4 {
    font-size: 1.5em !important;
    background: linear-gradient(135deg, #ff6b9d, #ff1744);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.message-list-header .subtitle {
    color: #666666;
    font-size: 0.9em;
}

.messages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.message-item {
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.08), rgba(255, 23, 68, 0.05));
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    overflow: hidden;
    position: relative;
}

.message-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #ff1744, #ff6b9d);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.message-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 23, 68, 0.2),
        0 0 30px rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.4);
}

.message-item:hover .message-icon {
    transform: scale(1.1) rotate(10deg);
}

.message-item-content {
    padding: 25px;
}

.message-item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.message-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(255, 23, 68, 0.2));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.message-info {
    flex: 1;
}

.message-title {
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    display: block;
}

.message-preview {
    font-size: 0.9em;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 107, 157, 0.3);
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d63384;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.message-item:hover .read-btn::after {
    transform: translateX(5px);
}

.message-hearts {
    display: flex;
    gap: 3px;
    opacity: 0.6;
}

.message-hearts span {
    font-size: 0.7em;
    animation: pulse 1.5s ease-in-out infinite;
}

.message-hearts span:nth-child(2) { animation-delay: 0.3s; }
.message-hearts span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Message Detail Styles */
.message-detail {
    padding: 20px 0;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-list {
    background: transparent;
    border: none;
    color: #d63384;
    padding: 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-list:hover {
    color: #ff1744;
    transform: translateX(-3px);
}

.message-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.message-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.message-header-icon {
    font-size: 1.3em;
}

.message-header h4 {
    font-size: 1.2em !important;
    color: #333333 !important;
    margin: 0 !important;
    font-weight: 600;
}

.message-full-date {
    font-size: 0.85em;
    color: #888888;
    margin-left: auto;
}

.message-body {
    text-align: justify;
    line-height: 1.8;
}

/* Single message - no grid, centered */
.messages-container.single-message {
    display: flex;
    justify-content: center;
}

.messages-container.single-message .message-item {
    max-width: 400px;
    width: 100%;
}

/* Mobile responsive for messages */
@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 5px;
    }
    
    .message-item-content {
        padding: 20px;
    }
    
    .message-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .message-title {
        font-size: 1.05em;
    }
    
    .back-to-list {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .message-header {
        padding: 20px 15px;
    }
}


.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.year-item {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
}

.year-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.year-item.selected {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.year-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff1744, #ff6b9d);
    border-radius: 0 2px 2px 0;
}

.year-item.locked {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.6;
}

.year-item.locked:hover {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
}


/* Years Timeline Sidebar */
#secret-love .years-sidebar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 25px 20px;
    border-radius: 12px;
    max-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#secret-love .years-sidebar h4 {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #secret-love h3 {
        font-size: 1.2em !important;
    }
    
    #secret-love p {
        font-size: 0.9em !important;
    }
    
    #secret-love h4 {
        font-size: 1em !important;
    }
    
    #secret-love .love-section {
        margin: 15px 0 !important;
        padding: 10px !important;
    }
    
    .love-corner-message {
        bottom: 10px !important;
        right: 10px !important;
        font-size: 0.7em !important;
        padding: 8px 12px !important;
    }
    
    /* Mobile: Yatay üst sabitlenmiş timeline */
    #secret-love .years-sidebar {
        position: fixed;
        top: 55px; /* Menü butonunun altında başlasın */
        left: 0;
        right: 0;
        bottom: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        padding: 10px 15px;
        z-index: 997; /* Menü butonundan düşük z-index */
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
    
    #secret-love .years-sidebar h4 {
        font-size: 0.85em;
        margin: 0 0 10px 0;
        display: none; /* Başlığı mobilde gizle, yer kazanmak için */
    }
    
    #secret-love .timeline-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    #secret-love .year-item {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 0.8em;
        min-width: auto;
    }
    
    #secret-love .year-item:hover {
        transform: translateY(-2px);
    }
    
    #secret-love .year-item.selected {
        transform: translateY(-2px);
    }
    
    #secret-love .year-item.selected::before {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #ff1744, #ff6b9d);
        border-radius: 2px 2px 0 0;
    }
    
    /* Secret love sayfası içeriğini aşağı kaydır */
    #secret-love .center-container {
        padding-top: 120px !important;
    }
    
    /* Mobilde "SENİN İÇİN" menü öğesini gizle */
    .secret-menu-item {
        display: none !important;
    }
    
    /* Mobilde sosyal ikonları göster */
    .mobile-social-icons {
        display: block !important;
    }
}

/* PC'de menüdeki sosyal ikonları gizle (varsayılan) */
.mobile-social-icons {
    display: none;
}

/* ==========================================
   USER PANEL & MESSAGE EDITOR
   ========================================== */
.user-panel {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-panel .user-info {
    font-size: 1.1em;
    color: #ff1744;
    font-weight: 500;
}

.user-panel .write-msg-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff1744);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.user-panel .write-msg-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.user-panel .logout-btn {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.user-panel .logout-btn:hover {
    background: #888;
}

/* New Message Button - Beautiful Design */
.new-message-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1744 50%, #ff6b9d 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
    animation: gradientShift 3s ease infinite;
}

.new-message-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.5);
}

.new-message-btn:active {
    transform: translateY(0) scale(0.98);
}

.new-message-btn .btn-icon {
    font-size: 1.1em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Message Editor */
.message-editor {
    background: transparent;
    border: none;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.message-editor h3 {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ff6b9d, #ff1744);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    margin-bottom: 15px;
}

.editor-row {
    margin-bottom: 15px;
}

.editor-grid .editor-row {
    margin-bottom: 0;
}

.editor-row label {
    display: block;
    color: #ff6b9d;
    font-size: 0.8em;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editor-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: transparent;
    color: #ff1744;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.editor-input:focus {
    outline: none;
    border-color: #ff1744;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.15);
}

.editor-input::placeholder {
    color: rgba(255, 107, 157, 0.5);
}

.editor-input option {
    background: #fff;
    color: #ff1744;
}

.editor-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px 14px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: transparent;
    color: #ff1744;
    font-size: 0.95em;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.editor-textarea:focus {
    outline: none;
    border-color: #ff1744;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.15);
}

.editor-textarea::placeholder {
    color: rgba(255, 107, 157, 0.5);
}

.editor-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 157, 0.15);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.editor-buttons button {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Mobile responsive for editor grid */
@media (max-width: 600px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

/* Message List Header */
.message-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.message-list-header h4 {
    color: #ff1744;
    font-size: 1.3em;
    margin: 0;
}

/* Mobile Responsive for Editor */
@media (max-width: 768px) {
    .user-panel {
        justify-content: center;
        text-align: center;
    }
    
    .message-editor {
        padding: 20px 15px;
    }
    
    .editor-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .editor-buttons button {
        margin: 0 !important;
        width: 100%;
    }
}

/* ==========================================
   EMOJI PICKER (CDN)
   ========================================== */
.emoji-picker-wrapper {
    position: relative;
}

.emoji-picker-btn {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: transparent;
    font-size: 1.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.emoji-picker-btn:hover {
    border-color: #ff1744;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.15);
}

.emoji-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

emoji-picker.emoji-picker-popup {
    --background: #1a1a2e;
    --border-color: rgba(255, 107, 157, 0.3);
    --indicator-color: #ff1744;
    --input-border-color: rgba(255, 107, 157, 0.3);
    --input-font-color: #fff;
    --input-placeholder-color: rgba(255,255,255,0.4);
    --outline-color: #ff1744;
    --category-font-color: #ff6b9d;
    --button-active-background: rgba(255, 107, 157, 0.2);
    --button-hover-background: rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Trumbowyg Editor Styles */
.trumbowyg-box {
    border: 2px solid rgba(255, 107, 157, 0.3) !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
}

.trumbowyg-button-pane {
    background: rgba(255, 107, 157, 0.08) !important;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2) !important;
}

.trumbowyg-button-pane button {
    color: #ff6b9d !important;
}

.trumbowyg-button-pane button:hover,
.trumbowyg-button-pane button.trumbowyg-active {
    background: rgba(255, 23, 68, 0.15) !important;
}

.trumbowyg-editor {
    min-height: 150px !important;
    padding: 15px !important;
    color: #333 !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
}

.trumbowyg-editor p {
    margin: 0 0 0.5em 0;
}

/* ==========================================
   LETTER / MEKTUP ANİMASYONU
   ========================================== */
.letter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    perspective: 1000px;
}

.letter-envelope {
    position: relative;
    width: 320px;
    height: 220px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.letter-envelope:hover:not(.opened) {
    transform: scale(1.05);
}

/* Zarf arka yüzü */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ff6b9d, #ff1744);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(255, 23, 68, 0.3);
    z-index: 1;
}

/* Mektup kağıdı - başlangıçta zarfın içinde gizli */
.letter-paper {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    height: 160px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
    overflow: hidden;
    padding: 15px;
    opacity: 0;
    transform: translateY(0);
    transition: transform 0.8s ease, opacity 0.3s ease;
}

.letter-content-inner {
    font-size: 0.75em;
    color: #666;
    line-height: 1.4;
    max-height: 130px;
    overflow: hidden;
}

/* Zarf ön yüzü - kağıdı örter */
.envelope-front {
    position: absolute;
    width: 100%;
    height: 140px;
    bottom: 0;
    background: linear-gradient(180deg, #ff8fab 0%, #ff6b9d 100%);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.envelope-heart {
    font-size: 3em;
    margin-bottom: 10px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.envelope-text {
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.envelope-hint {
    margin-top: 10px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Zarf kapağı - üçgen */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #e91e63 0%, #ff1744 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 5;
}

/* ===== AÇILMA ANİMASYONU ===== */

/* Kapak açılır */
.letter-envelope.opened .envelope-flap {
    transform: rotateX(180deg);
    z-index: 0;
}

/* Ön yüz kaybolur */
.letter-envelope.opened .envelope-front {
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    to { 
        transform: translateY(20px);
        opacity: 0; 
    }
}

/* Kağıt yukarı çıkar */
.letter-envelope.opened .letter-paper {
    opacity: 1;
    transform: translateY(-140px);
    z-index: 10;
}

/* Parıltı efekti */
.letter-envelope.opened::after {
    content: '✨';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    animation: sparkleUp 1s ease-out forwards;
    z-index: 20;
}

@keyframes sparkleUp {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-30px) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(0.8); }
}

/* Kalpler */
.letter-envelope.opened::before {
    content: '💕';
    position: absolute;
    top: -30px;
    left: 30%;
    font-size: 1.5em;
    animation: floatHeart 1.2s ease-out 0.2s forwards;
    opacity: 0;
    z-index: 20;
}

@keyframes floatHeart {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    30% { opacity: 1; transform: translateY(-20px) scale(1); }
    100% { opacity: 0; transform: translateY(-80px) scale(0.6); }
}

/* Mobil uyum */
@media (max-width: 768px) {
    .letter-envelope {
        width: 280px;
        height: 190px;
    }
    
    .envelope-heart {
        font-size: 2.5em;
    }
    
    .envelope-text {
        font-size: 1em;
    }
    
    .envelope-front {
        height: 120px;
    }
    
    .envelope-flap {
        height: 70px;
    }
    
    .letter-paper {
        top: 40px;
        left: 15px;
        right: 15px;
        height: 140px;
    }
    
    .letter-envelope.opened .letter-paper {
        transform: translateY(-120px);
    }
}

/* ==========================================
   LETTER ENVELOPE ANIMATION
   ========================================== */
.letter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
}

.letter-envelope {
    position: relative;
    width: 320px;
    height: 220px;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.letter-envelope:hover:not(.opened) {
    transform: scale(1.05);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ff6b9d, #ff1744);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(255, 23, 68, 0.3);
}

.envelope-front {
    position: absolute;
    width: 100%;
    height: 60%;
    bottom: 0;
    background: linear-gradient(145deg, #ff8fab, #ff6b9d);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.envelope-heart {
    font-size: 3em;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.envelope-text {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.envelope-hint {
    color: rgba(255,255,255,0.8);
    font-size: 0.85em;
    margin-top: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.envelope-flap {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
    background: linear-gradient(145deg, #ff1744, #e91e63);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.6s ease-in-out;
    z-index: 3;
}

.letter-paper {
    position: absolute;
    width: 90%;
    height: 180px;
    left: 5%;
    top: 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: transform 0.8s ease-in-out 0.3s;
    overflow: hidden;
    z-index: 1;
}

.letter-content-inner {
    padding: 20px;
    font-size: 0.85em;
    color: #333;
    line-height: 1.5;
    max-height: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Opened State */
.letter-envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.letter-envelope.opened .letter-paper {
    transform: translateY(-120px);
    animation: paperFloat 0.8s ease-in-out 0.3s forwards;
}

@keyframes paperFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-150px) rotate(-2deg); }
    100% { transform: translateY(-120px) rotate(0deg); }
}

.letter-envelope.opened .envelope-front {
    animation: envelopeFade 0.5s ease-in-out 1.5s forwards;
}

@keyframes envelopeFade {
    to { opacity: 0.7; }
}

/* Hearts flying animation on open */
.letter-envelope.opened::before,
.letter-envelope.opened::after {
    content: '💕';
    position: absolute;
    font-size: 1.5em;
    animation: heartsFloat 1.5s ease-out forwards;
    opacity: 0;
}

.letter-envelope.opened::before {
    left: 20%;
    top: 50%;
    animation-delay: 0.3s;
}

.letter-envelope.opened::after {
    right: 20%;
    top: 50%;
    animation-delay: 0.5s;
}

@keyframes heartsFloat {
    0% { 
        opacity: 0; 
        transform: translateY(0) scale(0.5); 
    }
    30% { 
        opacity: 1; 
        transform: translateY(-30px) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-100px) scale(0.8); 
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .letter-envelope {
        width: 280px;
        height: 190px;
    }
    
    .envelope-heart {
        font-size: 2.5em;
    }
    
    .envelope-text {
        font-size: 1em;
    }
    
    .letter-paper {
        height: 150px;
    }
    
    .letter-content-inner {
        padding: 15px;
        font-size: 0.8em;
        max-height: 120px;
    }
}

