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

@import 'variables.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-main);
    background-image: var(--bg-glow-gradient);
    background-attachment: fixed;
    font-family: var(--font-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5);
}

.btn-ghost {
    background: rgba(125, 125, 125, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    /* Ensure visibility if text matches background, though text-main should contract main bg */
}

.btn-ghost:hover {
    background: rgba(125, 125, 125, 0.2);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    display: block;
    height: auto;
    max-width: 200px;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 70px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle - Fixed width and Animation */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    width: 40px; /* Fixed width to prevent shift */
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), color 0.3s;
}

.theme-toggle:hover i {
    color: var(--text-main);
    transform: rotate(15deg);
}

/* Animation trigger class for JS (optional, using :hover and data-theme approach mainly) */
[data-theme="dark"] .theme-toggle i {
    color: #fbbf24; /* Sun color */
    transform: rotate(180deg);
}

/* Language Dropdown */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--gradient-hero-overlay), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    animation: liftHero 20s infinite alternate ease-in-out;
}

@keyframes liftHero {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.1) translateY(-20px); }
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-main); /* Ensure contrast in variables */
}

/* Dark mode override for Hero text shadow */
[data-theme="dark"] .hero-content h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-main); /* Increased contrast from muted */
    font-weight: 500;
    margin-bottom: 40px;
}

.reg-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    text-align: left;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(125, 125, 125, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: rgba(125, 125, 125, 0.4);
    background: rgba(125, 125, 125, 0.1);
}

/* Features */
.features-section {
    /* padding: 80px 0; */
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(125, 125, 125, 0.2);
    background: var(--glass-bg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(125, 125, 125, 0.05);
    border-radius: 50%;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section - More Expressive in Light Mode */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    margin: 60px 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow); /* Added shadow for expressiveness */
}

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

.stat-number {
    font-size: 3rem; /* Slightly larger */
    font-weight: 800;
    color: var(--text-main); /* Will use gradient in dark mode via override/clip, solid in light for readability */
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* New Sections Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.step-item h3 {
    color: var(--text-main);
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.4);
    color: white;
}



/* Awards Section */
.awards-section {
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.awards-section h2 {
    color: var(--text-main);
}

[data-theme="light"] .awards-section h2 {
    color: var(--text-main);
}

/* Awards Infinite Scroll */
.awards-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.awards-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollAwards 30s linear infinite;
}

.awards-track:hover {
    animation-play-state: paused;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 200px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.award-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.award-img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.award-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    margin-bottom: 5px;
}

[data-theme="light"] .award-title {
    color: var(--text-main);
}

@keyframes scrollAwards {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

/* Blog Section */
.blog-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px 40px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-main);
}

/* Ensure blog title is visible in light mode */
[data-theme="light"] .blog-title {
    color: #000000;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.blog-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.blog-link:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: var(--bg-footer);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-listitem {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(125, 125, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    color: var(--text-muted);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-card {
        flex: 0 0 280px;
    }
}

/* --- RESTORED UTILITIES --- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.mr-10 { margin-right: 10px; }
.ml-5 { margin-left: 5px; }
.mb-5 { margin-bottom: 5px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-80 { margin-bottom: 80px; }
.mt-10 { margin-top: 10px; }
.mt-60 { margin-top: 60px; } 
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }
.pt-80 { padding-top: 80px; }
.pt-100 { padding-top: 100px; }
.pl-20 { padding-left: 20px; }
.pb-60 { padding-bottom: 60px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.p-20 { padding: 20px; }
.w-full { width: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xl { font-size: 1.25rem; }

/* Compose Form Tweaks */
textarea.input-field {
    resize: vertical;
    min-height: 150px;
}
.text-2xl { font-size: 1.5rem; font-weight: 700; }
.text-primary { color: var(--color-primary); }
.text-gray { color: var(--text-muted); }
.relative { position: relative; }
.absolute { position: absolute; }
.right-10 { right: 10px; }
.top-12 { top: 12px; }
.cursor-pointer { cursor: pointer; }
.lh-normal { line-height: 1.5; }
.border-top-faint { border-top: 1px solid var(--glass-border); }

/* --- PROFILE / CATALOG --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.profile-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    height: 350px; /* Fixed height for consistency */
}

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

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover img {
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: white;
}

.card-info p {
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e; /* Green for online */
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

/* --- STEPS / HOW IT WORKS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 60px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- FOOTER GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 10px;
}

/* Fix for slider controls positioning if needed */
/* --- CATALOG FILTERS --- */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 25px;
    }
    .filters-bar .ml-auto {
        margin-left: 0;
    }
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-control {
    background: rgba(125, 125, 125, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-control:focus {
    border-color: var(--color-primary);
    background: rgba(125, 125, 125, 0.1);
}

.items-center { align-items: center; } /* ensured above */

/* --- MISSING INNER PAGE UTILITIES --- */

/* Spacing Helpers */
.pt-120 { padding-top: 120px; }
.pb-80 { padding-bottom: 80px; }
.p-60 { padding: 60px; }
.p-40 { padding: 40px; }
.p-30 { padding: 30px; }
.pl-20 { padding-left: 20px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-100 { margin-top: 100px; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }

/* Lists */
.list-disc { list-style-type: disc; }

/* Grid Layouts for Info/Articles */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.grid-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 30px;
}

/* Features Grid (Info Page) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Article specific adjustments */
.article-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}
.mb-20 { margin-bottom: 20px; }

/* --- PROFILE PAGE --- */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.main-photo {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: var(--glass-shadow);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    background: var(--glass-bg);
}

.profile-info {
    padding: 40px;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .profile-header-row {
        margin-bottom: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-value {
    font-weight: 600;
    color: var(--text-main);
}

.action-panel {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-top: 40px;
}

.action-panel .btn {
    padding: 12px 20px;
}

.flex-2 { flex: 2; }
.icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* --- ACCORDION --- */
.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--glass-border);
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    line-height: 1.6;
}

.icon-toggle {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.accordion-header.active .icon-toggle {
    color: var(--color-primary);
}

/* --- ADDITIONAL UTILS --- */
.gap-8 { gap: 8px; }
.text-green { color: #22c55e; }
.text-xs { font-size: 0.75rem; }
.mr-10 { margin-right: 10px; } /* Already added but doubling up if needed */

.img-rounded {
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.ml-auto { margin-left: auto; }
.mt-100 { margin-top: 100px; }

/* ========== Profile Page Components ========== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: fixed;
    top: 86px;
    left: 0;
    width: 100%;
    z-index: 90;
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.breadcrumb-nav a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--text-main);
}

.breadcrumb-nav span {
    color: var(--text-main);
    font-weight: 500;
}

.breadcrumb-nav i {
    font-size: 0.65rem;
    color: var(--text-gray);
    opacity: 0.5;
}

.profile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.lady-id {
    background: var(--glass-bg);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-gray);
    border: 1px solid var(--glass-border);
}

.btn-block {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-block:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

/* User Navigation Bar */
.user-nav-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 89;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding-top: 10px;
}

.user-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.user-dropdown-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

@media (max-width: 768px) {
    .user-dropdown-trigger {
        display: none !important;
    }
}

.user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.user-name i {
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.7;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.user-dropdown-trigger:hover .user-dropdown-menu,
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-gray);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.user-dropdown-menu a i {
    width: 16px;
    text-align: center;
}

.user-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.user-nav-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.user-nav-links a:hover,
.user-nav-links a.active {
    color: var(--text-main);
}

.balance-display {
    color: var(--color-primary) !important;
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-gray);
    white-space: nowrap;
}

.time-display i {
    margin-right: 5px;
}

/* Notification Badges */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.user-nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ================================================
   CABINET DASHBOARD STYLES
   ================================================ */

/* Cabinet Tab Content */
.cabinet-dashboard {
    width: 100%;
    margin-top: 50px;
}

.cabinet-tab-content {
    display: none;
}

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

/* Welcome Card */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    padding: 25px;
}

.welcome-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-avatar {
    width: 100px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
}

.account-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.verified {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.welcome-stats {
    display: flex;
    gap: 20px;
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Alert Cards Grid */
.alert-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.alert-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.alert-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.alert-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    font-size: 1.5rem;
}

.alert-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.alert-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 36px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.quick-link-icon.letters {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.quick-link-icon.requests {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.quick-link-icon.favorites {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quick-link-icon.blocked {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.quick-link-icon.finance {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-link-icon.settings {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.quick-link-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-link-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.quick-link-info p {
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .welcome-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .stat-box {
        min-width: auto;
        flex: 1;
    }
    
    .alert-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-link-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
        gap: 12px;
    }

    .quick-link-info h4 {
        font-size: 0.85rem;
    }

    .quick-link-info p {
        font-size: 0.75rem;
        display: none; /* Hide description on mobile to save space if needed, or keep and check fit */
    }
}

/* ================================================
   MATCHMAKING SIDEBAR
   ================================================ */

/* Two-column layout for My Cabinet */
.cabinet-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cabinet-main-content {
    min-width: 0; /* Prevents grid overflow */
}

/* Matchmaking Card */
.matchmaking-sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.matchmaking-card {
    padding: 25px;
    text-align: center;
}

.matchmaking-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Photo Container */
.matchmaking-photo-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.matchmaking-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.matchmaking-age-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lady Info */
.matchmaking-info {
    margin-bottom: 20px;
}

.matchmaking-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.matchmaking-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.matchmaking-location i {
    color: var(--color-primary);
}

/* Action Buttons */
.matchmaking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-matchmaking {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-like {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Quick Stats */
.matchmaking-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.matchmaking-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.matchmaking-stat i {
    color: var(--color-primary);
}

/* Responsive for Matchmaking */
@media (max-width: 1200px) {
    .cabinet-with-sidebar {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .cabinet-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .matchmaking-sidebar {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ================================================
   INBOX MESSAGES
   ================================================ */

.inbox-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inbox-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.inbox-message:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.inbox-message.unread {
    background: rgba(225, 29, 72, 0.05);
    border-color: rgba(225, 29, 72, 0.3);
}

/* Avatar */
.inbox-message-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.inbox-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inbox-avatar-placeholder {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.5rem;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

/* Content */
.inbox-message-content {
    flex: 1;
    min-width: 0;
}

.inbox-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.inbox-message-from {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.inbox-message-time {
    font-size: 0.85rem;
    color: var(--text-gray);
    white-space: nowrap;
}

.inbox-message-subject {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-main);
}

.inbox-message-preview {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Actions */
.inbox-message-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-inbox-action {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-inbox-action:hover {
    background: var(--color-primary);
    color: #fff;
}

.unread-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .inbox-message {
        flex-direction: column;
        gap: 12px;
    }
    
    .inbox-message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ================================================
   LADY PROFILE CARDS (Favored Me)
   ================================================ */

.favored-ladies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lady-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lady-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
    border-color: var(--color-primary);
}

/* Photo */
.lady-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.lady-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lady-card:hover .lady-card-photo img {
    transform: scale(1.05);
}

/* Badges */
.lady-online-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(34, 197, 94, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lady-online-badge i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.lady-verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Info */
.lady-card-info {
    padding: 20px;
}

.lady-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lady-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lady-location i {
    color: var(--color-primary);
}

.lady-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.lady-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lady-stats i {
    color: var(--color-primary);
}

/* Actions */
.lady-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .favored-ladies-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Tabs */
.profile-details-section {
    margin-top: 60px;
}

.info-tabs {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.tab-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.tab-item i {
    font-size: 1rem;
}

.tab-content-wrapper {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Trait Pills */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.trait-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.trait-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.trait-pill i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Adjust main padding when user nav is visible */
body.user-logged-in .breadcrumb-nav {
    top: 130px;
}

body.user-logged-in main {
    padding-top: 200px !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .user-nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .info-tabs {
        flex-wrap: wrap;
    }
    
    .traits-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .breadcrumb-nav .container {
        flex-wrap: wrap;
    }
    
    .profile-controls {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .user-dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .info-tabs {
        flex-direction: column;
    }
    
    .tab-item {
        width: 100%;
    }
    
    .traits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Profile Page: Compact Tabs Layout ========== */

/* Profile Info Wrapper - Full height */
.profile-info-wrapper {
    flex: 1;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.profile-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 722px;
    padding: 30px !important;
}

@media (max-width: 768px) {
    .profile-info {
        max-height: 920px;
    }
}

/* Compact Tab Navigation - Horizontal */
.info-tabs-compact {
    display: flex;
    gap: 5px;
    margin: 20px 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.tab-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 70px;
}

.tab-item-compact i {
    font-size: 1.1rem;
}

.tab-item-compact span {
    font-size: 0.7rem;
}

.tab-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.tab-item-compact.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Scrollable Content Area */
.tab-content-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 -10px;
    padding: 0 10px 20px 10px;
    min-height: 300px;
    max-height: 500px;
}

.tab-content-scrollable::-webkit-scrollbar {
    width: 6px;
}

.tab-content-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tab-content-scrollable::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.tab-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Compact Stats Grid */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Compact Traits Grid */
.traits-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.traits-grid-compact .trait-pill {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Action Panel - New Layout */
.action-panel-new {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.btn-block-action {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

/* Info List - Clean Layout */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
    margin-right: 20px;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
}

.btn-secondary-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 88px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-visuals,
    .profile-info-wrapper {
        width: 100%;
    }
    
    
    .tab-content-scrollable {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .info-tabs-compact {
        flex-wrap: wrap;
    }
    
    .tab-item-compact {
        flex: 1 1 calc(50% - 5px);
    }
    
    .stats-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .traits-grid-compact {
        grid-template-columns: 1fr;
    }
}


/* ========== Profile: Verification Badge & Response Rate ========== */

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    animation: verifiedPulse 2s ease-in-out infinite;
}

@keyframes verifiedPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.verified-badge i {
    filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.6));
}

/* Response Rate Indicator */
.response-rate-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.response-rate-indicator i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.response-rate-indicator strong {
    font-weight: 600;
}


/* ========== Photo Gallery Enhancements ========== */

/* Main Photo Container */
.main-photo-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Photo Counter Overlay */
.photo-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.photo-counter i {
    font-size: 0.9rem;
}

/* Video Indicator */
.video-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--gradient-primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: videoPulse 2s ease-in-out infinite;
}

@keyframes videoPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }
}

.video-indicator i {
    font-size: 0.9rem;
}

/* Thumbnail Active State */
.gallery-thumbs .thumb {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbs .thumb:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.gallery-thumbs .thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
}


/* ========== Header: User Dropdown (Authenticated) ========== */

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-name-header {
    font-weight: 500;
    color: var(--text-main);
}

/* Position dropdown menu relative to header trigger */
.nav-actions .user-dropdown-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.nav-actions .user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions .user-dropdown-trigger i.fa-chevron-down {
    font-size: 0.75rem;
    color: var(--text-gray);
    transition: transform 0.3s ease;
}

.nav-actions .user-dropdown-trigger:hover i.fa-chevron-down {
    transform: rotate(180deg);
}


/* ========== Video Gallery Carousel ========== */

.video-section {
    padding: 40px 0;
}

.video-carousel {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.1);
}

.video-carousel::-webkit-scrollbar {
    height: 8px;
}

.video-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.video-carousel::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

.video-card {
    flex: 0 0 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.video-info p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .video-card {
        flex: 0 0 300px;
    }
}


/* ========== Browse All Ladies CTA Section ========== */

.browse-cta-section {
    margin: 80px auto 100px;
}

@media (max-width: 768px) {
    .browse-cta-section {
        margin: 20px auto 20px;
    }
}

.browse-cta-wrapper {
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(225, 29, 72, 0.1) 0%, 
        rgba(124, 58, 237, 0.1) 100%),
        var(--glass-bg);
    border: 2px solid var(--glass-border);
}

.browse-cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(225, 29, 72, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.browse-cta-content {
    position: relative;
    z-index: 1;
}

.browse-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 30px;
    animation: ctaPulse 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(225, 29, 72, 0.4);
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(225, 29, 72, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(225, 29, 72, 0.6);
    }
}

.browse-cta-icon i {
    font-size: 2rem;
    color: white;
}

.browse-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.browse-cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.browse-cta-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

.browse-cta-button {
    font-size: 1.1rem;
    padding: 16px 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.3);
}

.browse-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.5);
}

.browse-cta-button i:last-child {
    transition: transform 0.3s ease;
}

.browse-cta-button:hover i:last-child {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .browse-cta-wrapper {
        padding: 40px 20px;
    }
    
    .browse-cta-title {
        font-size: 1.8rem;
    }
    
    .browse-cta-subtitle {
        font-size: 1rem;
    }
    
    .browse-cta-stats {
        gap: 20px;
    }
    
    .cta-stat-number {
        font-size: 1.5rem;
    }
    
    .cta-stat-divider {
        display: none;
    }
}


/* ========== Browse CTA: Profile Cards Grid ========== */

.browse-cta-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.browse-cta-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.browse-cta-section-title .text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .browse-cta-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .browse-cta-cards-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .browse-cta-section-title {
        font-size: 1.5rem;
    }
}

/* Filter controls dark theme fix */
[data-theme="dark"] .filter-control {
    background-color: rgba(17, 24, 39, 0.95);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .filter-control option {
    background-color: rgb(17, 24, 39);
    color: var(--text-main);
    padding: 10px;
}

[data-theme="dark"] .filter-control option:hover,
[data-theme="dark"] .filter-control option:checked {
    background-color: rgba(225, 29, 72, 0.2);
}

/* Compose Form Dropdown Dark Mode Fix */
[data-theme="dark"] select.input-field {
    background-color: rgba(17, 24, 39, 0.95);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] select.input-field option {
    background-color: rgb(17, 24, 39);
    color: var(--text-main);
    padding: 10px;
}

/* Language Dropdown Light Theme */
html:not([data-theme="dark"]) .lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html:not([data-theme="dark"]) .lang-dropdown-trigger {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

html:not([data-theme="dark"]) .lang-dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
}

html:not([data-theme="dark"]) .lang-option {
    color: #1f2937;
}

html:not([data-theme="dark"]) .lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

html:not([data-theme="dark"]) .lang-option.active {
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-primary);
}

html:not([data-theme="dark"]) .lang-code {
    color: #1f2937;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

/* Logout Link Styling */
.logout-link {
    color: var(--color-primary) !important;
}

.logout-link:hover {
    background: rgba(225, 29, 72, 0.15) !important;
}

/* User Dropdown - Less Transparent */
.user-dropdown-menu {
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Language Dropdown - Restyle to match User Dropdown */
.lang-dropdown {
    position: relative;
    margin-right: 10px;
}

.lang-dropdown-trigger {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    padding: 8px 12px !important;
    border-radius: var(--radius-md) !important;
    transition: background 0.3s ease;
    background: transparent !important;
    border: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main) !important;
}

.lang-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.lang-dropdown.active .lang-dropdown-trigger {
    background: rgba(255, 255, 255, 0.05) !important;
}

.lang-dropdown-trigger i {
    font-size: 0.7rem;
    color: var(--text-gray);
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-dropdown-trigger i {
    transform: rotate(180deg);
}

/* Language Dropdown Menu - Match User Dropdown Style */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px) !important;
    right: 0;
    min-width: 200px !important;
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
    background: rgba(225, 29, 72, 0.15);
    color: var(--color-primary);
}

.lang-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Breadcrumb vertical centering */
.breadcrumb-nav .container {
    display: flex;
    align-items: center;
}

/* Light theme adjustments for language dropdown */
html:not([data-theme="dark"]) .lang-dropdown-trigger {
    background: transparent !important;
    border: none !important;
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .lang-dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

html:not([data-theme="dark"]) .lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

html:not([data-theme="dark"]) .lang-option {
    color: #1f2937;
}

html:not([data-theme="dark"]) .lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

html:not([data-theme="dark"]) .lang-option.active {
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-primary);
}

html:not([data-theme="dark"]) .lang-code {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .user-dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Language Flag Badges */
.lang-flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Country-specific colors */
.lang-flag-badge[data-country="gb"] {
    background: linear-gradient(135deg, #003399 0%, #cc0000 100%);
}

.lang-flag-badge[data-country="fr"] {
    background: linear-gradient(135deg, #002395 0%, #ED2939 100%);
}

.lang-flag-badge[data-country="de"] {
    background: linear-gradient(135deg, #000000 0%, #DD0000 50%, #FFCE00 100%);
}

.lang-flag-badge[data-country="es"] {
    background: linear-gradient(135deg, #AA151B 0%, #F1BF00 100%);
}

.lang-flag-badge[data-country="ru"] {
    background: linear-gradient(135deg, #0039A6 0%, #D52B1E 100%);
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Chat Page Styles */
.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr 380px;
    height: calc(100vh - 200px);
    min-height: 600px;
    overflow: hidden;
    transition: grid-template-columns 0.3s ease;
}

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

.chat-container.sidebar-minimized {
    grid-template-columns: 300px 1fr 60px;
}

.chat-sidebar {
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item.active::before {
    opacity: 1;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-item.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
}

.contact-item img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.contact-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header .items-center {
    display: flex;
    align-items: center;
}

.chat-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

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

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff1b6f 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
}

/* Chat Profile Panel (Right Side) */
.chat-profile-panel {
    position: relative;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    gap: 20px;
    transition: all 0.3s ease;
}

.profile-panel-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-panel-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-border);
    margin: 0 auto 12px;
    display: block;
}

.profile-panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--color-primary);
    width: 24px;
}

.profile-panel-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-panel-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-panel-section h4 i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.profile-panel-section p {
    line-height: 1.6;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.w-full {
    width: 100%;
}

/* Status indicator in profile panel */
.status-indicator {
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Update avatar styles in chat */
.contact-item img.avatar,
.chat-header img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .chat-container {
        grid-template-columns: 320px 1fr;
    }
    
    .chat-profile-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar,
    .chat-profile-panel {
        display: none;
    }
}

/* Container-wide for chat page (1400px) */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 20px 20px;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #e11d48 rgba(255, 255, 255, 0.05);
}

/* ================================================
   CHAT SIDEBAR TOGGLE & MINIMIZED STATE
   ================================================ */

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: fixed;
    top: 15px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
}

.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}

/* Minimized Icon Strip - Hidden by default */
.minimized-icon-strip {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    align-items: center;
}

.chat-profile-panel.minimized .minimized-icon-strip {
    display: flex;
}

.icon-strip-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.icon-strip-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Compact Header for Minimized State */
.profile-panel-header-compact {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 10px;
}

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

.compact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.compact-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

.compact-age {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.compact-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Sidebar Responsive & Minimized Setup */
.profile-minimized-view {
    display: none;
}

.chat-profile-panel.minimized {
    width: 60px !important;
    min-width: 60px !important;
    padding: 20px 0;
    background: var(--bg-card);
}

.chat-profile-panel.minimized .profile-full-view {
    display: none;
}

.chat-profile-panel.minimized .profile-minimized-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 55px;
    gap: 15px;
    height: 100%;
    width: 100%;
}

.chat-profile-panel.minimized .sidebar-toggle-btn {
    right: 10px; /* Keep at 10px inside the 60px panel */
}

.chat-profile-panel.minimized .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

/* Minimized View Components */
.minimized-avatar-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
}

.minimized-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.minimized-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.minimized-status-dot.online { background: #10b981; }

.minimized-info {
    text-align: center;
    width: 100%;
    padding: 0 4px;
}

.minimized-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimized-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.minimized-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minimized-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

/* Chat Page - Action Buttons */

.chat-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 100%;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}


/* Chat Sidebar Stats - Clean 2x2 Layout */

.chat-action-panel {
    margin-top: 10px;
}

.chat-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.chat-stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-stat-box i {
    font-size: 1.1rem;
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.chat-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}


/* --- ARTICLES SECTION --- */
.articles-section {
    padding-top: 40px;
}

.articles-block {
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .articles-block {
        margin-bottom: 0;
    }
    .main-footer {
        margin-top: 0;
    }
}

.articles-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px 40px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.articles-carousel::-webkit-scrollbar {
    display: none;
}

.article-card {
    flex: 0 0 300px;
    height: 400px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.article-card:hover .article-title {
    transform: translateY(0);
}

.article-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.article-card:hover .article-link {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SLIDER --- */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay); /* Re-apply overlay */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.1);
}

/* --- BLOG PAGE --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for larger cards */
    gap: 30px; /* Increased gap */
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card (Adapted from Lady Card) */
.blog-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.2);
    border-color: var(--color-primary);
}

.blog-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Video-like ratio for blog posts */
    overflow: hidden;
}

.blog-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-photo img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-card-info {
    padding: 24px; /* Increased padding */
    flex-grow: 1;
}

.blog-title {
    font-size: 1.25rem; /* Larger title */
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem; /* Slightly larger text */
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-card-actions {
    padding: 0 24px 24px;
}

/* Icon spacing fix */
.blog-card-actions .btn i {
    margin-left: 5px;
}

/* --- ARTICLES PAGE FEATURES --- */
.feature-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* --- MOBILE NAVIGATION --- */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.mobile-nav-links a.active {
    color: var(--color-primary);
}

.mobile-menu-actions {
    margin-top: auto;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .header-actions .btn {
        display: none; /* Hide default header buttons on mobile if inside header-actions */
    }
    /* Hide specific desktop buttons if they are direct children of nav-actions */
    .nav-actions .btn {
        display: none;
    }
    .nav-actions .theme-toggle,
    .nav-actions .lang-dropdown,
    .nav-actions .burger-btn {
        display: flex; /* Keep these visible */
    }
}

/* --- MOBILE HERO & STATS --- */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem; /* Smaller font for mobile */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px; /* Prevent text touching edges */
    }

    .reg-card {
        padding: 20px;
        margin: 0 10px; /* Add margin on sides */
    }

    /* Stats Section */
    .stats-bar {
        flex-direction: column; /* Stack vertically */
        gap: 30px;
        padding: 30px 20px;
    }

    .stat-box {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }

    .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- MOBILE CAROUSELS & PADDING --- */
@media (max-width: 768px) {
    /* Horizontal Scrolling for Grids */
    .catalog-grid,
    .features-grid,
    .steps-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 10px 5px 30px 5px; /* Bottom padding for touch area/scroll */
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        margin-left: -20px; /* Break container constraints */
        margin-right: -20px;
        padding-left: 20px; /* Restore visual padding start */
        padding-right: 20px; /* Restore visual padding end */
        margin-bottom: 0;
    }

    .awards-section {
        margin-top: 0;
    }

    .catalog-grid {
        margin-bottom: 0;
    }

    .stats-bar {
        margin: 20px 0;
    }

    .container-how {
        padding-top: 0;
    }

    .catalog-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar,
    .steps-grid::-webkit-scrollbar {
        display: none;
    }

    .catalog-grid > *,
    .features-grid > *,
    .steps-grid > * {
        min-width: 85%; /* Show most of card */
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Fix Articles Carousel Padding */
    .articles-carousel {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .articles-carousel .article-card {
        margin-right: 0; /* Clear grid margins if any */
        /* min-width handled by flex basis usually, check existing */
        min-width: 85%;
        flex: 0 0 85%;
    }
    
    /* Blog Carousel Adjustment */
    .blog-carousel {
         margin-left: -20px;
         margin-right: -20px;
         padding-left: 20px;
         padding-right: 20px;
    }
    
    .blog-card {
        min-width: 85%;
        flex: 0 0 85%;
    }
}

/* --- MOBILE FOOTER --- */
@media (max-width: 768px) {
    .main-footer {
        text-align: center;
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col .logo {
         margin: 0 auto 20px auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- MOBILE REFINEMENTS (ROUND 2) --- */
@media (max-width: 768px) {
    /* 1. Compact Header & Logo Switch */
    .main-header {
        padding: 10px 0; /* Reduced padding */
    }
    
    .logo-desktop {
        display: none !important;
    }
    
    .logo-mobile {
        display: block !important;
        height: 40px; /* Adjust size as needed */
        width: auto;
    }

    /* 2. Compact Stats */
    .stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .stat-box {
        border-bottom: none;
        padding-bottom: 0;
        /* Optional: Add border right to first item if strictly 2 cols, but logic gets complex with 3 items. 
           Let's just keep them clean. */
    }

    .stat-number {
        font-size: 1.8rem; /* Smaller font */
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* 3. Helpful Articles Padding Fix */
    .articles-section {
        padding-left: 20px; /* Ensure container has padding */
        padding-right: 20px;
    }
    
    .articles-section .flex {
        padding-left: 0; 
        padding-right: 0;
    }
    
    /* Reset negative margins for this specific carousel since container now handles padding */
    .articles-carousel {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* 4. Footer 2-Column Grid */
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for links */
        gap: 30px 10px; /* Row gap 30, Col gap 10 */
        text-align: left; /* Align links left for readability in grid */
    }

    /* Company and Legal take up 1 cell each */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        align-items: flex-start; /* Align text left */
    }
    
    /* Logo column spans full width at top */
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    
    /* Follow Us column spans full width at bottom */
    .footer-col:last-child {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
        margin-top: 10px;
    }
}

/* --- LOGO REFINEMENTS --- */
@media (max-width: 768px) {
    /* Scope logo switching ONLY to the main header */
    .main-header .logo-desktop {
        display: none !important;
    }
    
    .main-header .logo-mobile {
        display: block !important;
        max-width: 70px; /* User requested 70px max */
        height: auto;
    }
    
    /* Ensure Mobile Menu and Footer use the desktop logo (or default image) */
    .mobile-menu .logo img,
    .main-footer .logo img {
        display: block !important; 
        /* The existing CSS typically sets current desktop logo. 
           If they have class="logo-desktop", ensure it is shown. 
           If they are just <img>, they are shown by default. */
    }
    
    /* If the burger menu/footer had the double-image structure copied, we'd need to hide mobile, show desktop.
       But based on my previous edits, I only added the double image to .main-header. 
       Let's verify if I inadvertently copied it elsewhere or if they just have one img. 
       The view_file will confirm. */
}

/* --- FIX LOGO SIZES IN BURGER & FOOTER --- */
@media (max-width: 768px) {
    /* The global rule sets .logo img to 70px. We need to override this for burger menu and footer. */
    .mobile-menu .logo img,
    .main-footer .logo img {
        max-width: 200px !important; 
        width: auto;
    }
    
    /* Ensure the mobile header logo stays small */
    .main-header .logo-mobile {
        max-width: 70px !important;
    }
}

/* --- CATALOG MOBILE FILTERS & GRID --- */
@media (max-width: 768px) {
    /* Filters Bar Stacking */
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px !important;
        margin-top: 100px !important; /* Reduction from mt-100 */
    }

    .filter-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .filter-control {
        width: 100%;
    }

    /* Filters apply button full width */
    .filters-bar .ml-auto {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .filters-bar button {
        width: 100%;
    }

    /* Mobile Grid Load More Logic */
    /* Scope to catalog-page to avoid breaking homepage carousel */
    .catalog-page .catalog-grid {
        grid-template-columns: 1fr; /* Single column for mobile cards */
        gap: 20px;
        /* Ensure no horizontal scroll here, unlike the carousel on index */
        display: grid;
        overflow-x: visible;
        padding: 0;
        margin: 0;
    }
    
    /* Reset the overrides if they leaked from index page styles */
    .catalog-page .catalog-grid > * {
        min-width: auto;
    }
    
    /* Initially hide items beyond 2 via JS, but we can have a helper class if needed */
    .mobile-hidden {
        display: none !important;
    }
}

/* --- ARTICLE PAGE --- */
@media (max-width: 768px) {
    .article-page-content {
        padding: 20px !important;
    }
    .article-page-container {
        padding-top: 60px !important;
    }
}

/* --- COMPACT MOBILE FILTERS (INLINE) --- */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: row !important; /* Force row layout */
        align-items: center;
        justify-content: space-between; /* Space out label and input */
    }

    .filter-group label {
        margin-right: 10px;
        margin-bottom: 0;
        white-space: nowrap;
        min-width: 60px; /* Ensure labels align somewhat if desired, or let them be natural */
    }

    .filter-control {
        width: auto !important; /* Let it shrink/grow as needed */
        flex: 1; /* Take remaining space */
    }
}

/* --- BLOG PAGE MOBILE GRID --- */
@media (max-width: 768px) {
    .blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-grid .glass-panel {
        margin-bottom: 0;
    }
}

/* --- INFO PAGE REFINEMENTS --- */
@media (max-width: 768px) {
    /* 1. Features Grid: Stack vertically, no carousel */
    .features-grid {
        display: flex;
        flex-direction: column;
        overflow-x: visible; /* Override carousel overflow */
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .features-grid .feature-card {
        min-width: auto; /* Allow full width */
        width: 100%;
        margin-bottom: 20px;
    }

    /* 2. Why Choose Section: Horizontal Carousel */
    .grid-3 {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 10px 5px 30px 5px; /* Bottom padding for scrollbar/touch */
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: -20px; /* Break container constraints */
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .grid-3::-webkit-scrollbar {
        display: none;
    }

    .grid-3 .feature-card {
        height: auto;
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-bottom: 0; /* Align properly in flex row */
        /* Keep glass styles active */
    }

    .grid-3 .info-card {
        height: 325px;
        min-width: 85%;
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-bottom: 0; /* Align properly in flex row */
        /* Keep glass styles active */
    }
}

/* --- PROFILE PAGE ADAPTATION & FIXES --- */

/* 1. Fix CSS Conflict: Only stack catalog-grid vertically on the CATALOG PAGE */
/* We will assume catalog.html has a way to be identified or we'll wrap the rule. 
   Actually, looking at the previous rule: 
   .catalog-grid { grid-template-columns: 1fr; ... }
   We need to override this for index.html OR scope it to catalog.html.
   Since I can't easily edit the <body> of catalog.html right now without a re-read,
   I will use a :not() selector or just be more specific if I can.
   
   Better yet, let's just make the Homepage Grid horizontal again.
*/

/* 2. Profile Tabs - Mobile Scrollable */
@media (max-width: 768px) {
    .info-tabs-compact {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 5px; /* For scrollbar */
        margin-bottom: 20px;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .info-tabs-compact::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .tab-item-compact {
        flex: 0 0 auto; /* Don't shrink */
        padding: 10px 20px;
    }
}

/* 3. Browse Ladies - Horizontal Carousel */
@media (max-width: 768px) {
    .browse-cta-cards-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 5px 20px 5px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-left: -20px; /* Full bleed */
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .browse-cta-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .browse-cta-cards-grid .profile-card {
        min-width: 200px; /* Smaller width for these cards */
        flex: 0 0 200px;
        scroll-snap-align: center;
        margin-bottom: 0;
    }
}

/* --- PROFILE PAGE ADAPTATION --- */
@media (max-width: 768px) {
    /* 1. Profile Tabs - Mobile Scrollable */
    .info-tabs-compact {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 5px; /* For scrollbar */
        margin-bottom: 20px;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .info-tabs-compact::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .tab-item-compact {
        flex: 0 0 auto; /* Don't shrink */
        padding: 10px 20px;
        border-radius: 20px; /* Make them look more like pills */
        background: rgba(255, 255, 255, 0.05);
    }
    
    .tab-item-compact.active {
        background: var(--primary);
        color: #fff;
    }

    /* 2. Browse Ladies - Horizontal Carousel */
    .browse-cta-cards-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 5px 20px 5px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-left: -20px; /* Full bleed */
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .browse-cta-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .browse-cta-cards-grid .profile-card {
        min-width: 260px; /* Adequate width for profile card */
        flex: 0 0 260px;
        scroll-snap-align: center;
        margin-bottom: 0;
        height: 380px; /* Fixed height for consistency */
    }
    
    .browse-cta-cards-grid .profile-card img {
        height: 100%;
        object-fit: cover;
    }
}

/* --- PROFILE PAGE REFINEMENTS (Mobile) --- */
@media (max-width: 768px) {
    /* 1. Hide Breadcrumbs (Scoped to Profile Page) */
    .profile-page .breadcrumb-nav {
        display: none;
    }

    .profile-page-container {
        padding-top: 60px;
    }
    
    /* 2. Fix Squashed Video & Blog Carousels */
    /* Target specific sections in profile page if classes are unique enough */
    /* .video-carousel & .blog-carousel are used. */

    .profile-page .video-carousel,
    .profile-page .blog-carousel {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        margin-left: -20px; /* Full bleed */
        margin-right: -20px;
        padding: 0 20px 20px 20px; /* Restore internal padding */
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .profile-page .video-carousel::-webkit-scrollbar,
    .profile-page .blog-carousel::-webkit-scrollbar {
        display: none;
    }

    .profile-page .video-card,
    .profile-page .blog-card {
        min-width: 280px; /* Fixed width for carousel items */
        flex: 0 0 280px;
        scroll-snap-align: center;
        margin-bottom: 0;
    }
    
    /* Adjust container padding if needed */
    .profile-page .video-section,
    .profile-page .blog-section {
        padding-left: 20px; /* Ensure container has padding so negative margins work relative to it */
        padding-right: 20px;
        overflow: hidden; /* Prevent horizontal scroll on body */
    }
    
    /* Footer tweaks if needed - User asked to check it */
    /* Assuming footer is standard .main-footer, it should be fine, but let's Ensure stacking */
    .main-footer .footer-grid {
         grid-template-columns: 1fr;
    }
}

/* --- FOOTER MOBILE CHECK --- */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* --- PROFILE PAGE FINAL REFINEMENTS --- */
@media (max-width: 768px) {
    /* 1. Reorder Layout: Info First, Visuals Second */
    .profile-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .like-btn {
        padding: 8px 16px;
    }

    /* 2. Fix Overflow / Cut-off Content */
    .profile-layout {
        max-width: 100vw;
        overflow-x: hidden; /* Prevent layout blowout */
    }
    
    .profile-visuals, 
    .profile-info-wrapper {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    /* Ensure panels don't overflow */
    .glass-panel {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Footer Overflow Fix */
    .main-footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Thumbnails overflow fix in visuals */
    .gallery-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
    }
}

/* --- HEADER LOGO MOBILE --- */
@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block !important;
        height: 40px; /* Adjust as needed */
    }
}
@media (min-width: 769px) {
    .logo-mobile {
        display: none !important;
    }
    .logo-desktop {
        display: block;
    }
}

/* --- HIDE DESKTOP USER DROPDOWN ON MOBILE --- */
@media (max-width: 768px) {
    .user-dropdown {
        display: none !important;
    }
    
    /* Also ensure the 'Join/Login' buttons in header are hidden if we are authenticated... 
       but we don't have a reliable auth class on body yet. 
       However, the user said "User Dropdown... place in burger". 
       So hiding the desktop one on mobile is definitely correct. 
    */
}

/* --- PROFILE PAGE LAYOUT REFINEMENTS --- */
@media (max-width: 768px) {
    /* 1. Action Buttons: 2 Rows */
    .profile-actions-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns, auto rows */
        gap: 10px;
        margin-top: 15px;
    }
    
    .profile-actions-grid .btn-icon-label {
        flex-direction: column;
        height: auto;
        padding: 10px 5px;
        font-size: 0.8rem;
    }

    /* 2. Profile Header styling */
    .profile-header-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .meta-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .meta-badge.online {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #10b981;
    }

    /* 3. Footer Spacing */
    .main-footer {
        padding-top: 40px;
        padding-bottom: 80px; /* Extra space at bottom for mobile nav or aesthetics */
    }
}

/* --- PROFILE PAGE LAYOUT REFINEMENTS (RETRY) --- */
@media (max-width: 768px) {
    /* 1. Action Buttons: 2 Rows */
    /* Target the container of the icon buttons below Start Chat */
    /* Assuming a class like .profile-actions-grid exists or we need to add it / find it */
    
    /* 2. Profile Header styling ("Beautiful" Online & City) */
    .profile-header-row .text-green, 
    .profile-header-row .text-gray {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .profile-header-row .text-green {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981 !important; /* Force override utility */
        border: 1px solid rgba(16, 185, 129, 0.2);
    }
    
    .profile-header-row .text-gray {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Remove the bullet separator if we are using badges */
    .profile-header-row .text-gray::before {
        content: none; 
        /* Depending on how bullets were added previously (e.g. • in text content) - content is likely in HTML */
    }

    /* 3. Footer Spacing */
    .main-footer {
        padding-top: 50px;
        padding-bottom: 90px;
    }
    .footer-grid {
        gap: 40px;
    }
}

/* --- FIX ACTION BUTTONS GRID (2 Rows) --- */
@media (max-width: 768px) {
    .profile-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns -> 2 rows for 4 items */
        gap: 10px;
        margin-top: 15px;
    }
    
    /* Ensure tabs wrap if they are cut off and user wants to see all */
    .info-tabs-compact {
        flex-wrap: wrap; 
        overflow-x: visible; /* Disable scroll if wrapping */
        justify-content: center;
    }
    .tab-item-compact {
        flex: 1 1 40%; /* Grow to fill space */
        text-align: center;
        margin-bottom: 5px;
    }
}

/* --- FINAL PROFILE REFINEMENTS --- */
@media (max-width: 768px) {
    /* Ensure tabs wrap if needed */
    .info-tabs-compact {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }
    .tab-item-compact {
        flex: 1 1 30%; /* 3 per row roughly */
        text-align: center;
        margin-bottom: 5px;
    }
}

/* --- CORRECTED PROFILE REFINEMENTS --- */
@media (max-width: 768px) {
    /* 1. Action Buttons (Targeting existing .action-grid) */
    .action-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    .action-grid .btn {
        width: 100%; /* Full width in grid cell */
        aspect-ratio: auto; /* Allow height to adapt */
        padding: 12px;
        border-radius: 12px;
    }

    /* 2. Profile Header Metadata (Online & City) */
    .profile-header-row .text-green,
    .profile-header-row .text-gray {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-right: 5px;
        margin-bottom: 5px;
    }

    .profile-header-row .text-green {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    
    .profile-header-row .text-gray {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Remove the bullet text if possible, or hide it? 
       The bullet is inside a span: <span class="text-gray">• Odesa, Ukraine</span> 
       We can't easily remove the '•' via CSS if it's text content. 
       But we can set font-size: 0 for the span and restore it for a pseudo-element? 
       Too risky. Let's just style the container nicely. 
    */

    /* 3. Footer Tweaks */
    .main-footer {
        padding-bottom: 100px; /* More space */
    }
}

/* --- FINAL POLISH (MOBILE) --- */
@media (max-width: 768px) {
    /* 1. Footer: 2 Columns for Links, Centered */
    .main-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 columns */
        gap: 20px 10px;
        text-align: center;
    }
    
    /* Company and Legal columns */
    .footer-col {
        /* Default is okay, but ensure they don't span full width unless needed */
    }
    
    /* Social links might need their own row or span both */
    .footer-col:last-child { 
        grid-column: span 2; /* Make visual/social span full width if it's the 3rd item */
    }

    /* 2. Profile Header: Metadata in 1 Line */
    .profile-header-meta,
    .profile-header-row .text-gray,
    .profile-header-row .text-green {
        white-space: nowrap; /* Prevent wrapping inside the badge */
    }
    
    /* Ensure the container flows horizontally */
    .profile-header-row > div:first-child > div:nth-child(2) { 
        /* Target the div containing badges */
        display: flex;
        flex-wrap: nowrap; /* Force single line */
        overflow-x: auto; /* Allow scroll if screen is TINY, but try to fit */
        align-items: center;
        gap: 5px;
    }
    
    /* Reduce badge padding slightly to fit */
    .profile-header-row .text-green,
    .profile-header-row .text-gray {
        padding: 4px 10px;
        font-size: 0.75rem;
        margin-right: 0; 
        flex-shrink: 0; /* Prevention against shrinking too much */
    }

    /* 3. Action Buttons: 2 Rows (Grid) */
    .action-grid, .profile-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    /* 4. Tabs: Show 5 items (wrap or smaller) */
    /* User said "now 3 shown", wants 5. Best way is to wrap or shrink. */
    .info-tabs-compact {
        flex-wrap: wrap; /* Allow wrapping to show all */
        justify-content: space-between; /* Distribute evenly */
        overflow: visible;
        gap: 8px;
    }
    
    .tab-item-compact {
        flex: 1 1 30%; /* Approx 3 per row is tight, let's try auto or smaller basis */
        min-width: unset; /* Remove min-width constraints */
        padding: 8px 5px; /* Compact padding */
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .tab-item-compact i {
        font-size: 1rem;
        margin-right: 0; /* Stack icon above text */
        margin-bottom: 2px;
    }
    
    /* Adjust text to be smaller */
    .tab-item-compact span {
        font-size: 0.75rem;
    }
}

/* --- FINAL FOOTER GRID FIX --- */
/* The previous CSS for footer grid relies on correct HTML structure. */
/* Ensuring the grid applies correctly. */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
    }
}

/* --- FOOTER CENTERING FIX --- */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        text-align: center;
        justify-items: center; /* Center grid items horizontally */
    }
    .footer-col {
        width: 100%;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center list items */
    }
}

/* --- CHAT PAGE MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    /* Main Layout: Fixed Height */
    .chat-container {
        height: calc(100vh - 70px); /* Subtract header height */
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
        margin: 0 -20px; /* Full width */
        border: none;
    }
    
    /* Pane Logic */
    .chat-sidebar, .chat-main, .chat-profile-panel {
        width: 100%;
        height: 100%;
        border-right: none;
    }

    /* DEFAULT: Show Sidebar, Hide others */
    .chat-main {
        display: none; /* Hidden by default */
        position: fixed;
        top: 60px; /* Header height */
        left: 0;
        z-index: 20;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
    }
    
    .chat-sidebar {
        display: block;
        width: 100%;
    }
    
    .chat-profile-panel {
        display: none; /* Hidden sidebar */
        position: fixed;
        right: 0;
        top: 60px;
        width: 85%;
        max-width: 300px;
        z-index: 30;
        border-left: 1px solid var(--glass-border);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .chat-profile-panel.active {
        display: flex;
        transform: translateX(0);
    }
    
    /* Toggle State: Show Chat */
    body.chat-view-active .chat-sidebar {
        display: none;
    }
    body.chat-view-active .chat-main {
        display: flex;
        flex-direction: column;
    }
    
    /* Back Button in Chat Header */
    .chat-mobile-header {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        border-bottom: 1px solid var(--glass-border);
        background: rgba(0,0,0,0.2);
    }
    
    .messages-area {
        height: auto;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 80px; /* Space for input */
    }
    
    .chat-input-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        z-index: 25;
        padding: 10px;
    }
}

/* --- FOOTER CENTERING FIX (FORCE) --- */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col h4 {
        text-align: center;
        width: 100%;
    }

    .footer-links {
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-listitem {
        text-align: center;
        width: 100%;
    }
    
    /* Re-apply grid for Company/Legal if user wanted them side-by-side but centered */
    /* User said "2 columns where company and legal center them" */
    /* So let's try a grid for those two specifically if possible, or just keep stacking if that's safer. */
    /* Let's try to target the specific columns if we can, but a clean stack is often better on very small screens. */
    /* However, user specifically asked for "2 columns". */
}

@media (max-width: 768px) {
    .main-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 columns */
        justify-items: center;
        text-align: center;
    }
    
    /* Make the logo/about column span full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
    
    /* Company and Legal are 2nd and 3rd cols (auto placed in row 2) */
    
    /* Follow Us span full width */
    .footer-col:last-child {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* --- CHAT PAGE FIXES --- */
@media (max-width: 768px) {
    /* Ensure Profile Panel is HIDDEN by default and doesn't overlap */
    .chat-profile-panel {
        display: none !important; /* Force hide unless active */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: var(--glass-bg);
        transform: translateX(100%);
    }
    
    .chat-profile-panel.active {
        display: flex !important;
        transform: translateX(0);
    }
    
    /* Fix Chat Main Visibility */
    .chat-main {
        position: relative; /* Changing from fixed to relative might help if z-index is weird, but fixed is better for full screen app feel */
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #0f172a; /* Solid background to prevent see-through */
        display: none;
        flex-direction: column;
        z-index: 50;
    }
    
    body.chat-view-active .chat-main {
        display: flex;
    }
    
    /* Adjust Mobile Header */
    .chat-mobile-header {
        background: rgba(30, 41, 59, 0.95);
        padding: 15px;
        z-index: 60;
    }
}

/* --- CONSOLIDATED MOBILE FOOTER FIX --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0;
        text-align: center;
    }

    .main-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
        align-items: start;
    }

    /* Column 1: Logo & Pattern */
    .main-footer .footer-col:first-child {
        grid-column: 1 / span 2;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Link Columns (2 & 3) */
    .main-footer .footer-col:nth-child(2),
    .main-footer .footer-col:nth-child(3) {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Column 4: Social */
    .main-footer .footer-col:last-child {
        grid-column: 1 / span 2;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-footer .footer-col h4 {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .main-footer .footer-links,
    .main-footer .footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-footer .footer-listitem,
    .main-footer .footer-col li {
        text-align: center;
        margin: 0;
    }
    
    .main-footer .social-links {
        justify-content: center;
    }
}

/* --- CHAT PAGE POLISH (MOBILE) --- */
@media (max-width: 768px) {
    /* Set a solid background for the chat parts to prevent overlapping transparency mesa */
    .chat-sidebar, .chat-main, .chat-profile-panel {
        background: #111827 !important; /* Dark solid color */
    }
    
    /* Make the profile panel a full-screen overlay for better usability */
    .chat-profile-panel {
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(17, 24, 39, 0.98) !important;
        backdrop-filter: blur(10px);
    }
    
    /* Adjust Info Back Button */
    .sidebar-toggle-btn {
        top: 20px;
        right: 20px;
        display: flex !important;
    }
}

/* --- CHAT MOBILE POLISH (FINAL) --- */
@media (max-width: 768px) {
    /* 1. Remove Container Gaps */
    .container-wide {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .chat-container {
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #0f172a;
        z-index: 100; /* Over everything */
    }
    
    /* Hide site header when chat is open (using body class) */
    body.chat-view-active .main-header {
        display: none !important;
    }
    
    /* 2. Chat Main Layout */
    .chat-main {
        display: none; /* Only show when chat-view-active */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0f172a;
        z-index: 110;
        padding-top: 60px; /* Space for mobile header */
        padding-bottom: 70px; /* Space for input area */
    }
    
    body.chat-view-active .chat-main {
        display: flex;
        flex-direction: column;
    }
    
    /* 3. Mobile Header Fixing */
    .chat-mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(30, 41, 59, 1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 120;
        padding: 10px 15px;
    }
    
    /* 4. Messages Area Height */
    .messages-area {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        height: calc(100% - 130px) !important; /* Subtract header and input */
    }
    
    /* 5. Input Area Visibility Fix */
    .chat-input-area {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #1e293b !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 130 !important;
        padding: 10px 15px !important;
        gap: 8px;
        align-items: center;
    }
    
    .chat-input {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: white;
        border-radius: 20px;
        height: 40px;
    }
}

/* --- PREMIUM CHAT MOBILE POLISH --- */
@media (max-width: 768px) {
    /* Pink Circle Back Button */
    #backToContacts {
        width: 35px;
        height: 35px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        border: none;
        padding: 0;
        box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
        margin-right: 5px;
    }
    
    #backToContacts i {
        font-size: 1rem;
        margin-right: 2px; /* Slight offset for chevron feel */
    }

    /* Refined Mobile Header */
    .chat-mobile-header {
        height: 70px;
        background: #0f172a;
        padding: 0 15px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Fixed User Info in Header */
    #mobileChatUserTrigger {
        flex: 1;
        cursor: pointer;
    }

    #mobileChatUserTrigger h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    /* Info Toggle Button (Sleek Icon) */
    #mobileInfoToggle {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    /* Chat Input Polish */
    .chat-input-area {
        height: 70px;
        background: #0f172a;
        padding: 0 15px;
    }
    
    .chat-input {
        background: rgba(255,255,255,0.1) !important;
        border-radius: 25px !important;
        padding: 0 20px !important;
    }

    /* Profile Panel Mobile Polish */
    .chat-profile-panel {
        z-index: 200;
        background: #0f172a !important;
    }
    
    .sidebar-toggle-btn {
        width: 40px;
        height: 40px;
        background: var(--gradient-primary) !important;
        color: white !important;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    }
}

/* --- CABINET MOBILE CLEANUP (v2) --- */
@media (max-width: 992px) {
    .cabinet-page-wrapper {
        padding-top: 100px;
    }
    /* Target the specific bar */
    .user-nav-bar {
        display: block !important; /* Ensure it's visible */
        padding: 5px 0;
        background: #1e293b; /* Solid background for visibility */
        top: 65px;
    }
    
    .user-nav-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px;
    }

    /* Hide redundant tabs but KEEP balance */
    .user-nav-links {
        display: flex !important;
        flex: 1;
        justify-content: center;
    }
    
    .user-nav-links .cabinet-tab {
        display: none !important;
    }
    
    .user-nav-links .balance-display {
        display: inline-block !important;
        font-size: 0.85rem;
        margin: 0 auto;
    }

    /* Dropdown Trigger Polish */
    .user-nav-bar .user-dropdown-trigger {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    
    .user-nav-bar .user-name {
        display: none; /* Hide long name on small mobile if needed, or keep compact */
    }

    /* Time Display Polish */
    .user-nav-bar .time-display {
        display: flex !important;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .profile-nav-bar {
        display: none !important;
    }
    .user-nav-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-nav-bar .user-dropdown-trigger {
        order: 1;
    }
    
    .user-nav-bar .time-display {
        order: 2;
    }
    
    .user-nav-links {
        order: 3;
        width: 100%;
    }
}
