/* ===============================================
   HelperHK - Blue Theme Stylesheet
   Modern design system for Hong Kong helper platform
   Blue color variant
   =============================================== */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #0F172A;
    background-color: #F8FAFC;
    font-weight: 400;
}

/* ===============================================
   Design System Variables - Blue Theme
   =============================================== */

:root {
    /* Brand Colors - Blue Theme */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-500: #3B82F6;
    --primary-700: #1D4ED8;
    --primary-900: #1E3A8A;

    /* Secondary (Employer Action) */
    --secondary: #1E293B;

    /* Accent (Helper Action) */
    --accent: #F97316;

    /* Neutral System */
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-500: #64748B;
    --neutral-700: #334155;
    --neutral-900: #0F172A;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

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

    /* Spacing (4px base) */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-section: 96px;

    /* Shadows - Updated for Blue Theme */
    --shadow-sm: 0 1px 2px rgba(59, 130, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Container */
    --container-max-width: 1280px;
}

/* ===============================================
   Utility Classes
   =============================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================================
   Typography
   =============================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--neutral-900);
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    line-height: 1.3;
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--neutral-700);
}

/* ===============================================
   Buttons
   =============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 38px;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-700);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-700);
    border: 2px solid var(--primary-700);
}

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

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 14px;
    min-height: 40px;
}

/* ===============================================
   Header
   =============================================== */

.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Top Bar: Login/Signup + Language Selector */
.header-top {
    background-color: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-xs) 0;
}

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

.auth-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-link {
    background: none;
    border: none;
    color: var(--neutral-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-700);
}

.auth-separator {
    color: var(--neutral-300);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Main Header: Logo + Navigation */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0;
}

.desktop-nav {
    display: flex;
    gap: var(--space-xl);
}

.desktop-nav a {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--primary-700);
}

/* .language-selector {
    display: flex;
    align-items: center;
} */

/* .language-select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--neutral-700);
    font-size: 14px;
} */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--neutral-700);
}

/* ===============================================
   Hero Section
   =============================================== */

.hero {
    background-color: var(--neutral-50);
    padding: var(--space-3xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: var(--space-lg);
    color: var(--neutral-900);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--neutral-500);
    margin-bottom: var(--space-2xl);
}

.hero-tabs {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    /* margin-bottom: var(--space-2xl); */
}

.tab-switcher {
    display: flex;
    background-color: var(--neutral-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    /* margin-bottom: var(--space-lg); */
}

.tab-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--neutral-500);
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-700);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    /* Horizontal centering */
    align-items: center;
    width: 100%;
    /* Ensure it spans full width */
}

.search-input {
    flex: 1;
    padding: var(--space-lg);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background-color: var(--neutral-100);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
    background-color: white;
}

.search-btn {
    white-space: nowrap;
    min-width: 140px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-500);
    margin-top: var(--space-xs);
}

/* ===============================================
   Trust Statistics
   =============================================== */

.trust-stats {
    background-color: white;
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-500);
    margin-bottom: var(--space-md);
}

.stat-card .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-card .stat-label {
    font-size: 15px;
    color: var(--neutral-500);
    font-weight: 500;
}

/* ===============================================
   Featured Helpers
   =============================================== */

.featured-helpers {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 18px;
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

.view-all-link {
    color: var(--primary-700);
    text-decoration: none;
    font-weight: 500;
}

.helpers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.helper-card {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

.helper-header {
    position: relative;
    margin-bottom: var(--space-md);
}

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

.helper-card:not([data-verified]) .verification-badge {
    display: none;
}

.verification-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--success);
    border-radius: 50%;
    padding: 4px;
    border: 2px solid white;
}

.verification-badge svg {
    width: 12px;
    height: 12px;
    color: white;
}

.helper-info h3 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-900);
}

.helper-meta {
    font-size: 14px;
    color: var(--neutral-500);
    margin-bottom: var(--space-sm);
}

.helper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.helper-details {
    border-top: 1px solid var(--neutral-200);
    padding-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.helper-description {
    font-size: 14px;
    color: var(--neutral-500);
    margin-bottom: var(--space-sm);
}

.helper-salary {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-700);
}

.helper-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===============================================
   Future Services
   =============================================== */

.future-services {
    background-color: var(--neutral-50);
    padding: var(--space-3xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background-color: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-300);
}

.service-image {
    margin-bottom: var(--space-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-500);
}

.service-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--neutral-900);
}

.service-content p {
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

.coming-soon-badge {
    background-color: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===============================================
   How It Works
   =============================================== */

.how-it-works {
    padding: var(--space-3xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-700);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-500);
    margin: var(--space-lg) 0;
}

.step-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--neutral-900);
}

.step-card p {
    color: var(--neutral-500);
}

/* ===============================================
   Footer
   =============================================== */

.footer {
    background-color: var(--neutral-900);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: var(--neutral-300);
    margin-bottom: var(--space-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-100);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--neutral-800);
    border-radius: var(--radius-sm);
    color: var(--neutral-300);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-700);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: var(--space-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--neutral-300);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--neutral-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* ===============================================
   Mobile Navigation
   =============================================== */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--neutral-200);
    display: none;
    z-index: 100;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    text-decoration: none;
    color: var(--neutral-500);
    transition: color 0.3s ease;
    min-height: 64px;
}

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

.mobile-nav-item span {
    font-size: 12px;
    margin-top: 4px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .trust-indicators {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile responsive top bar - keep visible on all devices */
    .header-top {
        padding: 6px 0;
    }

    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-sm);
    }

    .auth-section {
        gap: var(--space-xs);
    }

    .auth-buttons {
        gap: var(--space-xs);
    }

    .auth-link {
        font-size: 13px;
        padding: 4px 6px;
    }

    .auth-separator {
        font-size: 12px;
        margin: 0 2px;
    }

    .user-info {
        flex-wrap: nowrap;
        gap: var(--space-xs);
    }

    .user-name {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-role {
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
    }

    /* .language-select {
        font-size: 12px;
        padding: 4px 8px;
    } */

    .header-main {
        padding: var(--space-sm) 0;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-letter {
        font-size: 18px;
    }

    .hero {
        padding: var(--space-2xl) 0;
        min-height: 400px;
    }

    .hero-tabs {
        padding: var(--space-lg);
    }

    .tab-switcher {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .search-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .trust-indicators {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .helpers-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
        /* Space for mobile nav */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .helper-actions {
        flex-direction: column;
    }
}

/* ===============================================
   Animations
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
}

/* ===============================================
   Policy & Legal Pages Styles
   =============================================== */

/* Policy Navigation */
.policy-nav {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.policy-nav h3 {
    color: var(--neutral-700);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.policy-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.policy-nav li {
    margin: 0;
}

.policy-nav a {
    color: var(--primary-700);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.policy-nav a:hover {
    background-color: var(--primary-50);
    color: var(--primary-900);
    transform: translateX(4px);
}

/* Policy Content Sections */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: var(--neutral-900);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-500);
}

.policy-section h3 {
    color: var(--neutral-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.policy-section h4 {
    color: var(--neutral-700);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-section ul,
.policy-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Legal Boxes */
.disclaimer-box,
.warning-box,
.compliance-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.disclaimer-box {
    background-color: #FEF3C7;
    border-color: #F59E0B;
}

.disclaimer-box h4 {
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.disclaimer-box p {
    color: #92400E;
    margin: 0;
}

.warning-box {
    background-color: #FEE2E2;
    border-color: #EF4444;
}

.warning-box h4 {
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.warning-box p {
    color: #991B1B;
    margin: 0;
}

.compliance-box {
    background-color: #D1FAE5;
    border-color: #10B981;
}

.compliance-box h4 {
    color: #065F46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.compliance-box p {
    color: #065F46;
    margin: 0;
}

/* Policy Date */
.policy-date {
    background-color: var(--primary-50);
    color: var(--primary-700);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

/* Safety Guidelines Tab System */
.safety-categories {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-tabs {
    display: flex;
    background-color: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-700);
    background-color: var(--neutral-50);
}

.tab-btn.active {
    color: var(--primary-700);
    border-bottom-color: var(--primary-500);
    background-color: white;
}

.tab-content {
    display: none;
    padding: 1rem;
}

.tab-content.active {
    display: block;
}

/* Safety Guidelines Content */
.guideline-section {
    margin-bottom: 2.5rem;
}

.guideline-section h2 {
    color: var(--neutral-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
}

.guideline-section h2 svg {
    color: var(--primary-600);
}

.guideline-list {
    display: grid;
    gap: 1.5rem;
}

.guideline-item h3 {
    color: var(--neutral-700);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.guideline-item ul {
    list-style: none;
    padding: 0;
}

.guideline-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-600);
}

.guideline-item li::before {
    content: "•";
    color: var(--primary-500);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Emergency Contact Card */
.emergency-card {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

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

.emergency-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.emergency-contacts {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.contact-label {
    font-weight: 500;
}

.contact-number {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Safety Tips Grid */
.safety-tips h2 {
    color: var(--neutral-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-500);
}

.tip-card h3 {
    color: var(--neutral-800);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.6;
}

/* Responsibility Grid */
.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.responsibility-card {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
}

.responsibility-card h4 {
    color: var(--primary-700);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.responsibility-card ul {
    list-style: none;
    padding: 0;
}

.responsibility-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.responsibility-card li::before {
    content: "✓";
    color: var(--primary-600);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Information */
.contact-info {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: var(--neutral-800);
}

/* Summary Grid */
.disclaimer-summary {
    background: linear-gradient(135deg, var(--primary-50), #DBEAFE);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--primary-200);
}

.disclaimer-summary h3 {
    color: var(--primary-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.summary-item h4 {
    color: var(--primary-700);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.summary-item p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Policy Actions */
.policy-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.policy-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Cookie Management */
.cookie-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.cookie-management h3 {
    color: var(--neutral-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.quick-links h4 {
    color: var(--neutral-700);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-btn {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-btn:hover {
    background: var(--primary-100);
    color: var(--primary-800);
}

/* Browser Guides */
.browser-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.browser-guide {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
}

.browser-guide h4 {
    color: var(--neutral-800);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-guide ol {
    margin: 0;
    padding-left: 1.25rem;
}

.browser-guide li {
    margin-bottom: 0.5rem;
    color: var(--neutral-600);
    font-size: 0.875rem;
}

/* Third Party Table */
.third-party-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.third-party-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.third-party-table th,
.third-party-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.third-party-table th {
    background: var(--neutral-100);
    color: var(--neutral-800);
    font-weight: 600;
    font-size: 0.875rem;
}

.third-party-table td {
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.third-party-table tr:last-child td {
    border-bottom: none;
}

/* Cookie Categories */
.cookie-category {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-500);
}

.cookie-category p {
    margin-bottom: 0.75rem;
}

.cookie-category p:last-of-type {
    margin-bottom: 0;
}

/* Acknowledgment Box */
.acknowledgment-box {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.acknowledgment-box h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.acknowledgment-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.acknowledgment-box p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* Footer Links Update */
.footer-bottom-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--neutral-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-600);
}

/* Mobile Responsive for Policy Pages */
@media (max-width: 768px) {
    .policy-nav ul {
        grid-template-columns: 1fr;
    }

    .policy-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .category-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
    }

    .tab-btn.active {
        border-right-color: var(--primary-500);
        border-bottom-color: transparent;
    }

    .tips-grid,
    .summary-grid,
    .responsibility-grid,
    .browser-guides {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .policy-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        text-align: center;
    }

    .emergency-card .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ===============================================
   Messages Page Styles
   Responsive chat interface with sidebar
   =============================================== */

.messages-page {
    min-height: calc(100vh - 160px);
    background-color: var(--neutral-100);
    padding: var(--space-md);
    display: flex;
    align-items: stretch;
}

.messages-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: calc(100vh - 192px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Conversations Sidebar */
.messages-sidebar {
    width: 360px;
    min-width: 360px;
    background: white;
    border-right: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    height: auto;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.messages-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    flex-shrink: 0;
}

.messages-sidebar-header h2 {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.messages-sidebar-header h2 svg,
.messages-sidebar-header h2 i {
    width: 24px;
    height: 24px;
    color: var(--primary-700);
}

.conversations-search {
    margin-top: var(--space-md);
    position: relative;
}

.conversations-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-left: 40px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.conversations-search input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.conversations-search svg,
.conversations-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--neutral-500);
    pointer-events: none;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Scrollbar Styling */
.conversations-list::-webkit-scrollbar,
.messages-thread::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track,
.messages-thread::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb,
.messages-thread::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover,
.messages-thread::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* Conversation Item */
.convo-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--space-xs);
    position: relative;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.convo-item:hover {
    background: var(--neutral-100);
}

.convo-item.active {
    background: var(--primary-50);
}

.convo-item.unread {
    background: var(--primary-50);
}

.convo-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    max-height: 40px;
    background: var(--primary-700);
    border-radius: 0 2px 2px 0;
}

.convo-item:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
}

.convo-avatar {
    position: relative;
    flex-shrink: 0;
}

.convo-avatar img,
.convo-avatar .avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--neutral-200);
}

.convo-avatar .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-700);
    background: var(--primary-100);
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid white;
    border-radius: 50%;
}

.convo-content {
    flex: 1;
    min-width: 0;
}

.convo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: var(--space-sm);
}

.convo-name {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.convo-time {
    font-size: 12px;
    color: var(--neutral-500);
    flex-shrink: 0;
    white-space: nowrap;
}

.convo-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.convo-last-message {
    font-size: 13px;
    color: var(--neutral-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.convo-item.unread .convo-last-message {
    color: var(--neutral-900);
    font-weight: 500;
}

.convo-badge {
    background: var(--primary-700);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.convo-delete {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    background: white;
    box-shadow: var(--shadow-sm);
    border: none;
    padding: 0;
}

.convo-delete:hover {
    background: var(--error);
    color: white;
}

.convo-item:hover .convo-delete,
.convo-item:focus-within .convo-delete {
    opacity: 1;
}

.convo-delete:focus-visible {
    opacity: 1;
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

.convo-delete svg,
.convo-delete i {
    width: 16px;
    height: 16px;
}

/* Messages Main Area */
.messages-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--neutral-50);
    min-width: 0;
    transition: transform 0.3s ease;
}

/* Messages Thread Header */
.messages-thread-header {
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.back-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--neutral-700);
    transition: all 0.2s ease;
    padding: 0;
}

.back-btn:hover {
    background: var(--neutral-100);
}

.back-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.back-btn svg,
.back-btn i {
    width: 20px;
    height: 20px;
}

.thread-avatar {
    position: relative;
    flex-shrink: 0;
}

.thread-avatar img,
.thread-avatar .avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-avatar .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-700);
    background: var(--primary-100);
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-name {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-status {
    font-size: 12px;
    color: var(--success);
    margin: 2px 0 0 0;
}

.thread-actions {
    display: flex;
    gap: var(--space-xs);
}

.thread-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.thread-action-btn:hover {
    background: var(--neutral-100);
    color: var(--primary-700);
}

.thread-action-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.thread-action-btn svg,
.thread-action-btn i {
    width: 20px;
    height: 20px;
}

/* Messages Thread Container */
.messages-thread-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.messages-thread {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    -webkit-overflow-scrolling: touch;
}

/* Message Item */
.message-item {
    display: flex;
    gap: var(--space-sm);
    max-width: 70%;
    animation: fadeInUp 0.3s ease;
}

.message-item.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

.message-item.received {
    align-self: flex-start;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .message-item {
        animation: none;
    }
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img,
.message-avatar .avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-700);
    background: var(--primary-100);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 40px);
}

.message-item.sent .message-content {
    align-items: flex-end;
}

.message-item.received .message-content {
    align-items: flex-start;
}

.message-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 100%;
}

.message-item.sent .message-bubble {
    background: #E4E6EB;
    color: var(--neutral-900);
    border-bottom-right-radius: 4px;
}

.message-item.received .message-bubble {
    background: white;
    color: var(--neutral-900);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message-bubble p {
    margin: 0;
}

.message-media {
    margin-top: var(--space-sm);
}

.message-media img {
    max-width: 280px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.message-media img:hover {
    transform: scale(1.02);
}

.file-attachment {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.message-item.received .file-attachment {
    background: var(--neutral-100);
}

.file-attachment:hover {
    opacity: 0.9;
}

.file-attachment svg,
.file-attachment i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.message-time {
    font-size: 11px;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-item.sent .message-time {
    justify-content: flex-end;
}

.message-status {
    display: flex;
    align-items: center;
    gap: 2px;
}

.message-status svg,
.message-status i {
    width: 14px;
    height: 14px;
}

.message-status.sent svg,
.message-status.sent i {
    color: var(--neutral-500);
}

.message-status.delivered svg,
.message-status.delivered i {
    color: var(--neutral-500);
}

.message-status.read svg,
.message-status.read i {
    color: var(--primary-500);
}

/* Send Message Form */
.send-message-form {
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-top: 1px solid var(--neutral-200);
    flex-shrink: 0;
}

.message-input-container {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.message-attachment-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.message-attachment-btn:hover {
    background: var(--neutral-200);
    color: var(--primary-700);
}

.message-attachment-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.message-attachment-btn svg,
.message-attachment-btn i {
    width: 20px;
    height: 20px;
}

.message-input-wrapper {
    flex: 1;
    position: relative;
}

.message-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-right: 40px;
    border: none;
    background: transparent;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    font-family: inherit;
    line-height: 1.5;
    border-radius: var(--radius-sm);
}

.message-input:focus {
    outline: none;
}

.message-input::placeholder {
    color: var(--neutral-500);
}

.message-emoji-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--neutral-500);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.message-emoji-btn:hover {
    background: var(--neutral-200);
    color: var(--primary-700);
}

.message-emoji-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.message-emoji-btn svg,
.message-emoji-btn i {
    width: 18px;
    height: 18px;
}

.message-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--primary-700);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

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

.message-send-btn:disabled {
    background: var(--neutral-300);
    cursor: not-allowed;
    transform: none;
}

.message-send-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.message-send-btn svg,
.message-send-btn i {
    width: 20px;
    height: 20px;
}

.file-input {
    display: none;
}

/* Scroll Controls */
.scroll-to-bottom-btn {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.scroll-to-bottom-btn:hover {
    background: var(--neutral-50);
    transform: scale(1.1);
}

.scroll-to-bottom-btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.scroll-to-bottom-btn svg,
.scroll-to-bottom-btn i {
    width: 20px;
    height: 20px;
    color: var(--neutral-700);
}

.new-messages-indicator {
    position: absolute;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-700);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.2s ease;
    border: none;
}

.new-messages-indicator:hover {
    background: var(--primary-800);
}

.new-messages-indicator:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.new-messages-indicator svg,
.new-messages-indicator i {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--neutral-500);
}

.messages-empty-state {
    min-height: 400px;
}

.empty-state.small {
    padding: var(--space-xl);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--neutral-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.empty-state-icon svg,
.empty-state-icon i {
    width: 40px;
    height: 40px;
    color: var(--neutral-500);
}

.empty-state h3 {
    font-size: 18px;
    color: var(--neutral-700);
    margin: 0 0 var(--space-sm) 0;
}

.empty-state p {
    color: var(--neutral-500);
    max-width: 300px;
    margin: 0;
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ===============================================
   Page Header Styles
   =============================================== */

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-50), #DBEAFE);
    margin-bottom: 2rem;
}

.page-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
}

.page-icon svg {
    width: 40px;
    height: 40px;
}

.page-header h1 {
    color: var(--neutral-900);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--neutral-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}

/* Mobile responsive page header */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .page-icon {
        width: 60px;
        height: 60px;
    }

    .page-icon svg {
        width: 30px;
        height: 30px;
    }

    .main-content {
        padding: 1rem 0;
    }

    .page-header {
        padding: 1.5rem 0;
    }
}

/* User Role Selection Modal */
.modal.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.role-options {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.role-option {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.role-option.selected {
    border-color: #007bff;
}

.role-option:hover {
    border-color: #007bff;
}

.hidden {
    display: none !important;
}

/* Main Login Prompt Container */
.login-prompt {
    display: none;
}

/* Hero Section */
.login-prompt-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-100) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.login-prompt-hero h1 {
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.login-prompt-hero p {
    font-size: 18px;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.login-prompt-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

/* Card Wrapper */
.login-prompt-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Card Body */
.login-prompt-card-body {
    padding: var(--space-xl);
}

/* Card Icon */
.login-prompt-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg) auto;
}

.login-prompt-card .card-icon i[data-lucide],
.login-prompt-card .card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-700);
}

/* Card Content */
.login-prompt-card h3 {
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
    text-align: center;
}

.login-prompt-card p {
    margin-bottom: var(--space-xl);
    color: var(--neutral-600);
    text-align: center;
    line-height: 1.6;
}

/* Button Group */
.login-prompt-card .btn-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Base Button Styles
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-outline:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.m-auto {
    margin: 0 auto;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .login-prompt-hero {
        padding: var(--space-xl) 0;
    }

    .login-prompt-hero p {
        font-size: 15px;
        padding: 0 var(--space-md);
    }

    .login-prompt-container {
        padding: var(--space-xl) var(--space-md);
    }

    .login-prompt-card {
        margin: 0 var(--space-md);
        max-width: none;
    }

    .login-prompt-card .card-icon {
        width: 60px;
        height: 60px;
    }

    .login-prompt-card .card-icon i[data-lucide],
    .login-prompt-card .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .login-prompt-card .btn-group {
        flex-direction: column;
    }

    .login-prompt-card .btn {
        width: 100%;
    }
}

/* ========================================
   For Viewing Job, Helper or Post Details
   ======================================== */
.job-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    /* border-radius: var(--radius-md); */
    overflow: hidden;
    /* box-shadow: var(--shadow-md); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.job-card-link .job-card {
    height: 100%;
}

.thread-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.thread-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--neutral-50);
}

.thread-link .thread-item {
    background: white;
    padding: var(--space-lg);
}

/* CSS for Agencies Links (Add to css/main.css) */
.agency-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.agency-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--neutral-50);
}

.agency-logo {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.view-details {
    display: block;
    text-align: right;
    color: var(--primary-700);
    padding: var(--space-sm);
}

/* Template Button Styles */
.template-section {
    margin-bottom: var(--space-md);
}

.template-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
}

.template-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.template-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 13px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.template-btn.active {
    background: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.template-btn.clear-btn {
    background: var(--error-50);
    border-color: var(--error-200);
    color: var(--error-700);
}

.template-btn.clear-btn:hover {
    background: var(--error-100);
    border-color: var(--error-400);
    color: var(--error-800);
}

.jobs-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.jobs-list.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.jobs-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* For text capitalization on every word separated by a space */
.user-name {
    text-transform: uppercase;
}

.job-company {
    text-transform: capitalize;
}

.helper-nationality {
    text-transform: capitalize;
}

.job-detail-card-header {
    text-transform: capitalize;
}

.detail-item {
    text-transform: capitalize;
}

.agency-meta-item {
    text-transform: capitalize;
}

.agency-image {
    text-transform: capitalize;
}

.agency-name {
    text-transform: capitalize;
}

.agency-meta {
    text-transform: capitalize;
}

.agency-section {
    text-transform: capitalize;
}

/* .helper-detail-card {
    text-transform: capitalize;
} */

.helper-meta {
    text-transform: capitalize;
}

.job-detail {
    text-transform: capitalize;
}

/* Ensure full-page layout for login */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    flex: 1;
}

.helpers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    padding: 0;
}

.helper-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Make whole card clickable */
.helper-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.helper-card[data-email] {
    cursor: pointer;
}

/* Optional: overlay link for accessibility */
.helper-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.helpers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.helper-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.helper-card:hover {
    box-shadow: var(--shadow-lg);
}

#profile-image-preview {
    max-width: 100%;
    /* Ensures it never exceeds the parent's width */
    height: auto;
    /* Maintains original aspect ratio */
    display: block;
    /* Removes any inline spacing issues */
    margin: var(--space-md) auto;
    /* Centers it with some spacing (using your design system's variables) */
    border-radius: var(--radius-sm);
    /* Optional: Adds a subtle border radius for a polished look */
    box-shadow: var(--shadow-sm);
    /* Optional: Adds a light shadow for depth */
    object-fit: contain;
    /* Ensures the entire image fits without cropping (use 'cover' if you prefer cropping) */
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.detail-list .detail-item {
    padding: var(--space-md);
    background: var(--neutral-50);
    border-radius: var(--radius-sm);
}

.form-group label.form-label {
    text-align: left;
    display: block;
}

/* Logo Styles - Facebook-style with R in circle */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
}

.logo-letter {
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-700);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-letter {
        font-size: 20px;
    }

    .logo-link {
        gap: 10px;
    }
}

/* ===============================================
   Messages Page Responsive Design
   =============================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .messages-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* Tablets (landscape) */
@media (max-width: 1024px) {
    .messages-page {
        padding: 0;
        min-height: calc(100vh - 70px);
    }

    .messages-container {
        height: calc(100vh - 70px);
        min-height: auto;
    }

    .messages-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 100;
        transform: translateX(0);
        visibility: visible;
    }

    .messages-sidebar.hidden {
        transform: translateX(-100%);
        visibility: hidden;
    }
/* Use to avoid back arrow covered by header*/
    .messages-main {
        position: absolute;
        left: 0;
        top: 125px;
        height: calc(100% - 64px);
        z-index: 99;
        transform: translateX(0);
        width: 100%;
    }

    .messages-main:not(.active) {
        transform: translateX(100%);
        visibility: hidden;
    }

    .back-btn {
        display: flex;
    }

    .message-item {
        max-width: 80%;
    }
}

/* Tablets (portrait) and large phones */
@media (max-width: 768px) {
    .messages-page {
        min-height: calc(100vh - 64px);
    }

    .messages-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .messages-sidebar-header {
        padding: var(--space-md);
    }

    .messages-sidebar-header h2 {
        font-size: 18px;
    }

    .convo-item {
        padding: var(--space-sm) var(--space-md);
    }

    .convo-avatar img,
    .convo-avatar .avatar-initials {
        width: 44px;
        height: 44px;
    }

    .convo-name {
        font-size: 14px;
    }

    .convo-last-message {
        font-size: 12px;
    }

    .messages-thread {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .message-item {
        max-width: 85%;
    }

    .message-bubble {
        font-size: 14px;
        padding: var(--space-sm) var(--space-md);
    }

    .message-media img {
        max-width: 200px;
    }

    .send-message-form {
        padding: var(--space-sm) var(--space-md);
    }

    .message-input-container {
        padding: var(--space-xs);
    }

    .message-item.sent .message-bubble {
        border-bottom-right-radius: 12px;
    }

    .message-item.received .message-bubble {
        border-bottom-left-radius: 12px;
    }

    .messages-thread-header {
        padding: var(--space-sm) var(--space-md);
    }

    .thread-avatar img,
    .thread-avatar .avatar-initials {
        width: 36px;
        height: 36px;
    }

    .thread-name {
        font-size: 14px;
    }

    .thread-actions {
        gap: 0;
    }

    .thread-action-btn {
        width: 36px;
        height: 36px;
    }

    .message-attachment-btn,
    .message-send-btn {
        width: 36px;
        height: 36px;
    }

    .message-send-btn svg,
    .message-send-btn i {
        width: 16px;
        height: 16px;
    }

    .scroll-to-bottom-btn {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 40px;
        height: 40px;
    }

    .new-messages-indicator {
        font-size: 12px;
        padding: var(--space-xs) var(--space-sm);
    }

    .empty-state {
        padding: var(--space-lg);
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
    }

    .empty-state-icon svg,
    .empty-state-icon i {
        width: 30px;
        height: 30px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .messages-page {
        min-height: calc(100vh - 60px);
    }

    .message-item {
        max-width: 90%;
    }

    .message-media img {
        max-width: 100%;
    }

    .convo-item.unread::before {
        height: 30px;
    }

    .convo-delete {
        width: 28px;
        height: 28px;
        opacity: 1;
        background: transparent;
        box-shadow: none;
    }

    .messages-sidebar-header h2 span {
        display: none;
    }

    .messages-sidebar-header h2::after {
        content: 'Inbox';
        font-size: 18px;
    }

    .back-btn {
        width: 36px;
        height: 36px;
    }

    .message-send-btn {
        width: 40px;
        height: 40px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .message-item {
        max-width: 95%;
    }

    .message-bubble {
        padding: var(--space-xs) var(--space-sm);
        font-size: 13px;
    }

    .convo-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .convo-badge {
        align-self: flex-start;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .messages-page {
        min-height: auto;
    }

    .messages-container {
        height: auto;
        min-height: 100vh;
    }

    .messages-sidebar {
        height: 100vh;
    }

    .messages-main {
        height: 100vh;
    }

    .convo-item {
        padding: var(--space-xs) var(--space-md);
    }

    .convo-avatar img,
    .convo-avatar .avatar-initials {
        width: 36px;
        height: 36px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .convo-delete {
        opacity: 1;
    }

    .thread-action-btn,
    .message-attachment-btn,
    .message-emoji-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .message-item {
        touch-action: manipulation;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .message-item.sent .message-bubble {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .message-item.received .message-bubble {
        background: #fff;
        border: 2px solid #000;
    }

    .convo-item.active {
        outline: 2px solid var(--primary-700);
        outline-offset: -2px;
    }
}

/* GOOGLE LANGUAGE TRANSLATOR */
/* Style the main widget container */
#google_translate_element {
    font-family: 'Geometric sans-serif', sans-serif !important;
    /* Force your brand font */
    /* background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
}

/* Customize the select dropdown specifically */
#google_translate_element select {
    /* color: #333;
    background-color: #f8f9fa; */
    /* border: 1px solid #ddd;
    border-radius: 4px; */
    /* padding: 5px; */
    font-size: 14px;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget img {
    display: none !important;
}

/* Hide the Google Translate banner/toolbar */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

/* Specific 2026 iframe class wrapper */
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

/* Remove the top margin/padding Google adds to the body */
body {
    top: 0px !important;
}

/* Hide the entire "Translate" link + Google logo branding */
.goog-te-gadget .VIpgJd-ZVi9od-l4eHX-hSRGPd,
.goog-te-gadget span[style*="white-space:nowrap"] a[href*="translate.google.com"],
.goog-te-gadget a[target="_blank"] {
    display: none !important;
}

/* Also hide any remaining "Powered by" or logo remnants if they appear */
.goog-te-gadget .goog-logo-link,
.goog-te-gadget .goog-logo-link:link,
.goog-te-gadget .goog-logo-link:visited,
.goog-te-gadget .goog-logo-link:hover,
.goog-te-gadget .goog-logo-link:active {
    display: none !important;
}