/* =========================================
   1. IMPORTS & RESET
   ========================================= */
/* Main Font: Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

/* Icon Font: Google Material Symbols Outlined */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

.no-transition,
.no-transition * {
    transition: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   2. VARIABLES (THEMING)
   ========================================= */
:root {
    /* Light Mode */
    --bg-color: #f0f2f5;
    --text-color: #1a1a1a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --blob-1: #ff9a9e;
    --blob-2: #fad0c4;

    /* Layout Variables */
    --sidebar-width: 240px;
    --header-height: 60px;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --blob-1: #4338ca;
    --blob-2: #3b82f6;
}

/* =========================================
   3. GLOBAL BASE STYLES
   ========================================= */
body {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 12s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    border-radius: 40% 50% 30% 40%;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    border-radius: 60% 40% 30% 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 40px) rotate(8deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =========================================
   UTILITIES: SPACING (MARGINS)
   ========================================= */

/* --- Margin Bottom (mb) --- */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

/* 4px */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* 8px */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* 16px */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* 24px */
.mb-5 {
    margin-bottom: 2rem !important;
}

/* 32px */
.mb-6 {
    margin-bottom: 3rem !important;
}

/* 48px */
.mb-7 {
    margin-bottom: 4rem !important;
}

/* 64px (Matches your inline style) */
.mb-8 {
    margin-bottom: 6rem !important;
}

/* 96px */

/* --- Margin Top (mt) --- */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.mt-6 {
    margin-top: 3rem !important;
}

.mt-7 {
    margin-top: 4rem !important;
}

.mt-8 {
    margin-top: 6rem !important;
}

/* --- Margin Vertical (my - Top & Bottom) --- */
.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.ml-auto {
    margin-left: auto !important;
}

/* =========================================
   UTILITIES: FLEX GAP (SPACING)
   ========================================= */
.gap-1 {
    gap: 0.25rem !important;
}

/* 4px */
.gap-1-5 {
    gap: 0.375rem !important;
}

/* 6px */
.gap-2 {
    gap: 0.5rem !important;
}

/* 8px */
.gap-3 {
    gap: 1rem !important;
}

/* 16px */

/* =========================================
   UTILITIES: TEXT DECORATION & COLOR
   ========================================= */
.no-underline {
    text-decoration: none !important;
}

.text-inherit {
    color: inherit !important;
}

/* =========================================
   UTILITIES: TYPOGRAPHY (FONT SIZE)
   ========================================= */
.text-xs {
    font-size: 0.75rem !important;
}

/* 12px - Badges, Metadata */
.text-sm {
    font-size: 0.95rem !important;
}

/* 14px - Subtitles, Captions */
.text-base {
    font-size: 1rem !important;
}

/* 16px - Standard Body Text */
.text-lg {
    font-size: 1.125rem !important;
}

/* 18px - Large Body, Card Titles */
.text-xl {
    font-size: 1.25rem !important;
}

/* 20px - Section Headers */
.text-2xl {
    font-size: 1.5rem !important;
}

/* 24px - Page Sub-headers */
.text-3xl {
    font-size: 1.875rem !important;
}

/* 30px - Modal Titles */
.text-4xl {
    font-size: 2.25rem !important;
}

/* 36px - Page Main Titles */
.text-5xl {
    font-size: 3rem !important;
}

/* 48px - Hero Banners */

/* =========================================
   UTILITIES: TEXT COLORS
   ========================================= */
/* Main Colors */
.text-color {
    color: var(--text-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-white {
    color: #ffffff !important;
}

/* Status Colors (Matches your existing badges) */
.text-green-500 {
    color: #10b981 !important;
}

/* Success */
.text-red-500 {
    color: #ef4444 !important;
}

/* Error/Delete */
.text-blue-500 {
    color: #3b82f6 !important;
}

/* Info/Links */
.text-yellow-500 {
    color: #f59e0b !important;
}

/* Warning */
.text-pink-500 {
    color: #ec4899 !important;
}

/* Special */

/* Hover States */
.hover-text-accent:hover {
    color: var(--accent) !important;
}

.hover-text-white:hover {
    color: #ffffff !important;
}

/* =========================================
   UTILITIES: TEXT ALIGNMENT
   ========================================= */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

/* =========================================
   UTILITIES: FONT WEIGHT
   ========================================= */
.font-light {
    font-weight: 300 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* =========================================
   UTILITIES: BORDER RADIUS
   ========================================= */
.rounded-none {
    border-radius: 0 !important;
}

.rounded-sm {
    border-radius: 0.25rem !important;
}

/* 4px */
.rounded {
    border-radius: 0.5rem !important;
}

/* 8px */
.rounded-md {
    border-radius: 0.75rem !important;
}

/* 12px (Standard Glass) */
.rounded-lg {
    border-radius: 1rem !important;
}

/* 16px */
.rounded-xl {
    border-radius: 1.5rem !important;
}

/* 24px */
.rounded-2xl {
    border-radius: 2rem !important;
}

/* 32px */
.rounded-full {
    border-radius: 9999px !important;
}

/* Circle / Pill */

/* =========================================
   UTILITIES: SPACING (PADDING)
   ========================================= */

/* --- Padding All Sides (p) --- */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

/* 4px */
.p-2 {
    padding: 0.5rem !important;
}

/* 8px */
.p-3 {
    padding: 1rem !important;
}

/* 16px */
.p-4 {
    padding: 1.5rem !important;
}

/* 24px */
.p-5 {
    padding: 2rem !important;
}

/* 32px */
.p-6 {
    padding: 3rem !important;
}

/* 48px */
.p-7 {
    padding: 4rem !important;
}

/* 64px */
.p-8 {
    padding: 6rem !important;
}

/* 96px */

/* --- Padding Vertical (py - Top & Bottom) --- */
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* --- Padding Horizontal (px - Left & Right) --- */
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.px-6 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* --- Padding Top Only (pt) --- */
.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 2rem !important;
}

/* --- Padding Bottom Only (pb) --- */
.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 2rem !important;
}

/* =========================================
   UTILITIES: FLEXBOX
   ========================================= */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

/* Optional useful extras */
.justify-center {
    justify-content: center !important;
}

.flex-row {
    flex-direction: row !important;
}

/* =========================================
   UTILITIES: SIZING (HEIGHT)
   ========================================= */
.h-100 {
    height: 100% !important;
}

.h-90 {
    height: 90px !important;
}

.w-100 {
    width: 100% !important;
}

.w-90 {
    width: 90px !important;
}

/* =========================================
   UTILITIES: DISPLAY & POSITION
   ========================================= */
.block {
    display: block !important;
}

.relative {
    position: relative !important;
}

/* =========================================
   UTILITIES: OBJECT FIT
   ========================================= */
.object-cover {
    object-fit: cover !important;
}

.object-contain {
    object-fit: contain !important;
}

/* =========================================
   UTILITIES: BORDERS
   ========================================= */
/* Widths (Default style is solid when using these) */
.border-0 {
    border-width: 0 !important;
}

.border {
    border-width: 1px !important;
    border-style: solid;
}

.border-2 {
    border-width: 2px !important;
    border-style: solid;
}

.border-3 {
    border-width: 3px !important;
    border-style: solid;
}

/* Colors */
.border-glass {
    border-color: var(--glass-border) !important;
}

.border-accent-20 {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

/* For the badge */
.border-none {
    border: none !important;
}

/* =========================================
   UTILITIES: MISCELLANEOUS
   ========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hidden {
    display: none !important;
}

/* =========================================
   4. LAYOUT (SIDEBAR & MAIN)
   ========================================= */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    bottom: 1.5rem;
    width: var(--sidebar-width);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

.sidebar .logo {
    display: block;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.10rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Slightly more gap looks better with Material icons */
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Ensure the icon doesn't resize unexpectedly */
.sidebar-links .material-symbols-outlined {
    font-size: 1.25rem;
    /* 20px - matches standard text well */
    line-height: 1;
}

/* Mobile Toggle & Overlay */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--glass-bg);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;

    font-size: 0.9rem;
    padding: 0.6rem;
    border-radius: 8px;
    color: var(--text-color);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
}


/* Main Content */
.main-content {
    margin-left: calc(var(--sidebar-width) + 3rem);
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0;
    width: calc(100% - var(--sidebar-width) - 3rem);
}


/* =========================================
   5. COMPONENTS (UI ELEMENTS)
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn {
    color: #ffffff;
}

.btn-visit {
    padding: 12px 30px;
    font-size: 1.1rem;
    white-space: nowrap;
}


/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-paid {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-freemium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Cards (Generic) */
.card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}


/* =========================================
   6. PAGE: LISTINGS / DIRECTORY
   ========================================= */
/* Hero */
.hero {
    min-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* Landing Page Specific Styles */
.landing-hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Filter Bar */
.listing-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listing-filter h2 {
    font-size: 1.25rem;
}

/* Grid Wrapper */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Listing Card Specifics */
.listing-card {
    height: 100%;
    padding: 0;
    /* Reset padding for internal layout */
}

.listing-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.listing-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.listing-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.listing-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.listing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* =========================================
   7. PAGE: TALENT PROFILE VIEW
   ========================================= */
/* Profile Header Card */
.profile-header-card {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

/* Avatar Wrapper */
.profile-avatar-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Profile Info */
.profile-info-wrapper {
    flex: 1;
    min-width: 300px;
}

.profile-info-wrapper h1 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    line-height: 1.1;
}

.profile-short-bio {
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Admin Edit Button */
.admin-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    padding: 5px 10px;
    z-index: 10;
}

/* Tags & Socials */
.tag-list {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Content Layout (View Page) */
.listing-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Main 2 : Sidebar 1 */
    gap: 2rem;
    margin-top: 1.5rem;
}

.content-col,
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-block {
    padding: 2rem;
}

.content-block h2,
.content-block h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

/* Rich Text / Description */
.rich-text {
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

/* Specs Table */
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    text-align: right;
}

/* Pros/Cons (General Detail Page) */
.pros-cons-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pros-box h3 {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.cons-box h3 {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    padding-left: 0;
}

.pros-box li,
.cons-box li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.pros-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.cons-box li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}


/* =========================================
   8. MOBILE / RESPONSIVE (CONSOLIDATED)
   ========================================= */
@media (max-width: 900px) {
    .pros-cons-wrapper {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        width: 100%;
    }

    .btn-visit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* --- SIDEBAR & LAYOUT --- */
    .mobile-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sidebar {
        top: 6px;
        /* outside padding */
        left: 6px;
        bottom: 6px;
        margin: 0;
        border-radius: 16px;
        width: 250px;
        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 4.5rem 1rem 1rem 1rem;
    }

    /* --- FILTERS & LISTING --- */
    .listing-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-box {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Force 2 Columns on Directory Grid */
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Listing Card Sizing Adjustments */
    .listing-card>div {
        padding: 1rem 0.5rem !important;
    }

    .avatar-container {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0.5rem !important;
    }

    .card-title {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    /* Hide less important items on mobile list */
    .hide-on-mobile {
        display: none !important;
    }

    /* --- PROFILE VIEW PAGE --- */
    /* Stack Header Centered */
    .profile-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    /* Avatar Centered */
    .profile-avatar-wrapper {
        margin-bottom: 1rem;
    }

    .profile-avatar-wrapper img {
        width: 120px;
        height: 120px;
    }

    /* Edit Button: Block element */
    .admin-edit-btn {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .profile-info-wrapper {
        width: 100%;
        min-width: 0;
    }

    .profile-info-wrapper h1 {
        font-size: 1.8rem;
    }

    .profile-short-bio {
        font-size: 1rem;
        margin: 0 auto 1rem auto;
    }

    /* Center Tags & Socials */
    .tag-list,
    .social-actions {
        justify-content: center;
    }

    .social-btn {
        flex-grow: 1;
        justify-content: center;
        min-width: 120px;
    }

    /* Grid Layout: Stack Columns */
    .listing-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Stats Card & Text */
    .spec-card {
        padding: 1.5rem;
    }

    .content-block h3,
    .rich-text {
        text-align: left !important;
    }
}

/* --- Icon Helper Class --- */
/* Use this class on <span> tags: <span class="material-symbols-outlined">home</span> */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Default size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Better rendering on Webkit browsers */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    /* Vertical alignment adjustment for text */
    vertical-align: middle;
}

/* Optional: Different sizes */
.icon-sm {
    font-size: 18px;
}

.icon-md {
    font-size: 24px;
}

.icon-lg {
    font-size: 32px;
}

/* =========================================
   9. REUSABLE PAGE HEADERS & ACTIONS
   ========================================= */

/* Main Header Container */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

/* Header Title Area */
.header-title h2 {
    margin-bottom: 0.25rem;
    line-height: 1.1;
    font-size: 1.5rem;
}

.header-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Actions Area (Right Side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    justify-content: flex-end;
    /* Pushes content to the right */
    max-width: 600px;
}

/* --- Search Component --- */
.header-search {
    position: relative;
    flex-grow: 1;
    max-width: 320px;
}

.header-search .search-input {
    width: 100%;
    padding-left: 40px;
    /* Space for search icon */
    padding-right: 35px;
    /* Space for clear button */
}

/* Icons inside search bar */
.search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
    font-size: 1.2rem;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: 0.2s;
}

.search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* --- Icon Button (e.g. Inbox, Filter) --- */
.btn-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    /* Prevents button from squishing */
}

.btn-icon:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Notification Badge (Red Dot) */
.badge-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    /* Creates the "cutout" look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Layout for Headers --- */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem;
    }

    .header-actions {
        max-width: 100%;
        justify-content: space-between;
    }

    .header-search {
        max-width: 100%;
    }
}

/* --- POST TIMELINE LAYOUT --- */
.post-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.timeline-feed {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--glass-border);
}

.timeline-card {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-color);
    z-index: 1;
}

.publisher-box textarea {
    border: none;
    background: transparent;
    resize: none;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: var(--text-color);
    font-family: inherit;
}

/* Flair Tags */
/* Widget Flair Tags */
.flair-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--glass-border);
    
    /* FORCE TEXT COLOR TO BE VISIBLE */
    color: var(--text-muted); 
    background: rgba(255, 255, 255, 0.05);
}

/* Hover State */
.flair-tag:hover {
    color: var(--text-color);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Active/Selected State */
.flair-tag.active {
    background: var(--accent);
    color: #fff; /* Always white text on accent background */
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Specific Colors for topics (Optional - adds nice colored dots or borders) */
.flair-Success-Story { border-left: 3px solid #10b981; }
.flair-Planning-Tips { border-left: 3px solid #3b82f6; }
.flair-Vendor-Review { border-left: 3px solid #f59e0b; }
.flair-Fashion-Look  { border-left: 3px solid #ec4899; }
.flair-Rituals       { border-left: 3px solid #8b5cf6; }
.flair-Advice-Needed { border-left: 3px solid #ef4444; }

/* Post Body Fix */
.post-body-text {
    line-height: 1.6;
    opacity: 0.9;
    word-wrap: break-word;
    /* Prevents overflow */
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        display: none;
    }

    .timeline-feed {
        padding-left: 0;
        border-left: none;
    }

    .timeline-card::before {
        display: none;
    }
}

/* Homepage Specific Grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Feature Card Hover Effect */
.feature-card {
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box span {
    font-size: 2rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s;
}

.info-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--accent), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-text p {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.info-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    height: 350px;
    /* Fixed height for consistency */
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.info-image:hover img {
    transform: scale(1.05);
}

/* Reverse layout for alternate sections */
.info-section.reverse {
    direction: rtl;
}

.info-section.reverse .info-text {
    direction: ltr;
}

/* Fact Cards Grid */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fact-card {
    padding: 1.5rem;
    text-align: center;
}

.fact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.fact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {

    .info-section,
    .info-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 1.5rem;
        gap: 2rem;
        height: auto;
    }

    .info-image {
        height: 250px;
    }

    .landing-hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive Grid Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Desktop: 2 columns */
    gap: 2rem;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 2.5rem;
    position: relative;
}

/* Visibility Utilities */
.show-on-mobile {
    display: none;
}

.hide-on-mobile {
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
        /* Mobile: 1 column */
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .profile-header h1 {
        justify-content: center;
    }

    .social-links-wrapper {
        justify-content: center;
    }

    .stats-wrapper {
        justify-content: center;
        width: 100%;
        gap: 2rem !important;
    }

    /* Edit button moves to relative position on mobile */
    .edit-profile-btn {
        position: static !important;
        width: 100%;
        justify-content: center;
    }

    /* Swap Visibility for Quick Facts */
    .show-on-mobile {
        display: block;
    }

    .hide-on-mobile {
        display: none;
    }
}

/* =========================================
   PROFILE STYLE
   ========================================= */
/* Page Specific Styles */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.profile-image-container {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta h1 {
    font-size: 2rem;
}

.category-badge {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar Items */
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 500;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Social Buttons */
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        justify-content: center;
    }
}

/* Helper for input icons */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper .material-symbols-outlined {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-icon-wrapper input {
    padding-left: 38px;
}

/* Fade out animation for alerts */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* --- RESPONSIVE GRID OVERRIDES --- */
/* Main Layout: 2 Columns on Desktop */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Form Inputs: 2 Columns on Desktop */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Form Inputs: 3 Columns on Desktop */
.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Avatar Section */
.avatar-section {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- MOBILE (Stack Everything) --- */
@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .avatar-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Ensure inputs take full width on mobile */
    input,
    select,
    textarea {
        width: 100% !important;
    }
}

/* --- Fix for Select Dropdown Options in Dark Mode --- */
select option {
    background-color: var(--bg-color);
    /* Solid dark background */
    color: var(--text-color);
    /* White text */
    padding: 10px;
}

/* If you have a specific dark mode class on the body */
body.dark-mode select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    transition: transform 0.1s;
}

.btn-action:active {
    transform: scale(0.9);
}

.btn-action .material-symbols-outlined {
    font-size: 1.2rem;
    transition: all 0.2s;
}

/* Author Link Styling */
.author-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.author-link:hover .author-name {
    color: var(--accent);
    text-decoration: underline;
}

/* Comment specific styling */
.comment-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Horizontal Scroll for Categories */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 2rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE */
    scrollbar-width: none;
    /* Firefox */
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.cat-pill {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-color);
    background: var(--glass-bg);
}

.cat-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.cat-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Override for this page */
@media (max-width: 900px) {
    .listing-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .hero-image {
        height: 250px !important;
    }
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

/* UPDATED: Better Centered Layout */
.auth-split-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    /* Text takes space, Form is fixed width */
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 1rem;
    max-width: 1200px;
    /* Prevents stretching on big screens */
    margin: 0 auto;
    /* Centers everything */
    width: 100%;
}

/* Left Column (Features) */
.feature-col h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Right Column (Form) */
.form-box {
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    outline: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--glass-border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: white;
    color: #1f1f1f !important;
    border: 1px solid #ddd;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn-google:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .auth-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .feature-col {
        display: none !important;
    }

    .form-box {
        margin: 0 auto;
        padding: 2rem;
    }
}

/* --- Event Card Styles --- */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-4px);
}

.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-radius: 8px;
    text-align: center;
    padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 60px;
}

.date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.date-badge .day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.event-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.event-details {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    align-items: center;
    gap: 4px;
}

/* Type Badge colors */
.type-Sport {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.type-Culture {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.type-Festival {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.type-Religious {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* --- Filter Bar Layout --- */
.filter-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.glass-toggle {
    display: inline-flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 12px;
}

.toggle-btn {
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: var(--text-color);
}

.toggle-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 12px;
    flex: 1;
    gap: 12px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .glass-toggle {
        display: flex;
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        text-align: center;
    }

    .search-form {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .search-divider {
        display: none;
    }

    .search-input {
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--glass-border);
    }

    .grid-wrapper {
        grid-template-columns: 1fr;
    }

    /* Force 1 column on mobile */
}

.event-hero {
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.event-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.date-badge-lg {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 12px;
    padding: 10px 18px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.date-badge-lg .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
}

.date-badge-lg .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .event-hero {
        height: 250px;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixed Container Height */
.inbox-container {
    display: flex;
    /* CHANGE: Use viewport height (vh) minus header/margin space */
    height: calc(100vh - 50px);
    min-height: 500px; /* Prevent it from getting too squashed */
    border-radius: 16px;
    overflow: hidden; /* Important: keeps scrollbars inside */
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.inbox-list {
    width: 350px;
    min-width: 300px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    height: 100%; /* Ensure it fills the container */
}

.inbox-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.chat-media {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
    transition: transform 0.2s;
}

.chat-image {
    max-height: 250px;
    object-fit: cover;
    cursor: zoom-in;
}

.chat-image:hover {
    opacity: 0.9;
}

.chat-video {
    max-height: 250px;
    width: 100%;
    background: #000;
}

.file-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.file-attachment:hover {
    background: rgba(0, 0, 0, 0.4);
}

.mobile-back-btn {
    display: none;
}

#chat-feed::-webkit-scrollbar {
    width: 6px;
}

#chat-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#upload-preview-container {
    position: absolute;
    bottom: 70px;
    left: 1rem;
    right: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .inbox-container {
        height: 95%;
        border: none;
        border-radius: 0;
        background: transparent;
        margin-bottom: 0;
    }

    .mobile-back-btn {
        display: flex;
        align-items: center;
        margin-right: 10px;
        text-decoration: none;
        color: var(--text-color);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Icon Box */
.icon-box-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Links List */
.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    border: 1px solid transparent;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.error-container {
    min-height: 70vh;
    /* Takes up most of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.error-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    /* Gradient text effect using your accent colors */
    background: linear-gradient(135deg, var(--accent), var(--blob-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.error-msg {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .contact-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    @media (max-width: 900px) {
        .contact-grid { grid-template-columns: 1fr; }
    }