/* Pawz Reunited Premium Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors (Theme Independent) */
    --primary: #0d9488;          /* Vibrant Teal */
    --primary-light: #2dd4bf;    /* Light Mint */
    --primary-dark: #0f766e;     /* Deep Teal */
    --primary-glow: rgba(13, 148, 136, 0.25);
    
    --accent: #f59e0b;           /* Warm Amber */
    --accent-hover: #d97706;     /* Darker Amber */
    --accent-glow: rgba(245, 158, 11, 0.3);
    
    --emerald: #10b981;          /* Success green */
    --rose: #f43f5e;             /* Alert rose */
    --rose-glow: rgba(244, 63, 94, 0.25);
    --info-blue: #3b82f6;        /* Google Search blue */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animations & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Theme Variables - Dark Mode (Default) */
    --bg-main: #030712;          /* Cosmic Obsidian 950 */
    --bg-main-rgb: 3, 7, 18;
    --bg-card: rgba(15, 23, 42, 0.72); /* Deep slate translucent glass */
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-panel: #0b1329;
    --border-color: rgba(45, 212, 191, 0.18);
    --border-hover: rgba(45, 212, 191, 0.5);
    --text-main: #f8fafc;        /* Slate 50 ultra-crisp white */
    --text-muted: #94a3b8;       /* Slate 400 */
    --shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.85);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Light Theme Override */
body.light-theme {
    --bg-main: #f8fafc;          /* Slate 50 */
    --bg-main-rgb: 248, 250, 252;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: #ffffff;
    --bg-panel: #ffffff;
    --border-color: rgba(15, 23, 42, 0.1);
    --border-hover: rgba(13, 148, 136, 0.45);
    --primary: #0f766e;          /* Rich Deep Teal (WCAG AAA 7:1) */
    --primary-light: #0d9488;    /* High-contrast Mint Teal */
    --primary-glow: rgba(15, 118, 110, 0.2);
    --accent: #d97706;           /* Rich Amber */
    --accent-hover: #b45309;
    --accent-glow: rgba(217, 119, 6, 0.22);
    --emerald: #059669;          /* Deep Emerald (WCAG AAA) */
    --rose: #e11d48;             /* Vivid Ruby Rose */
    --rose-glow: rgba(225, 29, 72, 0.22);
    --text-main: #090d16;        /* Deep Obsidian Ink (WCAG AAA) */
    --text-muted: #334155;       /* Slate 700 high-contrast (WCAG AAA) */
    --shadow: 0 14px 38px -8px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --glass-shadow: inset 0 1px 0 #ffffff, 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .pet-breed,
body.light-theme .owner-contact-card h4 {
    color: #0f766e !important;
}

.brand-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-fast);
}

body.light-theme .logo-text {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Reset & Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 10%, rgba(13, 148, 136, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 20%, rgba(244, 63, 94, 0.08) 0px, transparent 45%),
        radial-gradient(at 50% 80%, rgba(0, 242, 254, 0.07) 0px, transparent 55%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
}

body.light-theme {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 12% 10%, rgba(13, 148, 136, 0.09) 0px, transparent 45%),
        radial-gradient(at 88% 18%, rgba(244, 63, 94, 0.06) 0px, transparent 40%),
        radial-gradient(at 50% 65%, rgba(245, 158, 11, 0.06) 0px, transparent 50%),
        radial-gradient(at 85% 90%, rgba(2, 132, 199, 0.07) 0px, transparent 45%);
    background-attachment: fixed;
}

/* ==========================================================================
   Accessibility (WCAG 2.2 AA) & High-Visibility Focus System
   ========================================================================== */

/* High-contrast focus indicator for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-light) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 12px var(--primary-glow) !important;
}

/* Touch target & manipulation optimizations for mobile interactivity */
button, .btn, input, select, textarea {
    touch-action: manipulation;
}

/* High-contrast light theme text readability helpers (WCAG 4.5:1 AA) */
body.light-theme .pet-desc,
body.light-theme .pet-location,
body.light-theme .pet-time,
body.light-theme .pet-card-footer {
    color: #334155 !important;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   User-Friendly Scroll Progress Indicator Bar & Scrollbar System
   ========================================================================== */

/* Top Viewport Reading Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100001;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0d9488 0%, #2dd4bf 30%, #0284c7 60%, #f59e0b 85%, #ec4899 100%);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.8), 0 0 20px rgba(245, 158, 11, 0.5);
    border-radius: 0 4px 4px 0;
    transition: width 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 18px var(--primary-light);
}

/* Floating Scroll-to-Top Ring Button Widget */
.scroll-to-top-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99990;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 50%;
    color: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-widget.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-widget:hover {
    transform: translateY(-4px) scale(1.06);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 14px 35px var(--primary-glow);
}

.scroll-to-top-widget svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3.5;
}

.scroll-ring-circle {
    fill: none;
    stroke: url(#scrollRingGrad);
    stroke-width: 3.5;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.08s linear;
}

.scroll-to-top-tooltip {
    position: absolute;
    right: 60px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-widget:hover .scroll-to-top-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* User-Friendly Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    border: 2px solid rgba(2, 6, 23, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2dd4bf 0%, #f59e0b 100%);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Firefox scrollbar support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(2, 6, 23, 0.85);
}


/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(13, 148, 136, 0.1);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
}

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

body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 #ffffff;
}

body.light-theme .glass-panel:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 16px 36px -8px rgba(13, 148, 136, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Strategic Push Alert Banner Component */
.push-alert-banner {
    margin: 0 auto 2.5rem;
    max-width: 1200px;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
    border: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.light-theme .push-alert-banner {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(13, 148, 136, 0.22);
    box-shadow: 0 10px 30px -8px rgba(13, 148, 136, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 0 #ffffff;
}

/* FDA Safety Alert Component */
.fda-recall-banner {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid rgba(244, 63, 94, 0.4);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.light-theme .fda-recall-banner {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.6) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(225, 29, 72, 0.28);
    box-shadow: 0 10px 25px -8px rgba(225, 29, 72, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 0 #ffffff;
}

body.light-theme .fda-recall-banner .fda-recall-content {
    color: #090d16 !important;
}

body.light-theme .fda-recall-banner .paw-temp-badge {
    color: #be123c !important;
}

/* -----------------------------------------
   Navbar Component
   ----------------------------------------- */
header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--bg-main-rgb), 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

nav.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-text {
    white-space: nowrap;
}

.logo-icon-pulse {
    animation: pulseGlow 3s infinite alternate;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nav-item {
    white-space: nowrap;
}

.nav-item a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 6px;
    text-decoration: none;
    white-space: nowrap !important;
    letter-spacing: -0.01em;
    display: inline-block;
}

#nav-pawlife-link a:hover {
    color: var(--tiktok-cyan, #00f2fe);
}

/* Animated blinking & glowing highlight for Pet Registry header link */
#nav-registry-link a {
    font-weight: 700;
    font-size: 0.82rem;
    color: #ec4899 !important;
    background: rgba(236, 72, 153, 0.12);
    padding: 4px 10px !important;
    border-radius: 20px;
    border: 1px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
    animation: pulseBlinkGlow 1.8s infinite ease-in-out;
    white-space: nowrap !important;
}

@keyframes pulseBlinkGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.7), 0 0 30px rgba(99, 102, 241, 0.4);
        border-color: rgba(236, 72, 153, 0.9);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.06);
        box-shadow: 0 0 4px rgba(236, 72, 153, 0.2);
        border-color: rgba(236, 72, 153, 0.2);
    }
}

/* Dynamic Sign In / Sign Up Glowing Button (Matches Pet Registry Pulsing Style) */
.btn-dynamic-auth {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(99, 102, 241, 0.85)) !important;
    padding: 8px 18px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(45, 212, 191, 0.6) !important;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.5), 0 0 25px rgba(99, 102, 241, 0.3) !important;
    animation: pulseBlinkAuth 2s infinite ease-in-out !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

.btn-dynamic-auth:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.9), 0 0 35px rgba(99, 102, 241, 0.7) !important;
    background: linear-gradient(135deg, #0d9488, #4f46e5) !important;
}

.btn-dynamic-auth.logged-in {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(13, 148, 136, 0.85)) !important;
    border-color: rgba(52, 211, 153, 0.7) !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5) !important;
    animation: pulseBlinkVerified 2.5s infinite ease-in-out !important;
}

@keyframes pulseBlinkAuth {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(13, 148, 136, 0.6), 0 0 25px rgba(99, 102, 241, 0.4);
        border-color: rgba(45, 212, 191, 0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.04);
        box-shadow: 0 0 6px rgba(13, 148, 136, 0.2), 0 0 10px rgba(99, 102, 241, 0.1);
        border-color: rgba(45, 212, 191, 0.3);
    }
}

@keyframes pulseBlinkVerified {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
        border-color: rgba(52, 211, 153, 0.9);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03);
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
        border-color: rgba(52, 211, 153, 0.3);
    }
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-light);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-light);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex-shrink: 0;
}

/* Light Mode Header "Report Sighting" Button Hover Reversal */
body.light-theme header .nav-controls .btn-primary:hover,
body.light-theme .sticky-header .btn-primary:hover {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3) !important;
    transform: translateY(-2px);
}

/* Account Avatar Header Control */
.nav-account-avatar {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(13, 148, 136, 0.25) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.nav-account-avatar:hover {
    transform: scale(1.08);
    border-color: #10b981;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
}

.nav-account-avatar .online-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

/* Theme Toggle */
.theme-switch {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.theme-switch:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.theme-switch .fa-sun {
    display: none;
}

body.light-theme .theme-switch .fa-sun {
    display: block;
}

body.light-theme .theme-switch .fa-moon {
    display: none;
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
.hero-section {
    padding: 7rem 2rem 5rem;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badge span.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    display: inline-block;
    animation: livePulse 1.5s infinite;
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-title {
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .gradient-title {
    background: linear-gradient(135deg, #0f172a 40%, var(--primary-dark) 80%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 4px;
}

body.light-theme .stat-val {
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Showcase Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-backdrop {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
}

.radar-backdrop::before, .radar-backdrop::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(20, 184, 166, 0.08);
}

.radar-backdrop::before {
    width: 320px;
    height: 320px;
}

.radar-backdrop::after {
    width: 200px;
    height: 200px;
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    background: conic-gradient(from 0deg at 100% 100%, var(--primary-glow) 0deg, transparent 90deg);
    transform-origin: 100% 100%;
    animation: radarSweep 10s infinite linear;
    pointer-events: none;
    border-radius: 100% 0 0 0;
}

.hero-main-card {
    position: relative;
    width: 320px;
    height: 380px;
    z-index: 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: var(--transition-smooth);
}

.hero-main-card:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #ffffff;
}

.hero-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid var(--rose);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hero-floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 20;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge-1 {
    top: 60px;
    right: 20px;
    animation: floatAnim 4s infinite ease-in-out;
}

.hero-badge-2 {
    bottom: 40px;
    left: 20px;
    animation: floatAnim 4s infinite ease-in-out 2s;
}

.hero-floating-badge i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* -----------------------------------------
   Live Alerts Feed
   ----------------------------------------- */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
}

.feed-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search bar styling */
.search-box-wrapper {
    position: relative;
    width: 280px;
}

.search-box-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Filter controls */
.filter-tabs {
    display: flex;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 12px;
}

.filter-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab-btn.active, .filter-tab-btn:hover {
    color: #ffffff;
    background-color: var(--primary);
}

body.light-theme .filter-tab-btn.active {
    color: #ffffff !important;
    background-color: #0f766e !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* Pet Cards Grid & Viewport Sizing */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pet-card {
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 82vh; /* Relative viewport height container limit */
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling when content exceeds container size */
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pet-card::-webkit-scrollbar {
    width: 6px;
}

.pet-card::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 6px;
}

.pet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pet-card-image-wrap {
    width: 100%;
    /* Responsive 16:9 ratio replaces fixed px/vh — fills cleanly at any card width */
    aspect-ratio: 16 / 9;
    min-height: 160px;
    max-height: 260px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(15, 23, 42, 0.8);
    /* Fallback for browsers without aspect-ratio support */
    height: min(26vh, 260px);
}

.pet-card-details {
    flex-grow: 1;
    overflow-y: auto; /* Enable inner details scrolling when content exceeds viewport size */
    overflow-x: hidden;
    max-height: 55vh;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 191, 0.4) transparent;
}

.pet-card-details::-webkit-scrollbar {
    width: 4px;
}

.pet-card-details::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.4);
    border-radius: 4px;
}

.pet-card-image-wrap img,
.pet-card-image-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    /* cover is correct for small card thumbnails - fills frame nicely */
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Videos: muted autoplay loop — no controls bar eating into the frame */
.pet-card-image-wrap video {
    object-position: center center;
    pointer-events: none; /* interaction handled by card, not video controls */
}

.pet-card:hover .pet-card-image-wrap img,
.pet-card:hover .pet-card-image-wrap video {
    transform: scale(1.05);
}


.pet-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 50px;
    color: #ffffff;
}

.pet-card-badge.lost {
    background-color: var(--rose);
    box-shadow: 0 4px 10px var(--rose-glow);
}

.pet-card-badge.found {
    background-color: var(--emerald);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.pet-card-reward {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.pet-card-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.pet-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.pet-breed {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-panel);
    padding: 2px 8px;
    border-radius: 4px;
}

.pet-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pet-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pet-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.pet-location i {
    color: var(--rose);
}

.pet-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pet-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 1rem;
}

/* -----------------------------------------
   Google AI Hub Component
   ----------------------------------------- */
.ai-hub-container {
    padding: 1.5rem;
    margin-top: 2rem;
}

.ai-hub-tabs-list {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.ai-tab-trigger {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ai-tab-trigger i {
    font-size: 1rem;
}

.ai-tab-trigger:hover {
    color: var(--text-main);
    background-color: rgba(20, 184, 166, 0.05);
}

.ai-tab-trigger.active {
    color: var(--primary-light);
    background-color: rgba(13, 148, 136, 0.15);
    box-shadow: inset 0 0 10px rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
}

body.light-theme .ai-tab-trigger.active {
    color: var(--primary);
    background-color: rgba(13, 148, 136, 0.1);
}

/* Tab panes contents */
.ai-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.ai-tab-pane.active {
    display: block;
}

.ai-grid-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    min-height: 480px;
}

/* Pane 1: Gemini Assistant */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 450px;
    background-color: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.chat-header {
    background-color: rgba(15, 23, 42, 0.8);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-ring {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.chat-title-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.chat-title-info span {
    font-size: 0.75rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-title-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--emerald);
    border-radius: 50%;
    display: inline-block;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.9rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble.bot {
    background-color: var(--bg-panel);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    border: 1px solid var(--border-color);
}

.chat-bubble.user {
    background-color: var(--primary);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

/* Low latency typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    gap: 10px;
}

.chat-input-box {
    flex-grow: 1;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    outline: none;
    font-size: 0.9rem;
}

.chat-input-box:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background-color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    background-color: var(--primary-hover);
}

.chat-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.chat-shortcut-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-shortcut-card:hover {
    border-color: var(--primary);
    background-color: rgba(13, 148, 136, 0.05);
    transform: translateX(5px);
}

.chat-shortcut-card h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-theme .chat-shortcut-card h5 {
    color: var(--primary);
}

.chat-shortcut-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pane 2: Imagen Studio (Create & Edit) */
.studio-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aspect-ratio-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.aspect-btn {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.aspect-btn.active, .aspect-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background-color: rgba(13, 148, 136, 0.05);
}

.aspect-icon {
    border: 2px solid currentColor;
    border-radius: 2px;
    opacity: 0.8;
}

.aspect-1-1 { width: 16px; height: 16px; }
.aspect-4-3 { width: 20px; height: 15px; }
.aspect-16-9 { width: 24px; height: 14.5px; }

.studio-canvas-area {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(2, 6, 23, 0.3);
    border: 1px dashed var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.imagen-frame {
    width: 100%;
    max-width: 320px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: aspect-ratio 0.4s ease-in-out;
}

.imagen-frame.ratio-1-1 { aspect-ratio: 1 / 1; }
.imagen-frame.ratio-4-3 { aspect-ratio: 4 / 3; }
.imagen-frame.ratio-16-9 { aspect-ratio: 16 / 9; }

.imagen-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.imagen-frame.editing img {
    filter: brightness(0.8) contrast(1.1);
}

.imagen-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.7);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.studio-editor-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 2px dashed rgba(255,255,255,0.4);
    display: none;
}

.imagen-frame.editing .studio-editor-overlay {
    display: block;
}

/* Edit operations toolbox */
.edit-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.edit-op-btn {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-op-btn:hover {
    border-color: var(--accent);
}

/* Pane 3: Multimodal Vision Analyzer */
.vision-dropzone {
    border: 2px dashed var(--border-color);
    background-color: rgba(13, 148, 136, 0.02);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.vision-dropzone:hover {
    border-color: var(--primary);
    background-color: rgba(13, 148, 136, 0.05);
}

.vision-dropzone i {
    font-size: 3rem;
    color: var(--primary-light);
}

body.light-theme .vision-dropzone i {
    color: var(--primary);
}

.vision-results-pane {
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vision-analyzer-progress {
    display: none;
}

.vision-analyzer-progress.active {
    display: block;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-panel);
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    animation: loadingProgress 3s forwards ease-in-out;
}

.trait-tag {
    display: inline-flex;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}

.trait-tag.detected {
    border-color: var(--emerald);
    color: var(--emerald);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Pane 4: Veo Studio (Video Generation) */
.veo-preview-box {
    background-color: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.veo-simulated-video {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    position: relative;
}

.veo-simulated-video.active {
    display: block;
}

.veo-video-pan {
    animation: videoPan 10s infinite alternate linear;
}

.veo-overlay-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.8rem;
}

.veo-playback-track {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.veo-playback-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary-light);
    position: absolute;
}

.veo-simulated-video.active .veo-playback-fill {
    animation: playTimeline 10s infinite linear;
}

.veo-watermark {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.6);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Pane 5: Map & Search (Google API) */
.map-canvas-container {
    height: 400px;
    background-color: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.google-map-svg-mock {
    width: 100%;
    height: 100%;
    background-color: #0b1329;
}

body.light-theme .google-map-svg-mock {
    background-color: #e2e8f0;
}

.map-grid-line {
    stroke: rgba(20, 184, 166, 0.06);
    stroke-width: 1;
}

body.light-theme .map-grid-line {
    stroke: rgba(13, 148, 136, 0.1);
}

.map-road {
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
}

body.light-theme .map-road {
    stroke: #ffffff;
    stroke-width: 10;
}

.map-park {
    fill: rgba(16, 185, 129, 0.08);
}

body.light-theme .map-park {
    fill: #dcfce7;
}

.map-water {
    fill: rgba(59, 130, 246, 0.1);
}

body.light-theme .map-water {
    fill: #dbeafe;
}

.sighting-pin-pulse {
    animation: pinPulse 2s infinite;
    transform-origin: center;
}

.sighting-pin {
    cursor: pointer;
    transition: var(--transition-fast);
}

.sighting-pin:hover {
    transform: scale(1.2);
}

.google-search-panel {
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 400px;
    overflow-y: auto;
}

.search-crawl-log {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.crawl-alert-item {
    border-left: 3px solid var(--info-blue);
    background-color: var(--bg-panel);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crawl-alert-item.match {
    border-left-color: var(--emerald);
}

/* Pane 6: Database Scale Console */
.db-console-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
}

.db-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-stat-tile {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.db-stat-tile h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.db-stat-tile .db-stat-big {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}

body.light-theme .db-stat-tile .db-stat-big {
    color: var(--primary);
}

.console-terminal {
    background-color: #010409;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    padding: 1.2rem;
    color: #39ff14; /* Matrix Green */
    height: 380px;
    display: flex;
    flex-direction: column;
}

.terminal-logs {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-input-row {
    border-top: 1px solid rgba(57, 255, 20, 0.2);
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.terminal-input-row input {
    background: transparent;
    border: none;
    outline: none;
    color: #39ff14;
    font-family: inherit;
    flex-grow: 1;
}

/* Stripe Payment Drawer / Mock Dialog */
.premium-ad-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-card-box {
    max-width: 440px;
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stripe-brand-header {
    background-color: #635bff; /* Stripe Purple */
    padding: 1.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stripe-brand-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.billing-form-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.payment-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.payment-field-wrapper {
    position: relative;
}

.payment-field-wrapper input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px 10px 38px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

.payment-field-wrapper input:focus {
    border-color: #635bff;
}

.payment-field-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Modals & Responsive Viewport Containers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(10px);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
}

.modal-overlay.active {
    display: flex;
}

/* Auto-hide floating background widgets during active modal to eliminate tap collisions */
body:has(.modal-overlay.active) #pawz-help-tips-pill,
body:has(.modal-overlay.active) #scroll-to-top-btn,
body.modal-open #pawz-help-tips-pill,
body.modal-open #scroll-to-top-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(24px) scale(0.9) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.modal-box {
    max-width: 92vw;
    width: min(94vw, 1100px);
    max-height: 88vh; /* Relative viewport height container limit */
    height: auto;
    overflow-y: auto; /* Allow scrolling when content exceeds screen size */
    overflow-x: hidden;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(15, 23, 42, 0.4);
}

.modal-box::-webkit-scrollbar,
.glass-panel::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.modal-box::-webkit-scrollbar-track,
.glass-panel::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.25);
    border-radius: 8px;
}

body.light-theme .modal-box::-webkit-scrollbar-track,
body.light-theme .glass-panel::-webkit-scrollbar-track,
body.light-theme .modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
}

.modal-box::-webkit-scrollbar-thumb,
.glass-panel::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-box::-webkit-scrollbar-thumb:hover,
.glass-panel::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.6);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 20;
    border-radius: 20px 20px 0 0;
}

body.light-theme .modal-header {
    background: rgba(255, 255, 255, 0.96);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--rose);
    background: rgba(244, 63, 94, 0.12);
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh; /* Viewport height content wrapper */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* Sticky Modal Navigation Footer */
.wizard-nav-actions,
.modal-sticky-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 25;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

body.light-theme .wizard-nav-actions,
body.light-theme .modal-sticky-footer {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.05);
}

.btn-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

/* =========================================================================
   🚨 1. Emergency Lost/Found Pet Reporting Wizard & Dispatch System
   ========================================================================= */

/* Stepper Progress Bar */
.emergency-stepper-wrap {
    margin-bottom: 1.75rem;
    position: relative;
    padding: 0 0.5rem;
}

.emergency-stepper-line {
    position: absolute;
    top: 18px;
    left: 8%;
    width: 84%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
    border-radius: 4px;
}

.emergency-stepper-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #14b8a6);
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.emergency-stepper-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.stepper-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.stepper-node:hover {
    transform: translateY(-2px);
}

.stepper-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stepper-node.active .stepper-dot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.stepper-node.completed .stepper-dot {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

.stepper-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.stepper-node.active .stepper-label {
    color: var(--text-main);
    font-weight: 800;
}

.stepper-node.completed .stepper-label {
    color: #14b8a6;
}

/* Wizard Panes */
.wizard-step-pane {
    display: none;
    animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-pane.active {
    display: block;
}

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

/* Category Selector Pills */
.wizard-category-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0.5rem;
}

.wizard-category-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.wizard-category-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wizard-category-pill.active#btn-cat-lost {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.wizard-category-pill.active#btn-cat-found {
    background: rgba(20, 184, 166, 0.12);
    border-color: #14b8a6;
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.2);
}

.wizard-category-pill.active#btn-cat-sighting {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

/* Photo Dropzone */
.wizard-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.wizard-dropzone:hover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.04);
}

.vision-scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #14b8a6, #2dd4bf, transparent);
    box-shadow: 0 0 14px #2dd4bf, 0 0 28px #14b8a6;
    animation: laserScanDown 1.4s ease-in-out infinite alternate;
}

@keyframes laserScanDown {
    0% { top: 0%; opacity: 0.8; }
    100% { top: 96%; opacity: 1; }
}

/* Species Chips */
.species-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.species-chip:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.25);
}

.species-chip.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.25), rgba(20, 184, 166, 0.15));
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.35);
}

/* Temperament Tags */
.temperament-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: all 0.2s ease;
}

.temperament-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.temperament-tag.active {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.5);
    color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Privacy Cards */
.privacy-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.privacy-option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.privacy-option-card.active {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--emerald);
    box-shadow: 0 0 14px rgba(20, 184, 166, 0.2);
}

/* 5-Mile Radar Broadcast Waves Animation */
.radar-broadcast-container {
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-center-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    position: relative;
    z-index: 5;
    animation: corePulse 2s infinite alternate;
}

@keyframes corePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
    100% { transform: scale(1.05); box-shadow: 0 0 28px rgba(239, 68, 68, 0.8); }
}

.radar-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #ef4444;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}

.radar-wave.wave-1 {
    animation: radarWave 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.radar-wave.wave-2 {
    animation: radarWave 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite 0.8s;
}

.radar-wave.wave-3 {
    animation: radarWave 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite 1.6s;
}

@keyframes radarWave {
    0% {
        width: 30px;
        height: 30px;
        opacity: 0.8;
    }
    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Tear-Off Contact Tabs on Printable Flyer */
.flyer-tear-tabs-wrap {
    display: flex;
    border-top: 2px dashed #94a3b8;
    margin-top: 15px;
    padding-top: 10px;
    justify-content: space-between;
}

.flyer-tear-tab {
    flex: 1;
    border-right: 1px dashed #cbd5e1;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.68rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #1e293b;
    font-weight: 700;
    line-height: 1.2;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flyer-tear-tab:last-child {
    border-right: none;
}

/* Print CSS Media Query */
@media print {
    body * {
        visibility: hidden;
    }
    #print-modal, #print-modal-body, #print-modal-body * {
        visibility: visible;
    }
    #print-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #print-modal .modal-box {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    #print-modal .modal-header,
    #print-modal .modal-footer {
        display: none !important;
    }
}


/* Footer Section */
footer {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 340px;
}

.footer-links-col h5 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* -----------------------------------------
   Animations Keyframes
   ----------------------------------------- */
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--primary-light)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 10px var(--primary)); }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes typingPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    30% { width: 45%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

@keyframes videoPan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

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

@keyframes pinPulse {
    0% { r: 6; opacity: 1; }
    100% { r: 18; opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 5rem;
    }
    .hero-text {
        align-items: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .ai-grid-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Navigation Bar & Drawer Styles */
.mobile-hamburger-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.mobile-hamburger-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #0b111e;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 2px solid rgba(20, 184, 166, 0.4);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
    animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .mobile-nav-drawer {
    background: #ffffff;
    border-bottom: 2px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
}

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

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-drawer a:hover {
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary-light);
}

.mobile-nav-drawer .mobile-drawer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}

/* Reusable Two-Column Form Grid with Mobile Auto-Collapse */
.form-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-grid-two-col {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    nav.navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 1rem;
        gap: 8px;
        width: 100%;
    }
    .navbar .logo-container .logo-text {
        font-size: 1.12rem;
    }
    .navbar .logo-container img {
        height: 32px;
    }
    .navbar .nav-menu {
        display: none !important;
    }
    .mobile-hamburger-btn {
        display: inline-flex !important;
    }
    .nav-controls #nav-pitchdeck-btn,
    .nav-controls #nav-chat-btn {
        display: none !important;
    }
    .nav-controls {
        gap: 6px;
    }
    .nav-controls .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .pet-details-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Comprehensive Mobile Screen Adjustments (iPhone, Android, iPad Mini) */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem 1.5rem 1rem;
        gap: 1.5rem;
    }
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 0.88rem !important;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-volunteer-callout {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        font-size: 0.78rem !important;
    }
    .hero-stats {
        width: 100%;
        gap: 10px;
    }
    .hero-stats .stat-item {
        padding: 6px 12px;
    }
    
    /* Modal Card Auto-Fit */
    .modal-box {
        width: 95vw !important;
        max-width: 95vw !important;
        border-radius: 16px !important;
        max-height: 92vh !important;
    }
    .modal-header {
        padding: 0.9rem 1.1rem !important;
    }
    .modal-header h3 {
        font-size: 1.15rem !important;
    }
    .modal-body {
        padding: 1rem 1.1rem 1.5rem 1.1rem !important;
    }
    
    /* Emergency Wizard Mobile Responsiveness */
    .wizard-category-selector {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .wizard-step-pane div[style*="grid-template-columns: 1fr 1fr"],
    .wizard-step-pane div[style*="grid-template-columns:1fr 1fr"],
    .wizard-step-pane div[style*="grid-template-columns: 1fr 2fr"],
    .form-grid-responsive {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .wizard-step-pane div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 4px !important;
    }
    .temperament-chip-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    
    /* Stepper: Hide verbose text labels under 600px */
    .stepper-label {
        display: none !important;
    }
    .emergency-stepper-wrap {
        padding: 0 4px !important;
        margin-bottom: 1.1rem !important;
    }
    .stepper-dot {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    .emergency-stepper-line {
        top: 15px !important;
        left: 10% !important;
        width: 80% !important;
    }
    
    /* Sticky Actions Bar */
    .wizard-nav-actions,
    .modal-sticky-footer {
        padding: 10px 14px !important;
        border-radius: 0 0 16px 16px !important;
    }
    .wizard-nav-actions .btn,
    .modal-sticky-footer .btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }
}

/* Pet Info Modal Details Styles */
.pet-details-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.pet-details-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pet-details-img-frame {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pet-details-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-contact-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.owner-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.owner-contact-row i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.searching-status-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    border: 1px solid var(--emerald);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.searching-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.searching-status-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 8px;
}

.searching-status-count span.active-searchers-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--emerald);
    animation: livePulse 1.5s infinite;
}

/* Horizontal Slider Track Carousel Engine */
.slider-row-container {
    width: 100%;
    grid-column: 1 / -1;
    margin-bottom: 2.5rem;
}

#petCardsGrid {
    display: block;
    width: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 1rem 0;
}

.slider-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0; /* Prevents flex children text overflow */
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pet-card:hover,
.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 12px 30px rgba(20, 184, 166, 0.25);
}

.slider-card .pet-card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
    max-height: 260px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(15, 23, 42, 0.8);
    height: min(26vh, 260px);
}

.slider-card .pet-card-image-wrap img,
.slider-card .pet-card-image-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.slider-card .pet-card-details {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 55vh;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 184, 166, 0.45);
    color: var(--primary-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.slider-btn:hover {
    background: rgba(20, 184, 166, 0.95);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.6);
}

.prev-btn { left: -16px; }
.next-btn { right: -16px; }

/* Hide bottom dots container for sleek row-end arrow layout */
.slider-dots {
    display: none !important;
}

/* Dynamic Edge-to-Edge Responsive Breakpoints */
@media (min-width: 1201px) {
    .slider-card {
        flex: 0 0 calc(33.333% - 1rem); /* 3 cards fill 100% width proportionally from edge to edge */
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .slider-card {
        flex: 0 0 calc(50% - 0.75rem); /* 2 cards fill 100% width on tablets */
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn { left: -8px; }
    .next-btn { right: -8px; }
}

@media (max-width: 768px) {
    .slider-track {
        gap: 0.85rem;
        padding: 0.75rem 0.25rem;
    }
    .slider-card {
        flex: 0 0 calc(100% - 0.5rem); /* Single full card fills mobile view */
    }
    .slider-card .pet-card-image-wrap {
        aspect-ratio: 16 / 9;
        min-height: 140px;
        max-height: 200px;
        height: auto;
    }
    .slider-card .pet-card-details {
        padding: 1rem;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        background: rgba(15, 23, 42, 0.92);
    }
    .prev-btn { left: 4px; }
    .next-btn { right: 4px; }
    .slider-dots {
        margin-top: 10px;
        gap: 6px;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    .slider-dot.active {
        width: 20px;
    }
}

@media (max-width: 400px) {
    .slider-card {
        flex: 0 0 92%; /* Full width on extra small phones */
    }
}

/* Dots Container & Pill Indicators Engine */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 4px 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 26px;
    border-radius: 6px;
    background-color: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    border-color: var(--accent);
}

.slider-dot:hover:not(.active) {
    background-color: rgba(20, 184, 166, 0.6);
    transform: scale(1.15);
}

/* Day Mode (Light Theme) Override for Pet Protection Instructions Box */
body.light-theme .registry-instructions-box {
    border: 2px solid #000000 !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .registry-instructions-box h4 {
    color: #000000 !important;
}

body.light-theme .registry-instructions-box ol li {
    color: #0f172a !important;
}

body.light-theme .registry-instructions-box ol li strong {
    color: #000000 !important;
}

/* Separate Problem vs. Solution & Action Checklist Cards */
.solution-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
}

.problem-solution-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.card-topic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.card-topic-header i {
    font-size: 1.3rem;
    color: var(--accent);
}

.legacy-problem-box {
    background: rgba(244, 63, 94, 0.06);
    border-left: 3px solid var(--rose);
    border-radius: 8px;
    padding: 0.85rem;
}

.legacy-problem-box h5 {
    color: var(--rose);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legacy-problem-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.pawz-solution-box {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--emerald);
    border-radius: 8px;
    padding: 0.85rem;
}

.pawz-solution-box h5 {
    color: var(--emerald);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pawz-solution-box p {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

/* Owner Action Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.action-checklist-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(13, 148, 136, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.action-checklist-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.checklist-num-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-card-content h5 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 4px;
}

.checklist-card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

/* Light Theme Overrides for New Cards */
body.light-theme .problem-solution-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .legacy-problem-box {
    background: #fff1f2 !important;
}

body.light-theme .pawz-solution-box {
    background: #ecfdf5 !important;
}

body.light-theme .action-checklist-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

/* 3D Infinity Growth Timeline Mirror Cards */
.infinite-mirror-stage {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.mirror-frame {
    width: 80px;
    height: 200px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25), 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.youth-mirror {
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), inset 0 0 15px rgba(168, 85, 247, 0.2);
}

.adult-mirror {
    border: 2px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.2);
}

.mirror-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.mirror-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 6;
}

.mirror-infinity-carousel {
    flex: 1;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.growth-stage-card {
    position: absolute;
    width: 150px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

.growth-stage-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.growth-stage-info {
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-stage-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
}

.mirror-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.7);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* AI Pet Hub Auth Lock Overlay */
.ai-hub-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ai-hub-auth-box {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   Footer Component
   ========================================= */
footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

body.light-theme footer {
    background: #f1f5f9;
    border-top-color: rgba(13, 148, 136, 0.15);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.8rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h5 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================
   UX Recommendations 2-4 & Accessibility Tokens
   ========================================= */

/* 1. Focus Visible Rings (WCAG 2.1 AA) */
:focus-visible {
    outline: 2px solid var(--primary-light) !important;
    outline-offset: 3px !important;
    border-radius: 6px;
}

/* 2. Mobile Touch Target Padding (44px Hitboxes) */
.modal-close,
.social-icon,
#detail-slider-prev,
#detail-slider-next,
.filter-tab-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 3. Asynchronous Shimmering Skeleton Loader */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 360px;
}

.skeleton-img {
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite ease-in-out;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite ease-in-out;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

body.light-theme .skeleton-img,
body.light-theme .skeleton-text {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
}

/* Dynamic Pagination Controls System */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
    user-select: none;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #ffffff !important;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.pagination-btn.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-ellipsis {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 6px;
    font-size: 0.9rem;
}

body.light-theme .pagination-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.light-theme .pagination-btn.active {
    background: var(--primary);
    color: #ffffff !important;
}

/* Collapsible Vault Locker Pet Cards */
.vault-card-item {
    border: 1px solid var(--border-color);
    transition: all 0.25s ease-in-out;
}

.vault-card-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.1);
}

.vault-card-header:hover {
    opacity: 0.95;
}

.vault-card-header:hover h3 {
    color: var(--primary-light) !important;
}

.registry-instructions-box {
    transition: var(--transition-fast);
}

.registry-instructions-box:hover {
    border-color: rgba(20, 184, 166, 0.3) !important;
}

/* ==========================================================================
   Vibrant Multi-Color Accent System & Light Mode Reversal
   ========================================================================== */

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(1),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(45, 212, 191, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(2),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(3),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(4),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(251, 113, 133, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(5),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(6),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(7),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(7) {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(240, 171, 252, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(217, 70, 239, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(8),
body.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(8) {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(253, 224, 71, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(234, 179, 8, 0.3) !important;
}

body.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(9) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-color: rgba(244, 114, 182, 0.45) !important;
    box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.3) !important;
}

/* Light Theme Reversed Multi-Color Accents */
body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(1),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(13, 148, 136, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(13, 148, 136, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(2),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(3),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(245, 158, 11, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(4),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 228, 230, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(244, 63, 94, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(5),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(16, 185, 129, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(6),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(14, 165, 233, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(7),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(7) {
    background: linear-gradient(135deg, rgba(250, 232, 255, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(217, 70, 239, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(217, 70, 239, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(8),
body.light-theme.vibrant-palette-active .checklist-grid .action-checklist-card:nth-child(8) {
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(234, 179, 8, 0.2) !important;
}

body.light-theme.vibrant-palette-active .solution-matrix-grid .problem-solution-card:nth-child(9) {
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.95) 0%, #ffffff 100%) !important;
    border-color: rgba(236, 72, 153, 0.4) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(236, 72, 153, 0.2) !important;
}

/* ==========================================================================
   Responsive Pet Photo Gallery Carousel Component
   ========================================================================== */
.pet-gallery-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    user-select: none;
    touch-action: pan-y;
}

body.light-theme .pet-gallery-carousel {
    background: rgba(241, 245, 249, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Slide viewport — 16:9 responsive container, no fixed pixel height */
.pet-gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Generous height for prominent detail pane */
    min-height: 200px;
    max-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    cursor: grab;
    background: rgba(5, 10, 25, 0.95);
}

.pet-gallery-viewport:active {
    cursor: grabbing;
}

/* Shared rule covers both photo slides and video slides */
.pet-gallery-slide-img,
.pet-gallery-slide-video {
    display: block;
    width: 100%;
    height: 100%;
    /* contain = full pet always visible, no cropping; dark bg = clean letterbox */
    object-fit: contain;
    object-position: center center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    flex-shrink: 0;
    background: rgba(5, 10, 25, 0.95);
}

/* Videos in carousel: autoplay muted, no controls chrome */
.pet-gallery-slide-video {
    object-position: center center;
    pointer-events: none;
}

/* Floating Navigation Arrows */
.pet-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-theme .pet-gallery-nav-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.15);
}

.pet-gallery-nav-btn:hover {
    background: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.pet-gallery-nav-btn.prev {
    left: 10px;
}

.pet-gallery-nav-btn.next {
    right: 10px;
}

/* Top Badge Pill Overlay */
.pet-gallery-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.light-theme .pet-gallery-badge-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

/* Bottom Indicators Bar */
.pet-gallery-dots-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 10;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .pet-gallery-dots-bar {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

.pet-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

body.light-theme .pet-gallery-dot {
    background: rgba(0, 0, 0, 0.3);
}

.pet-gallery-dot.active {
    width: 20px;
    border-radius: 10px;
    background: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* =========================================================================
   PawLife™ Dedicated Pet Social Network & Feed Styling
   ========================================================================= */

.pawlife-story-reel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.75rem 0.5rem 1.25rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.pawlife-story-reel::-webkit-scrollbar {
    height: 6px;
}

.pawlife-story-reel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00f2fe, #0d9488);
    border-radius: 10px;
}

.pawlife-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    width: 86px;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pawlife-story-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.pawlife-story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f2fe, #0d9488, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
    position: relative;
}

.pawlife-story-ring.missing-ring {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.6);
    animation: emergencyPulseRing 1.5s infinite;
}

@keyframes emergencyPulseRing {
    0%, 100% { box-shadow: 0 0 10px rgba(244, 63, 94, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 22px rgba(244, 63, 94, 0.9); transform: scale(1.04); }
}

.pawlife-story-ring.add-ring {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed #00f2fe;
}

.pawlife-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0f172a;
}

.pawlife-story-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 86px;
    line-height: 1.2;
}

/* Filter Bar & Tabs */
.pawlife-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.15rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.pawlife-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pawlife-filter-pill {
    padding: 7px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pawlife-filter-pill:hover,
.pawlife-filter-pill.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(13, 148, 136, 0.3) 100%);
    border-color: #00f2fe;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Immersive Feed Mode Styling */
.pawlife-feed-container.immersive-mode {
    max-width: 680px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

.pawlife-feed-container.immersive-mode .glass-panel {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Universal Icon & Action Button Visibility Engine
   ========================================================================== */

/* FontAwesome Pro Fallback Mappings for Free FontAwesome 6 */
.fa-sparkles:before,
.fa-solid.fa-sparkles:before {
    content: "\e2ca" !important; /* fa-wand-magic-sparkles */
}

.fa-bell-circle-check:before,
.fa-solid.fa-bell-circle-check:before {
    content: "\f0f3" !important; /* fa-bell */
}

/* Guarantee visibility for all icons inside buttons and action elements */
.btn i,
button i,
a.btn i,
.action-btn i,
.filter-tab-btn i,
.aspect-btn i,
.pagination-btn i {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Proper micro-spacing for buttons containing both icon and label */
.btn i:first-child:not(:only-child),
button i:first-child:not(:only-child),
a.btn i:first-child:not(:only-child),
.filter-tab-btn i:first-child:not(:only-child) {
    margin-right: 7px;
}

.btn i:last-child:not(:only-child),
button i:last-child:not(:only-child),
a.btn i:last-child:not(:only-child) {
    margin-left: 7px;
}

/* Theme Toggle Button: High-visibility icon in Dark and Light Modes */
.theme-switch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.theme-switch i {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: var(--primary-light) !important;
    display: block !important;
    visibility: visible !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.theme-switch .fa-sun {
    display: none !important;
}

.theme-switch .fa-moon {
    display: block !important;
}

body.light-theme .theme-switch .fa-sun {
    display: block !important;
    color: #f59e0b !important; /* Radiant Amber Sun */
}

body.light-theme .theme-switch .fa-moon {
    display: none !important;
}

/* Account Vault Avatar Icon Button */
.nav-account-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-account-avatar i {
    font-size: 1.15rem !important;
    color: #10b981 !important;
    display: block !important;
    line-height: 1 !important;
    visibility: visible !important;
}

.nav-account-avatar:hover i {
    color: #ffffff !important;
}

body.light-theme .nav-account-avatar i {
    color: #0f766e !important;
}

body.light-theme .nav-account-avatar:hover i {
    color: #ffffff !important;
}

/* Slider Track Navigation Buttons (Prev / Next Chevron Circles) */
.slider-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary-light) !important;
    cursor: pointer !important;
}

.slider-btn i {
    font-size: 1.2rem !important;
    color: var(--primary-light) !important;
    display: block !important;
    line-height: 1 !important;
    visibility: visible !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.slider-btn:hover i {
    color: #ffffff !important;
    transform: scale(1.15) !important;
}

/* Modal Close "X" Buttons */
.modal-close,
.modal-close-btn,
button.close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.modal-close i,
.modal-close-btn i,
button.close i {
    font-size: 1.2rem !important;
    display: block !important;
    line-height: 1 !important;
    visibility: visible !important;
    color: var(--text-muted) !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.modal-close:hover i,
.modal-close-btn:hover i,
button.close:hover i {
    color: var(--text-main) !important;
    transform: scale(1.1) !important;
}

/* Search Box Magnifying Glass Icon */
.search-box-wrapper i {
    font-size: 1rem !important;
    color: var(--primary-light) !important;
    display: block !important;
    visibility: visible !important;
}

body.light-theme .search-box-wrapper i {
    color: var(--primary) !important;
}

/* Social Icon Buttons (Footer & Cards) */
.social-icon i {
    font-size: 1.15rem !important;
    display: inline-block !important;
    line-height: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

/* Pet Card Action Buttons (Dossier, Contact, Flyer, Pawz Up) */
.pet-card-actions .btn i {
    font-size: 0.85rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin-right: 5px !important;
    visibility: visible !important;
}

/* Scroll To Top Action Widget */
.scroll-to-top-widget {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scroll-to-top-widget svg {
    display: block !important;
    visibility: visible !important;
}

/* ==========================================================================
   Universal Pet Card Selection, Animation & Section-Specific Formats
   ========================================================================== */

/* Selected Active Card State */
.pet-card.selected-active,
.slider-card.selected-active,
.vault-card-item.selected-active,
.pawlife-card.selected-active {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.35) !important;
    z-index: 20 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Returning Smooth Scroll Breathing Highlight */
@keyframes returnCardBreathingGlow {
    0% {
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.8), 0 15px 40px rgba(20, 184, 166, 0.5);
        transform: translateY(-6px) scale(1.02);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.9), 0 20px 50px rgba(245, 158, 11, 0.6);
        transform: translateY(-8px) scale(1.025);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.6), 0 15px 35px rgba(20, 184, 166, 0.4);
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        box-shadow: 0 8px 32px 0 var(--shadow);
        transform: translateY(0) scale(1);
    }
}

.card-return-highlight {
    animation: returnCardBreathingGlow 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    border-color: var(--accent) !important;
}

/* --- Section 1: Recent Community Alerts Card Styling --- */
.slider-card.alert-card {
    position: relative;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    border-radius: 18px;
}

.slider-card.alert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.2), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.alert-urgency-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #fef08a;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.alert-urgency-pill .urgency-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--rose);
    animation: pulseGlow 1.5s infinite;
}

/* --- Section 2: PawLife™ Dedicated Pet Social Card Styling --- */
.pawlife-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pawlife-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 18px 42px rgba(0, 242, 254, 0.22), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pawlife-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pawlife-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.pawlife-card:hover .pawlife-avatar-wrap img {
    transform: scale(1.08) rotate(3deg);
}

.pawlife-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--emerald);
    border: 2.5px solid #0f172a;
    box-shadow: 0 0 8px var(--emerald);
}

/* Floating Paw / Heart Reaction Animation */
@keyframes pawzUpFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-24px) scale(1.35) rotate(-6deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-48px) scale(1.6) rotate(12deg);
    }
}

.floating-paw-heart {
    position: absolute;
    pointer-events: none;
    animation: pawzUpFloat 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    color: var(--rose);
    font-size: 1.3rem;
    z-index: 100;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
}

/* --- Section 3: Official Pet Registry Vault Card Styling --- */
.vault-card-item {
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(13, 148, 136, 0.05) 100%);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.vault-card-item:hover {
    border-color: var(--emerald);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.22);
}

/* 3D Infinity Mirror Labels & Frames */
.mirror-frame {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.mirror-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.35);
}

/* --- Section 4: Pet Neighbors Card Styling --- */
.pet-card.neighbor-card {
    border-radius: 18px;
    border: 1px solid rgba(20, 184, 166, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 184, 166, 0.03) 100%);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.pet-card.neighbor-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 36px rgba(20, 184, 166, 0.25);
}

.walking-status-pill {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gps-sync-pill {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Detailed / Main View Master Dashboard Modal Styling --- */
@keyframes dashboardModalSpringIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(24px);
    }
    60% {
        opacity: 1;
        transform: scale(1.01) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#petMainContentDashboardModal .glass-panel {
    animation: dashboardModalSpringIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-color: rgba(20, 184, 166, 0.35);
}

/* Dashboard Contextual Tab Navigation Bar */
.dashboard-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.95);
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0 !important;
    min-height: 54px !important;
    box-sizing: border-box;
    width: 100%;
}

.dashboard-tabs-bar::-webkit-scrollbar {
    display: none;
}

.dashboard-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0 !important;
    height: 38px !important;
    box-sizing: border-box;
}

.dashboard-tab-btn i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.dashboard-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-tab-btn:hover i {
    transform: scale(1.15);
}

.dashboard-tab-btn.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.35) 0%, rgba(2, 132, 199, 0.25) 100%);
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25);
}

.dashboard-tab-btn.active i {
    color: var(--accent);
}

/* Dashboard Tab Pane */
.dashboard-tab-pane {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeIn 0.3s ease;
}

.dashboard-tab-pane.active {
    display: flex;
}

/* ==========================================================================
   PawLife™ Social Network Card System: Carousels, Pack Buddies & Micro-Reactions
   ========================================================================== */

.pawlife-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.pawlife-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.35);
}

/* Media Carousel Stage */
.pawlife-media-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #090e1a;
    user-select: none;
}

.pawlife-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.pawlife-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pawlife-carousel-slide img,
.pawlife-carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pawlife-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 6;
    pointer-events: none;
}

.pawlife-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.24s ease;
}

.pawlife-carousel-dot.active {
    width: 18px;
    border-radius: 10px;
    background: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
}

.pawlife-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    cursor: pointer;
    z-index: 7;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.pawlife-media-carousel:hover .pawlife-carousel-btn {
    opacity: 1;
}

.pawlife-carousel-btn:hover {
    background: rgba(6, 182, 212, 0.85);
    border-color: #00f2fe;
    transform: translateY(-50%) scale(1.1);
}

.pawlife-carousel-btn.prev {
    left: 10px;
}

.pawlife-carousel-btn.next {
    right: 10px;
}

/* Double Tap Heart / Paw Burst */
@keyframes doubleTapPawBurst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
        opacity: 0;
    }
    45% {
        transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -65%) scale(1.4) rotate(10deg);
        opacity: 0;
    }
}

.double-tap-paw-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #00f2fe;
    font-size: 3.6rem;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.85));
    pointer-events: none;
    z-index: 10;
    animation: doubleTapPawBurst 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pack Buddy Friendship Action */
.btn-pack-buddy {
    transition: all 0.22s ease !important;
    border: 1px solid rgba(0, 242, 254, 0.35) !important;
    background: rgba(0, 242, 254, 0.08) !important;
    color: #00f2fe !important;
    font-weight: 700 !important;
}

.btn-pack-buddy:hover {
    background: rgba(0, 242, 254, 0.18) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25) !important;
}

.btn-pack-buddy.in-pack {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.3) 100%) !important;
    border-color: #10b981 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.32) !important;
}

/* Quick Playdate Reaction Chips */
.pawlife-quick-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 0 2px 0;
}

.pawlife-quick-chips::-webkit-scrollbar {
    display: none;
}

.pawlife-quick-chip {
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pawlife-quick-chip:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   5-Mile Spatial Search Grid & Quadrant Radar System
   ========================================================================== */

/* Map Control & Radius Switcher Pills */
.map-ctrl-pill,
.map-radius-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.map-ctrl-pill:hover,
.map-radius-pill:hover {
    background: rgba(20, 184, 166, 0.15);
    color: #fff;
    border-color: rgba(20, 184, 166, 0.4);
}

.map-ctrl-pill.active,
.map-radius-pill.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3) 0%, rgba(6, 182, 212, 0.35) 100%);
    border-color: #00f2fe;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Leaflet Container & Dark Mode Overrides */
#leaflet-search-grid-map {
    border-radius: 12px;
    background: #090d16 !important;
    font-family: inherit;
}

.leaflet-container {
    background: #090d16 !important;
    color: #f1f5f9 !important;
    font-family: inherit !important;
}

.leaflet-bar a {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #00f2fe !important;
    backdrop-filter: blur(8px);
}

.leaflet-bar a:hover {
    background-color: rgba(20, 184, 166, 0.3) !important;
    color: #fff !important;
}

/* Custom Glassmorphic Leaflet Popups */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(20, 184, 166, 0.45) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7) !important;
    padding: 0 !important;
    color: #fff !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(20, 184, 166, 0.45) !important;
}

.leaflet-popup-content {
    margin: 14px !important;
    line-height: 1.4 !important;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    color: var(--text-muted) !important;
    font-size: 16px !important;
    padding: 4px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #fff !important;
}

/* Custom Pulsing Radar Marker Pins */
.custom-radar-pin {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.radar-ping {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    animation: radarPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.radar-ping.lost {
    background: rgba(244, 63, 94, 0.4);
    border: 1px solid var(--rose);
}

.radar-ping.sighting {
    background: rgba(245, 158, 11, 0.4);
    border: 1px solid var(--accent);
}

.radar-ping.volunteer {
    background: rgba(16, 185, 129, 0.4);
    border: 1px solid var(--emerald);
}

.radar-pin-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform 0.2s ease;
}

.custom-radar-pin:hover .radar-pin-thumb {
    transform: scale(1.15);
    border-color: #00f2fe;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Operational Quadrant Cards */
.quadrant-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.quadrant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.22s ease;
}

.quadrant-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.quadrant-card.active-selected {
    border-color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.08) !important;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.2) !important;
}

.quadrant-card.urgent::before {
    background: var(--rose);
}
.quadrant-card.urgent:hover,
.quadrant-card.urgent.active-selected {
    border-color: var(--rose);
}

.quadrant-card.clear::before,
#quadrant-card-NE::before {
    background: var(--emerald);
}

.quadrant-card.active-patrol::before,
#quadrant-card-SE::before {
    background: var(--accent);
}

.quadrant-card.standby::before,
#quadrant-card-SW::before {
    background: #00f2fe;
}

.quadrant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quadrant-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.quadrant-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.quadrant-badge.clear {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
}

.quadrant-badge.urgent {
    background: rgba(244, 63, 94, 0.25);
    color: var(--rose);
    animation: urgentBlink 1.5s infinite;
}

.quadrant-badge.patrol {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.quadrant-badge.standby {
    background: rgba(6, 182, 212, 0.2);
    color: #00f2fe;
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.quadrant-metric {
    font-size: 0.78rem;
    color: var(--text-main);
}

.quadrant-metric strong {
    color: #00f2fe;
    font-size: 0.9rem;
}

.quadrant-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   PawLife™ Adventure Upload Pipeline & Creation Studio
   ========================================================================== */

.adventure-preset-btn {
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.08);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.adventure-preset-btn:hover {
    background: rgba(0, 242, 254, 0.22);
    border-color: #00f2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

.adventure-dropzone {
    border: 2px dashed rgba(0, 242, 254, 0.4);
    border-radius: 14px;
    padding: 24px 16px;
    background: rgba(0, 242, 254, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.adventure-dropzone:hover {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.06);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.compression-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    animation: compressPillPulse 2s infinite ease-in-out;
}

@keyframes compressPillPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
}

.adventure-tone-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.adventure-tone-pill:hover {
    background: rgba(20, 184, 166, 0.15);
    color: #fff;
    border-color: rgba(20, 184, 166, 0.4);
}

.adventure-tone-pill.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3) 0%, rgba(6, 182, 212, 0.35) 100%);
    border-color: #00f2fe;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.mood-hashtag-chip {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mood-hashtag-chip:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   FEATURE #5: 🎓 AI PET BEHAVIORAL TRAINER & VIDEO COACH (PAWZ ACADEMY™)
   ========================================================================== */

.trainer-new-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    margin-left: 6px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Academy Header Banner */
.trainer-academy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 184, 166, 0.12) 100%);
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.trainer-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.trainer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.trainer-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.trainer-main-heading {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.trainer-subtitle {
    margin: 6px 0 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.45;
}

/* KPI Scorecards */
.trainer-kpis {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trainer-kpi-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trainer-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.4);
}

.trainer-kpi-val {
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.01em;
}

.trainer-kpi-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sub-Navigation Bar */
.trainer-subnav-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.trainer-subnav-bar::-webkit-scrollbar {
    display: none;
}

.trainer-subnav-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.trainer-subnav-btn:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.35);
    color: #fff;
}

.trainer-subnav-btn.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28) 0%, rgba(6, 182, 212, 0.32) 100%);
    border-color: #00f2fe;
    color: #fff;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

/* Drill Presets Bar */
.trainer-drill-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.trainer-drill-selector-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.trainer-drill-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trainer-drill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.trainer-drill-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.35);
    color: #fff;
}

.trainer-drill-btn.active {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

/* Video Coach Layout */
.trainer-video-coach-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .trainer-video-coach-layout {
        grid-template-columns: 1fr;
    }
}

.trainer-video-player-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trainer-video-screen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.trainer-video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screen Overlay HUD */
.trainer-screen-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, transparent 40%, transparent 60%, rgba(15, 23, 42, 0.85) 100%);
}

.trainer-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trainer-hud-badge {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.trainer-hud-step {
    background: rgba(20, 184, 166, 0.25);
    border: 1px solid var(--accent);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.trainer-hud-bottom {
    display: flex;
    justify-content: center;
}

.trainer-hud-prompt {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(20, 184, 166, 0.4);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Timeline & Steps */
.trainer-coaching-steps-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
}

.trainer-card-title {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trainer-steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trainer-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.trainer-step-item.active {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.35);
}

.trainer-step-num {
    background: rgba(20, 184, 166, 0.2);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trainer-step-content strong {
    font-size: 0.8rem;
    color: #fff;
    display: block;
}

.trainer-step-content p {
    margin: 2px 0 0 0;
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Tactile Clicker Tool */
.trainer-hardware-console {
    display: flex;
    flex-direction: column;
}

.trainer-tool-card {
    padding: 1.25rem;
    border-radius: 14px;
}

.trainer-tool-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.trainer-pill-green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}

.trainer-clicker-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.trainer-tactile-clicker {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e293b 0%, #0f172a 80%);
    border: 3px solid rgba(20, 184, 166, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -4px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.15s ease;
}

.trainer-tactile-clicker:active,
.trainer-tactile-clicker.clicked {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), inset 0 4px 10px rgba(0, 0, 0, 0.7);
    border-color: #00f2fe;
}

.clicker-inner-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    pointer-events: none;
}

.clicker-inner-circle i {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6));
}

.clicker-inner-circle span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.clicker-shockwave {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #00f2fe;
    opacity: 0;
    pointer-events: none;
}

.clicker-shockwave.animate {
    animation: clickerRipple 0.5s ease-out forwards;
}

@keyframes clickerRipple {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Marker Timing Latency Meter */
.trainer-timing-gauge-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.trainer-meter-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.trainer-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

/* Whistle Controls */
.trainer-whistle-freq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}

.trainer-freq-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.trainer-freq-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff;
}

.trainer-freq-pill.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Gemini Diagnostic Pane */
.trainer-diagnostic-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .trainer-diagnostic-container {
        grid-template-columns: 1fr;
    }
}

.trainer-intake-panel, .trainer-protocol-display {
    padding: 1.5rem;
    border-radius: 16px;
}

.trainer-panel-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trainer-preset-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trainer-preset-chip {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.28);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.trainer-preset-chip:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--accent);
    color: #fff;
}

.trainer-severity-pills {
    display: flex;
    gap: 8px;
}

.trainer-sev-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
}

.trainer-sev-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.trainer-sev-pill.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fde68a;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Protocol Output Card */
.trainer-protocol-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 380px;
}

.trainer-proto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.trainer-proto-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.trainer-proto-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.trainer-proto-actions {
    display: flex;
    gap: 6px;
}

.trainer-proto-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
}

.trainer-phase-card {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.trainer-phase-num {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    height: fit-content;
    white-space: nowrap;
}

/* Vision Stress Lab */
.trainer-vision-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .trainer-vision-layout {
        grid-template-columns: 1fr;
    }
}

.trainer-vision-viewport-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trainer-vision-samples-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trainer-sample-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.trainer-sample-btn:hover {
    background: rgba(20, 184, 166, 0.15);
    color: #fff;
}

.trainer-sample-btn.active {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

.trainer-vision-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090d16;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

#trainerVisionCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.trainer-vision-telemetry {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.telemetry-badge {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid #f43f5e;
    color: #f43f5e;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.telemetry-fps {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.trainer-vision-metrics-panel {
    padding: 1.25rem;
    border-radius: 14px;
}

.trainer-stress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.trainer-stress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease, background 0.4s ease;
}

.trainer-posture-traits-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.posture-trait-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 0.76rem;
}

.posture-trait-label {
    color: var(--text-muted);
}

.posture-trait-val {
    color: #fff;
    font-weight: 600;
}

.trainer-coach-tip-box {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
}

/* Badges & Training Log */
.trainer-badges-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .trainer-badges-layout {
        grid-template-columns: 1fr;
    }
}

.trainer-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.trainer-mastery-badge {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.trainer-mastery-badge.unlocked {
    opacity: 1;
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(245, 158, 11, 0.08) 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.badge-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.badge-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.badge-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 4px 0 8px 0;
    line-height: 1.3;
}

.badge-status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.trainer-mastery-badge:not(.unlocked) .badge-status-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

.trainer-log-table-wrapper {
    overflow-x: auto;
}

.trainer-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    text-align: left;
}

.trainer-log-table th {
    padding: 8px 10px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.trainer-log-table td {
    padding: 8px 10px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   FEATURE #6: 🏥 DIRECT CONNECT ENTERPRISE PARTNERSHIP NETWORK
   ========================================================================== */

/* Enterprise Banner Header */
.enterprise-network-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(56, 189, 248, 0.12) 50%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.enterprise-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.enterprise-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.enterprise-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.enterprise-main-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.enterprise-subtitle {
    margin: 6px 0 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.45;
}

/* KPI Indicators */
.enterprise-kpi-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.enterprise-kpi-item {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
    backdrop-filter: blur(10px);
}

.enterprise-kpi-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.enterprise-kpi-label {
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Filter Controls Bar */
.enterprise-filter-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.enterprise-type-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ent-type-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.ent-type-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff;
}

.ent-type-pill.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.enterprise-search-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Main Layout: Directory + Live Feed */
.enterprise-main-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .enterprise-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Facilities Cards Grid */
.enterprise-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.enterprise-facility-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.enterprise-facility-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.facility-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.facility-type-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.facility-type-badge.emergency {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}

.facility-type-badge.shelter {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.facility-type-badge.clinic {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.facility-type-badge.mobile {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.facility-distance-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
}

.facility-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 4px 0;
    line-height: 1.3;
}

.facility-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 0.75rem;
}

.facility-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.facility-status-dot.emergency {
    background: #f43f5e;
    box-shadow: 0 0 6px #f43f5e;
}

.facility-address-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 4px 0 10px 0;
    line-height: 1.4;
}

.facility-caps-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.facility-caps-chip {
    font-size: 0.66rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
}

.facility-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.facility-dispatch-btn {
    flex: 1;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Municipal Shelter Live Intake Feed */
.enterprise-intake-feed-box {
    padding: 1.25rem;
    border-radius: 16px;
}

.intake-feed-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.intake-live-pill {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #f43f5e;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shelter-intake-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 4px;
}

.shelter-intake-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
}

.shelter-intake-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(20, 184, 166, 0.3);
}

.intake-pet-avatar {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.intake-card-info {
    flex: 1;
    min-width: 0;
}

.intake-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.intake-pet-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intake-match-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.intake-match-badge.high {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fde68a;
}

.intake-match-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
}

.intake-shelter-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 2px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.intake-action-row {
    display: flex;
    gap: 6px;
}

.shelter-intake-footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ==========================================================================
   FEATURE #4: STRIPE VIP SUBSCRIPTION & PROFIT TIER MONETIZATION ENGINE
   ========================================================================== */

.billing-frequency-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px;
    margin: 8px auto 14px auto;
    width: fit-content;
    gap: 6px;
}

.billing-freq-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.billing-freq-btn:hover {
    color: #fff;
}

.billing-freq-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%);
    color: #0f172a;
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.4);
}

.annual-badge-glow {
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    animation: pulse 1.8s infinite;
}

.tier-card-vip {
    border: 1px solid rgba(236, 72, 153, 0.45) !important;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    position: relative;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.15);
    transition: all 0.3s ease;
}

.tier-card-vip:hover {
    border-color: rgba(236, 72, 153, 0.8) !important;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.tier-super-pass-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(236, 72, 153, 0.18) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 8px 0;
    font-size: 0.72rem;
    color: #fde68a;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-super-pass-banner i {
    font-size: 1.1rem;
    color: #fbbf24;
}

.billing-addon-card {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.billing-addon-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(30, 41, 59, 0.7);
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-main);
    user-select: none;
}

.addon-custom-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.hardware-teaser-banner {
    background: radial-gradient(circle at 10% 50%, rgba(255, 45, 117, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 45, 117, 0.35);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hardware-teaser-banner:hover {
    border-color: rgba(255, 45, 117, 0.7);
    box-shadow: 0 0 24px rgba(255, 45, 117, 0.25);
    transform: translateY(-1px);
}

.hardware-logo-icon-pulse {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 45, 117, 0.6));
    animation: heartPulse 2.4s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 45, 117, 0.5)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(255, 45, 117, 0.8)); }
}

/* Gold PRO Guardian Shield Badge */
.pro-guardian-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
    text-transform: uppercase;
}

.nav-account-avatar.vip-active {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.6) !important;
    position: relative;
}

.nav-account-avatar.vip-active::after {
    content: "👑";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    filter: drop-shadow(0 0 6px #f59e0b);
}

/* ==========================================================================
   COMPREHENSIVE LIGHT MODE LUXURY DESIGN OVERRIDES (WCAG AAA + APPLE FROSTED GLASS)
   ========================================================================== */

/* Hero Section & Showcase */
body.light-theme .stat-lbl {
    color: #334155;
    font-weight: 700;
}

body.light-theme .hero-floating-badge {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.12), inset 0 1px 0 #ffffff;
    color: #090d16;
}

body.light-theme .hero-floating-badge strong {
    color: #090d16;
}

body.light-theme .hero-floating-badge p {
    color: #475569 !important;
}

body.light-theme .hero-card-overlay {
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.7) 65%, transparent 100%);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Community Feed & Slider Pet Cards */
body.light-theme .pet-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 #ffffff;
}

body.light-theme .pet-card:hover {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 16px 36px -8px rgba(13, 148, 136, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .pet-name {
    color: #090d16;
}

body.light-theme .pet-breed {
    background: #f1f5f9;
    color: #0f766e !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .pet-desc {
    color: #334155;
}

body.light-theme .pet-location,
body.light-theme .pet-time {
    color: #475569;
}

body.light-theme .pet-caution-box {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: #be123c;
}

body.light-theme .pet-tip-box {
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: #0f766e;
}

body.light-theme .pet-quirk-box {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
}

/* AI Pet Command Center */
body.light-theme .chat-container {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
}

body.light-theme .chat-header {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .chat-title-info h4 {
    color: #090d16;
}

body.light-theme .chat-bubble.bot {
    background-color: #f1f5f9;
    color: #090d16;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .chat-input-area {
    background-color: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .chat-user-input,
body.light-theme .chat-input-box {
    background-color: #ffffff;
    color: #090d16;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

body.light-theme .chat-shortcut-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

body.light-theme .chat-shortcut-card:hover {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

body.light-theme .chat-shortcut-card h5 {
    color: #0f766e;
}

body.light-theme .chat-shortcut-card p {
    color: #334155;
}

/* PawLife™ Social Experience */
body.light-theme .pawlife-quick-chip {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #334155;
}

body.light-theme .pawlife-quick-chip:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.45);
    color: #0f766e;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

body.light-theme .pawlife-daily-adv-box {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: inset 0 1px 0 #ffffff;
}

body.light-theme .pawlife-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.light-theme .pawlife-card:hover {
    box-shadow: 0 16px 40px -8px rgba(13, 148, 136, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Enterprise Vet & Shelter Network */
body.light-theme .enterprise-network-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 242, 254, 0.65) 50%, rgba(209, 250, 229, 0.55) 100%);
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 14px 38px -8px rgba(14, 165, 233, 0.12), inset 0 1px 0 #ffffff;
}

body.light-theme .enterprise-main-title {
    color: #090d16;
}

body.light-theme .enterprise-subtitle {
    color: #334155;
}

body.light-theme .enterprise-kpi-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.light-theme .enterprise-kpi-num {
    color: #090d16;
}

body.light-theme .enterprise-kpi-label {
    color: #475569;
    font-weight: 700;
}

body.light-theme .enterprise-filter-controls-bar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.light-theme .ent-type-pill {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #334155;
}

body.light-theme .ent-type-pill:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    color: #0284c7;
}

body.light-theme .ent-type-pill.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

body.light-theme .enterprise-facility-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 #ffffff;
}

body.light-theme .enterprise-facility-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 16px 36px -8px rgba(14, 165, 233, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .facility-name {
    color: #090d16;
}

body.light-theme .facility-address-text {
    color: #334155;
}

body.light-theme .facility-caps-chip {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.09);
    color: #475569;
}

body.light-theme .shelter-intake-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .shelter-intake-card:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.08);
}

body.light-theme .intake-pet-title {
    color: #090d16;
}

body.light-theme .shelter-intake-footer-note {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
}





