@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 {
    /* Color Palette - Premium Light Mode inspired by Vet Clinic Teal Mural */
    --bg-dark: #f0f7f7; /* Very light, clean mint-teal wash */
    --bg-card: rgba(255, 255, 255, 0.75); /* Premium Frosted White Glass */
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 150, 140, 0.12); /* Delicate teal-glass outline */
    --border-active: rgba(0, 180, 160, 0.45);
    
    /* Core Gradients - Kept high resiliency/vibrancy from mural animals */
    --primary-grad: linear-gradient(135deg, #0d9488 0%, #0284c7 100%); /* Teal to ocean blue */
    --accent-grad: linear-gradient(135deg, #ec4899 0%, #a855f7 100%); /* Neon hot pink to purple */
    --success-grad: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Emerald green */
    --danger-grad: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --warning-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Sun-Gold */
    
    /* UI Text Colors - High contrast for light mode */
    --text-primary: #0f2928; /* Deep charcoal teal */
    --text-secondary: #4a6665; /* Slate secondary */
    --text-muted: #789997; /* Soft muted teal */
    
    /* Pet Custom Accents (Dynamic classes will override) */
    --pet-accent: #0d9488;
    --pet-accent-grad: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    
    /* Animation Speeds */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #e2eeee; /* Crisp, clean soft-teal off-white background */
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Mobile Viewport Container Shell */
.app-container {
    width: 100%;
    max-width: 480px; /* iPhone/Android screen size constraints on desktop */
    min-height: 100vh;
    background-color: var(--bg-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 60, 55, 0.06), 0 0 100px rgba(0, 180, 160, 0.02);
    border-left: 1px solid rgba(0, 150, 140, 0.05);
    border-right: 1px solid rgba(0, 150, 140, 0.05);
    padding-bottom: 90px; /* Space for the bottom navbar */
}

/* App Header */
.app-header {
    padding: 24px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(240, 247, 247, 0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-grad);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #0d9488 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Action button styles */
.header-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--trans-fast);
}

.header-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Floating Glow Effects (Gives premium high-end visual feel) */
.glow-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.glow-primary {
    background: #7c3aed;
    top: -50px;
    left: -50px;
}
.glow-accent {
    background: #ec4899;
    bottom: 100px;
    right: -100px;
}

/* Screen Transitions & Layout */
.screen {
    flex: 1;
    padding: 20px;
    z-index: 1;
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: block;
}

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

/* Glassmorphic Panel/Card styles */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(16px);
    margin-bottom: 20px;
    transition: var(--trans-normal);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

/* Auth Screens Style (Register / Login) */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header .logo-icon {
    margin: 0 auto 16px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.auth-header .logo-icon svg {
    width: 28px;
    height: 28px;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Inputs & Form Styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 150, 140, 0.15);
    border-radius: 14px;
    padding: 14px 16px 14px 44px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--trans-fast);
}

.form-input:focus {
    border-color: var(--pet-accent, #0d9488);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Primary/Secondary Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--trans-fast);
}

.btn-primary {
    background: var(--pet-accent-grad, var(--primary-grad));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch-link {
    color: var(--pet-accent, #a855f7);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* Pet Switcher / Carousel (Dashboard Header) */
.dashboard-pet-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.dashboard-pet-selector::-webkit-scrollbar {
    display: none;
}

.pet-selector-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans-fast);
}

.pet-selector-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pet-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pet-selector-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pet-selector-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.pet-selector-add {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--trans-fast);
}

.pet-selector-add:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Pet Info Modules Layout (Dashboard Tabs) */
.pet-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.pet-profile-img {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--pet-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.pet-profile-meta {
    flex: 1;
}

.pet-profile-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.pet-profile-breed {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.pet-chips {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.pet-chip {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Category Grid & Accordion List */
.module-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--trans-normal);
}

.module-card-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.module-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.module-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.module-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pet-accent);
}

.module-card-arrow {
    transition: var(--trans-normal);
    color: var(--text-muted);
}

.module-card.expanded .module-card-arrow {
    transform: rotate(180deg);
}

.module-card-content {
    padding: 0 20px 20px;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    animation: slideDown 0.3s ease-out forwards;
}

.module-card.expanded .module-card-content {
    display: block;
}

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

.info-item {
    margin-top: 14px;
}

.info-item-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-item-value {
    color: var(--text-primary);
    white-space: pre-line;
}

/* Calendar & Schedule Timeline UI */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.calendar-strip {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

.calendar-day-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--trans-fast);
}

.calendar-day-btn:hover {
    background: var(--bg-card-hover);
}

.calendar-day-btn.active {
    background: var(--pet-accent-grad);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.calendar-day-btn.active .calendar-day-name {
    color: rgba(255, 255, 255, 0.7);
}

.calendar-day-number {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

/* Event List Card & Checklist styling */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    transition: var(--trans-normal);
}

.event-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.event-card.completed {
    opacity: 0.6;
}

.event-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 3px;
}

.event-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans-fast);
}

.event-card.completed .event-checkbox {
    background: var(--success-grad);
    border-color: transparent;
}

.event-checkbox svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    opacity: 0;
    transition: var(--trans-fast);
}

.event-card.completed .event-checkbox svg {
    opacity: 1;
}

.event-details {
    flex: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.event-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--pet-accent);
}

.event-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Category specific colors */
.event-tag.tag-feeding { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.event-tag.tag-walk { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.event-tag.tag-vet { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.event-tag.tag-grooming { background: rgba(236, 72, 153, 0.15); color: #ec7299; }
.event-tag.tag-other { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }

.event-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.event-card.completed .event-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.event-notes {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.event-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--trans-fast);
}

.event-action-btn:hover {
    color: var(--text-primary);
}

.event-action-btn.delete-btn:hover {
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Access Sharing screen & Generator */
.share-role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.share-role-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: var(--trans-fast);
}

.share-role-btn:hover {
    background: var(--bg-card-hover);
}

.share-role-btn.active {
    border-color: var(--pet-accent);
    background: rgba(124, 58, 237, 0.1);
    color: #fff;
}

.share-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.perm-toggle-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.perm-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* Switch control */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--pet-accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Share Link Display Box */
.link-display-box {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--border-active);
    border-radius: 14px;
    padding: 16px;
}

.link-text-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.link-text-val {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
}

.copy-btn {
    background: var(--pet-accent-grad);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans-fast);
}

.copy-btn:hover {
    opacity: 0.9;
}

/* Bottom Navigation Bar (Glassmorphic & Fixed) */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(240, 247, 247, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--border-glass);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--trans-fast);
    height: 100%;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--pet-accent);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* Guest Shared Access View (Header Timer Countdown) */
.guest-timer-panel {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guest-timer-info {
    flex: 1;
}

.guest-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-timer-role {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.guest-timer-clock {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Modals Overlay & Modals Content styling */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 2, 6, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end; /* Mobile drawer style: slides from bottom */
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
    border-radius: 28px 28px 0 0;
    padding: 24px 20px;
    max-height: 85%;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--trans-fast);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Dropdown styling */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--pet-accent, #7c3aed);
    background: rgba(255, 255, 255, 0.06);
}

.select-arrow {
    position: absolute;
    right: 16px;
    pointer-events: none;
    color: var(--text-secondary);
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.color-option {
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--trans-fast);
}

.color-option.selected {
    border-color: white;
    transform: scale(1.1);
}

/* User Profile & Account details styles */
.profile-meta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.profile-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: white;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    margin-bottom: 12px;
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.profile-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--trans-fast);
}

.profile-menu-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-menu-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.profile-menu-icon {
    color: var(--pet-accent);
}

.profile-menu-arrow {
    color: var(--text-muted);
}

/* ================= COOL HOME PAGE (SPA LOGGED-OUT VIEW) ================= */
.home-hero {
    text-align: center;
    padding: 32px 10px 24px;
    position: relative;
    z-index: 10;
}

.home-logo-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--pet-accent);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-title {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #0d9488 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.home-features-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.feature-item-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    transition: var(--trans-normal);
    box-shadow: 0 4px 15px rgba(0, 80, 75, 0.03);
}

.feature-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 24px rgba(0, 80, 75, 0.06);
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: var(--pet-accent);
}

.feature-info {
    flex: 1;
}

.feature-title-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Home Auth Interactive Box */
.home-auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 80, 75, 0.05);
    margin-bottom: 32px;
}

.auth-tabs-toggle {
    display: flex;
    background: rgba(0, 150, 140, 0.05);
    border: 1px solid rgba(0, 150, 140, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 6px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 9px;
    color: var(--text-secondary);
    transition: var(--trans-fast);
}

.auth-tab-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 80, 75, 0.05);
}

/* Quick Start Seed Test Accounts shortcuts */
.quick-start-panel {
    background: rgba(0, 150, 140, 0.03);
    border: 1px dashed rgba(0, 150, 140, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.quick-start-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.quick-start-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.quick-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-test-btn {
    background: white;
    border: 1px solid rgba(0, 150, 140, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--trans-fast);
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 80, 75, 0.02);
}

.quick-test-btn:hover {
    border-color: var(--border-active);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 75, 0.05);
}

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

.quick-meta {
    flex: 1;
}

.quick-meta-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.quick-meta-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.quick-arrow {
    color: var(--text-muted);
    font-weight: 800;
}

/* ================= NEW PREMIUM MARKETING HOME PAGE STYLES ================= */

.mkt-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(240, 247, 247, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.mkt-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon-sm {
    font-size: 20px;
}

.mkt-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.btn-mkt-signin {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--trans-fast);
}

.btn-mkt-signin:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
}

.mkt-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 24px 20px 40px;
    overflow-y: auto;
}

/* Hero Section */
.mkt-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0 20px;
}

.mkt-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #0d9488;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mkt-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.highlight-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mkt-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

.mkt-actions-grid {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
}

.btn-mkt-cta {
    flex: 1.2;
}

.btn-mkt-demo {
    flex: 1;
}

/* CSS Phone App Screen Mockup */
.mkt-mockup-frame {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    padding: 12px;
    margin-top: 16px;
    box-shadow: 0 15px 35px rgba(0, 80, 75, 0.08);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.mockup-app-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding-left: 6px;
}

.mockup-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.mockup-screen-content {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    border: 1px solid rgba(0, 150, 140, 0.08);
}

.mockup-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mockup-pet-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-glass);
}

.mockup-pet-info {
    flex: 1;
}

.mockup-pet-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mockup-pet-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.mockup-timeline {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 150, 140, 0.06);
}

.mockup-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.mockup-tag {
    background: var(--accent-grad);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
}

.mockup-task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 150, 140, 0.04);
}

.mockup-task:last-child {
    border-bottom: none;
}

.mockup-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    margin-top: 2px;
}

.mockup-task.completed .mockup-check {
    background: var(--success-grad);
    border-color: transparent;
    color: white;
}

.mockup-task-meta {
    flex: 1;
}

.mockup-task-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.mockup-task.completed .mockup-task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.mockup-task-desc {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Trust & Review Strip */
.mkt-trust-strip {
    text-align: center;
    background: rgba(13, 148, 136, 0.03);
    border: 1px dashed rgba(13, 148, 136, 0.15);
    border-radius: 20px;
    padding: 20px;
}

.stars-row {
    font-size: 16px;
    margin-bottom: 10px;
}

.mkt-trust-quote {
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.mkt-trust-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.mkt-trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mkt-trust-name {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.mkt-trust-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* Features Grid */
.mkt-features {
    text-align: center;
}

.mkt-section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.mkt-section-subheading {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-features-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mkt-feature-card {
    text-align: left;
    padding: 20px;
    border-radius: 20px;
    transition: var(--trans-normal);
}

.mkt-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
}

.mkt-feature-icon-box {
    width: 38px;
    height: 38px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.mkt-feature-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mkt-feature-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Step Process Timeline */
.mkt-steps {
    text-align: center;
}

.mkt-steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 10px;
    margin-top: 24px;
}

.mkt-step-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    padding-left: 36px;
    position: relative;
}

.mkt-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Draw a line connecting step numbers */
.mkt-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -16px;
    width: 2px;
    background: rgba(0, 150, 140, 0.12);
}

.mkt-step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mkt-step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Pricing Grid */
.mkt-pricing {
    text-align: center;
}

.mkt-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.mkt-pricing-card {
    text-align: left;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.mkt-pricing-card.popular {
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 150, 140, 0.08);
}

.mkt-popular-badge {
    position: absolute;
    top: 14px;
    right: -24px;
    background: var(--accent-grad);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 4px 24px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.mkt-tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mkt-tier-price {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1;
}

.mkt-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mkt-tier-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.mkt-tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(0, 150, 140, 0.06);
    padding-top: 16px;
}

.mkt-tier-features li {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Call To Action Footer Card */
.mkt-cta-footer {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--primary-grad);
    color: white;
    border: none;
    transition: var(--trans-normal);
}

.mkt-cta-footer:hover {
    background: var(--primary-grad) !important; /* Keep primary gradient and override glass panel hover */
    transform: translateY(-2px); /* Premium hover lift micro-animation */
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.25); /* Elegant brand shadow glow */
    border: none !important;
}

.mkt-cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.mkt-cta-subtitle {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 8px;
}

.mkt-cta-footer .btn-primary {
    background: white;
    color: #0d9488;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mkt-cta-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #f7ffff;
}

/* Slide-Up Bottom Auth Modal Drawer modifications */
.auth-drawer-content {
    background: var(--bg-dark);
    max-height: 90% !important; /* Give ample room for virtual keyboards */
    border-radius: 28px 28px 0 0;
}

#demo-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideDown 0.3s ease-out forwards;
}

/* ================== PREMIUM SHARING & NOTIFICATIONS ENHANCEMENTS ================== */

/* Bell Notification Badge Pulse Style */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-grad);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    color: white;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

/* Edit profile form customizations */
#profile-update-form .form-input:focus {
    border-color: var(--primary-grad);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Granular active share list styling */
.active-share-item {
    border-left: 4px solid var(--pet-accent) !important;
    transition: var(--trans-normal);
}

.active-share-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 150, 140, 0.05);
}

/* Shared Pets Dashboard Grid and Cards */
.shared-pets-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shared-pets-grid .pet-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--trans-normal);
    border-left: 4px solid var(--pet-accent) !important;
    background: var(--bg-card);
}

.shared-pets-grid .pet-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 140, 0.08);
    background: var(--bg-card-hover);
}

.shared-pets-grid .pet-profile-card.active-shared {
    background: var(--bg-card-hover);
    box-shadow: 0 4px 18px rgba(0, 150, 140, 0.12);
}

/* Notification invitations popup list animations */
.notif-card {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dropdown styling */
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 150, 140, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    appearance: none;
    transition: var(--trans-fast);
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--pet-accent, #0d9488);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Select wrapper styling for custom down arrow styling */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-arrow {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 10px;
    pointer-events: none;
}

/* =========================================================================
   ADDITIONAL APP STYLES (SERVICES DIRECTORY, MAPS, VET PORTALS)
   ========================================================================= */

/* Star Rating Picker Styles */
.star-rating-picker span {
    transition: color 0.15s ease;
}
.star-rating-picker span:hover,
.star-rating-picker span.active {
    color: #f59e0b;
}

/* Contractor Card styles */
.contractor-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: center;
    cursor: pointer;
    transition: var(--trans-normal);
}
.contractor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 150, 140, 0.08);
}
.contractor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(0, 150, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.contractor-info {
    flex: 1;
    min-width: 0;
}
.contractor-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 750;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contractor-stars {
    color: #f59e0b;
    font-size: 13px;
}
.contractor-rating-val {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    margin-left: 4px;
}
.contractor-address-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Leaflet map styling overrides to fit beautifully */
#lost-pet-map {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
}
.leaflet-container {
    font-family: inherit;
}

/* Horizontal scrolling for category chips */
.category-chips-scroll::-webkit-scrollbar {
    display: none;
}

/* Red-bordered Lost Pet alerts card styling */
.lost-pet-alert-card {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.02);
}
.lost-pet-alert-card:hover {
    border-left-color: #dc2626;
    background: rgba(239, 68, 68, 0.04);
}

/* Star rating reviews cards */
.review-comment-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 12px 14px;
}

/* ==========================================================================
   DESKTOP / TABLET RESPONSIVE OVERRIDES (OPTION 1)
   ========================================================================== */
@media (min-width: 992px) {
    /* 1. Base Container Sizing & Vertical Centering */
    body {
        background-color: #cbdada; /* Deeper contrast background on desktop */
        align-items: center;
        padding: 40px 0;
    }
    
    .app-container {
        max-width: 1024px;
        height: 90vh;
        max-height: 900px;
        min-height: 650px;
        margin: auto;
        border-radius: 28px;
        border: 1px solid rgba(0, 150, 140, 0.15);
        box-shadow: 0 20px 80px rgba(0, 60, 55, 0.12), 0 0 120px rgba(0, 180, 160, 0.05);
        overflow: hidden;
        padding-bottom: 0; /* Remove mobile fixed bottom padding */
    }

    /* Adjust scrolling sections inside container */
    #app-shell {
        height: calc(100% - 76px); /* subtract header height */
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .screen {
        flex: 1;
        overflow-y: auto;
        padding: 28px 40px 110px; /* Room for the floating dock */
    }

    .auth-container {
        height: 100%;
        overflow: hidden;
    }

    .mkt-scroll-content {
        flex: 1;
        overflow-y: auto;
        padding: 40px 48px;
    }

    /* 2. Marketing Page - 2-Column Hero Grid */
    .mkt-hero {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
        align-items: center;
        text-align: left;
        padding: 40px 0;
    }
    
    .mkt-hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .mkt-title {
        font-size: 42px;
        line-height: 1.15;
    }
    
    .mkt-subtitle {
        font-size: 15px;
        margin: 0;
        text-align: left;
    }
    
    .mkt-actions-grid {
        display: flex;
        gap: 16px;
        width: 100%;
        max-width: 450px;
        margin-top: 8px;
    }
    
    .mkt-mockup-frame {
        margin-top: 0;
        width: 100%;
        max-width: 380px;
        justify-self: center;
    }

    /* 3. Marketing Page - 3-Column Features */
    .mkt-features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .mkt-section-subheading {
        font-size: 14px;
        max-width: 500px;
        margin-bottom: 32px;
    }

    /* 4. Marketing Page - Horizontal Step Progress */
    .mkt-steps-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
        padding-left: 0;
    }

    .mkt-step-item {
        flex: 1;
        padding-left: 0;
        padding-top: 36px;
    }

    .mkt-step-item:not(:last-child)::after {
        left: 36px;
        top: 12px;
        right: -32px;
        bottom: auto;
        width: auto;
        height: 2px;
    }

    /* 5. Marketing Page - Horizontal Pricing Cards */
    .mkt-pricing-grid {
        flex-direction: row;
        justify-content: center;
        gap: 28px;
        max-width: 800px;
        margin: 32px auto 0;
    }

    .mkt-pricing-card {
        flex: 1;
    }

    /* 6. Floating Navigation Bar (iOS/iPadOS Dock style) */
    .bottom-nav {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 550px;
        height: 68px;
        border-radius: 20px;
        border: 1px solid var(--border-glass);
        box-shadow: 0 10px 30px rgba(0, 40, 35, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
        background: rgba(240, 247, 247, 0.9);
        backdrop-filter: blur(20px);
        overflow: hidden;
    }
    
    .nav-item {
        gap: 2px;
    }

    .nav-label {
        font-size: 11px;
    }

    /* 7. Centered Modals & Elegant Dialog Box Zoom-in */
    .modal-overlay {
        align-items: center;
        padding: 24px;
    }

    .modal-content {
        max-width: 500px;
        border-radius: 24px;
        border: 1px solid var(--border-glass);
        box-shadow: 0 25px 60px rgba(0, 30, 25, 0.15);
        transform: scale(0.9) translateY(0);
        max-height: 90%;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1) translateY(0);
    }
    
    /* 8. Logged-in Dashboard Modules (2-Column Grid) */
    .dashboard-modules {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }

    /* Let section headers span full width if needed */
    .module-section-title {
        grid-column: span 2;
    }

    /* 9. Granular Sharing Screen (2-Column Split) */
    .share-desktop-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .share-generator-form {
        margin-bottom: 0;
    }

    /* 10. Services Directory & Contractor Cards (2-Column Grid) */
    #contractors-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contractor-card {
        margin-bottom: 0;
    }

    /* 11. Vet Clients & Lost Alerts (2-Column Grid) */
    #vet-clients-list, 
    #vet-lost-alerts-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    #vet-clients-list .empty-state, 
    #vet-lost-alerts-list .empty-state {
        grid-column: span 2;
    }
}



