* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}

*::selection {
    background: rgba(255, 107, 122, 0.2);
}

body {
    font-family: 'Noto Serif SC', serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.avatar-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-card:hover {
    transform: translateY(-8px);
}

.avatar-img-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-img-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.avatar-name {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.avatar-name:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatar-name::after {
    content: '✏️';
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.avatar-name:hover::after {
    opacity: 1;
}

.avatar-name-input {
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 122, 0.5);
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #444;
    text-align: center;
    width: 160px;
    transition: all 0.3s;
}

.avatar-name-input:focus {
    border-color: #ff6b7a;
    box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.15);
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 4px;
}

.user-info {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-user {
    padding: 8px 16px;
    background: rgba(255, 107, 157, 0.08);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid rgba(255, 107, 157, 0.12);
}

.logout-btn {
    padding: 8px;
    background: rgba(255, 107, 157, 0.15);
    border: none;
    border-radius: 50%;
    color: #ff6b9d;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 70px;
    overflow: hidden;
}

.bg-image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s;
}

.bg-image-container:hover {
    transform: scale(1.01);
}

#bgMainImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-image-container:hover .bg-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.bg-click-tip {
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bg-click-tip i {
    font-size: 2.5rem;
}

.bg-image-container:hover .bg-click-tip {
    opacity: 1;
}

.couple-avatar-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 950px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.avatar-card {
    position: relative;
    text-align: center;
}

.avatar-img-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.avatar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-img-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-name {
    margin-top: 14px;
    font-size: 1rem;
    color: #444;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.heart-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.heart-big {
    font-size: 3.2rem;
    animation: heartbeat 1.2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 107, 122, 0.4));
}

.heart-tag {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.heart-rays {
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.heart-rays span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 30px;
    background: rgba(255, 107, 122, 0.5);
    transform-origin: center top;
    transform: translateX(-50%);
    animation: rayPulse 1.5s ease-in-out infinite;
}

.heart-rays span:nth-child(1) { transform: translateX(-50%) rotate(0deg); animation-delay: 0s; }
.heart-rays span:nth-child(2) { transform: translateX(-50%) rotate(45deg); animation-delay: 0.1s; }
.heart-rays span:nth-child(3) { transform: translateX(-50%) rotate(90deg); animation-delay: 0.2s; }
.heart-rays span:nth-child(4) { transform: translateX(-50%) rotate(135deg); animation-delay: 0.3s; }
.heart-rays span:nth-child(5) { transform: translateX(-50%) rotate(180deg); animation-delay: 0.4s; }
.heart-rays span:nth-child(6) { transform: translateX(-50%) rotate(225deg); animation-delay: 0.5s; }
.heart-rays span:nth-child(7) { transform: translateX(-50%) rotate(270deg); animation-delay: 0.6s; }
.heart-rays span:nth-child(8) { transform: translateX(-50%) rotate(315deg); animation-delay: 0.7s; }

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%);
    border-radius: 100% 100% 0 0;
    backdrop-filter: blur(4px);
}

.main-content-area {
    background: #ffffff;
    padding-bottom: 80px;
}

.bg-upload-section {
    text-align: center;
    padding: 30px 20px 10px;
}

.upload-bg-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 122, 0.3);
}

.upload-bg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 122, 0.4);
}

.nav-tabs-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-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;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: #ff6b7a;
    color: white;
    border-color: #ff6b7a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 122, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 122, 0.3);
}

.timer-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.timer-container {
    background: #fafafa;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.timer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.timer-title .heartbeat {
    font-size: 1.5rem;
    animation: heartbeat 1s ease-in-out infinite;
}

.timer-title span {
    font-size: 1.1rem;
    color: #555;
    letter-spacing: 3px;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-block {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    min-width: 75px;
    border: 1px solid #eee;
}

.time-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff6b7a;
    margin-bottom: 5px;
}

.time-label {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 1px;
}

.anniversary-date {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.anniversary-date span {
    color: #777;
    font-size: 0.95rem;
}

.anniversary-date input[type="date"] {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    font-family: inherit;
}

.anniversary-date #saveDate {
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.site-footer-text {
    text-align: center;
    padding: 40px 20px 20px;
}

.site-footer-text p:first-child {
    font-size: 1.3rem;
    color: #666;
    letter-spacing: 8px;
    font-weight: 500;
}

.site-footer-text .sub-text {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #aaa;
    letter-spacing: 4px;
    font-style: italic;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 45px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-heart {
    font-size: 3.5rem;
    color: #ff6b7a;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: block;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #444;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 5px;
}

.login-header p {
    color: #999;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    color: #444;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff6b7a;
    background: white;
}

.login-btn {
    padding: 16px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.content {
    padding: 30px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.album-header, .memories-header, .wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.memories-header h2, .wish-header h2, .album-header h2 {
    font-size: 1.7rem;
    color: #444;
    font-weight: 600;
    letter-spacing: 5px;
}

.add-memory-btn, .upload-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.photo-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.photo-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.photo-info {
    padding: 20px;
}

.photo-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.author-tag {
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.author-tag.wanganmin {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.author-tag.yansuhan {
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
}

.photo-author span:last-child {
    color: #999;
    font-size: 0.85rem;
}

.photo-actions {
    display: flex;
    gap: 12px;
}

.photo-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: #f8f8f8;
    border: none;
    border-radius: 15px;
    color: #777;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.like-btn.liked {
    background: rgba(255, 107, 157, 0.12);
    color: #ff6b7a;
}

.dislike-btn.disliked {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.comments-section {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
    padding-top: 18px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-input input {
    flex: 1;
    padding: 12px 15px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 20px;
    color: #444;
    font-size: 0.9rem;
    outline: none;
}

.send-comment {
    padding: 12px 20px;
    background: #ff6b7a;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    padding: 12px 15px;
    background: #fafafa;
    border-radius: 12px;
}

.comment-author {
    display: block;
    font-size: 0.82rem;
    color: #ff6b7a;
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-text {
    color: #666;
    font-size: 0.9rem;
}

.content h2 {
    font-size: 1.7rem;
    color: #444;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-align: center;
}

.memories-list {
    display: grid;
    gap: 22px;
}

.memory-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #f0f0f0;
}

.memory-date {
    color: #ff6b7a;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.memory-card h3 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 10px;
}

.memory-card p {
    color: #777;
    line-height: 1.7;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #f0f0f0;
}

.wish-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #ff6b7a;
}

.wish-item span:first-of-type {
    flex: 1;
    color: #555;
    font-size: 1rem;
}

.wish-author {
    padding: 5px 12px;
    background: #f8f8f8;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #888;
}

.add-wish {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.add-wish input {
    flex: 1;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 20px;
    color: #444;
    font-size: 1rem;
    outline: none;
}

.add-wish button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.checkin-form {
    background: white;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.checkin-form textarea {
    width: 100%;
    height: 140px;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 14px;
    font-size: 1rem;
    resize: none;
    outline: none;
    color: #555;
    line-height: 1.7;
}

.checkin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.mood-select {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mood-select span {
    color: #777;
    font-size: 0.95rem;
}

.mood-options {
    display: flex;
    gap: 10px;
}

.mood-item {
    font-size: 1.7rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
}

.mood-item:hover,
.mood-item.selected {
    transform: scale(1.25);
    background: rgba(255, 107, 157, 0.08);
}

.checkin-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.checkin-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkin-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    position: relative;
    padding-left: 50px;
}

.checkin-card::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ff6b7a;
    border-radius: 50%;
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkin-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-time {
    color: #aaa;
    font-size: 0.85rem;
}

.checkin-mood {
    font-size: 1.4rem;
}

.checkin-content {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: white;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.profile-avatar, .partner-avatar {
    width: 100px;
    height: 100px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f0f0f0;
}

.profile-avatar i, .partner-avatar i {
    font-size: 3.2rem;
    color: #ff6b7a;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 8px;
}

.profile-info p {
    color: #888;
    font-size: 0.95rem;
}

.current-mood, .partner-mood {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 0.95rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-item {
    background: white;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b7a;
    margin-bottom: 5px;
}

.stat-label {
    color: #999;
    font-size: 0.85rem;
}

.partner-section h3 {
    color: #ff6b7a;
    font-size: 1.2rem;
    margin-bottom: 18px;
    letter-spacing: 3px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: white;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #e8e8ff;
}

.partner-info h4 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 8px;
}

.poke-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 15px;
}

.poke-btn.poking {
    animation: poke-animation 0.5s ease-in-out;
}

.poke-history {
    background: white;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #f0f0f0;
}

.poke-history h4 {
    color: #ff6b7a;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.poke-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poke-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
    font-size: 0.95rem;
}

.poke-action {
    color: #667eea;
    font-weight: 600;
}

.poke-time {
    color: #aaa;
    font-size: 0.85rem;
}

.change-pwd-link {
    display: block;
    width: 100%;
    padding: 18px;
    background: #fafafa;
    color: #ff6b7a;
    border: 1px solid #ffe8eb;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 25px;
    text-align: center;
    text-decoration: none;
}

.backup-section {
    background: white;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #f0f0f0;
}

.backup-section h3 {
    color: #ff6b7a;
    font-size: 1.1rem;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.backup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.backup-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: white;
    border: 1px solid #eee;
    color: #666;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.backup-btn:hover {
    border-color: #ff6b7a;
    color: #ff6b7a;
}

.backup-tip {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    font-size: 0.9rem;
    letter-spacing: 3px;
    border-top: 1px solid #f0f0f0;
    margin-top: 50px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes goldSparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes flowerSparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.06); }
}

@keyframes rayPulse {
    0%, 100% { opacity: 0.3; height: 25px; }
    50% { opacity: 1; height: 40px; }
}

@keyframes poke-animation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .couple-avatar-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .avatar-img-wrapper {
        width: 120px;
        height: 120px;
    }

    .avatar-ring-gold, .avatar-ring-flower {
        width: 136px;
        height: 136px;
    }

    .heart-big {
        font-size: 2.8rem;
    }

    .timer-display {
        gap: 10px;
    }

    .time-block {
        min-width: 60px;
        padding: 16px 12px;
    }

    .time-value {
        font-size: 1.7rem;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card, .partner-card {
        flex-direction: column;
        text-align: center;
    }

    .checkin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-tabs-main {
        gap: 6px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
