/* ═══════════════════════════════════════════════════════════════
   💖 Ali & Cansu - Premium Anniversary Website
   Designed with love — Pink, Roses, Lilies & Peonies Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&display=swap');

/* ── Design Tokens ── */
:root {
    /* Background */
    --bg-primary: #0d0710;
    --bg-secondary: #150a11;
    --bg-tertiary: #1e0f18;

    /* Pink Palette */
    --pink-50: #fff0f5;
    --pink-100: #ffe0ec;
    --pink-200: #ffc1d6;
    --pink-300: #ff8ab4;
    --pink-400: #ff6b9d;
    --pink-500: #e91e63;
    --pink-600: #c2185b;
    --pink-700: #9c1450;
    --pink-800: #6d0f38;

    /* Accent */
    --rose-gold: #e8a87c;
    --gold: #d4af37;
    --gold-light: #f0d68a;
    --cream: #fff8f0;
    --white: #ffffff;

    /* Text */
    --text-primary: #fff0f5;
    --text-secondary: rgba(255, 240, 245, 0.72);
    --text-muted: rgba(255, 240, 245, 0.4);
    --text-accent: #ff8ab4;

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-script: 'Great Vibes', 'Dancing Script', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Glass */
    --glass-bg: rgba(255, 105, 155, 0.06);
    --glass-bg-hover: rgba(255, 105, 155, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 107, 157, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);

    /* Glow Effects */
    --glow-pink: 0 0 30px rgba(255, 107, 157, 0.25);
    --glow-pink-strong: 0 0 60px rgba(255, 107, 157, 0.4);
    --glow-rose: 0 0 30px rgba(232, 168, 124, 0.2);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elegant: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max: 900px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 168, 124, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 107, 157, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--pink-400);
    text-decoration: none;
}

::selection {
    background: rgba(255, 107, 157, 0.3);
    color: var(--white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--pink-600);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pink-500);
}

/* ══════════════════════════════════════
   INTRO SCREEN
   ══════════════════════════════════════ */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at center, rgba(233, 30, 99, 0.1) 0%, transparent 60%);
    transition: opacity 1s var(--ease-elegant), visibility 1s;
}

#intro-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    animation: introFloat 3s ease-in-out infinite;
    position: relative;
}

.intro-flower-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    animation: flowerRingSpin 20s linear infinite;
    opacity: 0.15;
    pointer-events: none;
}

.intro-heart {
    font-size: clamp(3rem, 10vw, 5rem);
    animation: heartPulse 1.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6));
    margin-bottom: 1rem;
}

.intro-names {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--pink-300);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(255, 138, 180, 0.4);
    opacity: 0;
    animation: introTextReveal 1.2s var(--ease-smooth) 0.3s forwards;
}

.intro-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: introTextReveal 1.2s var(--ease-smooth) 0.8s forwards;
}

.intro-button {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 14px 48px;
    border: 1px solid var(--pink-400);
    background: rgba(255, 107, 157, 0.1);
    color: var(--pink-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: introTextReveal 1.2s var(--ease-smooth) 1.3s forwards;
    position: relative;
    overflow: hidden;
}

.intro-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.intro-button:hover {
    background: rgba(255, 107, 157, 0.25);
    border-color: var(--pink-300);
    box-shadow: var(--glow-pink), inset 0 0 20px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.intro-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ══════════════════════════════════════
   PETAL PARTICLES CANVAS
   ══════════════════════════════════════ */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ══════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════ */
#main-content {
    position: relative;
    z-index: 2;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ══════════════════════════════════════
   MUSIC TOGGLE
   ══════════════════════════════════════ */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(13, 7, 16, 0.8);
    backdrop-filter: var(--glass-blur);
    color: var(--pink-400);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--glass-shadow);
}

.music-toggle:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: var(--pink-400);
    box-shadow: var(--glow-pink);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
    border-color: var(--pink-400);
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-floral {
    position: absolute;
    width: clamp(250px, 50vw, 450px);
    height: auto;
    opacity: 0.2;
    pointer-events: none;
    filter: blur(1px);
    z-index: -1;
}

.hero-floral.top-right {
    top: 5%;
    right: -5%;
    transform: rotate(15deg);
}

.hero-floral.bottom-left {
    bottom: 5%;
    left: -5%;
    transform: rotate(-15deg) scaleX(-1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 157, 0.2);
    background: rgba(255, 107, 157, 0.05);
    font-size: 0.85rem;
    color: var(--pink-300);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink-400);
    animation: dotPulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--pink-200);
    text-shadow: 0 0 60px rgba(255, 138, 180, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    max-width: 500px;
}

/* ── Day Counter ── */
.day-counter {
    display: flex;
    gap: clamp(12px, 3vw, 24px);
    margin-bottom: 1rem;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(60px, 15vw, 90px);
    padding: clamp(12px, 3vw, 20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s var(--ease-smooth);
}

.counter-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    box-shadow: var(--glow-pink);
    transform: translateY(-4px);
}

.counter-item span {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--pink-300);
    line-height: 1;
    background: linear-gradient(135deg, var(--pink-300), var(--rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-item small {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
}

.counter-label {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ── Flower Divider ── */
.flower-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 2rem 0;
    opacity: 0.5;
}

.flower-divider .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink-400), transparent);
}

.flower-divider .flower-icon {
    font-size: 1.2rem;
    color: var(--pink-400);
    animation: flowerSpin 8s linear infinite;
}

/* ══════════════════════════════════════
   MEMORIES SECTION
   ══════════════════════════════════════ */
.memories-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.memories-section h2 {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    color: var(--pink-200);
    margin-bottom: 3rem;
    text-shadow: 0 0 40px rgba(255, 138, 180, 0.2);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--pink-600) 10%,
        var(--pink-400) 50%,
        var(--pink-600) 90%,
        transparent
    );
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
    text-align: left;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink-400);
    border: 3px solid var(--bg-primary);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
    z-index: 2;
    transition: all 0.3s var(--ease-smooth);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.7);
}

@media (max-width: 768px) {
    .timeline-dot {
        left: 20px;
    }
}

/* Memory Card */
.memory-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: all 0.5s var(--ease-smooth);
    cursor: pointer;
    position: relative;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-400), var(--rose-gold), var(--pink-400));
    opacity: 0;
    transition: opacity 0.4s;
}

.memory-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glow-pink), var(--glass-shadow);
    transform: translateY(-6px);
}

.memory-card:hover::before {
    opacity: 1;
}

.memory-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.memory-card:hover .memory-card-image {
    transform: scale(1.05);
}

.memory-card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.memory-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(13, 7, 16, 0.6), transparent);
    pointer-events: none;
}

.memory-card-body {
    padding: clamp(16px, 3vw, 24px);
}

.memory-card-date {
    font-size: 0.75rem;
    color: var(--rose-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.memory-card-text {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
}

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

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

.empty-state p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════
   LOVE SECTION (FOOTER)
   ══════════════════════════════════════ */
.love-section {
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
}

.love-message {
    position: relative;
    display: inline-block;
}

.love-message p {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--pink-200);
    text-shadow: 0 0 40px rgba(255, 138, 180, 0.3);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.love-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
    margin-top: 2rem;
}

.love-footer p {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 1px;
}

.love-footer .footer-heart {
    display: inline-block;
    color: var(--pink-400);
    animation: heartPulse 1.5s ease-in-out infinite;
    margin: 0 4px;
}

/* ══════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════ */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    background: rgba(5, 2, 8, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
    padding: 2rem;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: var(--pink-400);
    transform: rotate(90deg);
}

#lightbox-img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s var(--ease-bounce);
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

.lightbox-text {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 500px;
    text-align: center;
    line-height: 1.6;
}

/* Heart Rain Canvas */
#hearts-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#hearts-canvas.active {
    opacity: 1;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.08); }
}

@keyframes introFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes introTextReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes flowerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes flowerRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(255, 107, 157, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ── Reveal Animation Helper ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   FLOATING SPARKLES
   ══════════════════════════════════════ */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink-300);
    box-shadow: 0 0 6px var(--pink-400);
    animation: sparkle 3s ease-in-out infinite;
}

/* ══════════════════════════════════════
   ADMIN PANEL STYLES
   ══════════════════════════════════════ */

/* Login Screen */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3rem);
    width: 100%;
    max-width: 420px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.admin-login-card h1 {
    font-family: var(--font-display);
    color: var(--pink-200);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.admin-login-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-smooth);
    outline: none;
}

.form-input:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    background: rgba(255, 107, 157, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid var(--pink-400);
    background: rgba(255, 107, 157, 0.12);
    color: var(--pink-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 107, 157, 0.25);
    box-shadow: var(--glow-pink);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    border-color: var(--pink-500);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    box-shadow: var(--glow-pink-strong);
}

.btn-danger {
    border-color: #ff4444;
    color: #ff6b6b;
    background: rgba(255, 68, 68, 0.1);
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.25);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Admin Dashboard */
.admin-wrapper {
    min-height: 100vh;
    padding: 2rem;
}

.admin-header {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--pink-200);
}

.admin-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .admin-content {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    backdrop-filter: var(--glass-blur);
    transition: border-color 0.3s;
}

.admin-card:hover {
    border-color: var(--glass-border-hover);
}

.admin-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--pink-200);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card.full-width {
    grid-column: 1 / -1;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    margin-bottom: 1rem;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--pink-400);
    background: rgba(255, 107, 157, 0.05);
    box-shadow: inset 0 0 30px rgba(255, 107, 157, 0.05);
}

.upload-area .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
}

.upload-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.upload-preview.has-image {
    display: block;
}

/* Memory List in Admin */
.admin-memory-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-memory-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease-smooth);
    align-items: flex-start;
}

.admin-memory-item:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 107, 157, 0.04);
}

.admin-memory-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

.admin-memory-info .date {
    font-size: 0.75rem;
    color: var(--rose-gold);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.admin-memory-info .text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-memory-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-self: center;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(13, 7, 16, 0.9);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.4s var(--ease-smooth);
    max-width: 350px;
}

.toast.success {
    border-color: rgba(76, 175, 80, 0.3);
}

.toast.error {
    border-color: rgba(255, 68, 68, 0.3);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-memory-item {
        flex-direction: column;
    }

    .admin-memory-thumb {
        width: 100%;
        height: 150px;
    }

    .admin-memory-actions {
        align-self: flex-end;
    }

    .day-counter {
        gap: 8px;
    }

    .music-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .counter-item {
        padding: 10px 8px;
        min-width: 55px;
    }
}

@media (min-width: 769px) {
    .timeline-item:nth-child(odd) .memory-card {
        animation-name: fadeInRight;
    }
    .timeline-item:nth-child(even) .memory-card {
        animation-name: fadeInLeft;
    }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════ */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 107, 157, 0.2);
    border-top-color: var(--pink-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animated Hearts Background (Subtle) */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -20px;
    font-size: 1rem;
    opacity: 0;
    animation: floatUp 8s ease-in infinite;
    color: var(--pink-400);
}
