/* Base styles */
:root {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --bg-cream: #FFF8E1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
}

body {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #ffffff 100%);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.cookie-modal-open {
    overflow: hidden;
}

.navbar.sticky-top {
    z-index: 1080;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
}

.navbar .dropdown-menu {
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.14);
}

.navbar .dropdown-item {
    border-radius: 12px;
    padding: 0.6rem 1rem;
}

.navbar .dropdown-item:focus,
.navbar .dropdown-item:hover {
    background-color: rgba(76, 175, 80, 0.12);
    color: var(--primary-green);
}

.page-wrapper {
    flex: 1 0 auto;
    padding-bottom: 4rem;
}

.page-hero {
    background: linear-gradient(120deg, rgba(76, 175, 80, 0.95), rgba(255, 152, 0, 0.9));
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 40% 60% 50% 70%;
    transform: rotate(25deg);
    pointer-events: none;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 55% 45% 60% 40%;
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 640px;
}

.content-section {
    padding: 4rem 0;
}

.section-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 40px rgba(44, 62, 80, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 56px rgba(44, 62, 80, 0.18);
}

.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.accent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-green);
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.faq-item {
    border-radius: 16px;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.08);
}

.faq-item + .faq-item {
    margin-top: 1.5rem;
}

.legal-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 36px rgba(44, 62, 80, 0.12);
}

.contact-card .form-control,
.contact-card .form-select,
.contact-card textarea {
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.15);
    padding: 0.9rem 1.2rem;
}

.contact-card .form-control:focus,
.contact-card textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.15);
}

.footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--text-dark), #1c2833);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer h5,
.footer h6 {
    color: #ffffff;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    margin-right: 0.5rem;
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.cookie-consent-root {
    position: relative;
    z-index: 1085;
}

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    width: min(940px, calc(100% - 2rem));
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.97), rgba(46, 125, 50, 0.97));
    color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(44, 62, 80, 0.35);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
}

.cookie-consent-content {
    display: flex;
    gap: 1.25rem;
}

.cookie-consent-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.cookie-consent-text h2 {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-consent-links .cookie-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
}

.cookie-preferences-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 19, 26, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cookie-preferences-dialog {
    background: #ffffff;
    border-radius: 28px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 28px 60px rgba(44, 62, 80, 0.25);
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 720px);
}

.cookie-preferences-header {
    padding: 1.75rem 2rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-preferences-header h2 {
    margin-bottom: 0.35rem;
    font-size: 1.6rem;
}

.cookie-preferences-body {
    padding: 0 2rem 1.5rem;
    overflow-y: auto;
}

.cookie-preference-item {
    border: 1px solid rgba(76, 175, 80, 0.18);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    background: rgba(76, 175, 80, 0.05);
    margin-bottom: 1rem;
}

.cookie-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.cookie-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 152, 0, 0.12);
    color: #b36b00;
    margin-top: 1rem;
}

.cookie-preferences-footer {
    padding: 1.25rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-preferences-footer .btn {
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 1rem;
        border-radius: 22px;
        padding: 1.5rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 100%;
    }

    .cookie-preferences-dialog {
        border-radius: 22px;
    }

    .cookie-preferences-header,
    .cookie-preferences-body,
    .cookie-preferences-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Header styles */
/* Custom variables for consistent styling */
:root {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --bg-cream: #FFF8E1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
}

/* Enhanced navbar styling */
.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-orange));
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-green) !important;
    transform: translateY(-1px);
}

/* Dropdown enhancements */
.dropdown-menu {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    animation: dropdownSlide 0.2s ease-out;
}

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

.dropdown-item {
    border-radius: 8px;
    margin: 2px 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    transform: translateX(5px);
}

/* Notification badges */
.nav-profile .dropdown-toggle {
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    color: inherit;
}

.nav-profile .dropdown-toggle:focus {
    box-shadow: none;
}

.nav-profile {
    position: relative;
}

.nav-profile .dropdown-menu {
    min-width: 18rem;
    max-width: min(92vw, 22rem);
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    right: 0;
    left: auto;
    top: calc(100% + 0.25rem);
    bottom: auto;
    transform: none !important;
    max-height: min(calc(100vh - 6rem), 26rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1100;
}

.nav-profile .dropdown-menu[data-user-menu-fixed="true"] {
    margin-top: 0;
    top: auto;
    bottom: auto;
    left: auto;
}

@supports (height: 100dvh) {
    .nav-profile .dropdown-menu {
        max-height: min(calc(100dvh - 6rem), 26rem);
    }
}

.nav-profile .dropdown-menu.user-menu-scrollable {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.nav-profile .dropdown-menu.user-menu-scrollable::-webkit-scrollbar {
    width: 6px;
}

.nav-profile .dropdown-menu.user-menu-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(44, 62, 80, 0.2);
    border-radius: 999px;
}

.badge {
    animation: pulse 2s infinite;
}

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

/* Mobile optimizations */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        color: white;
        padding-left: 2rem;
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-profile .dropdown-menu {
        position: static;
        top: auto;
        right: auto;
        left: 0;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(12px);
    }
}

/* Flash messages styling */
.flash-messages-container {
    max-width: 350px;
}

.alert {
    border-radius: 15px;
    border: none;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sticky navbar enhancement */
.sticky-top {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Page-specific styles */
/* index.php */
body.page-home {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --bg-cream: #FFF8E1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #ffffff 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

body.page-home * {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero-section {
background: linear-gradient(rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1)),
url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="paw-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="8" fill="%234CAF50" opacity="0.1"/><circle cx="80" cy="40" r="6" fill="%238BC34A" opacity="0.1"/><circle cx="50" cy="80" r="10" fill="%23FF9800" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23paw-pattern)"/></svg>');
padding: clamp(3rem, 6vw, 5rem) 0;
position: relative;
display: flex;
align-items: center;
animation: fadeIn 1s ease-in;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 90vh;
    }
}

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

.floating-pets {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}

.pet-icon {
position: absolute;
font-size: 2rem;
animation: float 6s ease-in-out infinite;
opacity: 0.7;
}

.pet-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; color: var(--primary-green); }
.pet-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; color: var(--accent-orange); }
.pet-icon:nth-child(3) { top: 30%; right: 25%; animation-delay: 4s; color: var(--light-green); }
.pet-icon:nth-child(4) { top: 70%; left: 20%; animation-delay: 1s; color: var(--dark-green); }
.pet-icon:nth-child(5) { top: 40%; left: 60%; animation-delay: 3s; color: var(--light-orange); }

@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
25% { transform: translateY(-20px) rotate(5deg); }
50% { transform: translateY(-10px) rotate(-3deg); }
75% { transform: translateY(-15px) rotate(3deg); }
}

.hero-title {
font-size: clamp(2.4rem, 4vw, 3.3rem);
font-weight: 700;
background: linear-gradient(45deg, var(--primary-green), var(--accent-orange));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1.5rem;
animation: slideInLeft 1s ease-out;
}

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

.hero-subtitle {
font-size: clamp(1.05rem, 2.2vw, 1.25rem);
color: var(--text-light);
margin-bottom: 1.5rem;
animation: slideInRight 1s ease-out 0.3s both;
}

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

.hero-benefits {
display: grid;
gap: 0.75rem;
margin: 0;
padding: 0;
}

.hero-benefits li {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 500;
color: var(--text-dark);
background: rgba(255, 255, 255, 0.9);
border-radius: 16px;
padding: 0.65rem 0.9rem;
box-shadow: 0 14px 30px rgba(44, 62, 80, 0.14);
}

.hero-benefits li i {
color: var(--primary-green);
font-size: 1.15rem;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    animation: slideUp 1s ease-out 0.6s both;
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.hero-text-block {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-text-block .hero-benefits {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.search-card-grid {
    --search-card-gap: clamp(1rem, 2vw, 1.5rem);
    row-gap: var(--search-card-gap) !important;
}

.search-step-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.search-card-header {
    margin-bottom: 1.5rem;
}

.search-card-lead {
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-control, .form-select {
border-radius: 15px;
border: 2px solid #e9ecef;
padding: 12px 20px;
transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
border-color: var(--primary-green);
box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-primary {
background: linear-gradient(45deg, var(--primary-green), var(--light-green));
border: none;
border-radius: 15px;
padding: 12px 30px;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}

.btn-primary:hover::before {
left: 100%;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.step-header--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-badge {
width: 40px;
height: 40px;
border-radius: 50%;
display: grid;
place-items: center;
background: linear-gradient(135deg, var(--primary-green), var(--light-green));
color: #ffffff;
font-weight: 600;
font-size: 1.05rem;
box-shadow: 0 12px 28px rgba(76, 175, 80, 0.2);
}

.step-title {
display: block;
font-weight: 600;
font-size: 1.02rem;
color: var(--text-dark);
}

.step-subtitle {
display: block;
color: var(--text-light);
font-size: 0.88rem;
margin-top: 0.15rem;
}

.option-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.option-grid--icon-only {
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.service-option-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .service-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .service-option-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-option-grid .option-pill,
    .service-option-grid .option-content {
        height: 100%;
    }
}

.option-pill {
    position: relative;
    display: block;
}

.option-pill input[type="radio"],
.option-pill input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    border: 2px solid rgba(76, 175, 80, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 84px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.option-pill--icon-only .option-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    min-height: 86px;
    padding: 0.75rem;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-green);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.option-pill--icon-only .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.65rem;
}

.option-label {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.pet-type-grid-wrapper {
    display: grid;
    gap: 0.5rem;
}

.pet-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.pet-type-grid .option-label {
    color: var(--primary-green);
}

.pet-type-hint {
    text-align: center;
    margin-top: 0.25rem;
}

.option-pill--icon-only::after,
.option-pill--icon-only::before {
    position: absolute;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.option-pill--icon-only::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 12px);
    background: rgba(33, 33, 33, 0.92);
    color: #ffffff;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    max-width: min(240px, 80vw);
    text-align: center;
    white-space: normal;
}

.option-pill--icon-only::before {
    content: '';
    bottom: calc(100% + 4px);
    border: 6px solid transparent;
    border-top-color: rgba(33, 33, 33, 0.92);
}

.option-pill--icon-only:hover::after,
.option-pill--icon-only:focus-within::after,
.option-pill--icon-only:hover::before,
.option-pill--icon-only:focus-within::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.option-title {
display: block;
font-weight: 600;
color: var(--text-dark);
font-size: 1rem;
}

.option-subtitle {
display: block;
color: var(--text-light);
font-size: 0.9rem;
margin-top: 0.35rem;
line-height: 1.35;
}

.option-pill:hover .option-content {
border-color: var(--primary-green);
box-shadow: 0 18px 36px rgba(76, 175, 80, 0.2);
transform: translateY(-2px);
}

.option-pill:focus-within .option-content {
box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.option-pill input[type="radio"]:checked + .option-content,
.option-pill input[type="checkbox"]:checked + .option-content {
border-color: var(--accent-orange);
box-shadow: 0 20px 40px rgba(255, 152, 0, 0.22);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 231, 0.92));
}

.option-pill input[type="radio"]:checked + .option-content .option-icon,
.option-pill input[type="checkbox"]:checked + .option-content .option-icon {
background: linear-gradient(135deg, var(--primary-green), var(--light-green));
color: #ffffff;
}

.option-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.35;
}

.service-option .option-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    min-height: 140px;
    padding: 1.1rem 1.25rem;
}

.service-option .option-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.85rem;
    background: rgba(76, 175, 80, 0.15);
}

.service-option .option-title {
    font-size: 1.05rem;
}

.service-option .option-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted, var(--text-light));
}

.service-detail {
    margin-top: 1rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 1.15rem 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-dark);
}

.service-detail h4 {
    margin-bottom: 0.4rem;
}

.service-detail-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-detail-text {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.45;
}

.service-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--primary-green);
    box-shadow: 0 14px 32px rgba(76, 175, 80, 0.24);
}

.service-detail-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Footer */
.footer {
background: var(--text-dark);
color: white;
padding: 3rem 0 1rem;
}

.footer-section h5 {
color: var(--light-green);
margin-bottom: 1.5rem;
font-weight: 600;
}

.footer-section a {
color: #bdc3c7;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-section a:hover {
color: var(--light-green);
}

.footer-bottom {
border-top: 1px solid #34495e;
padding-top: 2rem;
margin-top: 2rem;
text-align: center;
color: #95a5a6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .step-header {
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .step-badge {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .service-option-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.85rem;
    }

    .service-option .option-content {
        min-height: 120px;
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 576px) {
    .pet-type-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(72px, 1fr);
        overflow-x: auto;
        padding-bottom: 0.25rem;
        margin: 0 -0.5rem;
        padding-inline: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .pet-type-grid .option-pill {
        scroll-snap-align: start;
    }

    .pet-type-grid .option-content {
        min-height: 80px;
    }
}

/* about.php */
.value-card {
display: flex;
gap: 1.5rem;
align-items: flex-start;
}

.timeline {
position: relative;
padding-left: 2.5rem;
}

.timeline::before {
content: '';
position: absolute;
top: 0.5rem;
left: 1rem;
width: 4px;
height: 100%;
background: linear-gradient(180deg, var(--primary-green), var(--accent-orange));
border-radius: 999px;
}

.timeline-step {
position: relative;
margin-bottom: 2rem;
background: rgba(255, 255, 255, 0.95);
border-radius: 18px;
padding: 1.5rem 1.75rem;
box-shadow: 0 20px 34px rgba(44, 62, 80, 0.12);
}

.timeline-step::before {
content: attr(data-year);
position: absolute;
top: 1.5rem;
left: -3.8rem;
background: white;
border: 3px solid var(--primary-green);
color: var(--primary-green);
width: 3.2rem;
height: 3.2rem;
border-radius: 50%;
display: grid;
place-items: center;
font-weight: 700;
}

.team-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 1.75rem;
box-shadow: 0 20px 32px rgba(44, 62, 80, 0.12);
text-align: center;
}

.team-avatar {
width: 88px;
height: 88px;
border-radius: 24px;
margin: 0 auto 1rem;
display: grid;
place-items: center;
background: rgba(76, 175, 80, 0.12);
color: var(--primary-green);
font-weight: 700;
font-size: 1.75rem;
}

.section-card,
.section-card h3,
.section-card h4,
.section-card h5,
.section-card p,
.section-card small {
color: var(--text-dark);
}

.section-card .text-muted,
.team-card .text-muted {
color: #4a5568 !important;
}

.team-card h4 {
color: var(--text-dark);
}

/* how-it-works.php */
.step-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 24px 40px rgba(44, 62, 80, 0.12);
height: 100%;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-card {
color: var(--text-dark);
}
.section-card h5 {
color: var(--primary-green);
}
.section-card p,
.section-card .text-muted {
color: rgba(44, 62, 80, 0.75) !important;
}
.step-card:hover {
transform: translateY(-8px);
box-shadow: 0 28px 48px rgba(44, 62, 80, 0.18);
}
.step-number {
width: 56px;
height: 56px;
border-radius: 16px;
display: grid;
place-items: center;
font-weight: 700;
color: white;
background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
margin-bottom: 1rem;
}
.journey-card {
border-radius: 24px;
padding: 2rem;
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 20px 36px rgba(44, 62, 80, 0.12);
height: 100%;
}
.journey-icon {
font-size: 2.5rem;
color: var(--primary-green);
margin-bottom: 1rem;
}

/* help.php */
.support-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 22px;
padding: 2rem;
box-shadow: 0 20px 36px rgba(44, 62, 80, 0.12);
color: var(--text-dark);
}

.support-card h4 {
font-weight: 600;
}

.support-card p {
color: var(--text-dark);
}

.support-card small {
color: rgba(44, 62, 80, 0.75);
}

.timeline-checklist li {
display: flex;
gap: 1rem;
margin-bottom: 1.2rem;
align-items: flex-start;
}

.timeline-checklist i {
color: var(--primary-green);
font-size: 1.3rem;
}

/* safety.php */
.safety-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 24px;
padding: 2rem;
box-shadow: 0 24px 42px rgba(44, 62, 80, 0.14);
height: 100%;
}
.page-hero .section-card {
color: var(--text-dark);
}
.page-hero .section-card h5 {
color: var(--text-dark);
}
.safety-icon {
width: 64px;
height: 64px;
border-radius: 18px;
display: grid;
place-items: center;
font-size: 2rem;
color: var(--primary-green);
background: rgba(76, 175, 80, 0.12);
margin-bottom: 1.5rem;
}
.safety-list li {
margin-bottom: 0.75rem;
display: flex;
gap: 0.75rem;
align-items: flex-start;
}
.safety-list i {
color: var(--primary-green);
margin-top: 0.25rem;
}

/* 404.php */
.not-found-icon {
font-size: 6rem;
color: #f0ad4e;
animation: bounce 2s infinite;
}

.not-found-card {
border-radius: 20px;
box-shadow: 0 15px 40px rgba(44, 62, 80, 0.1);
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-10px);
}
60% {
transform: translateY(-5px);
}
}

.list-unstyled a {
transition: all 0.3s ease;
}

.list-unstyled a:hover {
transform: translateX(5px);
}

/* analytics.php */
body.page-analytics {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #66BB6A;
    --background-color: #F8F9FA;
    --text-dark: #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.analytics-container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
overflow: hidden;
margin-top: 2rem;
margin-bottom: 2rem;
}

.analytics-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 2rem;
text-align: center;
}

.stat-card {
background: white;
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border-left: 4px solid var(--primary-color);
transition: all 0.3s ease;
height: 100%;
}

.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--primary-color);
}

.stat-number {
font-size: 2rem;
font-weight: bold;
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.chart-container {
position: relative;
height: 300px;
margin: 1rem 0;
}

.section-header {
background: #f8f9fa;
border-radius: 10px;
padding: 1rem;
margin-bottom: 1.5rem;
border-left: 4px solid var(--primary-color);
}

.trend-up {
color: var(--success-color);
}

.trend-down {
color: #dc3545;
}

.trend-stable {
color: #6c757d;
}

.animal-type-badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
margin: 0.25rem;
}

.dog-badge {
background: #e3f2fd;
color: #1976d2;
}

.cat-badge {
background: #fce4ec;
color: #c2185b;
}

.bird-badge {
background: #f3e5f5;
color: #7b1fa2;
}

.rabbit-badge {
background: #e8f5e8;
color: #388e3c;
}

/* host_verification.php */
.verification-card {
border-radius: 20px;
background: #ffffff;
box-shadow: 0 20px 45px rgba(44, 62, 80, 0.12);
padding: 2rem;
}
.document-preview {
border: 1px dashed var(--primary-green, #4CAF50);
border-radius: 12px;
padding: 1rem;
background: rgba(76, 175, 80, 0.05);
}
.timeline-item::before {
content: '';
position: absolute;
left: 12px;
top: 2.5rem;
bottom: -1.5rem;
width: 2px;
background: #e5e7eb;
}
.timeline-item:last-child::before {
display: none;
}
.timeline-dot {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #4CAF50;
color: #fff;
}

/* structure.php */
body.page-structure {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --bg-cream: #FFF8E1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #ffffff 100%);
    color: var(--text-dark);
}

body.page-structure * {
    font-family: 'Poppins', sans-serif;
}

.structure-hero {
background: linear-gradient(45deg, var(--primary-green), var(--light-green));
color: white;
padding: 3rem 0 2rem;
margin-top: -76px;
padding-top: 6rem;
}

.structure-card {
background: white;
border-radius: 20px;
box-shadow: 0 20px 45px rgba(76, 175, 80, 0.15);
overflow: hidden;
}

.photo-gallery {
position: relative;
height: 420px;
overflow: hidden;
border-radius: 20px;
}

.photo-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
}

.rating-badge {
background: rgba(255, 255, 255, 0.9);
color: var(--accent-orange);
padding: 0.6rem 1.2rem;
border-radius: 999px;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.4rem;
}

.service-item {
border-radius: 15px;
padding: 1.2rem;
background: rgba(76, 175, 80, 0.05);
border: 1px solid rgba(76, 175, 80, 0.12);
}

.extra-service-card {
border-radius: 16px;
border: 1px dashed rgba(255, 152, 0, 0.4);
background: rgba(255, 152, 0, 0.08);
padding: 1.25rem;
height: 100%;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.extra-service-badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.75rem;
border-radius: 999px;
background: rgba(255, 152, 0, 0.18);
color: #b56a00;
font-weight: 600;
font-size: 0.85rem;
}

.extra-service-meta {
font-size: 0.85rem;
color: var(--text-light);
}

.price-chip {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.35rem 0.75rem;
border-radius: 999px;
background: white;
border: 1px solid rgba(76, 175, 80, 0.2);
color: var(--text-dark);
font-weight: 600;
font-size: 0.95rem;
}

.price-chip--included {
background: rgba(76, 175, 80, 0.12);
border-color: rgba(76, 175, 80, 0.4);
color: var(--dark-green);
}

.price-chip--muted {
background: rgba(236, 240, 241, 0.7);
border-color: rgba(189, 195, 199, 0.7);
color: var(--text-light);
font-weight: 500;
}

.review-card {
background: white;
border-radius: 18px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
padding: 1.5rem;
height: 100%;
}

.availability-card {
background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
color: white;
border-radius: 20px;
padding: 2rem;
box-shadow: 0 20px 40px rgba(76, 175, 80, 0.25);
}

.owner-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
}

.rich-text-content {
line-height: 1.7;
color: var(--text-dark);
}

.rich-text-content p {
margin-bottom: 1rem;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
font-weight: 700;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
color: var(--primary-green);
}

.rich-text-content ul,
.rich-text-content ol {
padding-left: 1.4rem;
margin-bottom: 1rem;
}

.rich-text-content li + li {
margin-top: 0.35rem;
}

.rich-text-content blockquote {
border-left: 4px solid rgba(76, 175, 80, 0.35);
background: rgba(76, 175, 80, 0.08);
padding: 1rem 1.25rem;
border-radius: 0 16px 16px 0;
margin: 1.2rem 0;
color: rgba(44, 62, 80, 0.75);
font-style: italic;
}

.rich-text-content pre {
background: #17212b;
color: #f1f5f9;
border-radius: 14px;
padding: 1rem 1.2rem;
overflow-x: auto;
font-size: 0.95rem;
margin: 1.2rem 0;
}

.rich-text-content code {
background: rgba(44, 62, 80, 0.12);
padding: 0.15rem 0.45rem;
border-radius: 6px;
}

.rich-text-content img {
max-width: 100%;
border-radius: 16px;
margin: 0.75rem 0;
}

.rich-text-content table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
}

.rich-text-content th,
.rich-text-content td {
border: 1px solid rgba(76, 175, 80, 0.2);
padding: 0.75rem 0.9rem;
}

/* structures.php */
body.page-structures {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --bg-cream: #FFF8E1;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #ffffff 100%);
    color: var(--text-dark);
}

body.page-structures * {
    font-family: 'Poppins', sans-serif;
}

.view-toggle {
background: white;
border-radius: 999px;
padding: 0.35rem;
display: inline-flex;
gap: 0.5rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.view-toggle .btn {
border-radius: 999px;
min-width: 140px;
font-weight: 600;
}

.structures-hero {
background: linear-gradient(45deg, var(--primary-green), var(--light-green));
color: white;
padding: 3rem 0 2rem;
margin-top: -76px;
padding-top: 6rem;
}

.search-summary {
text-align: center;
margin-bottom: 2rem;
}

.filters-section {
background: white;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
margin-bottom: 2rem;
position: sticky;
top: 100px;
z-index: 100;
}

.structures-list .card {
border: none;
border-radius: 20px;
box-shadow: 0 15px 30px rgba(76, 175, 80, 0.15);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structures-list .card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 45px rgba(76, 175, 80, 0.25);
}

.structure-badge {
position: absolute;
top: 20px;
left: 20px;
background: rgba(76, 175, 80, 0.9);
color: white;
padding: 0.4rem 1rem;
border-radius: 999px;
font-size: 0.9rem;
font-weight: 600;
}

.structure-image {
height: 220px;
position: relative;
overflow: hidden;
}

.structure-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

.structures-list .card:hover .structure-image img {
transform: scale(1.05);
}

.structure-content {
padding: 1.8rem;
}

.structure-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-dark);
text-decoration: none;
}

.structure-location {
color: var(--text-light);
}

.animal-tags span {
display: inline-block;
background: rgba(255, 255, 255, 0.8);
color: var(--dark-green);
padding: 0.35rem 0.9rem;
border-radius: 999px;
margin: 0 0.4rem 0.4rem 0;
font-size: 0.85rem;
border: 1px solid rgba(76, 175, 80, 0.2);
}

.extra-service-chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.35rem 0.75rem;
border-radius: 999px;
background: rgba(255, 152, 0, 0.12);
color: #b56a00;
border: 1px solid rgba(255, 152, 0, 0.35);
font-weight: 600;
font-size: 0.85rem;
}

.extra-service-chip i {
font-size: 0.9rem;
}

.extra-service-chip--muted {
background: rgba(44, 62, 80, 0.08);
border-color: rgba(44, 62, 80, 0.15);
color: var(--text-dark);
font-weight: 500;
}

.price-tag {
font-size: 1.4rem;
font-weight: 700;
color: var(--accent-orange);
}

.rating {
color: var(--accent-orange);
font-weight: 600;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.owner-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #e0e0e0;
    color: #4a4a4a;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.65rem;
    line-height: 1.1;
    width: 60px;
    height: 60px;
    padding: 8px;
}

.owner-avatar-placeholder--sm {
    width: 40px;
    height: 40px;
    font-size: 0.55rem;
    padding: 6px;
}

.filters-section input,
.filters-section select {
border-radius: 12px;
border: 1px solid rgba(76, 175, 80, 0.2);
padding: 0.75rem 1rem;
}

.filters-section label {
font-weight: 600;
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.btn-primary {
background: var(--primary-green);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 999px;
font-weight: 600;
}

.btn-outline-primary {
border: 2px solid var(--primary-green);
color: var(--primary-green);
padding: 0.75rem 1.5rem;
border-radius: 999px;
font-weight: 600;
}

.btn-outline-primary:hover {
background: var(--primary-green);
color: white;
}

#structures-map-view .map-view-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
    background-color: #ffffff;
}

#structures-map-view .map-view-card .card-body {
    padding: 0;
}

#structures-map-view .map-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: clamp(320px, 65vh, 560px);
    height: clamp(320px, 65vh, 560px);
}

#structures-map {
    flex: 1 1 auto;
    width: 100%;
    min-height: inherit;
    height: 100%;
}

#structures-map.map-disabled {
    filter: grayscale(0.3);
}

#structures-map-view {
    animation: fadeIn 0.3s ease;
}

.map-popup {
max-width: 220px;
}

.map-popup h6 {
font-weight: 700;
color: var(--text-dark);
}

.map-popup .btn {
border-radius: 999px;
}

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

@media (max-width: 991px) {
.filters-section {
position: static;
}

.view-toggle {
width: 100%;
justify-content: space-between;
}

.view-toggle .btn {
flex: 1;
}
}

/* structure_analytics.php */
body.page-structure-analytics {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #66BB6A;
    --background-color: #F8F9FA;
    --text-dark: #2C3E50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.analytics-container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
overflow: hidden;
margin-top: 2rem;
margin-bottom: 2rem;
}

.analytics-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 2rem;
text-align: center;
}

.stat-card {
background: white;
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border-left: 4px solid var(--primary-color);
transition: all 0.3s ease;
height: 100%;
}

.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--primary-color);
}

.stat-number {
font-size: 2rem;
font-weight: bold;
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.chart-container {
position: relative;
height: 300px;
margin: 1rem 0;
}

.section-header {
background: #f8f9fa;
border-radius: 10px;
padding: 1rem;
margin-bottom: 1.5rem;
border-left: 4px solid var(--primary-color);
}

.structure-selector {
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.3);
color: white;
border-radius: 25px;
padding: 0.5rem 1rem;
}

.structure-selector:focus {
background: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.5);
color: white;
box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.trend-up {
color: var(--success-color);
}

.trend-down {
color: #dc3545;
}

.trend-stable {
color: #6c757d;
}

.rating-stars {
color: #FFD700;
}

.progress-ring {
width: 120px;
height: 120px;
}

.progress-ring-circle {
stroke: #e9ecef;
stroke-width: 8;
fill: transparent;
r: 52;
cx: 60;
cy: 60;
}

.progress-ring-progress {
stroke: var(--primary-color);
stroke-width: 8;
fill: transparent;
r: 52;
cx: 60;
cy: 60;
stroke-dasharray: 326.73;
stroke-dashoffset: 326.73;
transform: rotate(-90deg);
transform-origin: 60px 60px;
transition: stroke-dashoffset 0.5s ease-in-out;
}

/* host_structures.php */
.management-card {
background: rgba(255, 255, 255, 0.95);
border-radius: 24px;
padding: 2rem;
box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
}
.markdown-editor {
border: 1px solid rgba(76, 175, 80, 0.25);
border-radius: 20px;
overflow: hidden;
background: rgba(255, 255, 255, 0.94);
box-shadow: inset 0 1px 2px rgba(44, 62, 80, 0.08);
}
.markdown-editor__toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
padding: 0.85rem 1.2rem;
background: rgba(76, 175, 80, 0.1);
border-bottom: 1px solid rgba(76, 175, 80, 0.18);
}
.markdown-editor__toolbar span {
font-size: 0.9rem;
color: var(--dark-green);
font-weight: 600;
}
.markdown-editor__toolbar small {
color: rgba(46, 125, 50, 0.85);
}
.markdown-editor__textarea {
border: 0;
border-bottom: 1px solid rgba(76, 175, 80, 0.15);
border-radius: 0;
resize: vertical;
min-height: 180px;
padding: 1.1rem 1.25rem;
font-size: 1rem;
background: transparent;
}
.markdown-editor__textarea:focus {
box-shadow: none;
background: rgba(76, 175, 80, 0.05);
}
.markdown-editor__helper {
padding: 0.75rem 1.2rem;
background: rgba(76, 175, 80, 0.06);
border-bottom: 1px solid rgba(76, 175, 80, 0.1);
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.25rem;
font-size: 0.85rem;
color: var(--text-light);
}
.markdown-editor__helper code {
background: rgba(76, 175, 80, 0.18);
border-radius: 999px;
padding: 0.15rem 0.6rem;
color: var(--dark-green);
font-weight: 600;
}
.markdown-editor__preview {
padding: 1.2rem 1.25rem 1.4rem;
background: rgba(76, 175, 80, 0.04);
max-height: 320px;
overflow-y: auto;
}
.markdown-editor__preview.is-empty::before {
content: 'La preview della descrizione apparirà qui. Usa Markdown o HTML sicuro.';
color: var(--text-light);
font-style: italic;
}
.markdown-editor__preview h1,
.markdown-editor__preview h2,
.markdown-editor__preview h3,
.markdown-editor__preview h4,
.markdown-editor__preview h5,
.markdown-editor__preview h6 {
font-weight: 700;
margin-top: 1.2rem;
margin-bottom: 0.6rem;
color: var(--primary-green);
}
.markdown-editor__preview p {
margin-bottom: 0.85rem;
line-height: 1.6;
}
.markdown-editor__preview ul,
.markdown-editor__preview ol {
padding-left: 1.4rem;
margin-bottom: 0.85rem;
}
.markdown-editor__preview blockquote {
border-left: 4px solid rgba(76, 175, 80, 0.4);
padding-left: 1rem;
color: rgba(44, 62, 80, 0.75);
font-style: italic;
background: rgba(76, 175, 80, 0.08);
border-radius: 0 12px 12px 0;
margin-bottom: 1rem;
}
.markdown-editor__preview pre {
background: #1f2933;
color: #f8fafc;
border-radius: 12px;
padding: 1rem;
overflow-x: auto;
font-size: 0.9rem;
}
.markdown-editor__preview code {
background: rgba(44, 62, 80, 0.12);
padding: 0.1rem 0.35rem;
border-radius: 6px;
}
.markdown-editor__preview table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
}
.markdown-editor__preview th,
.markdown-editor__preview td {
border: 1px solid rgba(76, 175, 80, 0.2);
padding: 0.6rem 0.75rem;
}
.structure-card {
border-radius: 20px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 12px 28px rgba(0,0,0,0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.structure-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.calendar-day-card {
border-radius: 20px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 10px 24px rgba(0,0,0,0.08);
padding: 1.5rem;
min-height: 260px;
}
.calendar-day-card.is-blocked {
border: 1px solid rgba(220, 53, 69, 0.35);
box-shadow: 0 12px 28px rgba(220, 53, 69, 0.18);
}
.calendar-day-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.calendar-day-header .day-label {
font-weight: 600;
color: var(--primary-green);
}
.calendar-slot,
.calendar-booking {
border-radius: 14px;
padding: 0.65rem 0.85rem;
background: rgba(76, 175, 80, 0.08);
margin-bottom: 0.75rem;
}
.calendar-slot .badge {
background: rgba(76, 175, 80, 0.18);
color: var(--dark-green);
}
.calendar-booking {
background: rgba(33, 150, 243, 0.08);
border-left: 3px solid rgba(33, 150, 243, 0.35);
}
.calendar-booking .status-badge {
font-size: 0.75rem;
}
.calendar-blackout-alert {
border-left: 4px solid rgba(220, 53, 69, 0.6);
background: rgba(220, 53, 69, 0.08);
border-radius: 12px;
padding: 0.75rem 1rem;
}
.blackout-card {
border: 1px solid rgba(220, 53, 69, 0.15);
background: rgba(220, 53, 69, 0.04);
}
.calendar-empty {
font-style: italic;
color: rgba(0,0,0,0.45);
}
.veterinary-map {
height: 320px;
background: rgba(76, 175, 80, 0.08);
border: 2px solid rgba(76, 175, 80, 0.15);
}
.leaflet-container.veterinary-map {
border-radius: 20px;
}
.service-pill {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 0.75rem;
border-radius: 999px;
background: rgba(76, 175, 80, 0.12);
color: var(--dark-green);
font-size: 0.85rem;
margin-right: 0.5rem;
margin-bottom: 0.4rem;
}
.service-pill .price {
font-weight: 600;
}
.form-section-title {
font-weight: 600;
color: var(--primary-green);
margin-bottom: 1rem;
}
.form-control, .form-select, textarea {
border-radius: 14px;
border: 2px solid rgba(76, 175, 80, 0.15);
padding: 0.85rem 1rem;
}
.form-control:focus, .form-select:focus, textarea:focus {
border-color: var(--primary-green);
box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.15);
}
.badge-status {
font-size: 0.8rem;
}

/* pets.php */
.pets-wrapper {
padding: 3rem 0;
}

.pet-form-card {
background: white;
border-radius: 24px;
box-shadow: 0 24px 48px rgba(76, 175, 80, 0.15);
padding: 2.5rem;
}

.pet-list-card {
background: white;
border-radius: 24px;
box-shadow: 0 18px 36px rgba(44, 62, 80, 0.15);
padding: 2rem;
}

.pet-card {
border-radius: 18px;
border: 1px solid rgba(76, 175, 80, 0.2);
padding: 1.5rem;
transition: transform 0.2s ease, box-shadow 0.2s ease;
background: rgba(255, 255, 255, 0.9);
}

.pet-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 32px rgba(76, 175, 80, 0.2);
}

.pet-avatar {
width: 72px;
height: 72px;
border-radius: 20px;
object-fit: cover;
background: rgba(76, 175, 80, 0.1);
}

.pet-empty {
background: rgba(255, 255, 255, 0.85);
border-radius: 24px;
padding: 3rem;
text-align: center;
border: 2px dashed rgba(76, 175, 80, 0.25);
}

/* booking_confirmation.php */
.contract-card {
border-radius: 18px;
}

.contract-body {
background: #f6fbf8;
border-radius: 16px;
padding: 1.5rem;
}

.contract-section .contract-block {
background: #ffffff;
border-radius: 14px;
padding: 1.25rem;
box-shadow: 0 12px 24px rgba(76, 175, 80, 0.08);
margin-bottom: 1.5rem;
}

.contract-section .contract-block:last-child {
margin-bottom: 0;
}

.contract-section h3 {
font-size: 0.8rem;
letter-spacing: .08em;
}

.contract-consent-list li {
margin-bottom: 0.5rem;
}

.contract-timeline {
border-left: 2px solid rgba(76, 175, 80, 0.25);
padding-left: 1rem;
}

.contract-timeline .timeline-dot {
width: 10px;
height: 10px;
background: #4CAF50;
border-radius: 50%;
margin-right: 0.75rem;
margin-top: 0.35rem;
}

/* booking.php */
body.page-booking {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --background-color: #f7fdf7;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    background: var(--background-color);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.booking-container {
max-width: 1100px;
margin: 0 auto;
}

.booking-card {
background: white;
border-radius: 24px;
box-shadow: 0 30px 60px rgba(76, 175, 80, 0.15);
overflow: hidden;
}

.booking-header {
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
color: white;
padding: 2.5rem;
}

.structure-summary {
background: rgba(255, 255, 255, 0.1);
border-radius: 18px;
padding: 1.5rem;
backdrop-filter: blur(8px);
}

.form-section {
padding: 2.5rem;
}

.form-control, .form-select {
border-radius: 18px;
border: 1px solid rgba(76, 175, 80, 0.2);
padding: 0.85rem 1.2rem;
}

.btn-booking {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #3d9444;
    --bs-btn-hover-border-color: #3d9444;
    --bs-btn-focus-shadow-rgb: 76, 175, 80;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #36853c;
    --bs-btn-active-border-color: #36853c;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: rgba(76, 175, 80, 0.65);
    --bs-btn-disabled-border-color: rgba(76, 175, 80, 0.65);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(76, 175, 80, 0.2);
}

.btn-booking:hover,
.btn-booking:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(76, 175, 80, 0.28);
    color: #ffffff;
}

.btn-booking:focus-visible {
    outline: none;
}

.price-summary {
background: rgba(76, 175, 80, 0.08);
border-radius: 18px;
padding: 1.5rem;
}

.pet-select-card {
border-radius: 18px;
border: 2px solid transparent;
background: rgba(255, 255, 255, 0.9);
padding: 1.25rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
height: 100%;
}

.pet-select-card.active {
border-color: rgba(76, 175, 80, 0.6);
box-shadow: 0 12px 24px rgba(76, 175, 80, 0.18);
}

.pet-select-card .form-check-input {
width: 1.2rem;
height: 1.2rem;
margin-top: 0.2rem;
}

.pet-select-card .pet-meta {
font-size: 0.9rem;
color: var(--text-light);
}

.extra-service-card {
border-radius: 18px;
border: 2px solid rgba(255, 152, 0, 0.2);
background: rgba(255, 255, 255, 0.92);
padding: 1.25rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
height: 100%;
}

.extra-service-card.active {
border-color: rgba(255, 152, 0, 0.6);
box-shadow: 0 12px 24px rgba(255, 152, 0, 0.18);
}

.extra-service-card .form-check-input {
width: 1.1rem;
height: 1.1rem;
}

/* bookings.php */
.booking-card {
background: white;
border-radius: 18px;
box-shadow: 0 20px 40px rgba(0,0,0,0.08);
padding: 2rem;
}
.table thead {
background: #f8f9fa;
}
.table td, .table th {
vertical-align: middle;
}

/* wallet.php */
body.page-wallet {
    background-color: #f5f8f6;
    font-family: 'Poppins', sans-serif;
}
.wallet-hero {
background: linear-gradient(135deg, #4CAF50, #2E7D32);
color: #ffffff;
padding: 3rem 0;
}
.wallet-card {
border-radius: 20px;
background: #ffffff;
box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15);
padding: 2rem;
}
.method-card {
border-radius: 16px;
border: 1px solid rgba(76, 175, 80, 0.15);
padding: 1.5rem;
background: #ffffff;
transition: box-shadow .2s ease;
}
.method-card:hover {
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.wallet-table thead {
background-color: #e8f5e9;
}

/* notifications.php */
.notification-card {
border-radius: 18px;
border: 1px solid rgba(44, 62, 80, 0.08);
padding: 1.75rem;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 18px 34px rgba(44, 62, 80, 0.12);
transition: transform 0.2s ease, box-shadow 0.2s ease;
position: relative;
}

.notification-card:hover {
transform: translateY(-3px);
box-shadow: 0 24px 46px rgba(44, 62, 80, 0.16);
}

.notification-card.unread {
background: rgba(76, 175, 80, 0.08);
border-color: rgba(76, 175, 80, 0.18);
}

.notification-card.has-link {
cursor: pointer;
}

.notification-card.has-link .notification-link-text {
font-size: 0.85rem;
color: var(--primary-green, #4CAF50);
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.35rem;
}

.notification-card.has-link .notification-link-text i {
transition: transform 0.2s ease;
}

.notification-card.has-link:hover .notification-link-text i,
.notification-card.has-link:focus-within .notification-link-text i {
transform: translateX(4px);
}

.notification-card .stretched-link {
border-radius: inherit;
}

.notification-card + .notification-card {
margin-top: 1.25rem;
}

.notification-meta {
font-size: 0.85rem;
color: var(--text-light);
}

.notification-empty {
border-radius: 24px;
background: rgba(255, 255, 255, 0.9);
padding: 4rem 2rem;
box-shadow: 0 18px 34px rgba(44, 62, 80, 0.12);
}

/* messages.php */
.messages-wrapper .card {
border-radius: 20px;
border: 1px solid rgba(44, 62, 80, 0.08);
box-shadow: 0 18px 34px rgba(44, 62, 80, 0.12);
}

.conversation-item {
padding: 1.1rem 1.25rem;
border-radius: 16px;
transition: background-color 0.2s ease, transform 0.2s ease;
}

.conversation-item .flex-grow-1 {
min-width: 0;
}

.conversation-item .text-truncate {
max-width: 100%;
}

.conversation-item:hover,
.conversation-item.active {
background: rgba(76, 175, 80, 0.08);
transform: translateX(4px);
}

.message-feed {
max-height: 520px;
overflow-y: auto;
}

.message-bubble {
border-radius: 18px;
padding: 1rem 1.25rem;
max-width: 80%;
box-shadow: 0 12px 22px rgba(44, 62, 80, 0.12);
}

.message-bubble.me {
margin-left: auto;
background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.75));
color: #fff;
}

.message-bubble.them {
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(44, 62, 80, 0.06);
}

.message-time {
font-size: 0.75rem;
color: var(--text-light);
}

.conversation-empty,
.new-conversation-card {
border-radius: 20px;
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 18px 34px rgba(44, 62, 80, 0.12);
}

.conversation-empty {
padding: 4rem 2rem;
text-align: center;
}

/* urgent_requests.php */
.urgent-info-section {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(76, 175, 80, 0.08));
    position: relative;
    overflow: hidden;
}

.urgent-info-section::after {
    content: '';
    position: absolute;
    inset: auto -140px -180px auto;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50% 40% 60% 45%;
    filter: blur(0.5px);
}

.urgent-info-section .urgent-pill {
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.urgent-info-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 22px 48px rgba(44, 62, 80, 0.16);
    position: relative;
    z-index: 1;
}

.urgent-info-card h2 {
    color: var(--primary-green);
}

.urgent-info-card .benefits-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0;
}

.urgent-info-card .benefits-list li + li {
    border-top: 1px solid rgba(76, 175, 80, 0.12);
}

.urgent-info-card .benefits-list i {
    font-size: 1.35rem;
    color: #ff9800;
    margin-top: 0.35rem;
}

.urgent-reason-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.12);
    padding: 1.25rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.urgent-reason-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.urgent-form-section {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 1) 0%, rgba(255, 248, 225, 0.75) 45%, rgba(255, 255, 255, 1) 100%);
}

.urgent-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.urgent-request-card {
    position: relative;
    width: 100%;
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    min-height: clamp(420px, 60vw, 540px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
}

.urgent-request-card h1,
.urgent-request-card h2,
.urgent-request-card h3,
.urgent-request-card h4,
.urgent-request-card h5,
.urgent-request-card h6,
.urgent-request-card p,
.urgent-request-card label,
.urgent-request-card .form-label,
.urgent-request-card .form-check-label,
.urgent-request-card .fw-semibold {
    color: #0f172a;
}

.urgent-request-card .text-muted,
.urgent-request-card small.text-muted {
    color: rgba(15, 23, 42, 0.7) !important;
}

.urgent-request-card .form-control::placeholder,
.urgent-request-card textarea::placeholder {
    color: #4b5563;
}

.urgent-request-card textarea,
.urgent-request-card .form-control,
.urgent-request-card .form-select {
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.18);
    padding: 0.95rem 1.2rem;
    background-color: #ffffff;
    color: #0f172a;
}

.urgent-request-card textarea {
    min-height: 140px;
}

.urgent-request-card .form-control:focus,
.urgent-request-card .form-select:focus,
.urgent-request-card textarea:focus {
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.14);
}

.running-pet {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 130px;
    height: 60px;
    pointer-events: none;
    overflow: hidden;
}

.running-pet-icon {
    position: absolute;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.25));
}

.running-pet-dog {
    font-size: 2.4rem;
    top: 0;
    animation: urgent-dog-run 3s linear infinite;
}

.running-pet-paw {
    font-size: 1.4rem;
    top: 30px;
    animation: urgent-paw-run 3s linear infinite;
    opacity: 0;
}

.running-pet-icon.running-pet-paw:nth-child(2) {
    animation-delay: 0.18s;
}

.running-pet-icon.running-pet-paw:nth-child(3) {
    animation-delay: 0.38s;
    top: 38px;
}

@keyframes urgent-dog-run {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: translateX(-60%);
        opacity: 0;
    }
}

@keyframes urgent-paw-run {
    0% {
        transform: translateX(140%);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    70% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(-40%);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .urgent-info-card {
        padding: 2rem;
    }

    .urgent-form-wrapper {
        max-width: 100%;
    }

    .urgent-request-card {
        min-height: 0;
    }

    .running-pet {
        width: 110px;
        top: 1rem;
        right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .urgent-reason-card,
    .urgent-request-card,
    .running-pet-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* video_surveillance.php */
.video-surveillance-hero {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.05));
    border-radius: 24px;
    padding: 3rem;
}
.video-surveillance-info {
    color: #1f2a37;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.video-surveillance-info h2 {
    color: #102a43;
}
.video-surveillance-info ul li {
    color: inherit;
}
.video-surveillance-info ul li span {
    flex: 1;
    line-height: 1.55;
}
.video-surveillance-info .bi {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-top: 0.1rem;
}
.video-surveillance-info .text-muted {
    color: #52606d !important;
}
.stream-card {
    border-radius: 18px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 16px 32px rgba(44, 62, 80, 0.1);
}
.pin-hint {
font-family: 'Courier New', monospace;
background: rgba(76, 175, 80, 0.12);
color: #2C3E50;
border-radius: 8px;
padding: 0.25rem 0.5rem;
}
.stream-actions button + button,
.stream-actions form + form {
margin-left: 0.5rem;
}

/* contact.php */
.support-hero {
background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(33, 150, 243, 0.12));
border-radius: 24px;
padding: 3rem;
position: relative;
overflow: hidden;
}
.support-hero::after {
content: "";
position: absolute;
top: -40px;
right: -40px;
width: 180px;
height: 180px;
background: rgba(255, 255, 255, 0.35);
border-radius: 50%;
pointer-events: none;
}
.support-hero .accent-badge {
background: rgba(255, 255, 255, 0.9);
color: var(--dark-green);
box-shadow: 0 10px 24px rgba(46, 125, 50, 0.15);
}
.support-metric-card {
background: #ffffff;
border-radius: 16px;
padding: 1.25rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0,0,0,0.05);
}
.support-metric-card h3 {
font-size: 2rem;
margin-bottom: .25rem;
}
.ticket-table th {
background: #f8f9fb;
text-transform: uppercase;
letter-spacing: .05em;
font-size: .75rem;
}
.ticket-thread {
display: flex;
flex-direction: column;
gap: 1rem;
}
.ticket-message {
border-radius: 16px;
padding: 1rem 1.25rem;
background: #f8f9fb;
border-left: 4px solid var(--primary-green, #4CAF50);
}
.ticket-message.admin {
border-left-color: #0d6efd;
background: rgba(13, 110, 253, 0.08);
}
.ticket-message.host {
border-left-color: #ff9800;
background: rgba(255, 152, 0, 0.12);
}
.ticket-message.system {
border-left-color: #6c757d;
background: rgba(108, 117, 125, 0.12);
font-style: italic;
}
.ticket-message .meta {
font-size: .8rem;
color: #6c757d;
}
.ticket-actions {
gap: .5rem;
}
