/* ===================
   Color Palette & Variables
   =================== */
:root {
    --cream-white: #FFFBF5;
    --cream-light: #FFF8F0;
    --cream-dark: #F5F1E8;
    --warm-beige: #E8E3D6;
    --soft-brown: #C4BCB0;
    --text-primary: #4A4238;
    --text-secondary: #8B8378;
    --accent-warm: #D4A574;
    --accent-gold: #C9A961;
    --shadow-soft: rgba(74, 66, 56, 0.08);
    --shadow-medium: rgba(74, 66, 56, 0.12);
    --shadow-strong: rgba(74, 66, 56, 0.16);
}

/* ===================
   Global Styles
   =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--cream-light) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

html,
body {
    height: 100%;
}

/* ===================
   Login Page
   =================== */
.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    position: relative;
    padding: 3rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.app-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.app-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: lineGrow 1.5s ease-out 0.5s both;
}

@keyframes lineGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1.5rem;
    font-weight: 300;
}

.login-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.user-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 180px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px var(--shadow-soft);
    overflow: hidden;
    animation: cardFloat 1s ease-out 0.6s both;
}

.user-card:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.user-card:active {
    transform: translateY(-5px) scale(1.02);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    transition: left 0.5s;
}

.user-card:hover .card-shine {
    left: 100%;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.eesha-avatar {
    background: linear-gradient(135deg, #D4A574 0%, #C9A961 100%);
}

.hasnain-avatar {
    background: linear-gradient(135deg, #C4BCB0 0%, #8B8378 100%);
}

.user-card:hover .user-avatar {
    transform: rotate(360deg) scale(1.1);
}

.avatar-initial {
    font-size: 2.5rem;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

/* Passcode Container */
.passcode-container {
    text-align: center;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.passcode-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.passcode-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.passcode-digit {
    width: 50px;
    height: 60px;
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.passcode-digit:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
    transform: scale(1.05);
}

.passcode-digit.filled {
    background: var(--cream-light);
    border-color: var(--accent-gold);
}

.passcode-digit.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.passcode-error {
    color: #D4756A;
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.btn-back {
    margin-top: 1.5rem;
    background: var(--cream-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-back:hover {
    background: var(--warm-beige);
    transform: translateY(-2px);
}

.btn-back i {
    margin-right: 0.5rem;
}

/* Decorative floating elements */
.decorative-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* For pages with header (dashboard, me), adjust z-index */
.dashboard-page .decorative-elements,
.me-page .decorative-elements {
    z-index: 0;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.float-1 {
    width: 100px;
    height: 100px;
    background: var(--accent-warm);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-gold);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.float-3 {
    width: 80px;
    height: 80px;
    background: var(--soft-brown);
    top: 60%;
    left: 80%;
    animation-delay: -14s;
}

.float-4 {
    width: 120px;
    height: 120px;
    background: var(--accent-warm);
    top: 70%;
    left: 5%;
    animation-delay: -3s;
}

.float-5 {
    width: 90px;
    height: 90px;
    background: var(--soft-brown);
    top: 10%;
    right: 25%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
    }

    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
    }
}

/* ===================
   Dashboard Page
   =================== */
.dashboard-page {
    background: var(--cream-white);
}

.me-page {
    background: var(--cream-white);
}

.app-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
    color: var(--text-primary);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--cream-light);
    color: var(--text-primary);
    transform: translateX(-5px);
}

.current-user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

.current-user-name.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
}

.current-user-name.clickable:hover {
    background: var(--cream-light);
    color: var(--accent-gold);
    transform: scale(1.05);
}

.dashboard-main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.partner-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.partner-name {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.partner-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.posts-feed {
    max-width: 700px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.empty-icon {
    font-size: 4rem;
    color: var(--soft-brown);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.post-header-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    margin-right: 1rem;
    flex-shrink: 0;
}

.post-info {
    min-width: 0;
    flex: 1;
}

.post-info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-delete-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.15);
}

.post-delete-btn:active {
    transform: scale(0.95);
}

.post-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.post-content.text-content {
    font-size: 1.05rem;
}

.post-content.feeling-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream-light);
    border-radius: 15px;
    margin: 1rem 0;
}

.feeling-emoji-large {
    font-size: 3rem;
}

.feeling-text {
    flex: 1;
}

.feeling-label-display {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-image {
    width: 100%;
    border-radius: 15px;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-caption {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Post Interactions */
.post-interactions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-dark);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.post-seen {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-seen i {
    opacity: 0.6;
}

.post-seen.seen i {
    opacity: 1;
    color: var(--accent-gold);
}

/* Reactions */
.post-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 32px;
}

.reaction-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: var(--cream-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.reaction-group:hover {
    background: var(--cream-dark);
    border-color: var(--accent-gold);
}

.reaction-emoji {
    font-size: 1.2rem;
}

.reaction-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.add-reaction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--cream-light);
    border: 2px dashed var(--soft-brown);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.add-reaction-btn:hover {
    border-color: var(--accent-gold);
    background: var(--cream-dark);
}

/* Comments */
.post-comments {
    margin-top: 1rem;
}

.comments-header {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.comment {
    background: var(--cream-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.3s ease-out;
}

.comment-user {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-primary);
    margin-top: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* Comment Input */
.add-comment-section {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-dark);
}

.add-comment-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    background: white;
}

.add-comment-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.1);
}

.add-comment-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-comment-btn:hover {
    transform: scale(1.1);
}

.add-comment-btn:active {
    transform: scale(0.95);
}

.add-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabAppear 0.6s ease-out 0.5s both;
}

@keyframes fabAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.fab-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

.fab-button:active {
    transform: scale(0.95) rotate(90deg);
}

.fab-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Prayers FAB Button */
.prayers-fab-button {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FAF7D 0%, #5A8F58 100%);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabAppear 0.6s ease-out 0.6s both;
}

.prayers-fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(90, 143, 88, 0.4);
}

.prayers-fab-button:active {
    transform: scale(0.95);
}

/* Memory Lane FAB Button */
.memory-lane-fab-button {
    position: fixed;
    bottom: 2rem;
    right: 12rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A961 0%, #D4A574 100%);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabAppear 0.6s ease-out 0.8s both;
}

.memory-lane-fab-button:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

.memory-lane-fab-button:active {
    transform: scale(0.95);
}

/* Gifts FAB Button */
.gifts-fab-button {
    position: fixed;
    bottom: 2rem;
    right: 18.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(196, 69, 105, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabAppear 0.6s ease-out 0.9s both;
}

.gifts-fab-button:hover {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(196, 69, 105, 0.6);
}

.gifts-fab-button:active {
    transform: scale(0.95);
}

/* Modal Styles */
.custom-modal {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-strong);
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    font-weight: 400;
    color: var(--text-primary);
}

.content-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.type-btn {
    flex: 1;
    padding: 1rem;
    background: var(--cream-light);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.type-btn i {
    font-size: 1.5rem;
}

.type-btn span {
    font-size: 0.9rem;
}

.type-btn:hover {
    background: var(--cream-dark);
    transform: translateY(-3px);
}

.type-btn.active {
    background: white;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.05);
}

.custom-textarea {
    border: 2px solid var(--cream-dark);
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
    background: var(--cream-white);
}

.custom-textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    outline: none;
    background: white;
}

.feeling-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.feeling-option {
    padding: 1.5rem 1rem;
    background: var(--cream-light);
    border: 2px solid transparent;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feeling-option:hover {
    background: var(--cream-dark);
    transform: translateY(-3px);
}

.feeling-option.selected {
    background: white;
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.feeling-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feeling-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.picture-upload-area {
    border: 2px dashed var(--soft-brown);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream-light);
}

.picture-upload-area:hover {
    background: var(--cream-dark);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.picture-upload-area i {
    font-size: 3rem;
    color: var(--soft-brown);
    margin-bottom: 1rem;
}

.picture-preview {
    margin: 1rem 0;
    border-radius: 15px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.picture-preview img {
    width: 100%;
    display: block;
}

/* Timestamp Picker Styles */
.timestamp-picker-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream-dark);
    animation: fadeInUp 0.5s ease-out;
}

.timestamp-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.timestamp-label i {
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

.timestamp-label:hover {
    color: var(--accent-gold);
}

.timestamp-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-input-date,
.custom-input-time {
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.95rem;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.custom-input-date:focus,
.custom-input-time:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    outline: none;
}

.custom-input-date {
    flex: 1.5;
}

.custom-input-time {
    flex: 1;
}

/* Chrome, Safari date/time picker styling */
.custom-input-date::-webkit-calendar-picker-indicator,
.custom-input-time::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.6;
    filter: invert(0.4);
}

.custom-input-date::-webkit-calendar-picker-indicator:hover,
.custom-input-time::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.btn-use-now {
    width: 100%;
    padding: 0.75rem;
    background: var(--cream-light);
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-use-now:hover {
    background: white;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-use-now i {
    margin-right: 0.5rem;
}

/* Celebration Bubbles */
.celebration-bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.9),
            rgba(201, 169, 97, 0.3) 30%,
            rgba(196, 188, 176, 0.2) 70%,
            transparent);
    box-shadow:
        inset -10px -10px 20px rgba(255, 255, 255, 0.8),
        inset 5px 5px 15px rgba(201, 169, 97, 0.3),
        0 0 20px rgba(201, 169, 97, 0.2);
    cursor: pointer;
    pointer-events: all;
    z-index: 10000;
    animation: bubbleFloat var(--duration) ease-in-out forwards;
    will-change: transform, opacity;
}

.celebration-bubble::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
}

.celebration-bubble::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 20%;
    width: 15%;
    height: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
}

@keyframes bubbleFloat {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0.8;
    }
}

/* Bubble pop effect */
.bubble-popping {
    animation: bubblePop 0.4s cubic-bezier(0.36, 0, 0.66, -0.56) forwards !important;
}

@keyframes bubblePop {
    0% {
        transform: translate(var(--current-x), var(--current-y)) scale(1);
        opacity: 1;
    }

    30% {
        transform: translate(var(--current-x), var(--current-y)) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--current-x), var(--current-y)) scale(0);
        opacity: 0;
    }
}

/* Micro droplets */
.droplet {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.8), rgba(196, 188, 176, 0.4));
    pointer-events: none;
    z-index: 10001;
    animation: dropletSplash 0.6s ease-out forwards;
}

@keyframes dropletSplash {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.2);
        opacity: 0;
    }
}

/* Celebration container */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.celebration-container.active {
    pointer-events: all;
}

.custom-btn-primary {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.custom-btn-secondary {
    background: var(--cream-dark);
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-btn-secondary:hover {
    background: var(--warm-beige);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2.5rem;
    }

    .partner-name {
        font-size: 2rem;
    }

    .user-card {
        width: 140px;
        padding: 2rem 1.5rem;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
    }

    .avatar-initial {
        font-size: 2rem;
    }

    .fab-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }

    .prayers-fab-button {
        bottom: 1.5rem;
        right: 5.5rem;
    }

    .memory-lane-fab-button {
        bottom: 1.5rem;
        right: 9.5rem;
    }

    .gifts-fab-button {
        bottom: 1.5rem;
        right: 13.5rem;
    }

    .feeling-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================
   Prayers Page Styles
   =================== */
.prayers-page {
    background: var(--cream-white);
}

.prayers-main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.prayers-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.prayers-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.prayers-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.toggle-btn {
    flex: 1;
    max-width: 200px;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--cream-dark);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.toggle-btn i {
    font-size: 1.2rem;
}

.toggle-btn:hover {
    background: var(--cream-light);
    transform: translateY(-3px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    border-color: var(--accent-gold);
    color: white;
    transform: scale(1.05);
}

/* Date Navigation */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.date-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--cream-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: var(--cream-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.1);
}

.date-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-nav-btn:disabled:hover {
    background: white;
    border-color: var(--cream-dark);
    color: var(--text-secondary);
    transform: scale(1);
}

.current-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 150px;
    text-align: center;
}

/* Prayers Container */
.prayers-container {
    max-width: 700px;
    margin: 0 auto;
}

.prayers-view {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Prayer Card */
.prayer-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease-out both;
}

.prayer-card:nth-child(1) {
    animation-delay: 0.1s;
}

.prayer-card:nth-child(2) {
    animation-delay: 0.2s;
}

.prayer-card:nth-child(3) {
    animation-delay: 0.3s;
}

.prayer-card:nth-child(4) {
    animation-delay: 0.4s;
}

.prayer-card:nth-child(5) {
    animation-delay: 0.5s;
}

.prayer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.prayer-card.readonly {
    opacity: 0.95;
}

.prayer-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.prayer-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.prayer-info {
    flex: 1;
}

.prayer-name {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
}

.prayer-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Prayer Status Buttons */
.prayer-status {
    display: flex;
    gap: 1rem;
}

.status-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--cream-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-btn i {
    font-size: 1.2rem;
}

.status-btn:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
}

.status-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: white;
    transform: scale(1.05);
}

.status-btn[data-status="on-time"].active {
    border-color: #7FAF7D;
    color: #7FAF7D;
    background: #F5FFF5;
}

.status-btn[data-status="late"].active {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: #FFFBF5;
}

/* Prayer Status Display (for partner view) */
.prayer-status-display {
    text-align: center;
    padding: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--cream-light);
    color: var(--text-secondary);
}

.status-badge.on-time {
    background: #F5FFF5;
    color: #7FAF7D;
    border: 2px solid #7FAF7D;
}

.status-badge.late {
    background: #FFFBF5;
    color: var(--accent-warm);
    border: 2px solid var(--accent-warm);
}

.status-badge.missed {
    background: var(--cream-light);
    color: var(--text-secondary);
}

/* Prayer Summary */
.prayer-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.summary-stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-stat:nth-child(1) .stat-value {
    color: #7FAF7D;
}

.summary-stat:nth-child(2) .stat-value {
    color: var(--accent-warm);
}

.summary-stat:nth-child(3) .stat-value {
    color: var(--text-secondary);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-light);
}

::-webkit-scrollbar-thumb {
    background: var(--soft-brown);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-warm);
}

/* Responsive - Prayers */
@media (max-width: 768px) {
    .prayers-title {
        font-size: 2rem;
    }

    .view-toggle {
        flex-direction: column;
        padding: 0 1rem;
    }

    .toggle-btn {
        max-width: 100%;
    }

    .prayer-icon {
        font-size: 2rem;
    }

    .prayer-name {
        font-size: 1.1rem;
    }

    .status-btn span {
        font-size: 0.85rem;
    }

    .prayer-summary {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Delete Modal Styles */
.delete-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 66, 56, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-modal-backdrop.active {
    opacity: 1;
}

.delete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    width: 90%;
    max-width: 380px;
    z-index: 10000;
    box-shadow: 0 20px 60px var(--shadow-strong);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.delete-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.delete-modal-header {
    font-size: 3.5rem;
    color: var(--accent-warm);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.delete-modal-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.delete-modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 150px;
}

.cancel-btn {
    background: var(--cream-dark);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.cancel-btn:active {
    transform: scale(0.95);
}

.confirm-btn {
    background: var(--accent-warm);
    color: white;
}

.confirm-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.confirm-btn:active {
    transform: scale(0.95);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===========================
   Memory Lane Styles
   =========================== */

.memory-lane-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--cream-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.back-btn:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateX(-5px);
}

.memory-lane-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.memory-lane-title i {
    color: var(--accent-gold);
}

.memory-lane-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Date Picker Section */
.date-picker-section {
    max-width: 500px;
    margin: 0 auto 4rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.date-picker-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    text-align: center;
}

.date-picker-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.date-picker-label i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.memory-date-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: 15px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: var(--cream-light);
}

.memory-date-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.explore-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.explore-btn:active {
    transform: scale(0.98);
}

/* Memory Timeline */
.memory-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.timeline-date-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-date-header h2 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline Path */
.timeline-path {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--cream-dark) 50%, var(--accent-gold) 100%);
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
}

/* Lane Bubbles (decorative) */
.lane-bubbles {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.lane-bubble {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.3), rgba(212, 165, 116, 0.1));
    border: 2px solid rgba(201, 169, 97, 0.2);
    animation: laneBubbleFloat 8s ease-in-out infinite;
}

@keyframes laneBubbleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-40px) translateX(10px);
        opacity: 0.5;
    }
}

/* Memory Posts Container */
.memory-posts {
    position: relative;
    z-index: 2;
}

.memory-post-wrapper {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    animation: memorySlideIn 0.6s ease-out forwards;
}

@keyframes memorySlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(201, 169, 97, 0.2);
    }
}

/* Memory Post Card - Alternating sides */
.memory-post-wrapper:nth-child(odd) .post-card {
    margin-left: 0;
    margin-right: calc(50% + 2rem);
    animation: slideFromLeft 0.6s ease-out forwards;
}

.memory-post-wrapper:nth-child(even) .post-card {
    margin-left: calc(50% + 2rem);
    margin-right: 0;
    animation: slideFromRight 0.6s ease-out forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Memory Empty State */
.memory-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.memory-empty-state i {
    font-size: 5rem;
    color: var(--cream-dark);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.memory-empty-state h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.memory-empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .memory-lane-title {
        font-size: 2rem;
    }

    .memory-lane-fab-button {
        right: 2rem;
        bottom: 8rem;
    }

    .timeline-path {
        left: 2rem;
    }

    .timeline-dot {
        left: 2rem;
    }

    .memory-post-wrapper:nth-child(odd) .post-card,
    .memory-post-wrapper:nth-child(even) .post-card {
        margin-left: 4rem;
        margin-right: 0;
    }
}

/* ===================
   Gift System Styles
   =================== */

/* Send Gift Page */
.send-gift-page {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 50%, #fff0f5 100%);
    min-height: 100vh;
}

.send-gift-main {
    padding: 5rem 0 3rem;
}

.bouquet-builder {
    max-width: 800px;
    margin: 0 auto;
}

/* Bouquet Preview Section */
.bouquet-preview-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-warm);
}

.bouquet-preview {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow-soft);
    position: relative;
    min-height: 300px;
}

.bouquet-display {
    position: relative;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.basket-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.basket-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

.basket-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.basket-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.basket-display {
    text-align: center;
}

.basket-emoji {
    font-size: 5rem;
    display: block;
    animation: gentleBounce 2s ease-in-out infinite;
}

.flowers-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 2;
}

.preview-flower {
    position: absolute;
    font-size: 2.5rem;
    animation: gentleFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.preview-flower:hover {
    transform: scale(1.2) !important;
}

.remove-flower-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-flower:hover .remove-flower-btn {
    display: flex;
}

.remove-flower-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.wrapping-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.wrapping-display {
    text-align: center;
}

.wrapping-emoji {
    font-size: 12rem;
    opacity: 0.3;
    display: block;
    animation: gentlePulse 3s ease-in-out infinite;
}

.flower-count-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.3);
}

/* Selection Sections */
.selection-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
}

.flower-grid,
.basket-grid,
.wrapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.flower-option,
.basket-option,
.wrapping-option {
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--cream-light) 100%);
    border: 2px solid var(--warm-beige);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flower-option:hover,
.basket-option:hover,
.wrapping-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    border-color: var(--accent-warm);
}

.flower-option.active,
.basket-option.active,
.wrapping-option.active {
    background: linear-gradient(135deg, #ffeef5 0%, #ffe4f0 100%);
    border-color: #ff6b9d;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.flower-icon,
.basket-icon,
.wrapping-icon {
    font-size: 2.5rem;
    display: block;
}

.flower-name,
.basket-name,
.wrapping-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Card Message Input */
.card-input-container {
    position: relative;
}

.card-message-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--warm-beige);
    border-radius: 15px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.card-message-input:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.char-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

/* Send Button */
.send-button-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-send-bouquet {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(196, 69, 105, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-send-bouquet:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 69, 105, 0.5);
}

.btn-send-bouquet:active {
    transform: translateY(-1px);
}

/* Gifts Page */
.gifts-page {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 50%, #fff0f5 100%);
    min-height: 100vh;
}

.gifts-main {
    padding: 5rem 0 3rem;
}

.gifts-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hanging Flowers Decoration */
.hanging-flowers-decoration {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 10;
    pointer-events: none;
}

.hanging-flower {
    position: absolute;
    font-size: 2rem;
    animation: hangingSwing 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hanging-flower::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(139, 131, 120, 0.3));
}

@keyframes hangingSwing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Gifts List */
.gifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.gifts-list .empty-state {
    grid-column: 1 / -1;
}

.gift-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #ffa07a, #ff6b9d);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.gift-card.unopened {
    border: 2px solid #ff6b9d;
}

.gift-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gift-from {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gift-from i {
    color: #ff6b9d;
}

.gift-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gift-card-preview {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.gift-icon-large {
    font-size: 5rem;
    animation: gentleBounce 2s ease-in-out infinite;
}

.gift-type {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.new-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-open-gift {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-open-gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 69, 105, 0.4);
}

/* Gift Detail Modal */
.gift-modal .modal-content {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
    border-radius: 25px;
    border: none;
    overflow: hidden;
}

.gift-bouquet-display {
    text-align: center;
}

.bouquet-full-preview {
    position: relative;
    height: 350px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.display-basket {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.display-basket .large-emoji {
    font-size: 6rem;
    display: block;
    animation: gentleBounce 2s ease-in-out infinite;
}

.display-flowers {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 2;
}

.display-flower {
    position: absolute;
    font-size: 3rem;
    animation: gentleFloat 3s ease-in-out infinite;
}

.display-wrapping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.display-wrapping .large-emoji {
    font-size: 15rem;
    opacity: 0.3;
    display: block;
    animation: gentlePulse 3s ease-in-out infinite;
}

.gift-card-message {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow-soft);
    margin-top: 2rem;
}

.card-envelope {
    text-align: center;
    margin-bottom: 1rem;
}

.card-envelope i {
    font-size: 2.5rem;
    color: #ff6b9d;
}

.card-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

.card-signature {
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Flower Splash Animation */
.flower-splash-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.splash-flower {
    position: absolute;
    font-size: 3rem;
    animation: flowerSplash 3s ease-out forwards;
}

@keyframes flowerSplash {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateY(100px);
    }
}

/* General Animations */
@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* Empty State for Gifts */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state .empty-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bouquet-preview {
        min-height: 250px;
    }

    .bouquet-display {
        height: 200px;
    }

    .basket-emoji {
        font-size: 4rem;
    }

    .preview-flower {
        font-size: 2rem;
    }

    .wrapping-emoji {
        font-size: 10rem;
    }

    .flower-grid,
    .basket-grid,
    .wrapping-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .gifts-list {
        grid-template-columns: 1fr;
    }

    .hanging-flowers-decoration {
        top: 60px;
        height: 60px;
    }

    .hanging-flower {
        font-size: 1.5rem;
    }

    .bouquet-full-preview {
        height: 300px;
    }

    .display-basket .large-emoji {
        font-size: 5rem;
    }

    .display-flower {
        font-size: 2.5rem;
    }

    .display-wrapping .large-emoji {
        font-size: 12rem;
    }
}