:root {
    --bg-color: #FFFDF5;
    --paper-white: #ffffff;
    --text-color: #5c5c5c;
    --primary-pink: #FFB7B2;
    --primary-yellow: #FFF2CC;
    --accent-blue: #C7CEEA;
    --accent-green: #E2F0CB;
    --border-color: #D3C0B6;
}

body {
    margin: 0;
    padding: 2rem;
    font-family: 'Quicksand', 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(#E2F0CB 15%, transparent 16%),
        radial-gradient(#FFB7B2 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.main-card {
    background: var(--paper-white);
    padding: 3rem 2rem;
    border-radius: 40px;
    box-shadow:
        10px 10px 0px rgba(0, 0, 0, 0.05),
        inset 0 0 40px rgba(255, 255, 255, 0.8);
    border: 4px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
}

/* Decorative Stickers */
.sticker {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.1));
    cursor: grab;
    transition: transform 0.2s;
    user-select: none;
    z-index: 10;
}

.sticker:hover {
    transform: scale(1.2) rotate(10deg);
}

.sticker-star {
    top: -15px;
    left: -15px;
    transform: rotate(-15deg);
    font-size: 3rem;
}

.sticker-heart {
    bottom: 20px;
    right: -20px;
    transform: rotate(15deg);
    font-size: 2.5rem;
}

.sticker-love {
    top: 20px;
    right: -10px;
    background: #FFB7B2;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    transform: rotate(10deg);
    font-size: 1rem;
    border: 2px solid white;
}

/* Header & Polaroid */
.polaroid {
    background: white;
    padding: 10px 10px 35px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    width: 180px;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.polaroid:hover {
    transform: rotate(2deg) scale(1.05);
    z-index: 5;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #eee;
}

.couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 25px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 1px dashed rgba(0, 0, 0, 0.1);
    border-right: 1px dashed rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cute-title {
    font-family: 'Zcool KuaiLe', cursive;
    color: #FF9A9E;
    font-size: 2.2rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 0px #FFF2CC;
}

.bouncing-heart {
    display: inline-block;
    animation: bounce 1s infinite alternate;
}

.cute-subtitle {
    font-family: 'Quicksand', sans-serif;
    color: #95a5a6;
    font-weight: bold;
    background: #f1f2f6;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Counters Grid */
.love-counters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.paper-note {
    position: relative;
    padding: 1.5rem;
    width: 100%;
    border-radius: 2px 2px 20px 2px;
    /* Folded corner look */
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.paper-note:hover {
    transform: translateY(-5px);
}

.pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.pink-note {
    background: #FFF0F5;
    border: 2px dashed #FFB7B2;
}

.pink-note .pin {
    background: #FF6B6B;
}

.yellow-note {
    background: #FFFEF0;
    border: 2px dashed #FAD390;
}

.yellow-note .pin {
    background: #F39C12;
}

.paper-note h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #636e72;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: #FF9A9E;
}

.time-unit span {
    font-size: 1.5rem;
    line-height: 1;
}

.time-unit small {
    font-size: 0.7rem;
    color: #b2bec3;
    font-weight: normal;
    margin-top: 2px;
}

.big-days {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FDCB6E;
    font-family: 'Nunito', sans-serif;
}

.big-days .unit {
    font-size: 1rem;
    color: #b2bec3;
}

.wedding-badge {
    background: #FFEAA7;
    color: #d35400;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 5px;
    transform: rotate(-2deg);
}

.start-date {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #dfe6e9;
    font-weight: bold;
}

/* Anniversaries Section */
.anniversaries-section {
    margin-top: 2rem;
}

.section-title {
    font-family: 'Zcool KuaiLe', cursive;
    font-size: 1.3rem;
    color: #FF9A9E;
    margin-bottom: 1rem;
}

.anniversaries-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.anniversary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFFEF0 100%);
    padding: 12px 16px;
    border-radius: 16px;
    border: 2px solid #FFE0E0;
    transition: all 0.2s;
}

.anniversary-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 150, 150, 0.2);
}

.anniversary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.anniversary-emoji {
    font-size: 1.5rem;
}

.anniversary-info {
    text-align: left;
}

.anniversary-name {
    font-weight: 700;
    color: #5c5c5c;
    font-size: 0.95rem;
}

.anniversary-date {
    font-size: 0.75rem;
    color: #b2bec3;
}

.anniversary-days {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #FF9A9E;
    white-space: nowrap;
}

.anniversary-days small {
    font-weight: normal;
    font-size: 0.75rem;
    color: #b2bec3;
}

.delete-btn {
    background: none;
    border: none;
    color: #dfe6e9;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    transition: all 0.2s;
    border-radius: 50%;
}

.delete-btn:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.add-anniversary-btn {
    width: 100%;
    padding: 14px;
    border: 3px dashed #FFB7B2;
    background: transparent;
    border-radius: 16px;
    color: #FFB7B2;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-anniversary-btn:hover {
    background: #FFF0F5;
    border-color: #FF9A9E;
    color: #FF9A9E;
    transform: scale(1.02);
}

.add-anniversary-btn i {
    margin-right: 6px;
}

.empty-state {
    padding: 2rem;
    color: #b2bec3;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f1f2f6;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Zcool KuaiLe', cursive;
    color: #FF9A9E;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #b2bec3;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #FF6B6B;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #636e72;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #FFB7B2;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-option:hover {
    border-color: #FFB7B2;
    transform: scale(1.1);
}

.emoji-option.selected {
    border-color: #FF9A9E;
    background: #FFF0F5;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 1rem 1.5rem 1.5rem;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: #f1f2f6;
    color: #636e72;
}

.cancel-btn:hover {
    background: #dfe6e9;
}

.save-btn {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: white;
}

.save-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

/* Footer */
.cute-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.3);
}

/* ==================== Bucket List ==================== */
.bucket-list-section {
    margin-top: 2rem;
}

.bucket-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.bucket-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFFEF0;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #FAD390;
    transition: all 0.2s;
}

.bucket-item:hover {
    transform: translateX(3px);
}

.bucket-item.completed {
    background: #E2F0CB;
    border-color: #a8d08d;
}

.bucket-item.completed .bucket-text {
    text-decoration: line-through;
    color: #95a5a6;
}

.bucket-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #FFB7B2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.bucket-checkbox:hover {
    background: #FFF0F5;
}

.bucket-checkbox.checked {
    background: #FF9A9E;
    border-color: #FF9A9E;
    color: white;
}

.bucket-text {
    flex: 1;
    font-size: 0.9rem;
    color: #5c5c5c;
}

.bucket-delete {
    background: none;
    border: none;
    color: #dfe6e9;
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s;
}

.bucket-item:hover .bucket-delete {
    opacity: 1;
}

.bucket-delete:hover {
    color: #FF6B6B;
}

.bucket-input-group {
    display: flex;
    gap: 8px;
}

.bucket-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.bucket-input-group input:focus {
    outline: none;
    border-color: #FFB7B2;
}

.bucket-add-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.bucket-add-btn:hover {
    transform: scale(1.05);
}

.bucket-stats {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #b2bec3;
    text-align: center;
}

.bucket-empty {
    padding: 2rem;
    color: #b2bec3;
    text-align: center;
    font-size: 0.9rem;
}

/* ==================== Message Board ==================== */
.message-section {
    margin-top: 2rem;
}

.message-display {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFEEF2 100%);
    border: 2px dashed #FFB7B2;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-content {
    font-size: 1.1rem;
    color: #5c5c5c;
    font-weight: 600;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: #b2bec3;
    margin-top: 8px;
}

.message-input-group {
    display: flex;
    gap: 8px;
}

.message-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.message-input-group input:focus {
    outline: none;
    border-color: #FFB7B2;
}

.message-send-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.message-send-btn:hover {
    transform: scale(1.05);
}

/* ==================== Savings Progress ==================== */
.savings-section {
    margin-top: 2rem;
}

.savings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.savings-item {
    background: linear-gradient(135deg, #E8F6F3 0%, #FFECD2 100%);
    border-radius: 16px;
    padding: 1rem;
    border: 2px solid #E2F0CB;
    position: relative;
}

.savings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.savings-name {
    font-weight: 700;
    color: #5c5c5c;
    font-size: 0.95rem;
}

.savings-amount {
    font-size: 0.85rem;
    color: #636e72;
}

.savings-amount span {
    font-weight: 900;
    color: #27ae60;
}

.progress-bar {
    height: 12px;
    background: #f1f2f6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8d08d 0%, #27ae60 100%);
    border-radius: 10px;
    transition: width 0.5s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.savings-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.savings-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.savings-edit-btn,
.savings-delete-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.savings-edit-btn {
    background: #f1f2f6;
    color: #636e72;
}

.savings-edit-btn:hover {
    background: #dfe6e9;
}

.savings-delete-btn {
    background: #FFE5E5;
    color: #FF6B6B;
}

.savings-delete-btn:hover {
    background: #FF6B6B;
    color: white;
}

.add-savings-btn {
    width: 100%;
    padding: 14px;
    border: 3px dashed #a8d08d;
    background: transparent;
    border-radius: 16px;
    color: #a8d08d;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-savings-btn:hover {
    background: #E2F0CB;
    border-color: #27ae60;
    color: #27ae60;
}

.savings-empty {
    padding: 2rem;
    color: #b2bec3;
    text-align: center;
    font-size: 0.9rem;
}

/* ==================== Seasonal Particles ==================== */
.seasonal-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Seasonal Theme Overrides */
body.spring {
    background-color: #FFF5F5;
    background-image:
        radial-gradient(#FFD1DC 15%, transparent 16%),
        radial-gradient(#E8F5E9 15%, transparent 16%);
}

body.summer {
    background-color: #E3F2FD;
    background-image:
        radial-gradient(#BBDEFB 15%, transparent 16%),
        radial-gradient(#FFF9C4 15%, transparent 16%);
}

body.autumn {
    background-color: #FFF8E1;
    background-image:
        radial-gradient(#FFCCBC 15%, transparent 16%),
        radial-gradient(#FFE0B2 15%, transparent 16%);
}

body.winter {
    background-color: #E8EAF6;
    background-image:
        radial-gradient(#E1F5FE 15%, transparent 16%),
        radial-gradient(#F3E5F5 15%, transparent 16%);
}

/* Season Toggle Button */
.season-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.season-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.season-toggle:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes bounce {
    to {
        transform: translateY(-10px) scale(1.1);
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 2rem 1.5rem;
    }

    .cute-title {
        font-size: 1.8rem;
    }

    .modal-card {
        width: 95%;
    }

    .bucket-list {
        max-height: 200px;
    }
}