/* Custom CSS for WeConnect - Romantic & Playful Theme */

/* Design tokens */
:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --paper: #fff7fb;
    --paper-strong: #ffffff;
    --brand-pink: #ec4899;
    --brand-violet: #8b5cf6;
    --brand-coral: #fb7185;
    --brand-mint: #14b8a6;
    --glow: rgba(236, 72, 153, 0.28);
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 24px 70px rgba(236, 72, 153, 0.18);
}

/* Typography */
body {
    font-family: 'DM Sans', 'Space Grotesk', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
}

.font-display {
    font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.font-body {
    font-family: 'DM Sans', 'Space Grotesk', system-ui, sans-serif;
}

/* Hero background and accents */
.hero-shell {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(251, 113, 133, 0.22), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.18), transparent 40%),
                radial-gradient(circle at 90% 70%, rgba(20, 184, 166, 0.18), transparent 45%),
                linear-gradient(135deg, #fff0f6 0%, #f5f3ff 45%, #ecfeff 100%);
}

.hero-grid {
    background-image: linear-gradient(rgba(236, 72, 153, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.9), transparent 70%);
}

.glow-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.6;
    animation: floaty 8s ease-in-out infinite;
}

.glow-orb.orb-1 {
    top: 10%;
    left: -40px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), transparent 60%);
}

.glow-orb.orb-2 {
    bottom: 12%;
    right: -30px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 60%);
    animation-delay: 1.2s;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(120deg, var(--brand-pink), var(--brand-violet));
    color: #ffffff;
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.input-pill:focus-visible,
.soft-input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(236, 72, 153, 0.65);
    outline-offset: 2px;
}

.btn-ghost {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-weight: 600;
}

.btn-ghost:hover {
    border-color: rgba(236, 72, 153, 0.5);
}

/* Cards and sections */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    border-radius: 24px;
}

.section-title {
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 700;
}

.feature-card {
    border-radius: 24px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(236, 72, 153, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card {
    border-radius: 20px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: var(--shadow-soft);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    color: var(--brand-pink);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modern CTA */
.cta-surface {
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
    border-radius: 32px;
    box-shadow: var(--shadow-glow);
}

/* Auth layout */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at top, rgba(236, 72, 153, 0.18), transparent 55%),
                radial-gradient(circle at bottom, rgba(139, 92, 246, 0.16), transparent 50%),
                linear-gradient(135deg, #fff1f7 0%, #f4f0ff 50%, #e9feff 100%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    padding: 2.25rem;
}

.auth-card-lg {
    max-width: 560px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--ink-soft);
}

.input-pill {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
}

.input-pill:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.page-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff5f9 0%, #f7f4ff 45%, #eefcff 100%);
    padding: 2.5rem 0;
}

.page-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
}

.stat-tile {
    border-radius: 20px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.12);
    color: var(--brand-pink);
}

.mode-card {
    border-radius: 24px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.invite-banner {
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.progress-pill {
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: rgba(15, 23, 42, 0.08);
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.game-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(236, 72, 153, 0.16), transparent 55%),
                radial-gradient(circle at bottom, rgba(139, 92, 246, 0.14), transparent 55%),
                linear-gradient(180deg, #fff5f9 0%, #f7f4ff 50%, #eefcff 100%);
    padding: 2.5rem 1rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
}

.tone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Profile + settings */
.profile-shell {
    min-height: 100vh;
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #fff6fb 0%, #f6f2ff 55%, #eefcff 100%);
}

.profile-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: var(--shadow-soft);
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pill-tag.pink {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

.pill-tag.violet {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

.pill-tag.orange {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.soft-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #ffffff;
}

.soft-input:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.settings-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
}

.danger-card {
    border: 2px solid rgba(239, 68, 68, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

/* Chat */
.chat-shell {
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.chat-header {
    border-radius: 20px 20px 0 0;
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
}

.chat-bubble {
    padding: 0.55rem 0.9rem;
    border-radius: 18px;
    display: inline-block;
}

.chat-bubble.own {
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
    color: #ffffff;
}

.chat-bubble.other {
    background: #f1f5f9;
    color: var(--ink);
}

/* Remaining pages */
.legal-shell {
    min-height: 100vh;
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #fff6fb 0%, #f6f2ff 55%, #eefcff 100%);
}

.legal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.metric-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    text-align: center;
}

.table-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.filter-pill {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
}

.summary-hero {
    background: linear-gradient(120deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95));
    border-radius: 28px;
    box-shadow: var(--shadow-glow);
    color: #ffffff;
    padding: 2rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.admin-body {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
    font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

.admin-body .rounded-xl {
    border-radius: 20px;
}

.admin-body .shadow,
.admin-body .shadow-sm,
.admin-body .shadow-lg {
    box-shadow: var(--shadow-soft);
}

.admin-body .bg-white {
    background: rgba(255, 255, 255, 0.96);
}

/* Contrast-friendly text helpers */
.text-contrast {
    color: var(--ink);
}

.muted-contrast {
    color: #475569;
}

/* Mobile spacing tweaks */
@media (max-width: 640px) {
    .page-container {
        padding: 0 1rem;
    }

    .auth-card,
    .auth-card-lg,
    .profile-card,
    .settings-card,
    .premium-card,
    .pricing-card,
    .legal-card,
    .contact-card,
    .section-card,
    .table-card,
    .game-card,
    .empty-state {
        padding: 1.5rem;
    }

    .summary-hero,
    .invite-banner {
        padding: 1.5rem;
    }

    .stat-tile,
    .metric-card {
        padding: 1rem;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-contrast: more) {
    .btn-ghost {
        border-color: rgba(15, 23, 42, 0.5);
    }

    .section-card,
    .profile-card,
    .settings-card,
    .premium-card,
    .pricing-card,
    .legal-card,
    .contact-card {
        border-color: rgba(15, 23, 42, 0.2);
    }
}

.premium-shell {
    min-height: 100vh;
    padding: 2.5rem 0;
    background: radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.2), transparent 45%),
                radial-gradient(circle at 80% 15%, rgba(139, 92, 246, 0.18), transparent 40%),
                linear-gradient(180deg, #fff5f9 0%, #f7f4ff 55%, #eefcff 100%);
}

.premium-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.pricing-card.featured {
    border: 2px solid rgba(236, 72, 153, 0.6);
    box-shadow: var(--shadow-glow);
}

.empty-state {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
}

.auth-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
}

/* Soft noise */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Soft gradient themes */
.bg-gradient-soft {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.bg-gradient-love {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.bg-gradient-passion {
    background: linear-gradient(135deg, #f8ceec 0%, #f8a5c2 100%);
}

.bg-gradient-romantic {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.bg-gradient-peach {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.bg-gradient-sunset {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

/* Love mode theme */
body.love-mode {
    background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%) !important;
}

/* Rounded elements */
.rounded-card {
    border-radius: 1.5rem;
}

.rounded-button {
    border-radius: 2rem;
}

.rounded-full-button {
    border-radius: 50%;
}

/* Floating buttons */
.floating-btn {
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
}

/* Micro-animations */
.tap-animation {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.tap-animation:active {
    transform: scale(0.9);
}

/* Progress rings */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring-circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Emoji feedback */
.emoji-feedback {
    animation: emojiFloat 0.6s ease-out;
    position: fixed;
    font-size: 2rem;
    z-index: 10000;
    pointer-events: none;
}

@keyframes emojiFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Confetti effect */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f8a5c2;
    opacity: 0;
}

/* Soft shadows */
.shadow-soft {
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15);
}

/* Love-themed colors */
.text-love {
    color: #ec4899;
}

.text-passion {
    color: #f97316;
}

.text-romantic {
    color: #ec4899;
}

.text-playful {
    color: #14b8a6;
}

.text-flirty {
    color: #f97316;
}

.text-spicy {
    color: #ef4444;
}

/* Floating hearts animation */
@keyframes float-hearts {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.floating-heart {
    position: fixed;
    bottom: -50px;
    animation: float-hearts 10s linear infinite;
    font-size: 2rem;
    pointer-events: none;
    z-index: 1;
}

/* Pulse animation for streaks */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    }
}

.streak-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.5rem;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

/* Question card styles */
.question-card {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
}

.dark .question-card {
    background: #1f2937;
}

/* Tone indicators */
.tone-romantic {
    color: #ec4899;
}

.tone-playful {
    color: #14b8a6;
}

.tone-flirty {
    color: #f97316;
}

.tone-spicy {
    color: #ef4444;
}

/* Achievement badge */
.achievement-badge {
    position: relative;
    display: inline-block;
}

.achievement-badge.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-badge:not(.locked):hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Leaderboard podium */
.podium-1 {
    height: 120px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.podium-2 {
    height: 100px;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

.podium-3 {
    height: 80px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(236, 72, 153, 0.1);
    border-top-color: #ec4899;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, transform, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed);
}

/* Confetti container */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Friendly rounded font styles */
.font-friendly {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Chalkboard SE', 'Segoe UI', sans-serif;
}

/* Accessibility enhancements */
.high-contrast {
    filter: brightness(1.2) contrast(1.2);
}

.focus-outline {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* One-handed mobile use */
.mobile-friendly {
    padding: 1rem;
    margin: 0.5rem;
}

/* Soft transitions */
.transition-soft {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Love-themed backgrounds */
.bg-love-light {
    background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
}

.dark .bg-love-light {
    background: linear-gradient(135deg, #2d1b69 0%, #1a202c 100%);
}

/* Soft borders */
.border-soft {
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Gentle glow */
.glow-soft {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

/* Playful bounce animation */
@keyframes playful-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.playful-bounce {
    animation: playful-bounce 2s ease-in-out infinite;
}

.friendly-font {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Chalkboard SE', 'Segoe UI', sans-serif;
}

.warm-text {
    font-family: 'Quicksand', 'Comfortaa', 'Nunito', sans-serif;
}

/* Heartbeat animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Micro-animations */
.tap-animation {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.tap-animation:active {
    transform: scale(0.95);
}

/* Hover animations */
.hover-bounce {
    transition: transform 0.3s ease;
}

.hover-bounce:hover {
    transform: translateY(-5px);
}

.hover-pulse {
    transition: transform 0.3s ease;
}

.hover-pulse:hover {
    transform: scale(1.05);
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Slide animations */
.slide-in-up {
    animation: slideInUp 0.5s ease-out forwards;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scale animations */
.scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Playful bounce animation for emojis */
.playful-bounce {
    animation: playfulBounce 2s ease-in-out infinite;
}

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

/* Emoji feedback */
.emoji-feedback {
    position: fixed;
    font-size: 2rem;
    z-index: 10000;
    pointer-events: none;
    animation: emojiFloat 0.6s ease-out forwards;
}

@keyframes emojiFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Success feedback */
.success-feedback {
    color: #10b981;
}

/* Warning feedback */
.warning-feedback {
    color: #f59e0b;
}

/* Error feedback */
.error-feedback {
    color: #ef4444;
}

/* Love feedback */
.love-feedback {
    color: #ec4899;
    animation: lovePulse 0.5s ease-in-out;
}

@keyframes lovePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Accessibility features */
.accessible-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessible-button:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}

.accessible-button:active {
    transform: scale(0.98);
}

.high-contrast {
    filter: contrast(1.5) brightness(1.2);
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focusable-element:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .playful-bounce,
    .heartbeat,
    .slide-in-up,
    .fade-in,
    .scale-in,
    .tap-animation,
    .hover-bounce,
    .hover-pulse {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-white { background-color: #ffffff !important; }
    .dark .bg-gray-800 { background-color: #000000 !important; }
    .text-gray-900 { color: #000000 !important; }
    .dark .text-gray-100 { color: #ffffff !important; }
    .border-gray-300 { border-color: #000000 !important; }
    .dark .border-gray-700 { border-color: #ffffff !important; }
}

/* Confetti container */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f8a5c2;
    opacity: 0;
}

.confetti-piece:nth-child(2n) {
    background-color: #ff9ff3;
}

.confetti-piece:nth-child(3n) {
    background-color: #f368e0;
}

.confetti-piece:nth-child(4n) {
    background-color: #00d2d3;
}

.confetti-piece:nth-child(5n) {
    background-color: #ff6b6b;
}

.confetti-piece:nth-child(6n) {
    background-color: #ffa502;
}

/* Progress rings */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
    stroke: url(#gradient);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Gradient for progress rings */
.progress-gradient {
    background: conic-gradient(from 0deg, #ec4899, #8b5cf6, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
