/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --secondary: #f7931e;
    --accent: #42a5f5;
    --success: #66bb6a;
    --warning: #ffa726;
    --danger: #ef5350;
    --dark: #37474f;
    --light: #eceff1;
    --paper: #fff;
    --shadow: rgba(55, 71, 79, 0.1);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffa726 100%);
    --gradient-cool: linear-gradient(135deg, #42a5f5 0%, #26c6da 50%, #66bb6a 100%);
    --gradient-bg: radial-gradient(circle at 20% 80%, #ff6b35 0%, transparent 50%), 
                   radial-gradient(circle at 80% 20%, #42a5f5 0%, transparent 50%),
                   linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

body {
    font-family: 'Fredoka', cursive;
    line-height: 1.7;
    color: var(--dark);
    background: var(--gradient-bg);
    min-height: 100vh;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Elements */
.squiggle {
    position: relative;
}

.squiggle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5' stroke='%23ff6b35' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 40px 8px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 107, 53, 0.03) 20px,
        rgba(255, 107, 53, 0.03) 40px
    );
    animation: drift 20s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: rotate(0deg) translate(-50px, -50px); }
    100% { transform: rotate(360deg) translate(-50px, -50px); }
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transform: rotate(-2deg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    color: var(--dark);
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat {
    background: var(--paper);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 8px 25px var(--shadow);
    transform: rotate(1deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.stat:nth-child(2) {
    transform: rotate(-1deg);
}

.stat:nth-child(3) {
    transform: rotate(0.5deg);
}

.stat:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow);
}

.cta-button {
    display: inline-block;
    background: var(--paper);
    color: var(--primary);
    padding: 20px 45px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 35px var(--shadow);
    border: 4px solid var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: rotate(-1deg);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.cta-button:hover {
    transform: rotate(0deg) scale(1.05);
    color: white;
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:active {
    transform: rotate(0deg) scale(0.98);
}

.cta-button.secondary {
    border-color: var(--accent);
    color: var(--accent);
}

.cta-button.secondary::before {
    background: var(--gradient-cool);
}

.cta-button.secondary:hover {
    box-shadow: 0 20px 50px rgba(66, 165, 245, 0.4);
}

/* Sample Results */
.sample-results {
    margin-top: 80px;
    position: relative;
}

.sample-results h3 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark);
    font-weight: 600;
    text-align: center;
    position: relative;
}

.sample-results h3::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.1); }
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.sample-card {
    background: var(--paper);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 35px var(--shadow);
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.sample-card:nth-child(even) {
    transform: rotate(1deg);
}

.sample-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(55, 71, 79, 0.15);
}

.sample-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-warm);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.sample-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 18px;
    margin-bottom: 20px;
    filter: brightness(1.1) contrast(1.1);
    background: var(--light);
    transition: all 0.3s ease;
}

.sample-image:hover {
    transform: scale(1.02);
    filter: brightness(1.2) contrast(1.2);
}

/* Image loading states */
img {
    max-width: 100%;
    height: auto;
}

img[src=""],
img:not([src]) {
    opacity: 0;
}

img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Pet-specific image positioning utilities */
.img-face-center {
    object-position: center 20% !important;
}

.img-face-center-top {
    object-position: center 15% !important;
}

.img-face-center-mid {
    object-position: center 25% !important;
}

/* Fallback for broken images */
img::before {
    content: "🐾";
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
}

.trait-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    font-size: 1.1rem;
    position: relative;
    transform: rotate(-2deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.trait-badge.sassy { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}
.trait-badge.wise { 
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}
.trait-badge.loyal { 
    background: linear-gradient(135deg, #45b7d1, #3498db);
}
.trait-badge.playful { 
    background: linear-gradient(135deg, #ffa726, #ff9800);
}
.trait-badge.adventurous { 
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}
.trait-badge.cuddly { 
    background: linear-gradient(135deg, #ec407a, #e91e63);
}
.trait-badge.independent { 
    background: linear-gradient(135deg, #ab47bc, #9c27b0);
}
.trait-badge.mischievous { 
    background: linear-gradient(135deg, #ff7043, #ff5722);
}

.sample-result p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='10' cy='10' r='2' fill='%23ff6b35' opacity='0.1'/%3E%3Ccircle cx='90' cy='20' r='1.5' fill='%2342a5f5' opacity='0.1'/%3E%3Ccircle cx='20' cy='80' r='1' fill='%23f7931e' opacity='0.1'/%3E%3Ccircle cx='80' cy='90' r='2.5' fill='%2366bb6a' opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 150px 150px;
    pointer-events: none;
}

.testimonials-section h2 {
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

.testimonials-section h2::before {
    content: '💬';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial {
    background: var(--light);
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    border-left: 6px solid var(--primary);
}

.testimonial:nth-child(2) {
    transform: rotate(1deg);
    border-left-color: var(--accent);
}

.testimonial:nth-child(3) {
    transform: rotate(-0.5deg);
    border-left-color: var(--success);
}

.testimonial:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(55, 71, 79, 0.15);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    font-family: 'Caveat', cursive;
    font-weight: 700;
    opacity: 0.3;
}

.stars {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    gap: 2px;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 20px;
    font-style: italic;
}

.author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
    padding-left: 20px;
}

.author::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--dark);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M50,50 Q100,10 150,50 Q190,100 150,150 Q100,190 50,150 Q10,100 50,50' fill='none' stroke='%23ff6b35' stroke-width='2' opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 300px 300px;
    pointer-events: none;
}

.faq-section h2 {
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

.faq-section h2::after {
    content: '❓';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 2rem;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-50%) rotate(15deg); }
    50% { transform: translateY(-50%) rotate(-15deg); }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.faq-item {
    background: var(--paper);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 35px var(--shadow);
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border-top: 5px solid var(--accent);
}

.faq-item:nth-child(even) {
    transform: rotate(0.5deg);
    border-top-color: var(--primary);
}

.faq-item:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(55, 71, 79, 0.15);
}

.faq-item h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.faq-item p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

.final-cta {
    text-align: center;
    position: relative;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M200,50 Q300,100 350,200 Q300,300 200,350 Q100,300 50,200 Q100,100 200,50' fill='none' stroke='%23ff6b35' stroke-width='1' opacity='0.05'/%3E%3Cpath d='M200,100 Q250,150 300,200 Q250,250 200,300 Q150,250 100,200 Q150,150 200,100' fill='none' stroke='%2342a5f5' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E") repeat;
    background-size: 500px 500px;
    pointer-events: none;
    z-index: -1;
}

.auth-card {
    background: var(--paper);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px var(--shadow);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-warm);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.1;
}

.auth-card:hover {
    transform: rotate(0deg);
    box-shadow: 0 40px 80px rgba(55, 71, 79, 0.15);
}

.auth-card h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

.auth-card p {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.auth-form {
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 3px solid var(--light);
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Fredoka', cursive;
    font-weight: 500;
    background: var(--paper);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.form-group input::placeholder {
    color: #999;
    font-style: italic;
}

.auth-button {
    width: 100%;
    background: var(--paper);
    color: var(--primary);
    padding: 20px;
    border: 4px solid var(--primary);
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    font-family: 'Fredoka', cursive;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.auth-button:hover {
    color: white;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.auth-button:hover::before {
    left: 0;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed var(--light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 83, 80, 0.1);
    color: var(--danger);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(239, 83, 80, 0.2);
    font-weight: 600;
}

.trust-signals {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed var(--light);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.trust-item .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Analyze Page */
.analyze-container {
    min-height: 100vh;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.analyze-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.analyze-header h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    transform: rotate(-1deg);
}

.analyze-header h2::after {
    content: '🔍';
    position: absolute;
    right: -40px;
    top: -10px;
    font-size: 2rem;
    animation: magnify 2s ease-in-out infinite alternate;
}

@keyframes magnify {
    0% { transform: rotate(-10deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.1); }
}

.analyze-header p {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.upgrade-banner {
    background: var(--gradient-warm);
    color: white;
    padding: 25px 30px;
    border-radius: 25px;
    margin-bottom: 40px;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

.success-banner {
    background: var(--gradient-cool);
    color: white;
    padding: 20px 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(66, 165, 245, 0.3);
    animation: slideInFromTop 0.5s ease-out;
}

.error-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 20px 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: slideInFromTop 0.5s ease-out;
}

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

.upgrade-banner::before {
    content: '⚡';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.upgrade-banner p {
    margin-left: 60px;
    font-weight: 600;
    font-size: 1.1rem;
}

.upgrade-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid white;
    transition: all 0.3s ease;
}

.upgrade-link:hover {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 10px;
}

.upload-section {
    background: var(--paper);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px var(--shadow);
    margin-bottom: 50px;
    position: relative;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.upload-section:hover {
    transform: rotate(0deg);
    box-shadow: 0 35px 70px rgba(55, 71, 79, 0.15);
}

.upload-area {
    border: 4px dashed var(--light);
    border-radius: 25px;
    padding: 80px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(66, 165, 245, 0.02) 100%);
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(66, 165, 245, 0.05) 100%);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(66, 165, 245, 0.1) 100%);
    transform: scale(1.02);
    box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.1);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.upload-area h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.upload-area p {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
    opacity: 0.8;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-section {
    text-align: center;
    margin-top: 30px;
}

.preview-section img {
    max-width: 350px;
    max-height: 350px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 25px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px var(--shadow);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.preview-section img:hover {
    transform: rotate(0deg) scale(1.02);
}

.preview-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-button {
    background: var(--light);
    color: var(--dark);
    padding: 15px 30px;
    border: 3px solid var(--light);
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Fredoka', cursive;
}

.secondary-button:hover {
    background: var(--dark);
    color: white;
    transform: scale(1.05);
}

.tips-section {
    background: var(--paper);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
    transform: rotate(-0.5deg);
}

.tips-section::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    animation: lightbulb 3s ease-in-out infinite;
}

@keyframes lightbulb {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tips-section h3 {
    font-family: 'Caveat', cursive;
    margin-bottom: 30px;
    color: var(--dark);
    font-size: 2rem;
    font-weight: 600;
}

.tips-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tips-list li {
    padding: 15px 20px;
    background: var(--light);
    border-radius: 15px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--success);
}

.tips-list li:nth-child(even) {
    border-left-color: var(--primary);
}

.tips-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Loading Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 71, 79, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--paper);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    animation: modalPop 0.3s ease-out forwards;
}

@keyframes modalPop {
    to {
        transform: scale(1);
    }
}

.loading-animation {
    margin-bottom: 40px;
}

.loading-animation h3 {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.loading-animation p {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.paw-prints {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.paw-print {
    font-size: 3rem;
    animation: pawBounce 1.8s infinite;
    filter: drop-shadow(0 5px 10px rgba(255, 107, 53, 0.3));
}

.paw-print:nth-child(1) {
    animation-delay: 0s;
    color: var(--primary);
}

.paw-print:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--secondary);
}

.paw-print:nth-child(3) {
    animation-delay: 0.8s;
    color: var(--accent);
}

@keyframes pawBounce {
    0%, 60%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    30% {
        transform: translateY(-40px) rotate(-10deg);
    }
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-warm);
    width: 0%;
    border-radius: 20px;
    animation: progress 20s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-tip {
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    min-height: 25px;
}

/* Results Page */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.result-photo {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.pet-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center 20%;
}

.personality-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.result-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.confidence-bar {
    background: #eee;
    height: 30px;
    border-radius: 15px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 15px;
    transition: width 2s ease;
}

.confidence-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
}

/* Trait Scores Section */
.trait-scores-section {
    margin-bottom: 30px;
}

.trait-scores-section h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.trait-bar-container {
    margin-bottom: 15px;
}

.trait-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trait-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.trait-percentage {
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
}

.trait-bar {
    background: #eee;
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease;
    animation: fillBar 2s ease;
}

/* Trait-specific colors for progress bars */
.trait-fill.sassy { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}
.trait-fill.wise { 
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}
.trait-fill.loyal { 
    background: linear-gradient(135deg, #45b7d1, #3498db);
}
.trait-fill.playful { 
    background: linear-gradient(135deg, #ffa726, #ff9800);
}
.trait-fill.adventurous { 
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}
.trait-fill.cuddly { 
    background: linear-gradient(135deg, #ec407a, #e91e63);
}
.trait-fill.independent { 
    background: linear-gradient(135deg, #ab47bc, #9c27b0);
}
.trait-fill.mischievous { 
    background: linear-gradient(135deg, #ff7043, #ff5722);
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: var(--target-width); }
}

.insights-section h4,
.celebrity-match h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.insights-list {
    list-style: none;
    margin-bottom: 30px;
}

.insights-list li {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #FF6B6B;
}

.celebrity-match p {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.1rem;
}

/* Sharing Section */
.sharing-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.sharing-section h3 {
    margin-bottom: 30px;
    color: #333;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.share-button {
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.share-button.twitter {
    background: #1DA1F2;
    color: white;
}

.share-button.facebook {
    background: #4267B2;
    color: white;
}

.share-button.instagram {
    background: linear-gradient(135deg, #E4405F, #5B51D8);
    color: white;
}

.share-button.copy {
    background: #6c757d;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-button {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78,205,196,0.3);
}

/* Next Actions */
.next-actions {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-button {
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
}

.action-button:first-child {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-button.upgrade {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.referral-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.referral-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.referral-link {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.referral-link input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Payment Page */
.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 50px;
}

.payment-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 3px solid #FF6B6B;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF6B6B;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    padding: 8px 0;
    font-size: 1rem;
}

.pricing-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card.popular .pricing-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

.pricing-button.secondary {
    background: #6c757d;
    color: white;
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.payment-benefits {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.payment-benefits h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.benefit h4 {
    margin-bottom: 10px;
    color: #333;
}

.testimonials-payment {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial-small {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.payment-security {
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Payment Modal */
.payment-modal {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.payment-form {
    margin-top: 20px;
}

#payment-element {
    margin-bottom: 20px;
}

.payment-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Fun Utility Classes */
.wobble {
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

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

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        transform: rotate(0deg);
    }
    
    .hero-title::after {
        content: '✨';
        right: -20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat {
        transform: rotate(0deg);
        padding: 12px 20px;
    }
    
    .cta-button {
        padding: 18px 35px;
        font-size: 1.1rem;
        transform: rotate(0deg);
    }
    
    .sample-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-card,
    .testimonial,
    .faq-item {
        transform: rotate(0deg);
    }
    
    .testimonials-section h2::before {
        left: -30px;
        font-size: 1.5rem;
    }
    
    .faq-section h2::after {
        right: -25px;
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 40px 30px;
        transform: rotate(0deg);
    }
    
    .analyze-header h2 {
        transform: rotate(0deg);
    }
    
    .analyze-header h2::after {
        right: -25px;
        top: -5px;
        font-size: 1.5rem;
    }
    
    .upload-section,
    .tips-section {
        transform: rotate(0deg);
        padding: 30px 20px;
    }
    
    .upload-area {
        padding: 60px 20px;
    }
    
    .upload-icon {
        font-size: 4rem;
    }
    
    .tips-section::before {
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
    
    .tips-list {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .auth-card,
    .modal-content {
        padding: 30px 20px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
}

/* Navigation Styles */
.user-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.brand-icon {
    font-size: 1.8rem;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.upgrade {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: var(--dark);
    font-weight: 600;
    animation: sparkle 2s infinite;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logout-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* History Page Styles */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-header {
    text-align: center;
    margin-bottom: 40px;
}

.history-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.history-header p {
    font-size: 1.2rem;
    color: var(--dark);
    opacity: 0.8;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--light);
    border-radius: 30px;
    margin: 40px 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--dark);
    opacity: 0.7;
    margin-bottom: 30px;
}

.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analysis-card {
    background: var(--paper);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.analysis-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.analysis-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pet-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.analysis-card:hover .pet-thumbnail {
    transform: scale(1.05);
}

.analysis-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.analysis-info {
    padding: 20px;
}

.analysis-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.7;
}

.date {
    font-weight: 600;
}

.time {
    font-style: italic;
}

.analysis-insights p {
    font-style: italic;
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.paid-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.free-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.celebrity-match {
    color: var(--dark);
    opacity: 0.7;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

/* Analysis Modal Styles */
.analysis-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-analysis {
    display: flex;
    gap: 30px;
}

.modal-image {
    flex: 1;
    position: relative;
}

.modal-pet-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.modal-trait-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.modal-details {
    flex: 1;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-details h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-insights {
    list-style: none;
    margin-bottom: 25px;
}

.modal-insights li {
    padding: 10px 0;
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.5;
    border-bottom: 1px solid var(--light);
}

.modal-insights li:last-child {
    border-bottom: none;
}

.modal-celebrity p {
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-actions {
    margin-top: 30px;
}

.share-btn {
    background: var(--gradient-warm);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Responsive Design for Navigation and History */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .nav-user {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .analyses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-analysis {
        flex-direction: column;
    }
    
    .history-actions {
        flex-direction: column;
        align-items: center;
    }
}