* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #feada6 100%);
    color: #4a4a4a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Taymer uslubi */
.love-timer-container {
    text-align: center;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe3e8 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 15px auto 10px auto;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.15);
    border: 1px solid #ffb3c1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1;
}

.love-timer-title {
    color: #d81b60;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.love-timer-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.time-block {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-width: 65px;
}

.time-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: #e91e63;
    display: block;
}

.time-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heart-beat {
    font-size: 1.5rem;
    color: #e91e63;
    display: inline-block;
    animation: beat .3s infinite alternate;
}

@keyframes beat {
    to { transform: scale(1.2); }
}

/* Suzuvchi yurakchalar */
.heart-bg {
    position: fixed;
    top: -10%;
    left: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    animation: drift linear infinite;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    opacity: 0;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.7) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift-x), 110vh, 0) scale(1.25) rotate(18deg);
        opacity: 0;
    }
}

/* Asosiy blok */
.container {
    max-width: 650px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
    margin-top: 15px;
}

h1 {
    color: #d63384;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* Dil izhori maktubi */
.letter {
    background: #ffffff;
    border-left: 4px solid #d63384;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.middle-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.middle-btn {
    background: linear-gradient(45deg, #d63384, #e91e63);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
}

.middle-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(214, 51, 132, 0.5);
}

.extra-message {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #fff0f5;
    border: 1px dashed #d63384;
    border-radius: 10px;
    color: #d63384;
    font-style: italic;
    animation: fadeIn 0.5s ease-in-out;
}

.extra-message p {
  text-align: center;         /* Matnni o'rtaga joylashtiradi */
  margin-bottom: 1.5rem;      /* Ikki kuplet orasidagi masofa */
  line-height: 1.6;           /* Qatorlar orasidagi masofa */
  font-style: italic;         /* Rasmdagidek qiya (kursiv) shrift */
}

/* Oxirgi kupletning ostidan ortqicha joy qolmasligi uchun */
.extra-message p:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-section {
    background: #fff0f5;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f8d7da;
}

.message-section h3 {
    color: #d63384;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ffb6c1;
    border-radius: 10px;
    resize: none;
    font-size: 1rem;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #d63384;
}

.btn {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

.status-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: bold;
}