/* ===== ROOT VARIABLES (Cozy/Cute Theme) ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

:root {
    /* Palette: Sage, Cream, & Warm Earth */
    --primary-color: #88B04B;
    --primary-dark: #608030;
    --accent-color: #FF9F1C;
    --bg-color: #FEFAE0;
    --card-bg: #FFFDF5;
    --text-main: #283618;
    --text-soft: #606C38;

    /* New Variable for the Counter */
    --text-love: #F08080; /* Light Coral/Pinkish Red */

    --border-radius: 25px;
    --shadow-soft: 0 8px 24px rgba(136, 176, 75, 0.15);
    --shadow-hover: 0 12px 30px rgba(136, 176, 75, 0.25);

    --font-cute: 'Quicksand', 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Accounts specific */
    --accounts-border: #457B9D;
    --accounts-shadow: #A8DADC;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cute);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding: 150px 0px 0px 0px;
    background-image: radial-gradient(#E9EDC9 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== LANDING PAGE SPECIFIC ===== */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: center;
}

.about p {
    margin: 0;
    font-weight: 400;
    color: var(--text-soft);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 2.5rem 1rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: var(--shadow-soft);
    border-top: 3px dashed #E9EDC9;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

.footer-heart {
    display: inline-block;
    color: #F08080;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin: 0 0.3rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* ===== PROFILE DROPDOWN ===== */
.profile-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 60px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    border: 2px dashed #E9EDC9;
    min-width: 180px;
    padding: 0.75rem 0;
    display: none;
    z-index: 1100;
}

.profile-menu.active {
    display: block;
}

.profile-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    border-top: 2px dashed #E9EDC9;
    border-left: 2px dashed #E9EDC9;
    transform: rotate(45deg);
}

.profile-menu-header {
    padding: 0 1.1rem 0.4rem 1.1rem;
    border-bottom: 1px dashed #E9EDC9;
    margin-bottom: 0.4rem;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-soft);
}

.profile-menu-item {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.profile-menu-item:hover {
    background: #F4F9E4;
    color: #E63946;
}

.nav-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== LOVE COUNTER CARD ===== */
.counter-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
    max-width: 600px;
    width: 100%;
}

.love-title {
    font-size: 2rem;
    color: var(--text-love);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

.timer-box {
    background: #F4F9E4;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.timer-val {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-soft);
    text-transform: uppercase;
}

/* ===== DAILY MEMORY CARD ===== */
.daily-memory-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
    transition: var(--transition);
}

.daily-memory-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.daily-memory-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.daily-memory-content {
    width: 100%;
}

.daily-memory-image {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #E9EDC9;
}

.daily-memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.daily-memory-card:hover .daily-memory-image img {
    transform: scale(1.05);
}

.daily-memory-body {
    text-align: center;
}

.daily-memory-date-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #E9EDC9;
    color: var(--primary-dark);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.daily-memory-heading {
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.daily-memory-description {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* No memories state */
.no-memories {
    text-align: center;
    padding: 3rem 1.5rem;
}

.no-memories-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-memories-text {
    font-size: 1.2rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
    position: relative;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-soft);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-add,
.btn-submit,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-add:hover,
.btn-submit:hover,
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--primary-dark);
    background-color: #9BC55B;
}

.btn-add:active,
.btn-submit:active,
.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-soft);
    border: 2px solid #E9EDC9;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #E9EDC9;
    color: var(--primary-dark);
}

/* Blue edit button */
.btn-edit {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: #457B9D;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-cute);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 0 #1D3557;
    text-decoration: none;
}

.btn-edit:hover {
    transform: translateY(-2px);
    background-color: #5894BC;
    box-shadow: 0 6px 0 #1D3557;
}

.btn-edit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1D3557;
}

/* Red delete button */
.btn-delete {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: #E63946;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-cute);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 0 #9D0208;
    text-decoration: none;
}

.btn-delete:hover {
    transform: translateY(-2px);
    background-color: #F25C66;
    box-shadow: 0 6px 0 #9D0208;
}

.btn-delete:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #9D0208;
}

.btn-small {
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* ===== ACCOUNTS PAGE STYLING ===== */
.accounts-card {
    background: #f4f9ff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 0 var(--accounts-shadow);
    border: 2px solid var(--accounts-border);
    margin-top: 1.5rem;
}

.accounts-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.accounts-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d3557;
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.accounts-table thead {
    background: #1d3557;
    color: #f1faee;
}

.accounts-table th,
.accounts-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.95rem;
}

.accounts-table tbody tr:nth-child(even) {
    background: #f1f5fb;
}

.accounts-table tbody tr:hover {
    background: #e9f2ff;
}

.accounts-role-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.role-bezoeker {
    background: #6c757d;
}

.role-tim {
    background: #1d3557;
}

.role-sarah {
    background: #e76f51;
}

.account-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-block;
}

/* ===== TIMELINE GRID (GALLERY) ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    padding: 10px;
}

/* ===== MEMORY CARDS ===== */
.memory-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #F0F4E3;
    cursor: pointer;
}

.memory-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-hover);
}

.memory-image {
    width: 100%;
    height: 220px;
    background: #E9EDC9;
    overflow: hidden;
    position: relative;
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.memory-card:hover .memory-image img {
    transform: scale(1.1);
}

.memory-content {
    padding: 1.8rem;
    text-align: center;
}

.memory-date {
    display: inline-block;
    padding: 6px 16px;
    background: #E9EDC9;
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.memory-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.memory-card .memory-description {
    display: none;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 54, 24, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-desc {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1rem;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #E9EDC9;
    justify-content: center;
}

/* ===== ACCOUNT AVATAR UPLOAD ===== */
.avatar-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    background: #fff;
    flex-shrink: 0;
}

.avatar-nav {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    background: #fff;
    flex-shrink: 0;
}

.avatar-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-file-wrapper .file-label {
    padding: 1.3rem;
}

/* Helper text under fields */
.helper-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Mobile tweaks for avatar layout */
@media (max-width: 768px) {
    .avatar-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-preview {
        width: 80px;
        height: 80px;
    }

    .avatar-file-wrapper .file-label {
        width: 100%;
    }
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ===== FORMS ===== */
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    width: 500px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    margin-left: 10px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9EDC9;
    border-radius: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #FEFAE0;
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #FFFFFF;
    transform: scale(1.01);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Cute File Input */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #F4F9E4;
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    color: var(--primary-dark);
    font-weight: 600;
    transition: var(--transition);
}

.file-input-wrapper:hover .file-label {
    background: #FFFFFF;
    transform: scale(0.98);
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-submit {
    flex: 2;
    background-color: var(--accent-color);
    box-shadow: 0 4px 0 #D68C21;
}

.btn-submit:hover {
    background-color: #FFB042;
    box-shadow: 0 8px 0 #D68C21;
}

.memory-form-modal .form-group {
    margin-bottom: 1.2rem;
}

.memory-form-modal textarea {
    background: #F4F9E4;
}

/* ===== NAVIGATION BAR ===== */
.main-navbar {
    background: var(--card-bg);
    border-bottom: 3px dashed #E9EDC9;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(136, 176, 75, 0.1);
    box-sizing: border-box;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: #F4F9E4;
    color: var(--primary-dark);
}

.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 2px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.profile-pic:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 5px;
    transition: var(--transition);
}

/* ===== VERTICAL TIMELINE ===== */
.timeline-vertical {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #E9EDC9;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-card {
    width: 85%;
    max-width: 280px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #F0F4E3;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin: 0 20px;
}

.timeline-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: calc(100% + 11px);
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #E9EDC9;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -29px;
}

.timeline-card .memory-image {
    height: 120px;
}

.timeline-card .memory-content {
    padding: 0.8rem;
}

.timeline-card .memory-title {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

.timeline-card .memory-date {
    font-size: 0.7rem;
    padding: 3px 10px;
    margin-bottom: 0.3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 95px 10px 15px 10px;
    }

    .page-header {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .form-wrapper {
        padding: 1.5rem;
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-edit,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }

    .timer-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* About Section Responsive */
    .about {
        max-width: 90%;
        padding: 1.5rem;
        font-size: 1rem;
        margin: 2rem auto;
    }

    /* Footer Responsive */
    .footer-name {
        font-size: 1.1rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    /* Daily Memory Card Responsive */
    .daily-memory-card {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .daily-memory-title {
        font-size: 1.3rem;
    }

    .daily-memory-image {
        height: 200px;
    }

    .daily-memory-heading {
        font-size: 1.3rem;
    }

    .daily-memory-description {
        font-size: 0.95rem;
    }

    .no-memories {
        padding: 2rem 1rem;
    }

    .no-memories-icon {
        font-size: 3rem;
    }

    .no-memories-text {
        font-size: 1rem;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .memory-card .memory-image {
        height: 140px;
    }

    .memory-card .memory-content {
        padding: 1rem 0.5rem;
    }

    .memory-card .memory-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .memory-card .memory-date {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 0.5rem;
    }

    .main-navbar {
        padding: 1rem;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding-top: 80px;
        padding-left: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(40, 54, 24, 0.4);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Vertical timeline mobile */
    .timeline-vertical::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 45px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 45px;
    }

    .timeline-dot {
        left: 11px !important;
    }

    .timeline-card {
        width: 100%;
        margin: 0;
        max-width: 100%;
    }

    .accounts-card {
        padding: 16px;
    }

    .accounts-table th,
    .accounts-table td {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* ===== MODAL IMAGE — TALLER ===== */
.modal-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
    display: block;
}

/* ===== PHOTO CAROUSEL IN VIEW MODAL ===== */
.modal-photo-carousel {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}

.carousel-btn:hover {
    background: rgba(255,255,255,1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.photo-counter {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 6px 0 0 0;
    min-height: 20px;
}

/* ===== LIGHTBOX / FANCYBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
    line-height: 1;
    padding-bottom: 3px;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ===== COINS BADGE IN NAV ===== */
.coins-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #FFF3CD;
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #856404;
    white-space: nowrap;
}

.coins-amount {
    font-weight: 700;
}

/* ===== SHOP PAGE ===== */
.coins-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFF3CD;
    border: 3px solid #FFD700;
    border-radius: 30px;
    padding: 10px 28px;
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #856404;
}

.coins-hero-icon { font-size: 2rem; }
.coins-hero-amount { font-size: 1.6rem; font-weight: 700; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding: 10px;
    margin-bottom: 3rem;
}

.shop-item-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #F0F4E3;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.shop-item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.shop-item-image {
    width: 100%;
    height: 200px;
    background: #E9EDC9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-item-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.shop-item-desc {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.shop-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 2px dashed #E9EDC9;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.shop-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #856404;
    background: #FFF3CD;
    padding: 5px 14px;
    border-radius: 20px;
    border: 2px solid #FFD700;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-cute);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 0 #D68C21;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #D68C21;
    background-color: #FFB042;
}

.btn-buy-disabled,
.btn-buy:disabled {
    background-color: #ccc;
    box-shadow: 0 4px 0 #aaa;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== PURCHASES SECTION ===== */
.purchases-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 3px dashed #E9EDC9;
    margin-bottom: 3rem;
}

.purchases-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.purchases-table-wrapper {
    overflow-x: auto;
}

/* ===== DAILY REWARD MODAL ===== */
.daily-reward-modal-content {
    max-width: 420px !important;
    text-align: center;
    border: 4px solid #FFD700 !important;
}

.daily-reward-body {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.daily-reward-coins-icon {
    font-size: 5rem;
    animation: coinBounce 0.8s ease-in-out infinite alternate;
}

@keyframes coinBounce {
    from { transform: translateY(0) rotate(-5deg); }
    to   { transform: translateY(-12px) rotate(5deg); }
}

.daily-reward-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.daily-reward-text {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.daily-reward-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #856404;
    background: #FFF3CD;
    border: 3px solid #FFD700;
    border-radius: 30px;
    padding: 10px 30px;
}

.daily-reward-btn {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    padding: 14px 40px;
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: opacity 0.5s ease;
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
    border: 2px solid #C3E6CB;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
    border: 2px solid #F5C6CB;
}
