        /* Global Box-Sizing for consistent layout */
        *, *::before, *::after {
            box-sizing: border-box;
        }
        * {
            margin: 0;
            padding: 0;
        }
        *::-webkit-scrollbar {
            display: none; /* Hide scrollbar for all elements */
        }
        /* Disable text selection */
body, * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

/* Prevent long press saving on images */
img {
  -webkit-touch-callout: none; /* iOS Safari */
}

.status-bar-extension {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: env(safe-area-inset-top) !important; /* fallback height */
  background: inherit; /* matches your body background */
  z-index: 999;
  padding: env(safe-area-inset-bottom, 20px);
    margin: env(safe-area-inset-right);
}

        /* Base Styles */
        html {
            background-color:hsla(240,75%,67%,1);
background-image:
radial-gradient(at 71% 33%, hsla(24,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 80% 0%, hsla(189,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 14% 62%, hsla(351,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 63% 73%, hsla(340,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 0% 100%, hsla(22,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 89% 89%, hsla(242,100%,70%,1) 0px, transparent 50%),
radial-gradient(at 13% 15%, hsla(343,17%,97%,1) 0px, transparent 50%);
                         padding-top: env(safe-area-inset-top) !important;
padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color:hsla(240,75%,67%,1);
background-image:
radial-gradient(at 71% 33%, hsla(24,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 80% 0%, hsla(189,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 14% 62%, hsla(351,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 63% 73%, hsla(340,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 0% 100%, hsla(22,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 89% 89%, hsla(242,100%,70%,1) 0px, transparent 50%),
radial-gradient(at 13% 15%, hsla(343,17%,97%,1) 0px, transparent 50%);
            display: flex;
            justify-content: center;
            align-items: flex-start; /* Aligns content to top if container is shorter than viewport */
            min-height: 100vh;
            padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
            margin: 0;
            overflow-x: hidden; /* Prevent horizontal scrolling */
                         padding-top: env(safe-area-inset-top) !important;

        }
        body::before {
  content: '';
  position: fixed;
  top: 0;
  height: env(safe-area-inset-top);
  width: 100%;
  background: rgba(255,0,0,0.2); /* Debug: red overlay */
  z-index: 9999;
}


        .container {
            background-color:hsla(240,75%,67%,1);
background-image:
radial-gradient(at 71% 33%, hsla(24,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 80% 0%, hsla(189,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 14% 62%, hsla(351,0%,100%,1) 0px, transparent 50%),
radial-gradient(at 63% 73%, hsla(340,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 0% 100%, hsla(22,17%,97%,1) 0px, transparent 50%),
radial-gradient(at 89% 89%, hsla(242,100%,70%,1) 0px, transparent 50%),
radial-gradient(at 13% 15%, hsla(343,17%,97%,1) 0px, transparent 50%);
            width: 100%;
            max-width: 400px; /* Max width for a typical phone screen */
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* More subtle shadow */
                overflow: scroll;
    display: flex
;
    flex-direction: column;
    min-height: 100vh;
    background-size: 100vh;
    height: 100vh;
    padding-top: env(safe-area-inset-top);
        }

        /* Custom styles for the leaf icon on user avatars */
        .avatar-leaf-icon {
            position: absolute;
            top: -2px; /* Adjusted position */
            right: -2px; /* Adjusted position */
            width: 16px; /* Larger size to match original */
            height: 16px; /* Larger size to match original */
            background-color: #4CAF50; /* Green color for the leaf */
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 1px solid white; /* Small white border */
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); /* Subtle border effect */
        }
        /* Inner leaf shape for avatar leaf icon */
        .avatar-leaf-icon::before {
            content: '';
            width: 8px; /* Size of the inner leaf */
            height: 8px; /* Size of the inner leaf */
            background-color: white; /* White leaf inside green circle */
            border-radius: 0 100% 0 100% / 100% 0 100% 0; /* Leaf shape */
            transform: rotate(-45deg);
        }

        /* Custom style for the 'Y' box (retained from previous versions, might not be used on new elements) */
        .y-box {
            width: 24px;
            height: 24px;
            background-color: #e0f2f1; /* Light teal */
            border-radius: 0.375rem; /* rounded-md */
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            color: #00796B; /* Darker teal */
            font-size: 0.875rem; /* text-sm */
        }

        /* Hide scrollbar */
        .main-content-scroll::-webkit-scrollbar {
            display: none;
        }
        .main-content-scroll {
            -ms-overflow-style: none; /* IE and Edge */
            scrollbar-width: none; /* Firefox */
            flex-grow: 1;
            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
            padding: 0 1em;
            padding-bottom: 72px; /* Add space for fixed footer height */
        }

        /* SVG Icon Styling */
        .icon {
            width: 24px; /* Default icon size */
            height: 24px; /* Default icon size */
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .icon-sm {
            width: 18px;
            height: 18px;
        }
        .icon-lg {
            width: 28px;
            height: 28px;
        }
        .fill-icon {
            fill: currentColor;
            stroke: none;
        }

        /* Specific leaf icon next to names (retained from previous versions, might not be used on new elements) */
        .name-leaf-icon {
            display: inline-block;
            width: 12px;
            height: 12px;
            margin-left: 4px;
            vertical-align: middle;
        }
        .name-leaf-icon svg {
            width: 100%;
            height: 100%;
            fill: #4CAF50; /* Green color for the leaf */
            stroke: none;
        }

        /* Fixed bottom navigation styling */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%); /* Center horizontally */
            width: 100%;
            max-width: 400px; /* Match container max-width */
            z-index: 500; /* Ensure it stays on top */
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom-left-radius: 0.75rem;
            border-bottom-right-radius: 0.75rem;
            box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 12px 16px; /* py-3 px-4 */
            background-color: rgb(255, 255, 255, 0.5);
    border-top: 1px solid #f3f4f6;
    backdrop-filter: blur(10px);
        }
        .nav-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            color: #333; /* Default icon color */
            position: relative;
        }
        span.unread-indicator {
    position: absolute;
    background: dodgerblue;
    color: #fff;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    font-size: 0.6em
9.6px
;
    display: flex
;
    justify-content: center;
    align-items: center;
    top: -10px;
    right: 6px;
}
        .nav-icon.active {
            color: #000; /* Active icon color */
        }
        .nav-icon span {
            font-size: 0.75rem; /* text-xs */
            color: #4b5563; /* text-gray-700 */
            margin-top: 4px; /* mt-1 */
        }
        div#showContact {
    padding: 0 1em;
}
div#showContact div {
    background: rgb(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
}


        /* Popular Section */
        .popular-section {
            padding: 24px 16px; /* px-4 py-6 */
            border-bottom: 1px solid #f3f4f6; /* border-b border-gray-100 */
        }
        .popular-section h2 {
            font-size: 1rem; /* text-base */
            font-weight: 600; /* font-semibold */
            margin-bottom: 16px; /* mb-4 */
            color: #374151; /* text-gray-800 */
        }
        .popular-users-list {
            display: flex;
            gap: 16px; /* space-x-4 */
            overflow-x: auto;
            padding-bottom: 8px; /* pb-2 */
        }
        .popular-user-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
            position: relative;
        }
        .popular-user-item img {
            width: 64px; /* w-16 */
            height: 64px; /* h-16 */
            border-radius: 9999px; /* rounded-full */
            object-fit: cover;
        }
        .popular-user-item span {
            margin-top: 8px; /* mt-2 */
            font-size: 0.875rem; /* text-sm */
            color: #4b5563; /* text-gray-700 */
        }
        .popular-user-item .text-xs {
            font-size: 0.75rem;
        }

        /* Dating Card Specific Styles */
        .dating-card {
            background-color: #ffffff;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
            transition: transform 0.4s ease-out, opacity 0.4s ease-out;
            position: relative;
        }
        .dating-card-content-wrapper {
            padding: 16px; /* p-4 */
        }

        .photo-collage {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px;
            width: 100%;
            height: 250px;
            overflow: hidden;
            cursor: pointer;
        }
        .photo-collage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .dating-card h3 {
            font-size: 1.25rem; /* text-xl */
            font-weight: 600; /* font-semibold */
            color: #1f2937; /* text-gray-800 */
            margin-bottom: 4px; /* small margin after name */
        }
        .dating-card p {
            color: #4b5563; /* text-gray-600 */
            font-size: 0.875rem; /* text-sm */
            margin-bottom: 16px; /* spacing before action pill */
        }

        /* Action Pill (Slider Track) */
        .action-pill {
            background-color: #e2e8f0;
            border-radius: 9999px;
            height: 48px;
            padding: 0 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            margin-top: 0; /* No explicit mt-4 if p has margin-bottom */
            margin-bottom: 16px; /* spacing after action pill */
        }

        /* Draggable Circle */
        .drag-circle {
            width: 40px;
            height: 40px;
            background-color: #3b82f6;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            cursor: grab;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: left 0.3s ease-in-out, background-color 0.3s ease-in-out;
        }

        /* WhatsApp Button Gradient */
        .whatsapp-button {
            background-image: linear-gradient(to right, #e0b0ff, #fff, #ffe0b0);
            color: #333;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem; /* Smooth edges */
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
            transition: transform 0.2s ease-in-out;
            border: 1px solid rgba(255, 255, 255, 0.8); /* Off-white border */
            width: 100%; /* Full width */
            display: block; /* Ensures margin works correctly */
            margin-top: 0; /* Controlled by padding in parent */
            margin-bottom: 0; /* Controlled by padding in parent */
        }
        .whatsapp-button:active {
            transform: translateY(1px);
        }

        /* Fullscreen Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            display: block;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        .modal-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: #ffffff;
            width: 100%;
            height: 100%;
            border-radius: 0;
            box-shadow: none;
            flex-direction: column;
            overflow: scroll;
            position: relative;
        }
        .modal-header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: flex-end;
            padding: 1rem;
            z-index: 10;
        }
        .modal-close-button {
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            border: none; /* Ensure no default button border */
        }
        .modal-image-gallery {
            position: relative;
            width: 100%;
            height: 50vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #2d3748;
        }
        .modal-image-gallery img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease-in-out;
        }
        .modal-image-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 0.75rem;
        }
        .modal-image-nav button {
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            border: none; /* Ensure no default button border */
        }
        .modal-details {
            flex-grow: 1;
            padding: 2rem;
            overflow-y: auto;
                padding-bottom: 6em;
        }
        .modal-details h2 {
            font-size: 2rem;
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 0.75rem;
        }
        .modal-details p {
            color: #4a5568;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        /* Specific style for modal bio and looking for text */
        .modal-text-style {
            color: #4a5568; /* gray-700 */
            font-size: 1.1rem; /* Slightly larger text */
            margin-bottom: 1rem; /* More spacing */
            line-height: 1.6; /* Improved readability */
        }
        .modal-details h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1a202c;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }
        .modal-details ul {
            list-style: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0;
        }
        .modal-details ul li {
            background-color: #edf2f7;
            padding: 0.4rem 1rem;
            border-radius: 9999px;
            font-size: 0.95rem;
            color: #2d3748;
        }

        /* Card Exit Animations */
        .dating-card.exiting-right {
            transform: translateX(100%) scale(0.5);
            opacity: 0;
            transition: transform 0.4s ease-out, opacity 0.4s ease-out;
            position: absolute; /* Take it out of flow for smooth exit */
            width: calc(100% - 2rem); /* Account for padding in main-content-scroll (p-4 = 1rem on each side) */
            left: 1rem; /* Align with padding */
        }

        .dating-card.exiting-left {
            transform: translateX(-100%) scale(0.5);
            opacity: 0;
            transition: transform 0.4s ease-out, opacity 0.4s ease-out;
            position: absolute; /* Take it out of flow for smooth exit */
            width: calc(100% - 2rem); /* Account for padding in main-content-scroll */
            left: 1rem; /* Align with padding */
        }
.bg-white.p-6.rounded-lg.shadow-xl.max-w-sm.w-full.text-center {
    display: none;
}

/* Floating Button */
.floating-button {
    position: fixed;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    color: white; /* Icon color */
    padding: 0; /* Remove default button padding */
}

.floating-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.2);
}

.floating-button svg {
    width: 28px;
    height: 28px;
    stroke: #333; /* Darker color for the ticket icon to stand out */
}

/* Unlock Match Modal - Vox Luxe Style */
.unlock-match-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    /* transform: translate(-50%, 100%); */
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 1em 1em 0 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    z-index: 1000;
    transition: transform 0.35s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    border: none;
}

.unlock-match-modal.open {
    opacity: 1;
}

.unlock-match-modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.unlock-match-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: #999;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.unlock-match-modal-close:hover {
    color: #111;
}

.unlock-match-modal-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.unlock-match-proceed-button {
    background-color: #005fee;
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 95, 238, 0.25);
    transition: background 0.25s ease, transform 0.1s ease;
}

.unlock-match-proceed-button:hover {
    background-color: #0047c0;
    transform: scale(1.02);
}

.unlock-match-proceed-button:active {
    transform: scale(0.98);
}

button.unlock-match-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    overflow: hidden;
}

/* ✨ Actual glitter particles using animated dots */
button.unlock-match-card-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 215, 0, 0.7) 1.5px, transparent 2px);
    background-size: 12px 12px;
    animation: glitterAnimation 2s linear infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* 💫 Optional pulse to make it feel alive */
button.unlock-match-card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

@keyframes glitterAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}


button.unlock-match-card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

button.unlock-match-card-button:active {
    transform: scale(0.97);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

button.unlock-match-card-button svg,
button.unlock-match-card-button i {
    font-size: 1.25rem;
    color: #00ee3b; /* Vox blue icon */
}


/* PWA Install Prompt */
.install-popup {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 9999;
}

.install-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
  margin: auto;
  animation: slideUp 0.3s ease-in-out;
}

.install-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.install-card h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #005fee;
}

.install-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 1rem;
}

#install-btn {
  background-color: #005fee;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#install-btn:hover {
  background-color: #0047c4;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* General Modal Overlay Styles */
.match-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.match-modal.open {
    display: flex; /* Show when open */
}

/* Modal Content Box */
.match-modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered vertically and horizontally */
    padding: 20px;
    border-radius: 12px; /* Rounded corners */
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for desktop */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* For absolute positioning of close button */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem; /* Space between elements */
}

/* Close Button */
.match-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.match-modal-close:hover,
.match-modal-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Matched User Name */
#matched-user-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50; /* Green color for match success */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Matched User Image */
#matched-user-image {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
    border: 4px solid #4CAF50; /* Green border to highlight match */
    margin-bottom: 1rem;
}

/* Chat Messages Container */
#chat-messages-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 200px; /* Fixed height for chat area */
    overflow-y: auto; /* Scrollable */
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    font-size: 0.9rem;
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
}

#chat-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 9999px; /* Fully rounded input */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#chat-input:focus {
    border-color: #2196F3; /* Blue on focus */
}

#send-message-button {
    background-color: #2196F3; /* Blue send button */
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 9999px; /* Fully rounded button */
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#send-message-button:hover {
    background-color: #1976D2; /* Darker blue on hover */
}

/* Styling for messages within the chat container */
.chat-messages-container div {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-messages-container div.ml-auto {
    background-color: #DCF8C6; /* Light green for sent messages */
    align-self: flex-end; /* Align to right for sent messages */
}

.chat-messages-container div.mr-auto {
    background-color: #EAEAEA; /* Light grey for received messages */
    align-self: flex-start; /* Align to left for received messages */
}


/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .match-modal-content {
        width: 95%;
        padding: 15px;
    }

    #matched-user-name {
        font-size: 1.5rem;
    }

    #matched-user-image {
        width: 100px;
        height: 100px;
    }

    #chat-messages-container {
        height: 150px;
    }

    #chat-input,
    #send-message-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
input#match-card-chat-input {
    background: transparent;
}

/* directions fo <<<<< >>>>>> */
span.directions {
    color: #999;
    position: absolute;
    z-index: 1;
}
.drag-circle {
    z-index: 2;
}
span.directions.left {
    left: 3em;
}
span.directions.right {
    right: 3em;
}
/* subtle animation that nudges directions to show where they are pointing */
span.directions.right {
    animation: nudge-right 1.2s infinite alternate;
}
span.directions.left {
    animation: nudge-left 1.2s infinite alternate;
}
@keyframes nudge-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(9px);
    }
}
@keyframes nudge-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-9px);
    }
}
