:root {
    /* --- Restored Theme Variables --- */
    --glow-rgb-dark: 240, 74, 117;
    --glow-rgb-light: 102, 126, 234;
    --bg-dark: #1a202c;
    --bg-light: #e2e8f0;
    --text-color-dark: #cbd5e0;
    --text-color-light: #2d3748; /* Darker for better contrast in light mode */
    --primary-glow-dark: #f04a75;
    --primary-glow-light: #667eea;
    
    color-scheme: dark;

    /* --- Mapped Variables for Compatibility --- */
    --bg-color: var(--bg-dark);
    --text-color: var(--text-color-dark);
    --primary-color: var(--primary-glow-light); 
    --accent-color: var(--primary-glow-dark);
    
    --accent-glow: 0 0 12px rgba(240, 74, 117, 0.6);
    
    /* Dark Mode Card Background */
    --card-bg: rgba(26, 32, 44, 0.75); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-hand: 'Kalam', cursive;
    --font-main: 'Orbitron', sans-serif;
    --font-kr: 'Noto Sans KR', sans-serif;
}

[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-color-light);
    --primary-color: #5a67d8;
    --accent-color: #ed64a6;
    --accent-glow: 0 0 10px rgba(237, 100, 166, 0.4);
    
    /* Light Mode Card Background (White Glass) */
    --card-bg: rgba(255, 255, 255, 0.85); 
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.blog-page {
    align-items: stretch;
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    height: auto;
    padding: 0.4rem 0;
    background: rgba(26, 32, 44, 0.95); /* Dark background for header always, or adapt */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

[data-theme="light"] #main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-container {
    width: 100%;
    max-width: 1000px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    text-shadow: 0 0 10px var(--accent-color);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-hand);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}


/* --- Main Layout --- */
main {
    margin-top: 120px; /* Increased to prevent header overlap */
    width: 100%;
    /* Max width adjusted to match the compact oracle card feel */
    max-width: 600px; 
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section styling (Glass Box) - Unified Width & Style */
section {
    display: block !important; /* Force visibility */
    width: 100%;
    max-width: 500px; /* Matches Cosmic Oracle Card Width */
    margin: 0 auto 3rem auto; /* Center align */
    background: var(--card-bg, rgba(26, 32, 44, 0.7)); /* Use variable if avail, else fallback */
    border: 1px solid rgba(139, 148, 191, 0.3); /* Match oracle border */
    border-radius: 20px; /* Match oracle radius */
    padding: 2rem 2.5rem; /* Match oracle padding */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

h2 {
    font-family: var(--font-main); /* Orbitron for consistency */
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--primary-glow-dark); /* Pink Glow consistency */
}

[data-theme="light"] h2 {
    color: #111827;
    text-shadow: none;
}

section > p {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-family: var(--font-kr);
}

/* --- Cosmic Oracle (Daily Fortune) --- */
cosmic-oracle {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#quote-of-the-day {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    text-align: center;
    margin: 1.5rem auto 3rem auto;
    color: var(--primary-glow-light); /* Soft Blue */
    max-width: 500px;
}

/* --- Zodiac Grid (3 cols x 4 rows for 500px width) --- */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjusted for narrower container */
    gap: 10px;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-align: center;
}

[data-theme="light"] .zodiac-card {
    background: #fff;
    border: 1px solid #ddd;
}

.zodiac-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-glow-dark);
    box-shadow: 0 0 10px var(--primary-glow-dark);
}

.zodiac-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.zodiac-name {
    font-size: 0.85rem;
    font-weight: bold;
    font-family: var(--font-kr);
}

.zodiac-date {
    font-size: 0.7rem;
    opacity: 0.6;
    display: none; /* Hide date on small grid for cleaner look */
}

/* --- Chemistry Section --- */
.chemistry-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chem-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chem-input-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.zodiac-select-main {
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--primary-glow-light);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1rem;
    width: 100%;
    min-width: 120px;
}

[data-theme="light"] .zodiac-select-main {
    background: #fff;
    color: #333;
}

.heart-icon {
    font-size: 2rem;
    color: var(--primary-glow-dark);
    animation: beat 1s infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

#btn-check-chemistry {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    /* Gradient Button Matching Oracle */
    background: linear-gradient(45deg, var(--primary-glow-dark), #4e54c8);
    color: white !important;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow-dark);
    transition: all 0.3s ease;
}

#btn-check-chemistry:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--primary-glow-dark);
}

.chemistry-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid var(--primary-glow-light);
    border-radius: 15px;
    text-align: center;
}

.score-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-glow-dark);
    text-shadow: 0 0 10px var(--primary-glow-dark);
}

/* --- Dog Face Section (Fixed) --- */
.dog-upload-container {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    margin: 0 auto;
    border: 2px dashed var(--primary-glow-light);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.dog-upload-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-glow-dark);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; /* Padding to prevent text sticking */
    text-align: center;
    width: 100%;
}

.upload-icon { 
    font-size: 4rem; 
    margin-bottom: 1rem; 
    filter: drop-shadow(0 0 5px var(--primary-glow-light));
}

.upload-placeholder p {
    font-size: 1.1rem;
    color: var(--text-color);
}

#dog-preview-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    object-fit: contain; /* Keep aspect ratio */
    background: #000;
    padding: 10px; /* Little gap from border */
    border-radius: 20px;
}

#btn-analyze-dog {
    display: block;
    width: 100%;
    margin: 1.5rem auto 0;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    /* UNIFIED BUTTON STYLE */
    background: linear-gradient(45deg, var(--primary-glow-dark), #4e54c8);
    color: white !important;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow-dark);
    transition: all 0.3s ease;
}

#btn-analyze-dog:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--primary-glow-dark);
}

.dog-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    border: 1px solid var(--primary-glow-dark);
    text-align: left;
}

/* --- Cosmic Wisdom (Blog Cards) - Vertical Stack --- */
.wisdom-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.wisdom-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s;
}

[data-theme="light"] .wisdom-card {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.wisdom-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-glow-light);
}

.wisdom-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-glow-dark); /* Pink Title */
    margin-bottom: 0.8rem;
    font-family: var(--font-kr);
}

.wisdom-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-color);
}

.blog-link-btn {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-glow-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Blog Page Specifics --- */
.blog-container {
    width: 100%;
    max-width: 900px;
    margin: 120px auto 3rem; /* Extra space for fixed header */
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-title {
    margin: 0 0 0.5rem;
    font-size: 2.2rem;
    color: var(--text-color);
    text-shadow: none;
    display: block;
    line-height: 1.2;
    font-family: var(--font-hand), var(--font-kr);
}

.blog-subtitle {
    margin: 0;
    font-family: var(--font-hand), var(--font-kr);
    font-size: 1.05rem;
    opacity: 0.8;
    display: block;
    line-height: 1.4;
}

.blog-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.section-title {
    text-align: left;
    font-size: 1.6rem;
    margin: 0 0 1rem;
    text-shadow: none;
    color: #e9eefc;
    font-family: var(--font-hand), var(--font-kr);
}

.article-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    margin-bottom: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .blog-page .article-card {
    background: rgba(12, 16, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #f3f6ff;
    font-family: var(--font-hand), var(--font-kr);
}

.article-meta {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    font-family: var(--font-hand), var(--font-kr);
}

.article-content p {
    font-family: var(--font-hand), var(--font-kr);
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0 0 0.8rem;
}

.article-content h3 {
    margin: 1.2rem 0 0.5rem;
    font-size: 1.15rem;
    color: #d9e2ff;
    font-family: var(--font-hand), var(--font-kr);
}

[data-theme="light"] .article-content h3 {
    color: #111827 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.blog-page h2 {
    text-shadow: none !important;
}

.blog-page .section-title,
.blog-page .article-title,
.blog-page .article-content h3 {
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700;
}

[data-theme="dark"] .blog-page .section-title,
[data-theme="dark"] .blog-page .article-title,
[data-theme="dark"] .blog-page .article-content h3 {
    color: #ffffff !important;
}

[data-theme="light"] .blog-page .section-title,
[data-theme="light"] .blog-page .article-title,
[data-theme="light"] .blog-page .article-content h3 {
    color: #0b1324 !important;
}

[data-theme="light"] .blog-page .article-content h3 {
    color: #111827 !important;
    font-weight: 800 !important;
}

.back-home {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-glow-light);
    text-decoration: none;
    font-weight: 700;
}

/* Pet Tarot Styles */
#section-pet-tarot {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 1rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme='light'] #section-pet-tarot {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}
[data-theme='light'] #pet-tarot-title,
[data-theme='light'] #pet-tarot-subtitle {
    color: #2d3436;
    text-shadow: none;
}

.tarot-container {
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 2rem;
}
.tarot-card-scene {
    width: 220px;
    height: 340px;
}
.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}
.tarot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.tarot-card.flipped {
    transform: rotateY(180deg);
}
.tarot-card-inner {
    width: 100%;
    height: 100%;
}
.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* Card Back Design (Cosmic Paw) */
.tarot-card-front {
    background: radial-gradient(circle at center, #2b1055, #7597de);
    border: 2px solid var(--neon-purple);
    overflow: hidden;
}
.tarot-card-front::before {
    content: "🐾";
    font-size: 5rem;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: floatPaw 3s infinite ease-in-out;
}
.tarot-card-front::after {
    content: "";
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
}
@keyframes floatPaw {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.card-pattern {
    display: none; /* Hide old question mark */
}

/* Card Front Design (Result) */
.tarot-card-back {
    background: #fff;
    color: #333;
    transform: rotateY(180deg);
    padding: 15px;
    border: 6px double var(--neon-blue);
    background-image: radial-gradient(#f0f0f0 10%, transparent 10%);
    background-size: 20px 20px;
}
.card-image-placeholder {
    width: 80%; /* Adjust as needed */
    height: auto;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
#tarot-card-name {
    font-family: var(--font-main);
    font-size: 1.4rem;
    color: #333;
    margin: 0;
    text-align: center;
    border-bottom: 2px solid var(--neon-purple);
    padding-bottom: 5px;
    width: 80%;
}
.result-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-blue);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
    backdrop-filter: blur(10px);
}
[data-theme='light'] .result-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--neon-purple);
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.result-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 1rem 0;
    font-weight: 500;
}
.tarot-lucky-item {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--neon-blue);
    font-weight: bold;
    background: rgba(0, 191, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}
[data-theme='light'] .tarot-lucky-item {
    color: #6a11cb;
    background: rgba(106, 17, 203, 0.1);
}

/* Black Hole Styles */
.blackhole-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blackhole-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.blackhole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px 10px rgba(138, 43, 226, 0.8), inset 0 0 20px #fff;
    z-index: 0;
    animation: pulseBlackhole 3s infinite ease-in-out;
}
@keyframes pulseBlackhole {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px 10px rgba(138, 43, 226, 0.8); }
    50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 50px 20px rgba(75, 0, 130, 0.9); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px 10px rgba(138, 43, 226, 0.8); }
}
#worry-input {
    width: 80%;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    z-index: 1;
    margin-bottom: 10px;
    resize: none;
}
#btn-throw-worry {
    z-index: 1;
    background: var(--neon-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 640px) {
    .blog-container {
        margin-top: 110px;
        padding: 0 1rem;
        gap: 2rem;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .article-card {
        padding: 1.25rem 1.4rem;
    }

    .article-title { font-size: 1.35rem; }
    .article-meta { font-size: 0.95rem; }
    .article-content p { font-size: 1.05rem; }
    .article-content h3 { font-size: 1.05rem; }
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
}
[data-theme="light"] .form-group input, [data-theme="light"] .form-group textarea {
    background: #fff; border: 1px solid #ccc; color: #333;
}
#form-submit-btn { width: 100%; padding: 0.8rem; background: var(--primary-color); border:none; border-radius:8px; color:white; font-weight:bold; cursor:pointer;}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* --- Modal & Tabs (Pretty Buttons) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #1a202c; /* Hard dark background */
    width: 90%; max-width: 450px;
    padding: 2rem; border-radius: 20px;
    border: 1px solid var(--primary-glow-dark);
    position: relative;
    text-align: left; /* LEFT ALIGNMENT FIXED */
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    color: #edf2f7;
}
[data-theme="light"] .modal-content { 
    background: #fff; 
    color: #2d3748; 
    border-color: #ccc;
}

/* Pretty Tab Buttons */
.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    border-bottom: none; 
}
/* ... existing tab-btn code ... */

/* --- Dog Face Image Fix --- */
#dog-preview-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    object-fit: contain; 
    background: #000;
    padding: 10px; 
    border-radius: 20px;
}

/* HIDE BROKEN IMAGE ICON/TEXT when empty */
#dog-preview-image:not([src]), 
#dog-preview-image[src=""] {
    display: none;
    visibility: hidden;
}

.recovery-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(20, 22, 34, 0.9);
    color: #f3f4ff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

.recovery-banner .recovery-text {
    white-space: nowrap;
}

.recovery-banner .recovery-btn {
    background: #f04a75;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
}

.recovery-banner .recovery-btn:hover {
    filter: brightness(1.05);
}

@media (max-width: 600px) {
    .recovery-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        width: calc(100% - 24px);
    }
    .recovery-banner .recovery-text {
        white-space: normal;
    }
}
