* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #8B0000 0%, #C71585 50%, #FF1493 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 10px;
    direction: rtl;
}

/* ذرات پس‌زمینه */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* قلب‌های شناور */
.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart-particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: heartFloat 8s linear forwards;
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
}

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) rotate(720deg) scale(1.5);
        opacity: 0;
    }
}

/* نشان بازدیدکننده */
.visitor-badge {
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(255, 20, 147, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.5);
}

/* کانتینر اصلی */
.container {
    width: 100%;
    max-width: 600px;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 80px rgba(139, 0, 0, 0.5);
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    max-height: 90vh;
}

/* صفحات */
.page {
    display: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عنوان */
.welcome-title {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff, #FFE4E1, #FFC0CB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
    animation: titlePulse 2s infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 40px rgba(255, 20, 147, 1)); }
}

/* کارت عشق */
.love-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 20, 147, 0.2));
    border-radius: 40px;
    padding: 30px 20px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.love-text {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.8;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(255, 20, 147, 0.5);
    word-break: break-word;
    margin-bottom: 20px;
}

.love-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #FF69B4;
    font-size: 24px;
    animation: decorationPulse 2s infinite;
}

@keyframes decorationPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* کارت سوال */
.question-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 45px;
    padding: 30px 20px;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.question-main {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 700;
    margin: 20px 0 25px;
    line-height: 1.6;
    text-align: center;
    color: #FFE4E1;
    word-break: break-word;
}

.question-poem {
    font-size: clamp(18px, 5vw, 24px);
    color: #FFC0CB;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 35px;
    border-right: 5px solid #FF1493;
    line-height: 1.8;
    word-break: break-word;
}

/* دکمه‌ها */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 60px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(145deg, #FF1493, #C71585);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #FF1493;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.7);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* ریاکشن */
.reaction-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(255, 20, 147, 0.3), rgba(199, 21, 133, 0.4));
    font-size: clamp(18px, 4vw, 22px);
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.reaction-box.show {
    opacity: 1;
    transform: scale(1);
}

/* پلیر موزیک */
.music-player-container {
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.7), rgba(139, 0, 0, 0.8));
    border-radius: 50px;
    padding: 30px 20px;
    margin: 15px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

.player-header {
    text-align: center;
    margin-bottom: 30px;
}

.song-title {
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #FFB6C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.artist-name {
    font-size: clamp(16px, 4vw, 22px);
    color: #FFB6C1;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.control-circle {
    width: clamp(55px, 15vw, 75px);
    height: clamp(55px, 15vw, 75px);
    border-radius: 50%;
    background: linear-gradient(145deg, #FF1493, #C71585);
    border: none;
    color: white;
    font-size: clamp(24px, 6vw, 32px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-circle:hover {
    transform: scale(1.1);
}

.progress-area {
    width: 100%;
    margin: 25px 0;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFB6C1, #FF1493);
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    color: #FFB6C1;
}

.lyrics-display {
    max-height: 180px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 40px;
    margin-top: 20px;
}

.lyric-item {
    font-size: clamp(18px, 5vw, 24px);
    margin: 15px 0;
    padding: 12px;
    border-radius: 30px;
    transition: all 0.4s ease;
    text-align: center;
    opacity: 0.6;
    word-break: break-word;
}

.lyric-item.active {
    opacity: 1;
    color: #FFB6C1;
    transform: scale(1.03);
    background: rgba(255, 20, 147, 0.2);
}

/* عشق‌سنج */
.love-meter-area {
    text-align: center;
}

.meter-3d {
    width: min(100px, 25vw);
    height: min(300px, 50vh);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 60px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 20, 147, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.meter-liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #FF1493, #FF69B4);
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -10px 30px #FF1493;
}

.love-percent {
    font-size: clamp(48px, 12vw, 72px);
    font-weight: 900;
    margin: 20px 0;
    background: linear-gradient(135deg, #fff, #FFB6C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.love-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px 0;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.4s;
    font-size: clamp(14px, 3.5vw, 18px);
    padding: 5px;
}

.step.active {
    opacity: 1;
    color: #FFB6C1;
    transform: scale(1.05);
}

.step i {
    font-size: clamp(24px, 6vw, 32px);
}

.love-slider {
    width: 100%;
    height: 12px;
    border-radius: 30px;
    background: linear-gradient(90deg, #FF1493, #FF69B4, #FFB6C1);
    -webkit-appearance: none;
    margin: 25px 0;
}

.love-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #FF1493;
    box-shadow: 0 0 20px #FF1493;
}

/* صفحه نهایی */
.final-section {
    text-align: center;
}

.big-heart {
    font-size: clamp(80px, 25vw, 150px);
    animation: loveBeat 1s infinite ease-in-out;
    filter: drop-shadow(0 0 50px #FF1493);
    margin: 15px 0;
}

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

.final-message-box {
    background: linear-gradient(145deg, rgba(255, 20, 147, 0.3), rgba(0, 0, 0, 0.6));
    border-radius: 50px;
    padding: 30px 20px;
    margin: 20px 0;
    backdrop-filter: blur(15px);
}

.final-message-text {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 900;
    line-height: 1.8;
    margin-bottom: 20px;
    word-break: break-word;
    background: linear-gradient(135deg, #fff, #FFE4E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-poem {
    font-size: clamp(20px, 5vw, 28px);
    color: #FFB6C1;
    line-height: 2;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    word-break: break-word;
}

/* دکمه بازگشت */
.nav-back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FF1493, #C71585);
    border: 3px solid white;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px #FF1493;
}

.nav-back.show {
    display: flex;
}

.nav-back:hover {
    transform: scale(1.15) rotate(360deg);
}