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

:root {
    --primary: #8E44AD;
    --primary-hover: #7D3C98;
    --primary-light: #F4ECF7;
    --secondary: #BB8FCE;
    --secondary-hover: #A569BD;
    --secondary-light: #F5EEF8;
    --accent-yellow: #FFD043;
    --bg-warm: #FAF8FC;
    --bg-card: #FFFFFF;
    --text-main: #2D2D2D;
    --text-muted: #88827C;
    --border: #F0EDE9;
    --shadow: 0 10px 30px rgba(74, 58, 48, 0.05);
    --shadow-hover: 0 15px 35px rgba(74, 58, 48, 0.1);
    --gradient-primary: linear-gradient(135deg, #A569BD 0%, #8E44AD 100%);
    --gradient-secondary: linear-gradient(135deg, #D7BDE2 0%, #BB8FCE 100%);
    --gradient-gold: linear-gradient(135deg, #FFE066 0%, #F5B041 100%);
    --gradient-overlay: linear-gradient(to top, rgba(58, 23, 76, 0.95) 0%, rgba(58, 23, 76, 0.35) 50%, rgba(0, 0, 0, 0) 100%);
    --font: 'Outfit', sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-warm);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
}

/* App Shell Layout */
#app-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Sidebar Navigation (PC) */
.sidebar {
    width: 320px;
    height: 100%;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.brand-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Owner profile info in sidebar */
.owner-card {
    background-color: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.owner-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.owner-details {
    flex: 1;
    overflow: hidden;
}

.owner-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: text-overflow;
}

.owner-plan {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-premium {
    background: var(--gradient-gold);
    color: #5d4000;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
}

.badge-basic {
    background-color: #E2DDD5;
    color: #555;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--bg-warm);
    color: var(--text-main);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Premium Upgrade CTA */
.premium-sidebar-banner {
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    color: #4A3300;
    text-align: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(245, 176, 65, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.premium-sidebar-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 176, 65, 0.3);
}

.premium-sidebar-banner h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.premium-sidebar-banner p {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
}

.premium-sidebar-banner i {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 60px;
    opacity: 0.15;
}

/* Main Content Area */
.main-content {
    flex: 1;
    height: 100%;
    position: relative;
    background-color: var(--bg-warm);
    display: flex;
    flex-direction: column;
}

/* Viewport Containers */
.view-panel {
    display: none;
    width: 100%;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.view-panel.active {
    display: block;
}

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

/* Mobile Header - Hidden on Desktop */
.mobile-header {
    display: none;
}

/* Bottom Navigation (Mobile/Android) */
.bottom-nav {
    display: none; /* Hidden on Desktop */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    height: 100%;
    justify-content: center;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

/* Tinder Swipe Matching View */
.swipe-view-container {
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-bottom: 20px;
}

/* Header Filters on Swipe */
.swipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.swipe-header h2 {
    font-size: 22px;
    font-weight: 800;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--bg-warm);
    border-color: var(--primary);
}

/* Card Stack Container */
.card-stack {
    flex: 1;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.no-more-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow: var(--shadow);
    color: var(--text-muted);
}

.no-more-cards i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.no-more-cards h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Swipe Card element */
.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: grab;
    user-select: none;
    transform-origin: 50% 100%;
    transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.25, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card-image-wrapper {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f1ede8;
}

.swipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.swipe-card:hover .swipe-card-img {
    transform: scale(1.02);
}

.swipe-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--gradient-overlay);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.swipe-card-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.swipe-card-name {
    font-size: 28px;
    font-weight: 800;
}

.swipe-card-age {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
}

.swipe-card-breed-tag {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.swipe-card-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.swipe-card-info-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.swipe-card-bio {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sponsored Badge on cards */
.sponsored-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-yellow);
    color: #4A3300;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Swipe Indicator Stamps */
.swipe-stamp {
    position: absolute;
    top: 40px;
    border: 4px solid;
    padding: 10px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    transform: rotate(-15deg);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.swipe-stamp.like {
    left: 40px;
    color: var(--secondary);
    border-color: var(--secondary);
    transform: rotate(-15deg);
}

.swipe-stamp.nope {
    right: 40px;
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.swipe-stamp.super {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Tinder Actions Control Bar */
.swipe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.swipe-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.swipe-btn:hover {
    transform: scale(1.12);
    box-shadow: var(--shadow-hover);
}

.swipe-btn:active {
    transform: scale(0.95);
}

.swipe-btn.pass {
    color: var(--primary);
    border: 1px solid #F4ECF7;
}

.swipe-btn.pass:hover {
    background-color: var(--primary-light);
}

.swipe-btn.superlike {
    color: var(--accent-yellow);
    width: 48px;
    height: 48px;
    font-size: 16px;
    border: 1px solid #FFF8DF;
}

.swipe-btn.superlike:hover {
    background-color: #FFF9E6;
}

.swipe-btn.like {
    color: var(--secondary);
    border: 1px solid #F5EEF8;
}

.swipe-btn.like:hover {
    background-color: var(--secondary-light);
}

.swipe-btn.direct-chat {
    color: #4388ff;
    width: 48px;
    height: 48px;
    font-size: 16px;
    border: 1px solid #eef4ff;
}

.swipe-btn.direct-chat:hover {
    background-color: #eaf1ff;
}

/* Map View Styling (Simulated Interactive Canvas Map) */
.map-view-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-card);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.range-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.range-slider-container input[type="range"] {
    width: 120px;
    accent-color: var(--primary);
    cursor: pointer;
}

.map-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.pet { background-color: var(--primary); }
.legend-dot.park { background-color: #2ECC71; }
.legend-dot.vet { background-color: #3498DB; }
.legend-dot.event { background-color: var(--accent-yellow); }

.map-canvas-container {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background-color: #EBF5FB; /* Water color background */
}

/* Dynamic Interactive SVG Map Background */
#simulated-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Map Markers */
.map-marker {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.marker-pin {
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    background-color: var(--primary);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    border: 2px solid white;
}

.marker-pin img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transform: rotate(45deg); /* Counteract the pin rotation */
}

/* Different markers styling */
.map-marker.park .marker-pin { background-color: #2ECC71; }
.map-marker.park .marker-pin i { transform: rotate(45deg); color: white; font-size: 16px; }

.map-marker.vet .marker-pin { background-color: #3498DB; }
.map-marker.vet .marker-pin i { transform: rotate(45deg); color: white; font-size: 16px; }

.map-marker.event .marker-pin { background-color: var(--accent-yellow); }
.map-marker.event .marker-pin i { transform: rotate(45deg); color: #4A3300; font-size: 16px; }

/* Map Popup Card */
.map-popup-card {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: 340px;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    gap: 14px;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.map-popup-card.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.popup-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.popup-title {
    font-weight: 700;
    font-size: 16px;
}

.popup-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.popup-desc {
    font-size: 12px;
    color: var(--text-main);
    margin: 4px 0 8px 0;
    line-height: 1.3;
}

.popup-actions {
    display: flex;
    gap: 8px;
}

.popup-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.popup-btn.primary {
    background-color: var(--primary);
    color: white;
}

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

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

.popup-btn.secondary:hover {
    background-color: var(--border);
}

.close-popup {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
}

/* Events Panel Styling */
.events-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

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

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-card-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 12px;
    display: flex;
    align-items: flex-start;
}

.event-tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

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

.event-attendees {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.attendees-avatars {
    display: flex;
}

.attendee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -8px;
    object-fit: cover;
}

.attendee-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.join-event-btn {
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.join-event-btn.joined {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.join-event-btn:hover {
    transform: scale(1.05);
}

/* Marketplace & Product Promotion Panel */
.marketplace-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

.promo-carousel {
    width: 100%;
    height: 180px;
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.promo-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 30px 40px;
    color: white;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.promo-label {
    background-color: var(--accent-yellow);
    color: #4A3300;
    font-weight: 800;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.promo-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.promo-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.promo-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-weight: 700;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    background-color: #fcfcfc;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0 8px 0;
    color: var(--text-main);
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.buy-product-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.buy-product-btn:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.1);
}

/* Chat & Messaging View Layout */
.chat-layout {
    display: flex;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-sidebar-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.matches-horizontal-list {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;
    -webkit-overflow-scrolling: touch;
}

.matches-horizontal-list::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.matches-horizontal-list::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 4px;
}

.match-avatar-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.match-avatar-circle img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.match-avatar-circle span {
    font-size: 11px;
    font-weight: 600;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-rooms-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-room-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.chat-room-item:hover {
    background-color: var(--bg-warm);
}

.chat-room-item.active {
    background-color: var(--primary-light);
}

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

.room-details {
    flex: 1;
    overflow: hidden;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.room-name {
    font-weight: 700;
    font-size: 14px;
}

.room-time {
    font-size: 11px;
    color: var(--text-muted);
}

.room-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-warm);
    position: relative;
}

.no-chat-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
}

.no-chat-selected i {
    font-size: 60px;
    color: var(--border);
    margin-bottom: 16px;
}

.chat-room-header {
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.chat-room-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-room-title img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-room-meta h4 {
    font-size: 15px;
    font-weight: 700;
}

.chat-room-meta span {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
}

.chat-messages-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.message-bubble.incoming {
    background-color: var(--bg-card);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.message-bubble.outgoing {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

.chat-input-bar {
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border);
    background-color: var(--bg-warm);
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

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

.send-message-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.send-message-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Typing Indicator Animation */
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background-color: var(--bg-card);
    align-self: flex-start;
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

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

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* My Pets & Limit Management View */
.mypets-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

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

.membership-status-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    gap: 16px;
    flex-wrap: wrap;
}

.membership-info h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.membership-action-btn {
    background: var(--gradient-gold);
    color: #4A3300;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.2);
    transition: var(--transition);
}

.membership-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 176, 65, 0.3);
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pet-card-manage {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pet-card-manage:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.12);
}

.pet-card-manage img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.pet-card-manage-info {
    padding: 16px;
    flex: 1;
}

.pet-card-manage-name {
    font-size: 16px;
    font-weight: 700;
}

.pet-card-manage-details {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.delete-pet-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.delete-pet-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Add Pet Button Card */
.add-pet-card {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    cursor: pointer;
    min-height: 220px;
    gap: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.add-pet-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-card);
}

.add-pet-card i {
    font-size: 32px;
}

.add-pet-card span {
    font-weight: 700;
    font-size: 15px;
}

/* Modals Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background-color: var(--bg-warm);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.avatar-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.avatar-opt {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    object-fit: cover;
    transition: var(--transition);
}

.avatar-opt.selected {
    border-color: var(--primary);
    transform: scale(1.1);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn.secondary:hover {
    background-color: var(--border);
}

.btn.gold {
    background: var(--gradient-gold);
    color: #4A3300;
    box-shadow: 0 4px 12px rgba(245, 176, 65, 0.25);
}

.btn.gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 176, 65, 0.35);
}

/* Premium Upgrade Modal Custom Styles */
.premium-features-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.premium-feature-item i {
    color: #F5B041;
    font-size: 18px;
    margin-top: 2px;
}

.premium-feature-item div h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.premium-feature-item div p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.credit-card-mock {
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: monospace;
}

.card-mock-chip {
    width: 40px;
    height: 30px;
    background-color: #F5B041;
    border-radius: 4px;
    opacity: 0.8;
}

.card-mock-number {
    font-size: 18px;
    letter-spacing: 2px;
}

.card-mock-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
}

/* Match Splash Screen Modal Custom Styles */
.match-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,122,96,0.95) 0%, rgba(224,99,74,0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    color: white;
    text-align: center;
}

.match-splash-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.match-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
    letter-spacing: -1px;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.match-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
}

.match-avatars-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
    position: relative;
}

.match-avatar-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.match-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-avatar-frame.left {
    transform: rotate(-10deg);
    animation: slideInLeft 0.6s ease;
}

.match-avatar-frame.right {
    transform: rotate(10deg);
    animation: slideInRight 0.6s ease;
}

.match-heart-icon {
    width: 64px;
    height: 64px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: pulse 1s infinite alternate;
    z-index: 10;
}

.match-splash-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 80%;
    max-width: 320px;
}

.match-splash-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 14px 20px;
    color: white;
    outline: none;
    font-size: 14px;
    text-align: center;
}

.match-splash-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.match-splash-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background-color: #FFF5F2;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: none;
    border: 2px solid white;
    color: white;
}

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

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px) rotate(-30deg); opacity: 0; }
    to { transform: translateX(0) rotate(-10deg); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px) rotate(30deg); opacity: 0; }
    to { transform: translateX(0) rotate(10deg); opacity: 1; }
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* Onboarding Modal Splash */
.onboarding-welcome-logo {
    font-size: 60px;
    text-align: center;
    margin-bottom: 12px;
}

/* Animations for swiping */
.swipe-card.swiped-left {
    transform: translate(-150%, 0) rotate(-40deg) !important;
    opacity: 0;
    pointer-events: none;
}

.swipe-card.swiped-right {
    transform: translate(150%, 0) rotate(40deg) !important;
    opacity: 0;
    pointer-events: none;
}

.swipe-card.swiped-up {
    transform: translate(0, -150%) rotate(0deg) !important;
    opacity: 0;
    pointer-events: none;
}

/* Responsive Media Queries (Mobile & Tablet Viewport Adaptations) */
@media (max-width: 820px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 0 20px;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-brand-logo {
        width: 32px;
        height: 32px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(142, 68, 173, 0.2);
    }
    
    .mobile-logo-img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }
    
    .mobile-brand-name {
        font-size: 20px;
        font-weight: 800;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.5px;
    }
    
    .mobile-profile-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--primary);
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-warm);
    }
    
    .mobile-profile-btn:active {
        transform: scale(0.9);
    }
    
    .mobile-owner-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .bottom-nav {
        display: flex; /* Show bottom navigation on mobile */
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 480px;
        height: 60px;
        background-color: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(142, 68, 173, 0.15);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .main-content {
        padding-bottom: 0;
        height: 100%;
    }
    
    .view-panel {
        padding: 20px;
        padding-top: 80px; /* 60px header + 20px space */
        padding-bottom: 100px; /* 60px nav + 16px bottom + 24px space */
        height: 100%;
        overflow-y: auto;
    }
    
    /* Adapt Chat view for smaller screens */
    .chat-layout {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 100%;
        display: flex;
    }
    
    .chat-main-area {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1100; /* Over bottom-nav and header */
        display: none;
    }
    
    .chat-main-area.active {
        display: flex;
    }
    
    .chat-room-header .back-to-list-btn {
        display: block !important;
    }
    
    .chat-input-bar {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

.chat-room-header .back-to-list-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-main);
}

/* Authentication Screen (modal-auth) */
#modal-auth .modal-box {
    max-width: 420px;
    background-color: var(--bg-card);
}

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

.auth-welcome-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-welcome-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.auth-form-buttons .btn {
    width: 100%;
}

.auth-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
    position: relative;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Timer and Resend Code styling */
#verify-timer-container {
    background-color: rgba(142, 68, 173, 0.05);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(142, 68, 173, 0.1);
    margin-top: 15px;
    font-weight: 500;
}

#verify-countdown {
    color: var(--primary);
    font-weight: 700;
}

#btn-resend-code {
    transition: all 0.3s ease;
    margin-top: 15px !important;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-btn-container {
    position: relative;
    width: 100%;
}

.file-upload-control-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-placeholder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px dashed var(--secondary);
    border-radius: var(--radius-sm);
    background-color: var(--secondary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.file-upload-control-hidden:hover + .file-upload-placeholder-btn {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

/* Previews Grid */
.photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

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

.photo-preview-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    z-index: 3;
    transition: var(--transition);
}

.photo-preview-delete:hover {
    background-color: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

.photo-upload-limit-info {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Owner avatar custom upload preview */
.owner-upload-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.owner-upload-preview-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

/* Tinder Swiper Photo Progress Indicators */
.card-photo-indicators {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    height: 4px;
    z-index: 10;
    pointer-events: none;
}

.indicator-segment {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    height: 100%;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.indicator-segment.active {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Swipe card tap zones overlay (visual cue only, clicks resolved programmatically) */
.swipe-card-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    /* Subtle touch zone dividers or styling if needed */
}

/* Green Button styling for signup/verification */
.btn.green {
    background-color: #2ECC71;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.btn.green:hover {
    background-color: #27AE60;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.3);
}

/* Link-style back button styling */
.btn-back-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 12px;
    display: inline-block;
    transition: var(--transition);
}

.btn-back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Avatar Cropper / Adjuster Styles */
.crop-viewport-wrapper {
    width: 260px;
    height: 260px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #e5e5e5;
    border: 2px solid var(--border);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
}

.crop-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-image-preview {
    position: absolute;
    max-width: none;
    max-height: none;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
}

.crop-image-preview:active {
    cursor: grabbing;
}

.crop-circular-frame {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 5;
}

.crop-zoom-control {
    width: 100%;
    margin-top: 16px;
    background-color: var(--bg-warm);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Sidebar Policies Link */
.sidebar-footer-policies {
    margin-top: auto;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.sidebar-policies-link {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.sidebar-policies-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.sidebar-policies-link i {
    font-size: 14px;
}

/* Map Locked Overlay with Blur */
.map-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none; /* Controlled dynamically by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 24px;
    transition: var(--transition);
}

#btn-toggle-geo {
    transition: var(--transition);
}

#btn-toggle-geo.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

#btn-toggle-geo.active:hover {
    background-color: var(--primary-hover);
}

#btn-toggle-geo.inactive {
    background-color: #E2DDD5;
    color: #555;
    border-color: var(--border);
}

#btn-toggle-geo.inactive:hover {
    background-color: #d5cfc4;
}

/* Leaflet Map Integration & Overlays */
#leaflet-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-locked-overlay {
    z-index: 1000 !important;
}

.map-popup-card {
    z-index: 1001 !important;
}

/* Product Multi-Photo Thumbnails */
.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.prod-thumb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.prod-thumb-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.prod-thumb-dot.active {
    background-color: var(--primary) !important;
    transform: scale(1.2);
}

/* Forgot Password Link styling */
.forgot-password-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mercado Pago Button styling */
.btn-mp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background-color: #009EE3;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 158, 227, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.btn-mp:hover {
    background-color: #0087C4;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 158, 227, 0.3);
}

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

/* Admin VIP Panel Styles */
.admin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    gap: 12px;
    font-size: 13px;
    transition: var(--transition);
}

.admin-item-row:hover {
    border-color: var(--primary);
    background-color: white;
}

.admin-item-info {
    flex: 1;
    overflow: hidden;
}

.admin-item-title {
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-btn-delete {
    background: none;
    border: none;
    color: #E74C3C;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-btn-delete:hover {
    background-color: #FDEDEC;
    transform: scale(1.1);
}

