/* =============================================
   Petal Pages — Exact Reference Scrapbook CSS
   ============================================= */

/* --- 1. Custom Properties --- */
:root {
    /* Reference Image Pastel Color Palette */
    --cream:            #ffeef3;
    --cream-dark:       #f7d1dc;
    --kraft:            #e8d7c5;
    --blush:            #f8e2e9;
    --blush-deep:       #ebb5c4;
    --rose-gold:        #d992a7;
    --rose-accent:      #de8aa6;
    --lavender:         #e7def2;
    --lavender-deep:    #cbbbe0;
    --sage:             #d2e5d6;
    --sage-deep:        #a8caa8;

    /* Sticky Note Vibrant Pastels */
    --sticky-yellow:    #fff3b3;
    --sticky-pink:      #fcdbe4;
    --sticky-lavender:  #e7dcf5;
    --sticky-mint:      #d6f0df;
    
    --text:             #3e3733;
    --text-soft:        #736961;
    --text-muted:       #9e9287;
    --white:            #ffffff;

    /* Glassmorphism & UI Tokens */
    --glass-card:       rgba(255, 241, 246, 0.9);
    --glass-border:     rgba(242, 198, 210, 0.72);
    --overlay-start:    rgba(249, 214, 226, 0.35);
    --overlay-end:      rgba(255, 255, 255, 0.2);

    /* Utility */
    --ui-border:        rgba(235, 196, 212, 0.65);

    /* Theme palette variables */
    --bg-start:         #f9d6e2;
    --bg-mid:           #f8c2d4;
    --bg-end:           #e8a4c4;

    /* Shadows */
    --shadow-soft:      0 8px 28px rgba(130, 95, 110, 0.08);
    --shadow-card:      0 12px 32px rgba(130, 95, 110, 0.12);
    --shadow-hover:     0 20px 45px rgba(130, 95, 110, 0.18);

    /* Typography */
    --font-display:     'Cormorant Garamond', Georgia, serif;
    --font-body:        'Outfit', system-ui, -apple-system, sans-serif;
}

/* --- 2. Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    background-color: var(--bg-start);
    background-image: linear-gradient(
        135deg,
        var(--bg-start) 0%,
        var(--bg-mid) 35%,
        var(--bg-end) 70%,
        var(--bg-end) 100%
    );
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


a {
    text-decoration: none;
    color: inherit;
}

.text-pink {
    color: var(--rose-accent) !important;
}

/* --- 3. Keyframes --- */
@keyframes floatPetal {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(6deg); }
}

@keyframes pulseSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.9); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

@keyframes floatBgShape {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(8px, -8px) scale(1.02);
    }
    100% {
        transform: translate(0, 10px) scale(1);
    }
}

@keyframes bgSparkleTwinkle {
    0%, 100% {
        opacity: 0.22;
        transform: scale(0.9) rotate(0deg);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.1) rotate(18deg);
    }
}

@keyframes pulseBgShape {
    0%, 100% {
        opacity: 0.22;
    }
    50% {
        opacity: 0.28;
    }
}

/* --- 4. Background Scrapbook & Torn Kraft Elements --- */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.28);
    opacity: 0.18;
    filter: blur(1px);
    animation: bgSparkleTwinkle 4.5s ease-in-out infinite;
}
.bg-sparkle--1 { top: 12%; left: 22%; animation-delay: 0s; }
.bg-sparkle--2 { top: 40%; right: 18%; animation-delay: 0.9s; }
.bg-sparkle--3 { bottom: 22%; left: 18%; animation-delay: 1.7s; }
.bg-sparkle--4 { bottom: 35%; right: 25%; animation-delay: 2.4s; }

/* Paint Splatters */
.paint-splatter {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.28;
    animation: floatBgShape 22s ease-in-out infinite alternate, pulseBgShape 14s ease-in-out infinite alternate;
}

.paint-splatter--1 { width: 180px; height: 180px; top: 18%; left: 8%; background: radial-gradient(circle, #f7dce5 0%, transparent 70%); animation-delay: 0s; }
.paint-splatter--2 { width: 220px; height: 220px; top: 60%; right: 10%; background: radial-gradient(circle, #e7def2 0%, transparent 70%); animation-delay: 3s; }
.paint-splatter--3 { width: 200px; height: 200px; bottom: 12%; left: 35%; background: radial-gradient(circle, #d2e5d6 0%, transparent 70%); animation-delay: 5s; }

/* Torn Kraft Paper Scraps */
.torn-paper {
    position: absolute;
    background: linear-gradient(135deg, #eee1cf 0%, #e3d2bd 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    opacity: 0.78;
    z-index: 0;
}

.torn-paper--tl {
    width: 140px;
    height: 120px;
    top: -20px;
    left: -20px;
    clip-path: polygon(0 0, 100% 0, 85% 70%, 100% 100%, 0 85%);
    transform: rotate(-5deg);
}

.torn-paper--tr {
    width: 150px;
    height: 140px;
    top: -20px;
    right: -30px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 85%, 20% 40%);
    transform: rotate(6deg);
}

.torn-paper--bl {
    width: 160px;
    height: 130px;
    bottom: -30px;
    left: -30px;
    clip-path: polygon(0 0, 80% 20%, 100% 100%, 0 100%);
    transform: rotate(4deg);
}

.torn-paper--br {
    width: 150px;
    height: 140px;
    bottom: -20px;
    right: -20px;
    clip-path: polygon(20% 0, 100% 15%, 100% 100%, 0 100%);
    transform: rotate(-3deg);
}

.torn-paper--ml {
    width: 90px;
    height: 140px;
    top: 45%;
    left: -30px;
    clip-path: polygon(0 0, 100% 15%, 80% 85%, 0 100%);
    opacity: 0.55;
}

.torn-paper--mr {
    width: 90px;
    height: 150px;
    top: 48%;
    right: -30px;
    clip-path: polygon(20% 0, 100% 10%, 100% 90%, 0 100%);
    opacity: 0.55;
}

/* Floating Petals & Flowers */
.petal {
    position: absolute;
    border-radius: 50% 0 50% 50%;
    opacity: 0.38;
    filter: blur(1px);
    animation: floatPetal 8s ease-in-out infinite;
}

.petal--1 { width: 80px; height: 80px; top: 6%; left: 5%; background: var(--blush); animation-delay: 0s; }
.petal--2 { width: 60px; height: 60px; top: 15%; right: 8%; background: var(--lavender); animation-delay: 1.5s; }
.petal--3 { width: 100px; height: 100px; bottom: 10%; left: 6%; background: var(--sage); opacity: 0.28; animation-delay: 3s; }
.petal--4 { width: 70px; height: 70px; bottom: 20%; right: 6%; background: var(--blush-deep); animation-delay: 2s; }
.petal--5 { width: 45px; height: 45px; top: 40%; left: 3%; background: var(--lavender-deep); opacity: 0.25; animation-delay: 4s; }
.petal--6 { width: 50px; height: 50px; top: 58%; right: 4%; background: var(--sage-deep); opacity: 0.22; animation-delay: 2.5s; }
.petal--7 { width: 65px; height: 65px; top: 28%; left: 82%; background: var(--blush); opacity: 0.35; animation-delay: 3.5s; }
.petal--8 { width: 75px; height: 75px; bottom: 38%; left: 3%; background: var(--lavender); opacity: 0.3; animation-delay: 1.8s; }
.petal--9 { width: 55px; height: 55px; top: 72%; right: 28%; background: var(--sage); opacity: 0.32; animation-delay: 2.2s; }

.circle { position: absolute; border-radius: 50%; opacity: 0.18; filter: blur(40px); animation: floatBgShape 28s ease-in-out infinite alternate; }
.circle--1 { width: 380px; height: 380px; top: -80px; right: -60px; background: radial-gradient(circle, var(--lavender-deep) 0%, transparent 70%); animation-delay: 1s; }
.circle--2 { width: 320px; height: 320px; bottom: -50px; left: -40px; background: radial-gradient(circle, var(--blush-deep) 0%, transparent 70%); animation-delay: 4s; }
.circle--3 { width: 240px; height: 240px; top: 20%; left: 60%; background: radial-gradient(circle, rgba(255, 245, 240, 0.64), transparent 72%); animation-delay: 2.5s; }

.blob { position: absolute; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; opacity: 0.24; filter: blur(30px); animation: floatBgShape 26s ease-in-out infinite alternate; }
.blob--1 { width: 280px; height: 220px; top: 30%; left: 10%; background: radial-gradient(circle, var(--rose-gold) 0%, var(--blush) 100%); animation-delay: 2s; }
.blob--2 { width: 300px; height: 250px; bottom: 25%; right: 12%; background: radial-gradient(circle, var(--lavender-deep) 0%, var(--sage) 100%); animation-delay: 6s; }
.blob--3 { width: 240px; height: 200px; top: 12%; left: 42%; background: radial-gradient(circle, var(--blush) 0%, var(--cream) 100%); animation-delay: 8s; }

.decor-flower { position: absolute; font-size: 1.9rem; opacity: 0.5; user-select: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04)); transform-origin: center center; }
.decor-flower--1 { top: 3%; right: 14%; transform: rotate(15deg); }
.decor-flower--2 { top: 68%; left: 3%; transform: rotate(-20deg); }
.decor-flower--3 { top: 84%; right: 18%; transform: rotate(45deg); }
.decor-flower--4 { top: 35%; left: 92%; transform: rotate(-10deg); }
.decor-flower--5 { top: 18%; left: 12%; transform: rotate(25deg); }
.decor-flower--6 { top: 52%; right: 3%; transform: rotate(-35deg); }
.decor-flower--7 { top: 88%; left: 28%; transform: rotate(10deg); }
.decor-flower--8 { top: 25%; left: 48%; transform: rotate(-15deg); }
.decor-flower--9 { top: 78%; right: 42%; transform: rotate(20deg); }
.decor-flower--10 { top: 45%; left: 5%; transform: rotate(10deg); }

.decor-star { position: absolute; font-size: 1.25rem; opacity: 0.45; color: #e5b058; }
.decor-star--1 { top: 22%; right: 28%; }
.decor-star--2 { top: 48%; left: 18%; }
.decor-star--3 { bottom: 15%; right: 32%; }
.decor-star--4 { top: 80%; left: 15%; }

.decor-heart { position: absolute; font-size: 1.35rem; opacity: 0.45; }
.decor-heart--1 { top: 12%; left: 28%; }
.decor-heart--2 { bottom: 22%; left: 12%; }

.title-sparkle, .decor-sparkle { position: absolute; color: var(--rose-gold); font-size: 1.1rem; animation: pulseSparkle 4s ease-in-out infinite; user-select: none; }
.title-sparkle--1 { top: -10px; left: -25px; animation-delay: 0.2s; }
.title-sparkle--2 { top: 10px; left: -45px; animation-delay: 0.8s; }
.title-sparkle--3 { top: -12px; right: -25px; animation-delay: 1.4s; }
.title-sparkle--4 { top: 8px; right: -45px; animation-delay: 2.1s; }
.title-sparkle--5 { bottom: -10px; left: -15px; animation-delay: 0.5s; }
.title-sparkle--6 { bottom: -10px; right: -15px; animation-delay: 1.7s; }
.title-sparkle--7 { top: 40%; left: -60px; animation-delay: 2.5s; }
.title-sparkle--8 { top: 40%; right: -60px; animation-delay: 3s; }

.decor-sparkle--1 { top: 14%; left: 22%; animation-delay: 0.4s; }
.decor-sparkle--2 { top: 28%; right: 18%; animation-delay: 1.2s; }
.decor-sparkle--3 { top: 60%; left: 15%; animation-delay: 2.2s; }
.decor-sparkle--4 { top: 75%; right: 25%; animation-delay: 1.8s; }
.decor-sparkle--5 { top: 42%; right: 48%; animation-delay: 0.9s; }

/* --- 5. Hero Section (index.php) --- */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.hero-card__accent {
    position: absolute;
    top: -2px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-title__icon { font-size: 2.4rem; transition: transform 0.5s ease; }
.hero-card:hover .hero-title__icon { transform: rotate(15deg) scale(1.1); }

.hero-slogan {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-soft);
    margin-bottom: 2.25rem;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, #f7d2e0 0%, #e8b3c7 100%);
    color: #4a2c38;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(232, 179, 199, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(232, 179, 199, 0.6);
    color: #3b1e29;
}

.auth-card__forms {
    display: grid;
    gap: 1.5rem;
}

.auth-form {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
}

.auth-form--active {
    opacity: 1;
    max-height: 1800px;
}

.auth-field {
    display: grid;
    gap: 0.55rem;
    text-align: left;
}

.auth-field label {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.auth-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(235, 196, 212, 0.7);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7);
}

.auth-input:focus {
    outline: none;
    border-color: rgba(212, 95, 141, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 218, 229, 0.45);
}

.auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 1.05rem;
    padding: 0.3rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text);
}

.auth-remember {
    display: flex;
    justify-content: flex-start;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkbox-label input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #d45f8d;
}

.btn-auth {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.btn-auth--primary {
    background: linear-gradient(135deg, #f7d2e0 0%, #e8b3c7 100%);
    color: #4a2c38;
    box-shadow: 0 10px 24px rgba(232, 179, 199, 0.35);
}

.btn-auth--secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(212, 95, 141, 0.35);
}

.btn-auth:hover {
    transform: translateY(-1px);
}

/* Forgot password small link positioned near login button */
.auth-forgot-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}
.auth-forgot-link:hover { color: var(--rose-accent); text-decoration: underline; }

/* Simple modal styling reused from dashboard */
.petal-modal-overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.28); z-index: 99999; }
.petal-modal { max-width: 520px; width: 92%; }
.petal-modal .modal-content { background: var(--glass-card); border: 1px solid var(--glass-border); border-radius: 18px; padding: 1rem 1rem; }
.petal-modal .modal-body { padding: 0.8rem 0.4rem; }
.petal-modal .modal-header { display:flex; align-items:center; justify-content:space-between; padding-bottom:0.6rem; }
.petal-modal .modal-title { font-family:var(--font-display); font-size:1.25rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0 1.2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth-divider span:first-child,
.auth-divider span:last-child {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(235, 196, 212, 0.45);
}

.auth-switch-text {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-link {
    border: none;
    background: transparent;
    color: #d45f8d;
    font-weight: 700;
    cursor: pointer;
}

.auth-trust {
    margin-top: 1.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-card {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(16px);
}

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

.d-none {
    display: none !important;
}

.auth-message {
    border-radius: 20px;
    padding: 1rem 1rem;
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.auth-message--success {
    color: #2f4d35;
    background: rgba(221, 248, 224, 0.9);
    border-color: rgba(132, 206, 146, 0.6);
}

.auth-message--error {
    color: #592d37;
    background: rgba(255, 229, 233, 0.92);
    border-color: rgba(236, 151, 168, 0.6);
}

/* --- 6. Dashboard Header --- */
.dashboard-page { position: relative; }

.dashboard {
    position: relative;
    z-index: 1;
    max-width: 1140px;
}

.dashboard-header {
    position: relative;
    z-index: 10020;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.dashboard-brand {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dashboard-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.dashboard-header__search {
    position: relative;
    flex: 0 1 360px;
    max-width: 360px;
    margin-left: auto;
    margin-right: 0.6rem;
    overflow: visible;
    z-index: 10025;
}

.search-field {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(235, 196, 212, 0.6);
    box-shadow: 0 10px 30px rgba(133, 96, 115, 0.08);
}

.search-icon {
    display: grid;
    place-items: center;
    color: var(--rose-accent);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-soft);
}

.dashboard.search-active > :not(.dashboard-header) {
    filter: blur(3px);
    opacity: 0.92;
    transition: filter 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.dashboard.search-active .dashboard-header,
.dashboard.search-active .dashboard-header * {
    pointer-events: auto;
}

.dashboard.search-active .search-dropdown {
    pointer-events: auto;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(235, 196, 212, 0.55);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(131, 93, 116, 0.14);
    padding: 0.8rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

.search-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-group {
    margin-bottom: 0.85rem;
}

.search-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.55rem;
}

.search-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.22s ease;
}

.search-item:hover {
    background: rgba(247, 220, 229, 0.55);
}

.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-item-meta {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.search-no-results {
    padding: 1rem 1rem;
    color: var(--text-soft);
    text-align: center;
    font-size: 0.95rem;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(235, 196, 212, 0.4);
    background: rgba(255, 239, 244, 0.75);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: var(--blush);
    color: var(--text);
    transform: translateY(-2px);
}

/* --- 7. Dashboard Greeting --- */
.dashboard-greeting { margin-top: 0.8rem; }
.dashboard-greeting__title-wrap { position: relative; display: inline-block; }
.dashboard-greeting__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.dashboard-greeting__slogan {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-soft);
    margin-top: 0.2rem;
}

/* --- 8. Mood & Short Calendar Scrapbook Cards --- */
.petal-card {
    background: var(--glass-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 1.5rem 1.7rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.petal-card--accent {
    border: 1.5px solid rgba(240, 205, 218, 0.7);
}

/* Paper Clips & Badges (Replaces Push Pins) */
.paper-clip {
    position: absolute;
    font-size: 1.65rem;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    user-select: none;
}

.paper-clip--tl { top: -14px; left: 18px; transform: rotate(-15deg); }
.paper-clip--tc { top: -14px; left: 50%; transform: translateX(-50%) rotate(5deg); }

.card-sticker {
    position: absolute;
    font-size: 1.5rem;
    z-index: 10;
    user-select: none;
}

.card-sticker--br { bottom: 12px; right: 14px; }
.card-sticker--tr { top: 12px; left: 14px; }

.mood-card-scrapbook { padding: 1.4rem 1.6rem; }

.petal-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.mood-picker {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.4rem;
    padding: 0.8rem 0.5rem;
    background: rgba(255, 243, 248, 0.85);
    border-radius: 18px;
    border: 1px solid rgba(240, 205, 218, 0.4);
}

.mood-picker__item {
    font-size: 2.15rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    line-height: 1;
}

.mood-picker__item:hover {
    transform: scale(1.3) translateY(-4px);
    background: var(--blush);
}

.mood-picker__item--active {
    transform: scale(1.35);
    background: #fcd5e2;
    box-shadow: 0 4px 14px rgba(235, 180, 200, 0.6);
}

.mood-status-box {
    font-size: 0.92rem;
    color: var(--text-soft);
    background: rgba(255, 239, 244, 0.78);
    padding: 0.55rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--blush-deep);
}

/* Visibly Shortened Compact Calendar Card */
.calendar-card-short {
    padding: 1.15rem 1.5rem;
}

.calendar { width: 100%; }

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar__month {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.calendar__nav-btn {
    background: rgba(255, 241, 247, 0.85);
    border: 1px solid rgba(235, 196, 212, 0.4);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar__nav-btn:hover { background: var(--blush); color: var(--text); }

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.calendar__day {
    aspect-ratio: 1;
    max-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    color: var(--text);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.calendar__day:hover:not(.calendar__day--muted) {
    background: var(--blush);
    transform: scale(1.1);
}

.calendar__day--muted {
    color: var(--text-muted);
    opacity: 0.35;
    cursor: default;
}

.calendar__day--today {
    font-weight: 600;
    color: var(--rose-accent);
}

.calendar__day--active {
    background: var(--rose-accent) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(226, 133, 156, 0.4);
}

.calendar__day--has-photo::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--rose-accent);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.calendar__day--active.calendar__day--has-photo::after {
    background-color: var(--white);
}

/* --- 9. 4 Polaroid Photo Cards Section --- */
.section-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text);
}

.photo-card-polaroid {
    position: relative;
    background: #fff1f8;
    padding: 0.85rem 0.85rem 1.4rem 0.85rem;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(130, 95, 110, 0.13), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-card-polaroid:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 48px rgba(130, 95, 110, 0.2);
}

.photo-card-polaroid--tilt-left { transform: rotate(-2.8deg); }
.photo-card-polaroid--straight { transform: rotate(0.4deg); }
.photo-card-polaroid--tilt-right { transform: rotate(2.5deg); }
.photo-card-polaroid--dashed { transform: rotate(-1.5deg); }

/* Washi Tapes */
.tape-decor {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 85px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 10;
    border-left: 2px dashed rgba(255, 255, 255, 0.6);
    border-right: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    pointer-events: none;
}

.tape-decor--top-left { left: 25%; top: -10px; }
.tape-decor--top-right { left: 75%; top: -10px; }

.tape-decor--beige { background: rgba(240, 222, 198, 0.85); }
.tape-decor--pink { background: rgba(247, 218, 227, 0.85); }
.tape-decor--rose { background: rgba(235, 182, 200, 0.85); }
.tape-decor--sage { background: rgba(210, 229, 214, 0.85); }

.tape-decor--washi {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 235, 205, 0.85),
        rgba(255, 235, 205, 0.85) 6px,
        rgba(245, 215, 225, 0.85) 6px,
        rgba(245, 215, 225, 0.85) 12px
    );
}

.tape-decor--plaid {
    background: repeating-linear-gradient(
        90deg,
        rgba(235, 185, 200, 0.85),
        rgba(235, 185, 200, 0.85) 4px,
        rgba(255, 255, 255, 0.85) 4px,
        rgba(255, 255, 255, 0.85) 8px
    );
}

/* Photo Stickers */
.sticker-heart {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 1.4rem;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sticker-leaf {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.4rem;
    z-index: 10;
}

.photo-card__frame {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #faf5f0;
    border: 1px solid rgba(235, 210, 220, 0.4);
    transition: all 0.3s ease;
}

.photo-card__frame--dashed {
    border: 2px dashed rgba(216, 155, 169, 0.45);
    background: #fdfaf6;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-gold);
    transition: transform 0.3s ease;
}

.photo-placeholder__icon { font-size: 2.2rem; }

.photo-card-polaroid:hover .photo-placeholder__icon {
    transform: scale(1.18) rotate(6deg);
    color: var(--rose-accent);
}

.photo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card-polaroid:hover .photo-card__img { transform: scale(1.06); }

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(226, 133, 156, 0.9);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(226, 133, 156, 0.4);
}

.photo-delete-btn:hover {
    background: rgba(226, 133, 156, 1);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(226, 133, 156, 0.6);
}

.photo-card__frame {
    position: relative;
}

/* --- 10. 4 Colorful Sticky Notes Section --- */
.note-card-colorful {
    position: relative;
    padding: 1.5rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(120, 90, 110, 0.1), 0 2px 5px rgba(0, 0, 0, 0.03);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.note-card-colorful:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 18px 42px rgba(120, 90, 110, 0.18);
}

.note-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(226, 133, 156, 0.85);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(226, 133, 156, 0.3);
    opacity: 0;
}

.note-card-colorful:hover .note-delete-btn {
    opacity: 1;
}

.note-delete-btn:hover {
    background: rgba(226, 133, 156, 1);
    transform: scale(1.15);
    box-shadow: 0 5px 14px rgba(226, 133, 156, 0.5);
}

.note-card-colorful--yellow {
    background: var(--sticky-yellow);
    border: 1px solid rgba(245, 225, 140, 0.7);
    transform: rotate(-1.5deg);
}

.note-card-colorful--pink {
    background: var(--sticky-pink);
    border: 1px solid rgba(240, 195, 210, 0.7);
    transform: rotate(1.2deg);
}

.note-card-colorful--lavender {
    background: var(--sticky-lavender);
    border: 1px solid rgba(215, 200, 235, 0.7);
    transform: rotate(-1.8deg);
}

.note-card-colorful--mint {
    background: var(--sticky-mint);
    border: 1px solid rgba(195, 230, 205, 0.7);
    transform: rotate(2deg);
}

.note-card--lined {
    background-image: repeating-linear-gradient(
        transparent,
        transparent 24px,
        rgba(180, 160, 210, 0.25) 24px,
        rgba(180, 160, 210, 0.25) 25px
    );
}

.note-card--grid {
    background-image: 
        linear-gradient(rgba(160, 210, 180, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 210, 180, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.curled-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.06) 50%);
    border-radius: 0 0 10px 0;
    pointer-events: none;
}

.torn-bottom-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        #fbf6f0 4px,
        #fbf6f0 8px
    );
}

.note-sticker {
    position: absolute;
    font-size: 1.4rem;
    z-index: 10;
    user-select: none;
}

.note-sticker--br { bottom: 10px; right: 12px; }

.note-card__textarea {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: transparent;
    border: none;
    resize: none;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.65;
    outline: none;
    margin-top: 0.5rem;
}

.note-card__textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* --- 11. Buttons --- */
.btn-petal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #f5dde6 0%, #ebc4d4 100%);
    color: #4a2c38;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(235, 196, 212, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-petal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(235, 196, 212, 0.7);
}

.btn-petal-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--blush-deep);
    color: var(--text);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-petal-outline:hover {
    background: var(--blush);
    transform: translateY(-1px);
}

.btn-petal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1.35rem;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.98) 0%, rgba(241, 218, 227, 0.96) 100%);
    color: #6b4052;
    border: 1px solid rgba(234, 192, 205, 0.75);
    box-shadow: 0 6px 18px rgba(230, 191, 205, 0.32);
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-petal-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(230, 191, 205, 0.42);
}

.sticker-gallery-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 86vw);
    padding: 1.5rem;
    background: rgba(252, 246, 249, 0.96);
    border-left: 1px solid rgba(235, 196, 212, 0.65);
    box-shadow: -10px 0 45px rgba(128, 92, 113, 0.18);
    width: 56px;
    padding: 0.75rem 0.5rem;
    overflow: hidden;
    transition: width 0.32s ease, padding 0.32s ease;
    z-index: 9999;
}

.sticker-gallery-panel.open {
    width: min(320px, 86vw);
    padding: 1.5rem;
}

.sticker-gallery-panel__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sticker-gallery-panel.open .sticker-gallery-panel__inner {
    opacity: 1;
    pointer-events: auto;
}

.sticker-gallery-panel::before {
    content: "Sticker";
    position: absolute;
    left: -56px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    width: 160px;
    padding: 0.8rem 0;
    text-align: center;
    background: rgba(255, 240, 246, 0.95);
    border: 1px solid rgba(235, 196, 212, 0.65);
    border-radius: 20px 20px 0 0;
    box-shadow: -8px 0 18px rgba(134, 87, 113, 0.12);
    color: #8a526b;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.sticker-gallery-panel__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sticker-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.sticker-gallery-subtitle {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0.15rem 0 0;
}

.sticker-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.sticker-gallery-tab {
    border: 1px solid rgba(233, 200, 214, 0.7);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
}

.sticker-picker {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem;
    background: rgba(255, 248, 251, 0.97);
    border: 1px solid rgba(233, 200, 214, 0.7);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(143, 96, 115, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 220px;
}

.sticker-picker.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sticker-picker__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(233, 200, 214, 0.7);
    border-radius: 999px;
    background: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker-picker__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(143, 96, 115, 0.14);
    cursor: pointer;
    transition: all 0.22s ease;
}

.sticker-gallery-tab.active,
.sticker-gallery-tab:hover {
    background: rgba(246, 218, 230, 0.95);
    color: #7b435d;
    border-color: rgba(233, 180, 199, 0.95);
}

.sticker-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sticker-item {
    width: 100%;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(239, 198, 214, 0.72);
    color: #6f455e;
    font-size: 1.6rem;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.sticker-gallery-footer {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.sticker-drop-hover {
    border-color: rgba(245, 180, 208, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(245, 180, 208, 0.18);
}

.sticker-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.placed-sticker {
    pointer-events: auto;
}

.sticker-context-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 166, 185, 0.9);
    box-shadow: 0 12px 24px rgba(129, 84, 106, 0.16);
    border-radius: 14px;
    min-width: 100px;
    padding: 0.35rem;
    z-index: 10020;
}

.sticker-context-menu__item {
    border: none;
    background: transparent;
    color: #7a415b;
    padding: 0.75rem 0.9rem;
    text-align: left;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.sticker-context-menu__item:hover {
    background: rgba(245, 195, 214, 0.22);
}

.placed-sticker {
    position: absolute;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(236, 178, 201, 0.75);
    box-shadow: 0 10px 24px rgba(172, 115, 145, 0.12);
    cursor: pointer;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 12;
}

.placed-sticker:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 14px 30px rgba(172, 115, 145, 0.18);
}

@media (max-width: 992px) {
    .sticker-gallery-panel {
        width: 100%;
        top: auto;
        bottom: 0;
        height: 58%;
        border-left: none;
        border-top: 1px solid rgba(235, 196, 212, 0.65);
    }

    .sticker-gallery-header {
        align-items: center;
    }
}

.petal-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4a2c38;
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 0.92rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.petal-toast.show { opacity: 1; transform: translateY(0); }

.petal-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 28, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.petal-confirm-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 181, 191, 0.5);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
    width: min(420px, calc(100% - 40px));
    text-align: center;
}

.petal-confirm-card h3 {
    margin: 0 0 0.75rem;
    color: #5f3748;
    font-size: 1.2rem;
}

.petal-confirm-card p {
    margin: 0 0 1.35rem;
    color: #6d4f60;
    line-height: 1.65;
}

.petal-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.petal-confirm-button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petal-confirm-button:hover {
    transform: translateY(-1px);
}

.petal-confirm-button--cancel {
    background: #f4e4eb;
    color: #7b5b6f;
}

.petal-confirm-button--confirm {
    background: #d45f8d;
    color: #fff;
    box-shadow: 0 12px 24px rgba(212, 95, 141, 0.18);
}

/* --- 12. Footer --- */
.dashboard-footer { border-top: 1px solid rgba(235, 196, 212, 0.3); }

/* --- 13. Responsive Media Queries --- */
@media (max-width: 768px) {
    .hero-card { padding: 2.25rem 1.5rem; }
    .hero-title { font-size: 2.2rem; }
    .dashboard-greeting__title { font-size: 2.3rem; }
    .dashboard-header { padding: 1rem 1.2rem; }
    .petal-card { padding: 1.25rem; }
    .mood-picker__item { font-size: 1.8rem; }
    .photo-card-polaroid, .note-card-colorful { transform: none !important; }
}

@media (max-width: 576px) {
    .title-sparkle--7, .title-sparkle--8 { display: none; }
    .calendar__month { font-size: 1.15rem; }
}

/* --- 14. Falling Petals & Leaves Background Effect --- */
.falling-petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.falling-petal {
    position: absolute;
    top: -10%;
    left: var(--start-left);
    will-change: transform;
    pointer-events: none;
    animation: fallLinear var(--fall-duration) linear infinite;
    animation-delay: var(--delay);
}

.falling-petal__inner {
    width: var(--size);
    height: var(--size);
    will-change: transform;
    pointer-events: none;
    animation: swayAlternate var(--sway-duration) ease-in-out infinite alternate;
}

/* Petal/Leaf shape and pastel colors based on types */
.falling-petal--type-1 {
    background: linear-gradient(135deg, var(--blush), var(--blush-deep));
    border-radius: 50% 0 50% 50%;
}

.falling-petal--type-2 {
    background: linear-gradient(135deg, var(--lavender), var(--lavender-deep));
    border-radius: 50% 0 50% 50%;
}

.falling-petal--type-3 {
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    border-radius: 0 50% 0 50%; /* Leaf shape */
}

.falling-petal--type-4 {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-accent));
    border-radius: 50% 0 50% 50%;
}

@keyframes fallLinear {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(120vh);
    }
}

@keyframes swayAlternate {
    0% {
        transform: translateX(0) rotate(0deg) rotateY(0deg);
    }
    100% {
        transform: translateX(var(--sway-amount)) rotate(var(--rotate-deg)) rotateY(180deg);
    }
}

/* --- 15. Staggered Card Entrance Animation --- */
@keyframes cardCascade {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-cascade {
    opacity: 0;
    animation: cardCascade 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cascade-delay-1 { animation-delay: 0.08s; }
.cascade-delay-2 { animation-delay: 0.22s; }
.cascade-delay-3 { animation-delay: 0.38s; }
.cascade-delay-4 { animation-delay: 0.52s; }

/* Disable animations utility */
body.no-cascade-anim .animate-cascade {
    opacity: 1 !important;
    animation: none !important;
}

body.no-sway-anim .decor-flower {
    animation: none !important;
}

body.no-twinkle-anim .decor-star,
body.no-twinkle-anim .decor-sparkle {
    animation: none !important;
}

/* --- 16. Decorative Flower Sway & Star Twinkle Animations --- */
@keyframes swayFlower {
    0%, 100% {
        transform: translateX(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(3px) rotate(3deg) scale(1.01);
    }
}

@keyframes swayFlowerAlt {
    0%, 100% {
        transform: translateX(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(-3px) rotate(-3deg) scale(1.01);
    }
}

.decor-flower {
    display: inline-block;
    will-change: transform;
    animation: swayFlower 10s ease-in-out infinite;
}

.decor-flower:nth-child(even) {
    animation: swayFlowerAlt 12s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes twinkleStar {
    0%, 100% {
        opacity: 0.45;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.22) rotate(8deg);
        filter: drop-shadow(0 0 6px rgba(255, 230, 180, 0.8));
    }
}

.decor-star,
.decor-sparkle {
    display: inline-block;
    will-change: transform, opacity;
    animation: twinkleStar 3.8s ease-in-out infinite;
}

.decor-star:nth-child(even),
.decor-sparkle:nth-child(even) {
    animation-delay: 1.8s;
    animation-duration: 4.6s;
}

/* --- 17. Mood Custom Burst Particles --- */
.mood-card-scrapbook {
    position: relative;
}

.mood-particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.mood-particle {
    position: absolute;
    font-size: 1.25rem;
    pointer-events: none;
    will-change: transform, opacity;
    animation: floatMoodParticle 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatMoodParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    40% {
        opacity: 0.95;
        transform: translate(calc(var(--dx) * 0.65), calc(var(--dy) * 0.65)) scale(1.15) rotate(calc(var(--rot) * 0.8));
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) - 18px)) scale(0.35) rotate(calc(var(--rot) * 1.8));
    }
}

/* --- 18. Bloom Days Card & Star Reveal --- */
.bloom-days-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 253, 250, 0.95), rgba(252, 238, 243, 0.85));
    border: 1.5px solid var(--glass-border);
    transition: all 0.3s ease;
}

.bloom-days-card:hover {
    box-shadow: 0 14px 35px rgba(226, 133, 156, 0.15);
}

.bloom-star-icon {
    display: inline-block;
    cursor: pointer;
    font-size: 1.35rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    user-select: none;
}

.bloom-star-icon:hover {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(217, 146, 167, 0.7));
}

.bloom-star-icon.sparkle-pulse {
    animation: starPulseGlow 0.6s ease-out;
}

@keyframes starPulseGlow {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.5) rotate(180deg); filter: drop-shadow(0 0 15px rgba(226, 133, 156, 0.9)); }
    100% { transform: scale(1) rotate(360deg); }
}

.bloom-days-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    display: inline-block;
    position: relative;
    background: linear-gradient(90deg, var(--text), var(--rose-accent), var(--text));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.6s ease;
}

.bloom-days-text.text-reveal {
    animation: textShimmer 1s ease-out;
}

@keyframes textShimmer {
    0% { background-position: 0% center; transform: scale(0.98); }
    50% { background-position: 100% center; transform: scale(1.04); }
    100% { background-position: 0% center; transform: scale(1); }
}

.bloom-days-subtext {
    font-size: 0.88rem;
    color: var(--text-soft);
    font-style: italic;
}

.btn-bloom-fav {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--blush-deep);
    color: var(--text);
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-bloom-fav:hover {
    background: var(--blush);
    color: var(--rose-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226, 133, 156, 0.2);
}

.btn-bloom-fav.is-fav {
    background: var(--rose-accent);
    color: white;
    border-color: var(--rose-accent);
}

/* --- 19. Cozy Settings Modal & Bloom Days List --- */
.petal-modal .modal-content {
    background: var(--cream);
    border-radius: 24px;
    border: 1.5px solid var(--blush-deep);
    box-shadow: 0 20px 50px rgba(130, 95, 110, 0.2);
    overflow: hidden;
}

.petal-modal .modal-header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--blush);
    padding: 1.1rem 1.5rem;
}

.petal-modal .modal-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
}

.petal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, var(--overlay-start), var(--overlay-end));
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

.petal-modal {
    width: min(100%, 760px);
    max-width: 760px;
    margin: auto;
}

.petal-modal .modal-content {
    min-width: 100%;
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
}

.petal-modal .modal-body {
    padding: 1.35rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.settings-panel {
    display: none;
    padding-top: 0.75rem;
}

.settings-panel.active {
    display: block;
}

.settings-panel-header {
    background: rgba(255, 250, 247, 0.95);
    border: 1px solid var(--cream-dark);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.settings-field {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.settings-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(218, 181, 196, 0.8);
    border-radius: 16px;
    background: rgba(255, 249, 251, 0.95);
    color: var(--text);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-input:focus {
    border-color: var(--rose-accent);
    box-shadow: 0 0 0 4px rgba(222, 138, 166, 0.12);
}

.settings-button {
    margin-top: 0.6rem;
    padding: 0.9rem 1.15rem;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rose-accent), var(--blush-deep));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.settings-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Outline / secondary variant for settings buttons (visible on light backgrounds) */
.settings-button--outline {
    background: transparent;
    color: var(--rose-accent);
    border: 1.5px solid rgba(222, 138, 166, 0.65);
    box-shadow: none;
    padding: 0.85rem 1.05rem;
}
.settings-button--outline:hover {
    background: rgba(237, 202, 214, 0.06);
    transform: translateY(-1px);
}

.petal-modal .modal-content {
    max-width: 720px;
}

.settings-list {
    list-style: disc inside;
    margin: 0.85rem 0 0;
    padding-left: 0.85rem;
    color: var(--text-soft);
}

.settings-list li {
    margin-bottom: 0.5rem;
}

.petal-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-remove-fav {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-remove-fav:hover {
    color: #e74c3c;
    background: #fdf0ed;
}

.petal-modal-nav {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    background: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid var(--blush);
    overflow-x: auto;
}

.petal-nav-link {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.petal-nav-link:hover {
    color: var(--text);
    background: rgba(247, 220, 229, 0.5);
}

.petal-nav-link.active {
    background: var(--blush);
    color: var(--rose-accent);
    font-weight: 500;
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.theme-option {
    border: 1px solid rgba(218, 181, 196, 0.6);
    background: rgba(255, 248, 250, 0.95);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    font-size: 0.94rem;
    min-width: 138px;
    text-align: center;
}

.theme-option:hover,
.theme-option:focus-visible {
    transform: translateY(-1px);
    border-color: var(--rose-accent);
    background: rgba(255, 238, 246, 0.95);
}

.theme-option.active {
    background: linear-gradient(135deg, rgba(247, 212, 226, 0.92), rgba(255, 241, 246, 0.95));
    border-color: var(--rose-accent);
    color: var(--rose-accent);
}

.fav-days-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.fav-day-item {
    background: white;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(130, 95, 110, 0.06);
    border: 1px solid var(--cream-dark);
    transition: transform 0.2s ease;
}

.fav-day-item:hover {
    transform: translateX(4px);
}

.fav-day-item__date {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.fav-day-item__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove-fav {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-remove-fav:hover {
    color: #e74c3c;
    background: #fdf0ed;
}